read csv file in python pandas with header code example
Example 1: read a csv file in pandas
you should be in the same dir as .py file
df = pd.read_csv('your_file_name.csv')
Example 2: read_csv
>>> pd.read_csv('data.csv')
you should be in the same dir as .py file
df = pd.read_csv('your_file_name.csv')
>>> pd.read_csv('data.csv')