Skip to content

Commit 47f7034

Browse files
Add Series and DataFrame doctests
1 parent d24bbd2 commit 47f7034

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

ci/build_docs.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,24 @@ if [ "$DOC" ]; then
6161
pandas/core/reshape/reshape.py \
6262
pandas/core/reshape/tile.py
6363

64-
RET="$?"
64+
if [ $? -ne "0" ]; then
65+
RET=1
66+
fi
6567

68+
# DataFrame docstrings
69+
pytest --doctest-modules pandas/core/series.py -k"-agg -apply -applymap -assign -eval -isin -itertuples -join -merge -nlargest -nsmallest -nunique -pivot -pivot_table -quantile -query -reindex -reindex_axis -replace -round -select_dtypes -set_index -stack -to_dict -to_excel -to_stata"
70+
71+
if [ $? -ne "0" ]; then
72+
RET=1
73+
fi
74+
75+
# Series docstrings
76+
pytest --doctest-modules pandas/core/series.py -k"-agg -apply -map -nlargest -nonzero -nsmallest -reindex -replace -searchsorted -sort_values -to_dict -to_excel"
77+
78+
if [ $? -ne "0" ]; then
79+
RET=1
80+
fi
81+
6682
fi
6783

6884
exit "$RET"

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ markers =
3232
slow: mark a test as slow
3333
network: mark a test as network
3434
high_memory: mark a test as a high-memory only
35+
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL

0 commit comments

Comments
 (0)