How to read dataset using python? CSV formate | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to read dataset using python? CSV formate

Pandas library will used ( this is for practice purposes)

30th Nov 2021, 4:06 PM
Danish Sadpara
Danish Sadpara - avatar
3 Answers
+ 5
The "standard" csv? (Some csv use different decimal symbols and stuff...) You can use the read_csv() function from pandas: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html Make sure to set the path to the data correctly and adjust the arguments if necessary
30th Nov 2021, 4:26 PM
Lisa
Lisa - avatar
+ 3
Which format has the data file?
30th Nov 2021, 4:21 PM
Lisa
Lisa - avatar
0
CSV formate as mentioned in above
30th Nov 2021, 4:22 PM
Danish Sadpara
Danish Sadpara - avatar