Python Pandas program to import an xlsx file

In this python pandas program, we will import an xlsx file using the pandas library.

Steps to solve the program
  1. Import pandas library as pd.
  2. Now import a xlsx file i.e. Excel file using pd.read_excel(“file name”).
  3. Then print the output.
				
					import pandas as pd
df = pd.read_excel("file name")
print(df)
				
			

import a CSV file

Leave a Comment