From c8a2165b57f1bbd9f4747e0f244f0760c76e57bc Mon Sep 17 00:00:00 2001 From: Griffin Ansel <59709552+gansel51@users.noreply.github.com> Date: Wed, 16 Jun 2021 19:07:45 -0400 Subject: [PATCH] Backport PR #41844: DOC: Add .to_xyz to io docs --- doc/source/reference/io.rst | 50 ++++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/doc/source/reference/io.rst b/doc/source/reference/io.rst index 442631de50c7a..82d4ec4950ef1 100644 --- a/doc/source/reference/io.rst +++ b/doc/source/reference/io.rst @@ -13,6 +13,7 @@ Pickling :toctree: api/ read_pickle + DataFrame.to_pickle Flat file ~~~~~~~~~ @@ -21,6 +22,7 @@ Flat file read_table read_csv + DataFrame.to_csv read_fwf Clipboard @@ -29,6 +31,7 @@ Clipboard :toctree: api/ read_clipboard + DataFrame.to_clipboard Excel ~~~~~ @@ -36,23 +39,33 @@ Excel :toctree: api/ read_excel + DataFrame.to_excel ExcelFile.parse +.. currentmodule:: pandas.io.formats.style + +.. autosummary:: + :toctree: api/ + + Styler.to_excel + +.. currentmodule:: pandas + .. autosummary:: :toctree: api/ :template: autosummary/class_without_autosummary.rst ExcelWriter +.. currentmodule:: pandas.io.json + JSON ~~~~ .. autosummary:: :toctree: api/ read_json - json_normalize - -.. currentmodule:: pandas.io.json + to_json .. autosummary:: :toctree: api/ @@ -67,6 +80,16 @@ HTML :toctree: api/ read_html + DataFrame.to_html + +.. currentmodule:: pandas.io.formats.style + +.. autosummary:: + :toctree: api/ + + Styler.to_html + +.. currentmodule:: pandas XML ~~~~ @@ -74,6 +97,23 @@ XML :toctree: api/ read_xml + DataFrame.to_xml + +Latex +~~~~~ +.. autosummary:: + :toctree: api/ + + DataFrame.to_latex + +.. currentmodule:: pandas.io.formats.style + +.. autosummary:: + :toctree: api/ + + Styler.to_latex + +.. currentmodule:: pandas HDFStore: PyTables (HDF5) ~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -101,6 +141,7 @@ Feather :toctree: api/ read_feather + DataFrame.to_feather Parquet ~~~~~~~ @@ -108,6 +149,7 @@ Parquet :toctree: api/ read_parquet + DataFrame.to_parquet ORC ~~~ @@ -138,6 +180,7 @@ SQL read_sql_table read_sql_query read_sql + DataFrame.to_sql Google BigQuery ~~~~~~~~~~~~~~~ @@ -152,6 +195,7 @@ STATA :toctree: api/ read_stata + DataFrame.to_stata .. currentmodule:: pandas.io.stata