-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Fail doc build on warning #22743
Changes from all commits
1168273
41c8297
2e76e84
a70f86d
e4a8b06
693eead
e6b2c09
a7f0b38
ff3d2dd
e544249
8bdb920
ae0f8ff
a275dfb
b190866
a46e4c7
74af53d
1668c65
dda2bfc
a2b31ab
9f0a948
158c46d
c1a5ab8
bbcd7bd
c8f206c
c917101
30c9174
5e0b275
384ace8
6a2a060
378bd6d
8859f97
b9331f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd "$TRAVIS_BUILD_DIR" | ||
echo "inside $0" | ||
|
||
if [ "$DOC" ]; then | ||
|
||
echo "[building docs]" | ||
|
||
source activate pandas | ||
|
||
mv "$TRAVIS_BUILD_DIR"/doc /tmp | ||
mv "$TRAVIS_BUILD_DIR/LICENSE" /tmp # included in the docs. | ||
cd /tmp/doc | ||
|
||
echo './make.py 2>&1 | tee doc-build.log' | ||
./make.py 2>&1 | tee doc-build.log | ||
else | ||
echo "[skipping docs]" | ||
fi | ||
|
||
exit 0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "inside $0" | ||
|
||
if [ "$DOC" ]; then | ||
cd /tmp/doc | ||
|
||
echo "[linting docs]" | ||
|
||
echo './make.py lint_log --log-file=doc-build.log' | ||
./make.py lint_log --log-file=doc-build.log | ||
else | ||
echo "[skipping doc lint]" | ||
fi |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
doc-build.log |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2603,3 +2603,12 @@ objects. | |
generated/pandas.Series.ix | ||
generated/pandas.Series.imag | ||
generated/pandas.Series.real | ||
|
||
|
||
.. Can't convince sphinx to generate toctree for this class attribute. | ||
.. So we do it manually to avoid a warning | ||
.. toctree:: | ||
:hidden: | ||
|
||
generated/pandas.api.extensions.ExtensionDtype.na_value | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No idea on this one. Something with numpydoc / sphinx autodoc. I think autodoc detects that |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -505,13 +505,11 @@ Unlike agg, apply's callable is passed a sub-DataFrame which gives you access to | |
.. ipython:: python | ||
|
||
df = pd.DataFrame({'A' : [1, 1, 2, 2], 'B' : [1, -1, 1, 2]}) | ||
|
||
gb = df.groupby('A') | ||
|
||
def replace(g): | ||
mask = g < 0 | ||
g.loc[mask] = g[~mask].mean() | ||
return g | ||
mask = g < 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apparently the argument passed to |
||
return g.where(mask, g[~mask].mean()) | ||
|
||
gb.transform(replace) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @datapythonista single-page
pandas.io.formats.style.Styler
wasn't working earlier, since it's not available from the top-level namespace. Do we have tests for this?