此问题已在此处有答案:
TypeError with pandas.read_excel(4个答案)
6天前关闭
我尝试使用pandas将Excel工作表中的列复制到数组中,但出现以下错误:
read_excel() got an unexpected keyword argument 'sheetname'
下面是我正在使用的代码:
df = pd.read_excel('Processed_Results_MO.xslx', sheetname='25%')
my_array = df['Methane Output (GJ/y)'].toarray()
1条答案
按热度按时间eeq64g8w1#
该参数名为“sheet_name”,因此您的函数将为