File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -3827,22 +3827,28 @@ format of an Excel worksheet created with the ``to_excel`` method. Excellent ex
3827
3827
OpenDocument Spreadsheets
3828
3828
-------------------------
3829
3829
3830
- .. versionadded :: 0.25
3831
-
3832
- The :func: `~pandas.read_excel ` method can also read OpenDocument spreadsheets
3833
- using the ``odfpy `` module. The semantics and features for reading
3830
+ The io methods for `Excel files `_ also support reading and writing OpenDocument spreadsheets
3831
+ using the `odfpy <https://pypi.org/project/odfpy/ >`__ module. The semantics and features for reading and writing
3834
3832
OpenDocument spreadsheets match what can be done for `Excel files `_ using
3835
3833
``engine='odf' ``.
3836
3834
3835
+ .. versionadded :: 0.25
3836
+
3837
+ The :func: `~pandas.read_excel ` method can read OpenDocument spreadsheets
3838
+
3837
3839
.. code-block :: python
3838
3840
3839
3841
# Returns a DataFrame
3840
3842
pd.read_excel(" path_to_file.ods" , engine = " odf" )
3841
3843
3842
- .. note ::
3844
+ .. versionadded :: 1.1.0
3843
3845
3844
- Currently pandas only supports *reading * OpenDocument spreadsheets. Writing
3845
- is not implemented.
3846
+ Similarly, the :func: `~pandas.to_excel ` method can write OpenDocument spreadsheets
3847
+
3848
+ .. code-block :: python
3849
+
3850
+ # Writes DataFrame to a .ods file
3851
+ df.to_excel(" path_to_file.ods" , engine = " odf" )
3846
3852
3847
3853
.. _io.xlsb :
3848
3854
You can’t perform that action at this time.
0 commit comments