how can I dicread and dicwrite an csv file as a class with python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how can I dicread and dicwrite an csv file as a class with python

14th Aug 2018, 10:39 PM
Hala Hala
Hala Hala - avatar
2 Answers
+ 2
In python there are several ways: First, python has a csv class: https://docs.python.org/3.7/library/csv.html It can read and write csv files. Both numpy and pandas have read-write methods that can take csv as input: https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.loadtxt.html Loadtext and savetext in numpy https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html Read_csv in pandas
15th Aug 2018, 4:16 AM
Najum
Najum - avatar
0
Thank you very much
15th Aug 2018, 5:45 AM
Hala Hala
Hala Hala - avatar