강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của webghostcj3033
webghostcj3033

câu hỏi đã được viết

Python School - Tự động hóa công việc bằng lập trình Python

Đọc tệp Excel

엑셀파일 읽기에서 결과 값이 나오지 않고 있습니다. ㅠㅠ

Viết

·

605

1

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-230f01c25d40> in <module>
      1 import pandas as pd
----> 2 df = pd.read_excel('a.xlsx', sheetname='Sheet1')
      3 df

~\Anaconda3\lib\site-packages\pandas\util\_decorators.py in wrapper(*args, **kwargs)
    206                 else:
    207                     kwargs[new_arg_name] = new_arg_value
--> 208             return func(*args, **kwargs)
    209 
    210         return wrapper

~\Anaconda3\lib\site-packages\pandas\io\excel\_base.py in read_excel(io, sheet_name, header, names, index_col, usecols, squeeze, dtype, engine, converters, true_values, false_values, skiprows, nrows, na_values, keep_default_na, verbose, parse_dates, date_parser, thousands, comment, skip_footer, skipfooter, convert_float, mangle_dupe_cols, **kwds)
    304         if arg in kwds:
    305             raise TypeError(
--> 306                 "read_excel() got an unexpected keyword argument " "`{}`".format(arg)
    307             )
    308 

TypeError: read_excel() got an unexpected keyword argument `sheetname`
python

Câu trả lời

Câu hỏi này đang chờ câu trả lời
Hãy là người đầu tiên trả lời!
Hình ảnh hồ sơ của webghostcj3033
webghostcj3033

câu hỏi đã được viết

Đặt câu hỏi