In this python pandas program, we will import a CSV file using the pandas library.
Steps to solve the program
- Import pandas library as pd.
- Now import a CSV file using pd.read_csv(“file name”).
- Then print the output.
import pandas as pd
df = pd.read_csv("file name")
print(df)
1 thought on “Python Pandas program to import a CSV file”