-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
CI: Fail doc build on warning #22743
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
1168273
FutureWarning from groupby.
TomAugspurger 41c8297
Purge read_table
TomAugspurger 2e76e84
Removed nested list example
TomAugspurger a70f86d
Fixed resample __iter__
TomAugspurger e4a8b06
Old whatsnew
TomAugspurger 693eead
Ecosystem
TomAugspurger e6b2c09
to_csv
TomAugspurger a7f0b38
to_json
TomAugspurger ff3d2dd
Handle subpackages better
TomAugspurger e544249
Fixed unexpected indent
TomAugspurger 8bdb920
Fixed "inline interpreted text..."
TomAugspurger ae0f8ff
Fixed "malformed hyperlink target"
TomAugspurger a275dfb
Add warnings to CLI
TomAugspurger b190866
Fixed unexpected indentation
TomAugspurger a46e4c7
newline after directive
TomAugspurger 74af53d
Maybe fix na_value not included in toctree
TomAugspurger 1668c65
Fixed no link to na_value
TomAugspurger dda2bfc
Fixed II ref
TomAugspurger a2b31ab
Fixed options ref
TomAugspurger 9f0a948
Fixed link to Resmpaler
TomAugspurger 158c46d
Change warning, error, linting
TomAugspurger c1a5ab8
Sample warning
TomAugspurger bbcd7bd
update contributing
TomAugspurger c8f206c
lint
TomAugspurger c917101
Merge remote-tracking branch 'upstream/master' into doc-warnings
TomAugspurger 30c9174
Fix call
TomAugspurger 5e0b275
write a parser
TomAugspurger 384ace8
try to exit
TomAugspurger 6a2a060
lint
TomAugspurger 378bd6d
Rework doc build
TomAugspurger 8859f97
executable scripts
TomAugspurger b9331f1
activate
TomAugspurger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed resample __iter__
- Loading branch information
commit a70f86df6b57b67cf5c7035f1f0c4afd7642da31
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -758,11 +758,21 @@ natural and functions similarly to :py:func:`itertools.groupby`: | |
|
||
.. ipython:: python | ||
|
||
resampled = df.resample('H') | ||
small = pd.Series( | ||
range(6), | ||
index=pd.to_datetime(['2017-01-01T00:00:00', | ||
'2017-01-01T00:30:00', | ||
'2017-01-01T00:31:00', | ||
'2017-01-01T01:00:00', | ||
'2017-01-01T03:00:00', | ||
'2017-01-01T03:05:00']) | ||
) | ||
resampled = small.resample('H') | ||
|
||
for name, group in resampled: | ||
print(name) | ||
print(group) | ||
print("Group: ", name) | ||
print("-" * 27) | ||
print(group, end="\n\n") | ||
|
||
See :ref:`groupby.iterating-label`. | ||
|
||
|
@@ -910,26 +920,22 @@ It's definitely worth exploring the ``pandas.tseries.offsets`` module and the | |
various docstrings for the classes. | ||
|
||
These operations (``apply``, ``rollforward`` and ``rollback``) preserve time | ||
(hour, minute, etc) information by default. To reset time, use ``normalize=True`` | ||
when creating the offset instance. If ``normalize=True``, the result is | ||
normalized after the function is applied. | ||
|
||
(hour, minute, etc) information by default. To reset time, use ``normalize`` | ||
before or after applying the operation (depending on whether you want the | ||
time information included in the operation. | ||
|
||
.. ipython:: python | ||
|
||
ts = pd.Timestamp('2014-01-01 09:00') | ||
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. cc @jorisvandenbossche @jbrockmendel if you want to take a look at these to ensure I'm doing this properly (#21564) |
||
day = Day() | ||
day.apply(pd.Timestamp('2014-01-01 09:00')) | ||
|
||
day = Day(normalize=True) | ||
day.apply(pd.Timestamp('2014-01-01 09:00')) | ||
day.apply(ts) | ||
day.apply(ts).normalize() | ||
|
||
ts = pd.Timestamp('2014-01-01 22:00') | ||
hour = Hour() | ||
hour.apply(pd.Timestamp('2014-01-01 22:00')) | ||
|
||
hour = Hour(normalize=True) | ||
hour.apply(pd.Timestamp('2014-01-01 22:00')) | ||
hour.apply(pd.Timestamp('2014-01-01 23:00')) | ||
|
||
hour.apply(ts) | ||
hour.apply(ts).normalize() | ||
hour.apply(pd.Timestamp("2014-01-01 23:30")).normalize() | ||
|
||
.. _timeseries.dayvscalendarday: | ||
|
||
|
@@ -1488,6 +1494,7 @@ time. The method for this is :meth:`~Series.shift`, which is available on all of | |
the pandas objects. | ||
|
||
.. ipython:: python | ||
|
||
ts = pd.Series(range(len(rng)), index=rng) | ||
ts = ts[:5] | ||
ts.shift(1) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
At this point,
df
is a DataFrame with columns like['year', 'day', 'hour'...]
. This most have been expecting something different.