简体   繁体   English

我在哪里可以找到ExcelWriter文档

[英]Where can I find the ExcelWriter documentation

I want to work with the ExcelWriter class. 我想使用ExcelWriter类。 Though the ExcelWriter can be called with pd.ExcelWriter like in this post, I can't find any information about it in the Pandas API . 虽然ExcelWriter可以pd.ExcelWriter在被称为像这样的帖子,我无法找到关于它的任何信息大熊猫API So where can I find a documentation? 那我在哪里可以找到文档?

You may want to read "Working with Python Pandas and XlsxWriter" documentation and Pandas Cookbook IO (Excel) . 您可能需要阅读“使用Python Pandas和XlsxWriter”文档Pandas Cookbook IO(Excel)

Another useful option is to use interactive Python shells like ipython or Jupyter Notebook - just type function/method/constructor name followed by ? 另一个有用的选择是使用像ipythonJupyter Notebook这样的交互式Python shell - 只需键入function / method / constructor name,然后输入? (question mark) and press Enter - it'll show you a docstring . (问号)然后按Enter - 它会显示一个docstring

Demo in ipython : 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.

相关问题 在哪里可以找到有关汇编程序的文档? - Where can I find documentation on assembler? 我在哪里可以找到tkinter的API文档? - Where can I find API documentation for tkinter? 我在哪里可以找到PythonMagick文档? - Where can I find PythonMagick documentation? 我在哪里可以找到python的vtk文档? - Where can i find vtk documentation for python? OpenOffice Python宏:我在哪里可以找到有用的文档? - OpenOffice Python macros: Where can I find useful documentation? 在哪里可以找到python内置模块的文档? - Where can i find documentation for python built-in modules? 我在 Pycharm 中使用 PySide2 来构建我的 GUI 程序,但是在哪里可以找到参考文档? - I use PySide2 in Pycharm to build my GUI program, but where can I find reference documentation? 在哪里可以找到使用 boto3 编写自定义 AWS 凭证提供程序的文档? - Where can I find the documentation for writing custom AWS credential provider using boto3? 在哪里可以找到未实现的Python-Future导入文档? - Where can I find documentation of Python-Future imports that are incompletely implemented? GeoDjango-LineStringField-如何使用? 我在哪里可以找到文件? - GeoDjango - LineStringField - how to use it? Where do I find documentation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM