Python初心者です。
下記コードでエクセルファイルをインポートしたいのですが、NameError: name 'df' is not defined となってしまいます。
どこが間違っているのでしょうか?
解決方法を教えていただきたいです。
よろしくお願いいたします。
import openpyxl
import pandas as pd
import glob
#Path
import_file_path = 'Desktop/MyPandas/test.xlsx'
excel_sheet_name = '発注管理表'
export_file_path = 'Desktop/MyPandas/output'
df = pd.read_excel(import_file_path, sheet_name = excel_sheet_name)
df