8000 CI: Fail doc build on warning by TomAugspurger · Pull Request #22743 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

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
wants to merge 32 commits into from
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 Sep 18, 2018
41c8297
Purge read_table
TomAugspurger Sep 18, 2018
2e76e84
Removed nested list example
TomAugspurger Sep 18, 2018
a70f86d
Fixed resample __iter__
TomAugspurger Sep 18, 2018
e4a8b06
Old whatsnew
TomAugspurger Sep 18, 2018
693eead
Ecosystem
TomAugspurger Sep 18, 2018
e6b2c09
to_csv
TomAugspurger Sep 18, 2018
a7f0b38
to_json
TomAugspurger Sep 18, 2018
ff3d2dd
Handle subpackages better
TomAugspurger Sep 18, 2018
e544249
Fixed unexpected indent
TomAugspurger Sep 18, 2018
8bdb920
Fixed "inline interpreted text..."
TomAugspurger Sep 18, 2018
ae0f8ff
Fixed "malformed hyperlink target"
TomAugspurger Sep 18, 2018
a275dfb
Add warnings to CLI
TomAugspurger Sep 18, 2018
b190866
Fixed unexpected indentation
TomAugspurger Sep 18, 2018
a46e4c7
newline after directive
TomAugspurger Sep 18, 2018
74af53d
Maybe fix na_value not included in toctree
TomAugspurger Sep 18, 2018
1668c65
Fixed no link to na_value
TomAugspurger Sep 18, 2018
dda2bfc
Fixed II ref
TomAugspurger Sep 18, 2018
a2b31ab
Fixed options ref
TomAugspurger Sep 18, 2018
9f0a948
Fixed link to Resmpaler
TomAugspurger Sep 18, 2018
158c46d
Change warning, error, linting
TomAugspurger Sep 18, 2018
c1a5ab8
Sample warning
TomAugspurger Sep 19, 2018
bbcd7bd
update contributing
TomAugspurger Sep 19, 2018
c8f206c
lint
TomAugspurger Sep 19, 2018
c917101
Merge remote-tracking branch 'upstream/master' into doc-warnings
TomAugspurger Sep 20, 2018
30c9174
Fix call
TomAugspurger Sep 20, 2018
5e0b275
write a parser
TomAugspurger Sep 20, 2018
384ace8
try to exit
TomAugspurger Sep 20, 2018
6a2a060
lint
TomAugspurger Sep 20, 2018
378bd6d
Rework doc build
TomAugspurger Sep 20, 2018
8859f97
executable scripts
TomAugspurger Sep 20, 2018
b9331f1
activate
TomAugspurger Sep 20, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed resample __iter__
  • Loading branch information
TomAugspurger committed Sep 18, 2018
commit a70f86df6b57b67cf5c7035f1f0c4afd7642da31
41 changes: 24 additions & 17 deletions doc/source/timeseries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -758,11 +758,21 @@ natural and functions similarly to :py:func:`itertools.groupby`:

.. ipython:: python

resampled = df.resample('H')
Copy link
Contributor Author

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.

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`.

Expand Down Expand Up @@ -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')
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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:

Expand Down Expand Up @@ -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)
Expand Down
0