Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into Rt05
Browse files Browse the repository at this point in the history
* upstream/master: (21 commits)
  TST: use a fixed seed to have the same uniques across python versions (pandas-dev#25346)
  BUG: Fix passing of numeric_only argument for categorical reduce (pandas-dev#25304)
  ENH: Support times with timezones in at_time (pandas-dev#25280)
  COMPAT: alias .to_numpy() for timestamp and timedelta scalars (pandas-dev#25142)
  DOC/CLN: Fix various docstring errors (pandas-dev#25295)
  Bug: OverflowError in resample.agg with tz data (pandas-dev#25297)
  Fixes Formatting Exception (pandas-dev#25088)
  BUG: groupby.transform retains timezone information (pandas-dev#25264)
  Doc: corrects spelling in generic.py (pandas-dev#25333)
  Fix typos in docs (pandas-dev#25305)
  Rt05 documentation error fix issue 25108 (pandas-dev#25309)
  Skipped broken Py2 / Windows test (pandas-dev#25323)
  DOC/CLN: Fix errors in DataFrame docstrings (pandas-dev#24952)
  DOC: Fix minor typo in docstring (pandas-dev#25285)
  Removed Panel class from HDF ASVs (pandas-dev#25281)
  TST/CLN: remove test_slice_ints_with_floats_raises (pandas-dev#25277)
  Edit parameter type in pandas.core.frame.py DataFrame.count (pandas-dev#25198)
  Fix typo in Cheat sheet with regex (pandas-dev#25215)
  Refactor groupby group_prod, group_var, group_mean, group_ohlc (pandas-dev#25249)
  REF: use _constructor and ABCFoo to avoid runtime imports (pandas-dev#25272)
  ...
  • Loading branch information
thoo committed Feb 16, 2019
2 parents 1824b99 + 4a20d5b commit 1262632
Show file tree
Hide file tree
Showing 62 changed files with 851 additions and 591 deletions.
29 changes: 1 addition & 28 deletions asv_bench/benchmarks/io/hdf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import warnings

import numpy as np
from pandas import DataFrame, Panel, date_range, HDFStore, read_hdf
from pandas import DataFrame, date_range, HDFStore, read_hdf
import pandas.util.testing as tm

from ..pandas_vb_common import BaseIO
Expand Down Expand Up @@ -99,31 +97,6 @@ def time_store_info(self):
self.store.info()


class HDFStorePanel(BaseIO):

def setup(self):
self.fname = '__test__.h5'
with warnings.catch_warnings(record=True):
self.p = Panel(np.random.randn(20, 1000, 25),
items=['Item%03d' % i for i in range(20)],
major_axis=date_range('1/1/2000', periods=1000),
minor_axis=['E%03d' % i for i in range(25)])
self.store = HDFStore(self.fname)
self.store.append('p1', self.p)

def teardown(self):
self.store.close()
self.remove(self.fname)

def time_read_store_table_panel(self):
with warnings.catch_warnings(record=True):
self.store.select('p1')

def time_write_store_table_panel(self):
with warnings.catch_warnings(record=True):
self.store.append('p2', self.p)


class HDF(BaseIO):

params = ['table', 'fixed']
Expand Down
1 change: 1 addition & 0 deletions ci/deps/azure-27-compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
# universal
- pytest
- pytest-xdist
- pytest-mock
- pip:
- html5lib==1.0b2
- beautifulsoup4==4.2.1
Expand Down
1 change: 1 addition & 0 deletions ci/deps/azure-27-locale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dependencies:
# universal
- pytest
- pytest-xdist
- pytest-mock
- hypothesis>=3.58.0
- pip:
- html5lib==1.0b2
Expand Down
1 change: 1 addition & 0 deletions ci/deps/azure-36-locale_slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies:
# universal
- pytest
- pytest-xdist
- pytest-mock
- moto
- pip:
- hypothesis>=3.58.0
1 change: 1 addition & 0 deletions ci/deps/azure-37-locale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies:
# universal
- pytest
- pytest-xdist
- pytest-mock
- pip:
- hypothesis>=3.58.0
- moto # latest moto in conda-forge fails with 3.7, move to conda dependencies when this is fixed
1 change: 1 addition & 0 deletions ci/deps/azure-37-numpydev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
# universal
- pytest
- pytest-xdist
- pytest-mock
- hypothesis>=3.58.0
- pip:
- "git+git://github.com/dateutil/dateutil.git"
Expand Down
1 change: 1 addition & 0 deletions ci/deps/azure-macos-35.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies:
# universal
- pytest
- pytest-xdist
- pytest-mock
- pip:
- python-dateutil==2.5.3
- hypothesis>=3.58.0
1 change: 1 addition & 0 deletions ci/deps/azure-windows-27.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ dependencies:
- cython>=0.28.2
- pytest
- pytest-xdist
- pytest-mock
- moto
- hypothesis>=3.58.0
1 change: 1 addition & 0 deletions ci/deps/azure-windows-36.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ dependencies:
- cython>=0.28.2
- pytest
- pytest-xdist
- pytest-mock
- hypothesis>=3.58.0
1 change: 1 addition & 0 deletions ci/deps/travis-27.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dependencies:
# universal
- pytest
- pytest-xdist
- pytest-mock
- moto==1.3.4
- hypothesis>=3.58.0
- pip:
Expand Down
1 change: 1 addition & 0 deletions ci/deps/travis-36-locale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies:
# universal
- pytest
- pytest-xdist
- pytest-mock
- moto
- pip:
- hypothesis>=3.58.0
1 change: 1 addition & 0 deletions ci/deps/travis-36-slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ dependencies:
# universal
- pytest
- pytest-xdist
- pytest-mock
- moto
- hypothesis>=3.58.0
1 change: 1 addition & 0 deletions ci/deps/travis-36.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies:
- pytest
- pytest-xdist
- pytest-cov
- pytest-mock
- hypothesis>=3.58.0
- pip:
- brotlipy
Expand Down
1 change: 1 addition & 0 deletions ci/deps/travis-37.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
- pytz
- pytest
- pytest-xdist
- pytest-mock
- hypothesis>=3.58.0
- s3fs
- pip:
Expand Down
Binary file modified doc/cheatsheet/Pandas_Cheat_Sheet.pdf
Binary file not shown.
Binary file modified doc/cheatsheet/Pandas_Cheat_Sheet.pptx
Binary file not shown.
Binary file modified doc/cheatsheet/Pandas_Cheat_Sheet_JA.pdf
Binary file not shown.
Binary file modified doc/cheatsheet/Pandas_Cheat_Sheet_JA.pptx
Binary file not shown.
2 changes: 2 additions & 0 deletions doc/source/reference/arrays.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ Methods
Timestamp.timetuple
Timestamp.timetz
Timestamp.to_datetime64
Timestamp.to_numpy
Timestamp.to_julian_date
Timestamp.to_period
Timestamp.to_pydatetime
Expand Down Expand Up @@ -191,6 +192,7 @@ Methods
Timedelta.round
Timedelta.to_pytimedelta
Timedelta.to_timedelta64
Timedelta.to_numpy
Timedelta.total_seconds

A collection of timedeltas may be stored in a :class:`TimedeltaArray`.
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user_guide/groupby.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ arbitrary function, for example:
df.groupby(['Store', 'Product']).pipe(mean)
where ``mean`` takes a GroupBy object and finds the mean of the Revenue and Quantity
columns repectively for each Store-Product combination. The ``mean`` function can
columns respectively for each Store-Product combination. The ``mean`` function can
be any function that takes in a GroupBy object; the ``.pipe`` will pass the GroupBy
object as a parameter into the function you specify.

Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.10.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ Updated PyTables Support
df1.get_dtype_counts()
- performance improvements on table writing
- support for arbitrarly indexed dimensions
- support for arbitrarily indexed dimensions
- ``SparseSeries`` now has a ``density`` property (:issue:`2384`)
- enable ``Series.str.strip/lstrip/rstrip`` methods to take an input argument
to strip arbitrary characters (:issue:`2411`)
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.16.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ groupby operations on the index will preserve the index nature as well
reindexing operations, will return a resulting index based on the type of the passed
indexer, meaning that passing a list will return a plain-old-``Index``; indexing with
a ``Categorical`` will return a ``CategoricalIndex``, indexed according to the categories
of the PASSED ``Categorical`` dtype. This allows one to arbitrarly index these even with
of the PASSED ``Categorical`` dtype. This allows one to arbitrarily index these even with
values NOT in the categories, similarly to how you can reindex ANY pandas index.

.. code-block:: ipython
Expand Down
6 changes: 4 additions & 2 deletions doc/source/whatsnew/v0.24.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Fixed Regressions
- Fixed regression in :meth:`DataFrame.apply` causing ``RecursionError`` when ``dict``-like classes were passed as argument. (:issue:`25196`)

- Fixed regression in :meth:`DataFrame.duplicated()`, where empty dataframe was not returning a boolean dtyped Series. (:issue:`25184`)
- Fixed regression in :meth:`Series.min` and :meth:`Series.max` where ``numeric_only=True`` was ignored when the ``Series`` contained ```Categorical`` data (:issue:`25299`)

.. _whatsnew_0242.enhancements:

Expand Down Expand Up @@ -53,6 +54,7 @@ Bug Fixes

**I/O**

- Better handling of terminal printing when the terminal dimensions are not known (:issue:`25080`);
- Bug in reading a HDF5 table-format ``DataFrame`` created in Python 2, in Python 3 (:issue:`24925`)
- Bug in reading a JSON with ``orient='table'`` generated by :meth:`DataFrame.to_json` with ``index=False`` (:issue:`25170`)
- Bug where float indexes could have misaligned values when printing (:issue:`25061`)
Expand All @@ -78,8 +80,8 @@ Bug Fixes

**Reshaping**

-
-
- Bug in :meth:`pandas.core.groupby.GroupBy.transform` where applying a function to a timezone aware column would return a timezone naive result (:issue:`24198`)
- Bug in :func:`DataFrame.join` when joining on a timezone aware :class:`DatetimeIndex` (:issue:`23931`)
-

**Visualization**
Expand Down
6 changes: 3 additions & 3 deletions doc/source/whatsnew/v0.25.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Other Enhancements
^^^^^^^^^^^^^^^^^^

- :meth:`Timestamp.replace` now supports the ``fold`` argument to disambiguate DST transition times (:issue:`25017`)
-
- :meth:`DataFrame.at_time` and :meth:`Series.at_time` now support :meth:`datetime.time` objects with timezones (:issue:`24043`)
-

.. _whatsnew_0250.api_breaking:
Expand All @@ -34,6 +34,7 @@ Other API Changes
^^^^^^^^^^^^^^^^^

- :class:`DatetimeTZDtype` will now standardize pytz timezones to a common timezone instance (:issue:`24713`)
- ``Timestamp`` and ``Timedelta`` scalars now implement the :meth:`to_numpy` method as aliases to :meth:`Timestamp.to_datetime64` and :meth:`Timedelta.to_timedelta64`, respectively. (:issue:`24653`)
-
-

Expand Down Expand Up @@ -172,7 +173,7 @@ Plotting
Groupby/Resample/Rolling
^^^^^^^^^^^^^^^^^^^^^^^^

-
- Bug in :meth:`pandas.core.resample.Resampler.agg` with a timezone aware index where ``OverflowError`` would raise when passing a list of functions (:issue:`22660`)
-
-

Expand All @@ -183,7 +184,6 @@ Reshaping
- Bug in :func:`pandas.merge` adds a string of ``None`` if ``None`` is assigned in suffixes instead of remain the column name as-is (:issue:`24782`).
- Bug in :func:`merge` when merging by index name would sometimes result in an incorrectly numbered index (:issue:`24212`)
- :func:`to_records` now accepts dtypes to its `column_dtypes` parameter (:issue:`24895`)
-


Sparse
Expand Down
Loading

0 comments on commit 1262632

Please sign in to comment.