-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcsv3.py
More file actions
16 lines (13 loc) 路 723 Bytes
/
Copy pathcsv3.py
File metadata and controls
16 lines (13 loc) 路 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pandas as pd
# # df= pd.read_csv("C:\Users\Pushpendra\Desktop\Dhruv\Python (Dhruv)\Pandas\csv3.csv")
# df = pd.read_csv("C:/Users/Pushpendra/Desktop/Dhruv/Python (Dhruv)/Pandas/csv3.csv")
# print(df)
df5=pd.DataFrame([{"name":"vijaya", "english ":67 , "math":78 , "ip":78},
{"name":"rahul", "english ":78 , "math":67 , "ip":88},
{"name":"meghna", "english ":75 , "math":75 , "ip":98},
{"name":"radhika", "english ":88 , "math":88 , "ip":90},
{"name":"shaurya", "english ":92 , "math":92 , "ip":56}],index =['A','B','C','D','E'])
print(df5)
df5.to_csv("C:/Users/Pushpendra/Desktop/Dhruv/Python (Dhruv)/Pandas/csv3.csv")
df = pd.read_csv("C:/Users/Pushpendra/Desktop/Dhruv/Python (Dhruv)/Pandas/csv3.csv")
print(df)