Skip to content

Commit

Permalink
add missing import oss
Browse files Browse the repository at this point in the history
  • Loading branch information
cobaltt7 committed Feb 22, 2025
1 parent 92c9a3f commit a8bb717
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/source/user_guide/io/excel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ should be passed to ``index_col`` and ``header``:
.. ipython:: python
:suppress:
import os
os.remove("path_to_file.xlsx")
Missing values in columns specified in ``index_col`` will be forward filled to
Expand Down
1 change: 1 addition & 0 deletions doc/source/user_guide/io/feather.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ Read from a feather file.
.. ipython:: python
:suppress:
import os
os.remove("example.feather")
1 change: 1 addition & 0 deletions doc/source/user_guide/io/hdf5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ for some advanced strategies
:suppress:
:okexcept:
import os
os.remove("store.h5")
.. ipython:: python
Expand Down
1 change: 1 addition & 0 deletions doc/source/user_guide/io/html.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ as a string:
.. ipython:: python
:suppress:
import os
os.remove("tmp.html")
You can even pass in an instance of ``StringIO`` if you so desire:
Expand Down
1 change: 1 addition & 0 deletions doc/source/user_guide/io/json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ indicate missing values and the subsequent read cannot distinguish the intent.
.. ipython:: python
:suppress:
import os
os.remove("test.json")
When using ``orient='table'`` along with user-defined ``ExtensionArray``,
Expand Down
1 change: 1 addition & 0 deletions doc/source/user_guide/io/orc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ Read only certain columns of an orc file.
.. ipython:: python
:suppress:
import os
os.remove("example_pa.orc")
5 changes: 3 additions & 2 deletions doc/source/user_guide/io/parquet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ Read only certain columns of a parquet file.
.. ipython:: python
:suppress:
:okexcept:
import os
os.remove("example_pa.parquet")
os.remove("example_fp.parquet")
Expand Down Expand Up @@ -145,7 +146,7 @@ Passing ``index=True`` will *always* write the index, even if that's not the
underlying engine's default behavior.

.. ipython:: python
:suppress:
:okexcept:
os.remove("test.parquet")
Expand Down
1 change: 1 addition & 0 deletions doc/source/user_guide/io/pickling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ any pickled pandas object (or any other pickled object) from file:
.. ipython:: python
:suppress:
import os
os.remove("foo.pkl")
.. warning::
Expand Down
1 change: 1 addition & 0 deletions doc/source/user_guide/io/stata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ values will have ``object`` data type.
.. ipython:: python
:suppress:
import os
os.remove("stata.dta")
.. _io.stata-categorical:
Expand Down
1 change: 1 addition & 0 deletions doc/source/user_guide/io/xml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ Specify only elements or only attributes to parse:
.. ipython:: python
:suppress:
import os
os.remove("books.xml")
XML documents can have namespaces with prefixes and default namespaces without
Expand Down

0 comments on commit a8bb717

Please sign in to comment.