我在哪里可以findExcelWriter文档

我想使用ExcelWriter类。 尽pipeExcelWriter可以像本文一样使用pd.ExcelWriter进行调用,但在Pandas API中找不到关于它的任何信息。 那么我在哪里可以find一个文档?

您可能想阅读“使用Python Pandas和XlsxWriter”文档和Pandas Cookbook IO(Excel) 。

另一个有用的select是使用像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 (eg 'YYYY-MM-DD') datetime_format : string, default None Format string for datetime objects written into Excel files (eg 'YYYY-MM-DD HH:MM:SS') Notes ----- For compatibility with CSV writers, ExcelWriter serializes lists and dicts to strings before writing.