簡體   English   中英

我在哪里可以找到ExcelWriter文檔

[英]Where can I find the ExcelWriter documentation

我想使用ExcelWriter類。 雖然ExcelWriter可以pd.ExcelWriter在被稱為像這樣的帖子,我無法找到關於它的任何信息大熊貓API 那我在哪里可以找到文檔?

您可能需要閱讀“使用Python Pandas和XlsxWriter”文檔Pandas Cookbook IO(Excel)

另一個有用的選擇是使用像ipythonJupyter Notebook這樣的交互式Python shell - 只需鍵入function / method / constructor name,然后輸入? (問號)然后按Enter - 它會顯示一個docstring

ipython演示:

In [84]: pd.ExcelWriter?
Init signature: pd.ExcelWriter(path, engine=None, **kwargs)
Docstring:
Class for writing DataFrame objects into excel sheets, default is to use
xlwt for xls, openpyxl for xlsx.  See DataFrame.to_excel for typical usage.

Parameters
----------
path : string
    Path to xls or xlsx file.
engine : string (optional)
    Engine to use for writing. If None, defaults to
    ``io.excel.<extension>.writer``.  NOTE: can only be passed as a keyword
    argument.
date_format : string, default None
    Format string for dates written into Excel files (e.g. 'YYYY-MM-DD')
datetime_format : string, default None
    Format string for datetime objects written into Excel files
    (e.g. 'YYYY-MM-DD HH:MM:SS')

Notes
-----
For compatibility with CSV writers, ExcelWriter serializes lists
and dicts to strings before writing.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM