Answers for "pandas read csv wit"

15

load csv file using pandas

import pandas as pd

df = pd.read_csv (r'Path where the CSV file is stored\File name.csv')
print (df)
Posted by: Guest on June-07-2020
-1

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)
Posted by: Guest on April-29-2022

Python Answers by Framework

Browse Popular Code Answers by Language