2017-09-12 21 views

答えて

4

"Working with Python Pandas and XlsxWriter" documentationPandas Cookbook IO (Excel)をお読みください。ただ?(疑問符)に続く関数/メソッド/コンストラクタの名前を入力し、Enterを押してください - - それはあなたのdocstringを紹介

別の便利なオプションは、ipythonまたはJupyter NotebookのようなPythonの対話シェルを使用することです。 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. 
関連する問題