Answers for "how to import csv file to pandas dataframe"

11

how to import csv in pandas

import pandas as pd

df = pd.read_csv (r'Path where the CSV file is storedFile name.csv')
print (df)
Posted by: Guest on April-15-2020
31

saving a pandas dataframe as a csv

df.to_csv(r'Path where you want to store the exported CSV fileFile Name.csv', index = False)
Posted by: Guest on May-06-2020

Code answers related to "how to import csv file to pandas dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language