colab read xlsx 1

colab read xlsx

import pandas as pd
df = pd.read_excel('/content/drive/My Drive/folder_name/file_name.xlsx')

Here is what the above code is Doing:
1. We’re importing the pandas library and giving it the alias pd.
2. We’re using the read_excel method to read the Excel file.
3. We’re passing the path to the Excel file as an argument to the read_excel method.
4. We’re storing the returned dataframe in a variable called df.

Similar Posts