I am having excel and want to read the second worksheet. But everytime getting only first worksheet. Is there a way to get second worksheet without giving its name?
import pandas as pd
dfs = pd.read_excel("data.xlsx")
print dfs
I am having excel and want to read the second worksheet. But everytime getting only first worksheet. Is there a way to get second worksheet without giving its name?
import pandas as pd
dfs = pd.read_excel("data.xlsx")
print dfs
Use sheet_name
argument under pd.read_excel
to read a specific sheet.
Example:
sheet_name=1
reads second sheet.