Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Read csv file with pandas

import pandas as pd

# Read file and set row number(s) to use as the column name(s)
df = pd.read_csv('file.csv', header = 0) 

# Display DataFrame
print(df)
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #Read #csv #file #pandas
ADD COMMENT
Topic
Name
4+6 =