sashahafner / pystupid

Some notes on Python syntax and more
GNU General Public License v3.0
2 stars 0 forks source link

Reading data from csv files #14

Open sashahafner opened 9 months ago

sashahafner commented 9 months ago

Seems it is simple with Pandas:

import pandas
df = pandas.read_csv('hrdata.csv')
print(df)

I like the description from this site that follows: "That’s it: three lines of code, and only one of them is doing the actual work." https://realpython.com/python-csv/

Imagine that! One line to read data from a file, how incredible! That's sarcastic. I still hate Python.