Skip to content

Commit

Permalink
add doctest to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed Dec 1, 2024
1 parent 57a3bb7 commit 9ea9c41
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,13 @@ Pint-pandas: Unit support for pandas
User Guide <user/index>
Advanced topics <advanced/index>
ecosystem
API Reference <api/index>

.. toctree::
:maxdepth: 1
:hidden:
:caption: For developers

dev/contributing
dev/pint-convert
dev/contributing <https://github.com/hgrecco/pint-pandas>

.. toctree::
:maxdepth: 1
Expand Down
3 changes: 2 additions & 1 deletion docs/user/common.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ The default operation of Pandas `pd.concat` function is to perform row-wise conc

.. ipython:: python
:suppress:
:okwarning:
:okexcept:
df = pd.concat(list_of_series, axis=1)
Expand Down
5 changes: 4 additions & 1 deletion docs/user/reading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ Let's read that into a DataFrame. Here io.StringIO is used in place of reading a
df = pd.read_csv(io.StringIO(test_data), header=[0, 1], index_col=[0, 1]).T
# df = pd.read_csv("/path/to/test_data.csv", header=[0, 1])
for col in df.columns:
df[col] = pd.to_numeric(df[col], errors="ignore")
try:
df[col] = pd.to_numeric(df[col])
except ValueError:
pass
df.dtypes
Expand Down

0 comments on commit 9ea9c41

Please sign in to comment.