title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
BUG: Coerce to numeric despite uint64 conflict
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 595fab9e18ea4..bf73c675697f4 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -828,6 +828,7 @@ Conversion - Bug in ``Timestamp.replace`` when replacing ``tzinfo`` around DST changes (:issue:`15683`...
Previously, `to_numeric` was not coercing elements to numeric if the conversion was going to be lossy (e.g. `uint64` combined with `nan`), even when `errors='coerce'`. Now the `errors` parameter takes precedence. Closes #17007. Closes #17125.
https://api.github.com/repos/pandas-dev/pandas/pulls/17823
2017-10-09T03:09:39Z
2017-10-09T22:57:36Z
2017-10-09T22:57:36Z
2017-10-10T03:20:12Z
TST: Add the default separator test for PythonParser
diff --git a/doc/source/io.rst b/doc/source/io.rst index e6b51b7e2f45c..a7f8d9da15328 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -84,7 +84,8 @@ filepath_or_buffer : various sep : str, defaults to ``','`` for :func:`read_csv`, ``\t`` for :func:`read_table` Delimiter to use. If sep is ``None``, the C e...
- [x] closes #17333 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17822
2017-10-09T02:41:49Z
2017-10-11T15:21:27Z
2017-10-11T15:21:27Z
2017-10-11T15:21:27Z
BUG: Fix default encoding for CSVFormatter.save
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 8b2c4d16f4e1a..ad184d0a6a792 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -334,6 +334,7 @@ I/O - Bug in :func:`read_csv` in which memory management issues in exception handling, under certain c...
- [x] closes #17097 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17821
2017-10-09T01:43:54Z
2017-10-11T15:19:57Z
2017-10-11T15:19:56Z
2017-10-11T15:19:57Z
DEPR: Deprecate tupleize_cols in read_csv
diff --git a/doc/source/io.rst b/doc/source/io.rst index 0aa4ea72e3b13..08d00138b7cd8 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -343,6 +343,10 @@ dialect : str or :class:`python:csv.Dialect` instance, default ``None`` override values, a ParserWarning will be issued. See :class:`python:csv.Dialect` ...
xref <a href="https://github.com/pandas-dev/pandas/pull/17060#issuecomment-317692667">#17060 (comment)</a>
https://api.github.com/repos/pandas-dev/pandas/pulls/17820
2017-10-08T23:40:01Z
2017-10-09T19:17:19Z
2017-10-09T19:17:19Z
2017-10-09T19:27:16Z
ERR: Raise ValueError when week is passed in to_datetime format witho…
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 1e9c402dac73e..033e428bcbbb0 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -701,6 +701,7 @@ Other API Changes - :func:`Series.argmin` and :func:`Series.argmax` will now raise a ``TypeError`` whe...
…ut day or year (#16774) - [x] closes #16774 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17819
2017-10-08T20:28:55Z
2017-10-14T18:53:05Z
2017-10-14T18:53:05Z
2017-10-14T19:48:55Z
Typo in error message
diff --git a/pandas/core/window.py b/pandas/core/window.py index 869296503225d..e3a091573aa2f 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -1138,8 +1138,8 @@ def _validate_freq(self): try: return to_offset(self.window) except (TypeError, ValueError): - rais...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17817
2017-10-08T07:08:05Z
2017-10-08T11:07:25Z
2017-10-08T11:07:25Z
2017-10-08T11:07:31Z
CLN: Use pandas.core.common for None checks
diff --git a/pandas/core/common.py b/pandas/core/common.py index e0dc420bc53f8..7b96700313012 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -223,17 +223,36 @@ def _mut_exclusive(**kwargs): def _not_none(*args): + """Returns a generator consisting of the arguments that are not None""" re...
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Used `None` checking functions from `pandas.core.common` where applicable. Common patterns changed: - `all(v is not None for v in values)` -> `_all_not_none(*values)` - Used `*` for argument unpacking in many cases, not sure if that's frown...
https://api.github.com/repos/pandas-dev/pandas/pulls/17816
2017-10-08T02:20:49Z
2017-10-13T11:32:11Z
2017-10-13T11:32:11Z
2017-10-19T23:16:11Z
ENH: Add Index.to_frame method
diff --git a/doc/source/api.rst b/doc/source/api.rst index d98a18e6f7e36..646a28686bb06 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1376,6 +1376,7 @@ Conversion Index.tolist Index.to_datetime Index.to_series + Index.to_frame Sorting ~~~~~~~ @@ -1591,6 +1592,7 @@ Conversion Datetim...
Title is self-explanatory. Closes #15230.
https://api.github.com/repos/pandas-dev/pandas/pulls/17815
2017-10-08T01:58:02Z
2017-10-09T12:17:05Z
2017-10-09T12:17:05Z
2017-10-09T16:34:09Z
DEPR: Deprecate from_csv in favor of read_csv
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index ed3be71852299..2eefc7ec1b636 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -715,6 +715,7 @@ Other API Changes Deprecations ~~~~~~~~~~~~ +- :meth:`DataFrame.from_csv` and :meth:`Series.from_cs...
Title is self-explanatory. Closes #4191.
https://api.github.com/repos/pandas-dev/pandas/pulls/17812
2017-10-07T09:02:07Z
2017-10-10T04:49:22Z
2017-10-10T04:49:21Z
2017-10-10T04:52:58Z
Fix a small typo
diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py index d280c4f3f73d7..4eb35daba2282 100644 --- a/pandas/core/reshape/reshape.py +++ b/pandas/core/reshape/reshape.py @@ -1080,7 +1080,7 @@ def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False, prefix : string, list of strings,...
- [x] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This PR fixes a small typo : Alternativly -> Alternatively. Thanks for the awesome project!
https://api.github.com/repos/pandas-dev/pandas/pulls/17811
2017-10-07T07:28:34Z
2017-10-07T11:02:58Z
2017-10-07T11:02:58Z
2017-10-08T02:06:24Z
Implement npy_dtime.pyx
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 5269cddf8d2fd..7a335b19eb87b 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -47,7 +47,6 @@ from datetime cimport ( npy_datetime, is_leapyear, dayofweek, - check_dts_bounds, PANDAS_FR_ns, PyDateTime_Check,...
`npy_dtime` is a `util`-like module for `tslibs`. Actually, a better analogy would be src/datetime.pxd (which it ultimately is intended to replace). Upcoming steps require `_check_dts_bounds` and `OutOfBoundsDatetime` be in a module upstream from `tslib`. The exception `OutOfBoundsDatetime` cannot be defined in a ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17805
2017-10-06T16:50:38Z
2017-10-29T21:36:55Z
2017-10-29T21:36:55Z
2017-12-08T19:39:07Z
BLD: fix setup.py for xref #17798
diff --git a/setup.py b/setup.py index 23457c6f4edc1..365d387dc54d6 100755 --- a/setup.py +++ b/setup.py @@ -720,7 +720,7 @@ def pxd(name): 'sas/data/*.sas7bdat', 'data/*.html', 'data/html_encoding...
xref #17798
https://api.github.com/repos/pandas-dev/pandas/pulls/17804
2017-10-06T14:17:14Z
2017-10-06T15:22:34Z
2017-10-06T15:22:34Z
2017-10-06T15:46:42Z
DOC: sub-section on boolean Index array changes
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 94e4700a59f24..e6a8b070f9c44 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -356,6 +356,61 @@ Selection with all keys found is unchanged. s.loc[[1, 2]] +.. _whatsnew_0210.api_breaking.loc_...
closes #17740
https://api.github.com/repos/pandas-dev/pandas/pulls/17803
2017-10-06T10:05:54Z
2017-10-06T15:37:25Z
2017-10-06T15:37:25Z
2017-10-06T15:39:01Z
DOC: some typos in whatsnew
diff --git a/doc/source/remote_data.rst b/doc/source/remote_data.rst index 9af66058a7aaa..aba70ccbcc9fb 100644 --- a/doc/source/remote_data.rst +++ b/doc/source/remote_data.rst @@ -13,18 +13,18 @@ DataReader The sub-package ``pandas.io.data`` was deprecated in v.0.17 and removed in `v.0.19 <http://pandas-docs.githu...
https://api.github.com/repos/pandas-dev/pandas/pulls/17802
2017-10-06T07:11:25Z
2017-10-06T08:03:30Z
2017-10-06T08:03:30Z
2017-10-06T08:06:57Z
Closes #17788: Fix resample's deprecated `how` parameter documentation
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index d2d5ee344591a..36ffe8806f373 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -1456,8 +1456,9 @@ The ``resample`` function is very flexible and allows you to specify many different parameters to control the frequency conv...
Doc only pull request that closes #17788.
https://api.github.com/repos/pandas-dev/pandas/pulls/17801
2017-10-05T23:48:03Z
2017-10-06T01:47:13Z
2017-10-06T01:47:13Z
2017-10-06T11:05:42Z
API: Added axis argument to rename, reindex
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index 0990d2bd15ee6..be9d1a5d83b85 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -1217,6 +1217,15 @@ following can be done: This means that the reindexed Series's index is the same Python object as the DataFrame's index. +.. versionadded...
xref: https://github.com/pandas-dev/pandas/issues/12392 I want to test this a bit further and clean up the code for a bit, but figured I'd put this up as I'm going offline for a few hours. Any comments on the general approach of adding `*args`, and then manually validating that the parameters are consistent?
https://api.github.com/repos/pandas-dev/pandas/pulls/17800
2017-10-05T22:15:24Z
2017-10-10T15:17:58Z
2017-10-10T15:17:58Z
2017-10-24T13:26:04Z
DOC: Add examples to MultiIndex.slice_locs + note that index.slice requires
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index c4e1398d0178f..29aace2a94c5a 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3572,6 +3572,19 @@ def slice_locs(self, start=None, end=None, step=None, kind=None): ------- start, end : int + ...
Clarify ``.slice_locs`` and set up examples for how to use the method. Also, for ``pd.Index`` clarify that using ``.slice_locs`` requires that the index is monotonic.
https://api.github.com/repos/pandas-dev/pandas/pulls/17799
2017-10-05T21:52:29Z
2017-10-06T11:46:32Z
2017-10-06T11:46:32Z
2017-10-09T21:00:02Z
ENH: Add tranparent compression to json reading/writing
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 7fbf2533428dc..8d6d7947b6892 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -195,7 +195,7 @@ Other Enhancements - :func:`read_json` now accepts a ``chunksize`` parameter that can be used when ``l...
This works in the same way as the argument to ``read_csv``and ``to_csv``. I've added tests confirming that it works with both file paths, and S3 URLs. (obviously there will be edge cases I've missed - please let me know if there are important ones that I should add coverage for). The implementation is mostly plum...
https://api.github.com/repos/pandas-dev/pandas/pulls/17798
2017-10-05T20:07:05Z
2017-10-06T14:08:23Z
2017-10-06T14:08:22Z
2017-10-06T14:15:34Z
BUG/API: Raise when extension class passed to astype
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 7fbf2533428dc..5f0af8859a133 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -768,6 +768,7 @@ Conversion - Bug in :attr:`Timestamp.weekday_name` returning a UTC-based weekday name when localized t...
Closes https://github.com/pandas-dev/pandas/issues/17780
https://api.github.com/repos/pandas-dev/pandas/pulls/17796
2017-10-05T19:41:58Z
2017-10-05T23:11:16Z
2017-10-05T23:11:15Z
2017-10-27T12:04:28Z
DOC: Column indexes should use the same metadata as columns
diff --git a/doc/source/developer.rst b/doc/source/developer.rst index a695366d9ada3..9c214020ab43d 100644 --- a/doc/source/developer.rst +++ b/doc/source/developer.rst @@ -45,20 +45,19 @@ So that a ``pandas.DataFrame`` can be faithfully reconstructed, we store a .. code-block:: text {'index_columns': ['__index_...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/17795
2017-10-05T16:53:09Z
2017-10-05T17:28:22Z
2017-10-05T17:28:22Z
2017-10-05T17:28:25Z
have _NaT subclass datetime directly
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 53cde4f9b6b65..5269cddf8d2fd 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -30,7 +30,7 @@ from util cimport (is_integer_object, is_float_object, is_datetime64_object, is_timedelta64_object, INT64_MAX) cimport u...
The main change made by this PR is to have `_NaT` subclass `datetime` directly instead of subclassing `_Timestamp`. Everything else is just to preserve the current behavior. Why you ask? Because once this is OKed, the entire `NaT` machinery can be cut/paste into a stand-alone module whose only intra-pandas depende...
https://api.github.com/repos/pandas-dev/pandas/pulls/17793
2017-10-05T05:28:39Z
2017-10-28T15:34:44Z
2017-10-28T15:34:44Z
2017-10-28T17:04:47Z
DOC: Clarifying use of categorical data in describe docstring (#16722)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 5dd770b2600a0..ed2a592a64efe 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6352,20 +6352,22 @@ def describe(self, percentiles=None, include=None, exclude=None): - A list-like of dtypes : Limits the results to the ...
- [ ] closes #16722
https://api.github.com/repos/pandas-dev/pandas/pulls/17789
2017-10-04T20:38:50Z
2017-10-05T10:27:06Z
2017-10-05T10:27:06Z
2017-10-05T22:08:23Z
API: Change str for CategoricalDtype to category
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 812bc2e031d78..1c9e876d77bf8 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -157,11 +157,10 @@ The values have been correctly interpreted as integers. The ``.dtype`` property of a ``Categorical...
Better compatibility with older versions Closes #17782
https://api.github.com/repos/pandas-dev/pandas/pulls/17783
2017-10-04T14:58:31Z
2017-10-05T18:35:56Z
2017-10-05T18:35:55Z
2017-10-06T11:42:05Z
Use argument dtype to inform coercion
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index c2cf6afc1a7b5..f3b11e52cdd7a 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -483,6 +483,39 @@ def infer_dtype_from_array(arr, pandas_dtype=False): return arr.dtype, arr +def maybe_infer_dtype_type(element): ...
Master: ```python >>> import dask.dataframe as dd >>> s = dd.core.Scalar({('s', 0): 10}, 's', 'i8') >>> pdf = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7], ... 'b': [7, 6, 5, 4, 3, 2, 1]}) >>> (pdf + s).dtypes a object b object dtype: object ``` Head: ``` >>> (pdf + s).dtypes ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17779
2017-10-04T13:03:33Z
2017-10-05T11:30:07Z
2017-10-05T11:30:07Z
2017-10-05T12:43:21Z
DEPR: Deprecate parse_cols in read_excel
diff --git a/doc/source/io.rst b/doc/source/io.rst index 8fe5685b33aff..0aa4ea72e3b13 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -2800,21 +2800,21 @@ Parsing Specific Columns It is often the case that users will insert columns to do temporary computations in Excel and you may not want to read in thos...
Will now use "usecols" just like in read_csv. closes #4988.
https://api.github.com/repos/pandas-dev/pandas/pulls/17774
2017-10-04T06:31:07Z
2017-10-04T23:56:21Z
2017-10-04T23:56:21Z
2017-10-05T03:37:43Z
ERR: Clarify exceptions for invalid datetimelike operations
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index c3232627fce74..d5b4525e8a1eb 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -621,7 +621,9 @@ def _convert_scalar_indexer(self, key, kind=None): ._convert_scalar_in...
closes #9631
https://api.github.com/repos/pandas-dev/pandas/pulls/17772
2017-10-03T23:45:01Z
2017-10-08T16:15:52Z
2017-10-08T16:15:52Z
2017-10-08T16:15:55Z
Move fields functions out of the way
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 096ebe9a5627b..9fd1f367d013d 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -90,6 +90,9 @@ from tslibs.timezones cimport ( get_timezone, get_utcoffset, maybe_get_tz, get_dst_info ) +from tslibs.fields import ( + ge...
Notes: - The only usage in `tslib` of `get_date_name_field` is for `Timestamp.weekday` and can be simplified with a more direct call. - Several of the functions from `tslibs.fields` imported into `tslib` are unused. Updating the external imports to use the new locations is for a follow-up. - There is some flake8 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17770
2017-10-03T22:13:45Z
2017-10-04T23:53:51Z
2017-10-04T23:53:51Z
2017-10-30T16:22:42Z
DOC: Add column name metadata to spec
diff --git a/doc/source/developer.rst b/doc/source/developer.rst index 78c12b7e23b37..a695366d9ada3 100644 --- a/doc/source/developer.rst +++ b/doc/source/developer.rst @@ -45,6 +45,8 @@ So that a ``pandas.DataFrame`` can be faithfully reconstructed, we store a .. code-block:: text {'index_columns': ['__index_le...
This adds an additional metadata field to the spec to allow faithful reproduction of names of column indexes. cc @wesm @martindurant @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/17769
2017-10-03T19:44:20Z
2017-10-04T23:55:18Z
2017-10-04T23:55:18Z
2017-10-05T16:47:04Z
Revert "CI: pin pytables to valid build (#17760)"
diff --git a/ci/requirements-3.6.run b/ci/requirements-3.6.run index 721d0c1ad8101..822144a80bc9a 100644 --- a/ci/requirements-3.6.run +++ b/ci/requirements-3.6.run @@ -7,7 +7,7 @@ xlsxwriter xlrd xlwt numexpr -pytables=3.4.2=np113py36_1 +pytables matplotlib lxml html5lib
This reverts commit 6d30d5f425ddfaf143b8bd878f81395852b50cd9. closes #17757
https://api.github.com/repos/pandas-dev/pandas/pulls/17768
2017-10-03T19:40:49Z
2017-10-05T18:35:20Z
2017-10-05T18:35:20Z
2017-10-05T18:37:13Z
BUG: Validate the justify parameter in to_html
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 0d4eaa90d7ab3..2470c04fb97e8 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -777,7 +777,8 @@ I/O - Bug in :func:`read_stata` where the index was not set (:issue:`16342`) - Bug in :func:`read_htm...
Closes #17527 cc @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/17766
2017-10-03T16:32:24Z
2017-10-03T20:42:53Z
2017-10-03T20:42:52Z
2017-10-04T01:52:33Z
Implement NaT properties/methods directly
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 745632cf3d719..0ae4548c14f43 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -1,5 +1,8 @@ # -*- coding: utf-8 -*- # cython: profile=False +# cython: linetrace=False +# distutils: define_macros=CYTHON_TRACE=0 +# distutils: define_ma...
Causes build errors, referenced in #17756 - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17765
2017-10-03T16:20:21Z
2017-10-05T00:13:32Z
2017-10-05T00:13:32Z
2017-10-30T16:25:12Z
COMPAT: Suppress .take() warning for numpy < 1.12
diff --git a/pandas/tests/sparse/test_series.py b/pandas/tests/sparse/test_series.py index 8c0ed322028e8..13dab68b2e5b4 100644 --- a/pandas/tests/sparse/test_series.py +++ b/pandas/tests/sparse/test_series.py @@ -9,7 +9,8 @@ import numpy as np import pandas as pd -from pandas import Series, DataFrame, bdate_range, ...
Follow-up to #17352.
https://api.github.com/repos/pandas-dev/pandas/pulls/17764
2017-10-03T15:52:47Z
2017-10-03T19:49:08Z
2017-10-03T19:49:08Z
2017-10-04T01:52:22Z
TST: remove warnings, xref #15747
diff --git a/pandas/tests/series/test_indexing.py b/pandas/tests/series/test_indexing.py index 86211612a5955..09ba0e197438d 100644 --- a/pandas/tests/series/test_indexing.py +++ b/pandas/tests/series/test_indexing.py @@ -854,11 +854,15 @@ def test_basic_getitem_with_labels(self): s = Series(np.random.randn(10)...
https://api.github.com/repos/pandas-dev/pandas/pulls/17761
2017-10-03T11:38:19Z
2017-10-03T13:01:06Z
2017-10-03T13:01:06Z
2017-10-03T13:01:06Z
CI: pin pytables to valid build
diff --git a/ci/requirements-3.6.run b/ci/requirements-3.6.run index 822144a80bc9a..721d0c1ad8101 100644 --- a/ci/requirements-3.6.run +++ b/ci/requirements-3.6.run @@ -7,7 +7,7 @@ xlsxwriter xlrd xlwt numexpr -pytables +pytables=3.4.2=np113py36_1 matplotlib lxml html5lib
xref #17757
https://api.github.com/repos/pandas-dev/pandas/pulls/17760
2017-10-03T10:21:01Z
2017-10-03T10:48:58Z
2017-10-03T10:48:58Z
2017-10-03T10:48:58Z
TST: remove bunch of warnings for .astype(.....), xref #17636
diff --git a/pandas/tests/indexing/test_categorical.py b/pandas/tests/indexing/test_categorical.py index 6874fedaa705f..ab6e76c221102 100644 --- a/pandas/tests/indexing/test_categorical.py +++ b/pandas/tests/indexing/test_categorical.py @@ -8,6 +8,7 @@ Categorical, CategoricalIndex) from pandas.ut...
https://api.github.com/repos/pandas-dev/pandas/pulls/17759
2017-10-03T09:59:08Z
2017-10-03T10:54:31Z
2017-10-03T10:54:31Z
2017-10-03T10:54:31Z
BUG: Implement PeriodEngine to fix PeriodIndex truncate bug
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index c41da4d67afe5..5c64b0a55c09b 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -100,7 +100,7 @@ Conversion Indexing ^^^^^^^^ -- +- Bug in :func:`PeriodIndex.truncate` which raises ``TypeError`` w...
- [x] closes #17717 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17755
2017-10-02T23:35:04Z
2017-11-04T17:07:36Z
2017-11-04T17:07:36Z
2017-11-06T13:57:51Z
API: change IntervalIndex.contains to work elementwise
diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst index 77a87cafb9258..bf9520c54040d 100644 --- a/doc/source/reference/arrays.rst +++ b/doc/source/reference/arrays.rst @@ -335,6 +335,7 @@ A collection of intervals may be stored in an :class:`arrays.IntervalArray`. arrays.IntervalArra...
xref https://github.com/pandas-dev/pandas/issues/16316 This is more a proof-of-concept, to see if there is agreement on the behaviour change (I suppose the implementation itself can be easily vectorized based on the left/right attributes). cc @zfrenchee @shoyer @buyology @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/17753
2017-10-02T21:06:26Z
2019-07-01T23:56:50Z
2019-07-01T23:56:50Z
2019-07-02T12:41:30Z
CI: Unpin Miniconda for CI
diff --git a/appveyor.yml b/appveyor.yml index f1259f271ee39..a1f8886f6d068 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -59,7 +59,7 @@ install: # install our build environment - cmd: conda config --set show_channel_urls true --set always_yes true --set changeps1 false - # - cmd: conda update -q conda + - ...
Closes https://github.com/pandas-dev/pandas/issues/17696 xref https://github.com/pandas-dev/pandas/pull/17700
https://api.github.com/repos/pandas-dev/pandas/pulls/17752
2017-10-02T20:46:33Z
2017-10-05T18:37:16Z
2017-10-05T18:37:16Z
2017-10-27T12:04:46Z
DOC: Changing forking instructions to https (#16419)
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index e172d0d2a71a2..d8d57a8bfffdd 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -101,7 +101,7 @@ You will need your own fork to work on the code. Go to the `pandas project page <https://github.com/pandas-dev/pandas>...
- [ ] closes #16419
https://api.github.com/repos/pandas-dev/pandas/pulls/17751
2017-10-02T20:40:12Z
2017-10-03T01:21:41Z
2017-10-03T01:21:41Z
2017-10-03T19:06:49Z
Explicitly define cmp_pandas_datetimestruct
diff --git a/pandas/_libs/src/datetime/np_datetime.c b/pandas/_libs/src/datetime/np_datetime.c index ffb901981f939..f8254ed9d8418 100644 --- a/pandas/_libs/src/datetime/np_datetime.c +++ b/pandas/_libs/src/datetime/np_datetime.c @@ -269,8 +269,8 @@ static void set_datetimestruct_days(npy_int64 days, /* * Compares tw...
Fixes build warning ``` pandas/_libs/tslib.c:78967:17: warning: implicit declaration of function 'cmp_pandas_datetimestruct' is invalid in C99 [-Wimplicit-function-declaration] ```
https://api.github.com/repos/pandas-dev/pandas/pulls/17750
2017-10-02T19:44:17Z
2017-10-03T19:57:06Z
2017-10-03T19:57:06Z
2017-10-30T16:25:26Z
Adding lxml to requirements_dev.txt
diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py index 6fc080c8d9090..effa5ef4184be 100644 --- a/pandas/tests/io/test_html.py +++ b/pandas/tests/io/test_html.py @@ -953,6 +953,7 @@ def test_importcheck_thread_safety(): # see gh-16928 # force import check by reinitalising global vars ...
- [X ] closes #17747 - [X ] tests added / passed - [X ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/17748
2017-10-02T18:28:05Z
2017-11-01T01:23:10Z
2017-11-01T01:23:10Z
2017-11-01T01:23:13Z
Move frequencies functions to cython
diff --git a/pandas/_libs/tslibs/frequencies.pxd b/pandas/_libs/tslibs/frequencies.pxd index 974eb4ab45df0..98d600c540ace 100644 --- a/pandas/_libs/tslibs/frequencies.pxd +++ b/pandas/_libs/tslibs/frequencies.pxd @@ -1,4 +1,10 @@ # -*- coding: utf-8 -*- # cython: profile=False +cpdef object get_rule_month(object so...
Move some more functions from `tseries.frequencies` up to `tslibs.frequencies`, update imports in `_libs.period` to cimports - [x] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17746
2017-10-02T17:26:27Z
2018-01-05T00:35:20Z
2018-01-05T00:35:20Z
2018-01-23T04:40:38Z
Remove unused imports
diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx index 9aeb700dd5923..b6b81055f89b2 100644 --- a/pandas/_libs/hashtable.pyx +++ b/pandas/_libs/hashtable.pyx @@ -50,12 +50,6 @@ cnp.import_ufunc() cdef int64_t iNaT = util.get_nat() _SIZE_HINT_LIMIT = (1 << 20) + 7 -cdef extern from "datetime.h": -...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17745
2017-10-02T16:56:29Z
2017-10-03T11:25:46Z
2017-10-03T11:25:46Z
2017-10-30T16:25:22Z
DEPR: deprecate raise_on_error in .where/.mask in favor of errors=
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 66b44d4d391e1..e86eae0a5e593 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -666,8 +666,9 @@ Deprecations - ``pd.TimeGrouper`` is deprecated in favor of :class:`pandas.Grouper` (:issue:`16747`) ...
closes #14968
https://api.github.com/repos/pandas-dev/pandas/pulls/17744
2017-10-02T16:24:11Z
2017-10-05T18:36:29Z
2017-10-05T18:36:29Z
2017-10-05T18:38:05Z
DEPR: passing categories or ordered kwargs to Series.astype is deprecated
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index d69a5c22acc03..28d4be7fd1850 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -572,6 +572,7 @@ Deprecations - :func:`DataFrame.as_blocks` is deprecated, as this is exposing the internal implementat...
closes #17636
https://api.github.com/repos/pandas-dev/pandas/pulls/17742
2017-10-02T13:29:47Z
2017-10-03T01:14:19Z
2017-10-03T01:14:19Z
2017-10-03T08:57:42Z
allow neg index on str_get
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index d69a5c22acc03..a5d5dc28e177d 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -668,6 +668,7 @@ Indexing - Bug in ``IntervalIndex`` where performing a scalar lookup fails for included right endpoint...
- [x] closes #17704 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17741
2017-10-02T13:28:39Z
2017-10-02T19:21:42Z
2017-10-02T19:21:42Z
2017-10-02T20:00:35Z
DEPR: deprecate .get_value and .set_value for Series, DataFrame, Panel & Sparse
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index d7789bfbfd04c..66b44d4d391e1 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -666,7 +666,8 @@ Deprecations - ``pd.TimeGrouper`` is deprecated in favor of :class:`pandas.Grouper` (:issue:`16747`) ...
closes #15269
https://api.github.com/repos/pandas-dev/pandas/pulls/17739
2017-10-02T12:30:58Z
2017-10-05T12:18:20Z
2017-10-05T12:18:20Z
2017-10-05T12:20:01Z
BUG: Regression in .loc accepting a boolean Index as an indexer
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index c8a0a6bff5cc7..23ff7cb9f34d4 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -667,6 +667,7 @@ Indexing - Bug in ``IntervalIndex`` where performing a scalar lookup fails for included right endpoint...
closes #17131
https://api.github.com/repos/pandas-dev/pandas/pulls/17738
2017-10-02T10:32:10Z
2017-10-02T11:59:16Z
2017-10-02T11:59:16Z
2017-10-02T12:50:33Z
Fixed the memory usage explanation of categorical in gotchas from O(n…
diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst index cadbc895354b7..c5bbc3c004675 100644 --- a/doc/source/categorical.rst +++ b/doc/source/categorical.rst @@ -979,7 +979,7 @@ Memory Usage .. _categorical.memory: -The memory usage of a ``Categorical`` is proportional to the number of categorie...
…m) to O(n+m) - [ ] closes #17705
https://api.github.com/repos/pandas-dev/pandas/pulls/17736
2017-10-02T06:37:32Z
2017-10-02T10:18:22Z
2017-10-02T10:18:22Z
2017-10-02T10:18:24Z
CLN: replace %s syntax with .format in pandas.core: categorical, common, config, config_init
diff --git a/pandas/core/categorical.py b/pandas/core/categorical.py index 61e28dde2e34c..5619f15ac85d9 100644 --- a/pandas/core/categorical.py +++ b/pandas/core/categorical.py @@ -263,7 +263,8 @@ def __init__(self, values, categories=None, ordered=None, dtype=None, if dtype == 'category': ...
Progress towards #16130 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Replaced `%s` syntax with `.format` in pandas.core: `categorical.py`, `common.py`, `config.py`, `config_init.py`. Additionally, made some of the existing positional `.format` code more explicit.
https://api.github.com/repos/pandas-dev/pandas/pulls/17735
2017-10-02T06:05:07Z
2017-10-02T10:19:54Z
2017-10-02T10:19:54Z
2017-10-02T13:39:29Z
TST: add backward compat for offset testing for pickles
diff --git a/pandas/tests/io/data/legacy_pickle/0.17.0/0.17.0_x86_64_darwin_3.5.3.pickle b/pandas/tests/io/data/legacy_pickle/0.17.0/0.17.0_x86_64_darwin_3.5.3.pickle new file mode 100644 index 0000000000000..537864af7028b Binary files /dev/null and b/pandas/tests/io/data/legacy_pickle/0.17.0/0.17.0_x86_64_darwin_3.5.3...
closes #17721
https://api.github.com/repos/pandas-dev/pandas/pulls/17733
2017-10-01T20:43:33Z
2017-10-01T22:58:02Z
2017-10-01T22:58:01Z
2017-10-01T22:58:57Z
DOC: Fixed typo in documentation for 'pandas.DataFrame.replace'
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 2fb0e348c01c0..6fd4f3eeb6b90 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4260,7 +4260,7 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None, dicts of such objects are also allowed. i...
* Replaced 'form' to 'from' for the 'inplace' parameter. - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17731
2017-10-01T11:33:48Z
2017-10-01T12:25:40Z
2017-10-01T12:25:40Z
2017-10-01T12:25:46Z
BUG: GH17525 Function _get_standard_colors resets global random seed
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index e0e0c18052550..da3cf965cb81a 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -614,6 +614,7 @@ Plotting - Line plots no longer assume monotonic x data when calculating xlims, they show the entire l...
- [X] closes #17525 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17730
2017-09-30T21:33:48Z
2017-10-03T08:07:09Z
2017-10-03T08:07:09Z
2017-10-03T11:19:55Z
REF/INT: concat blocks of same type with preserving block type
diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index f6f956832eebe..93993fd0a0cab 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -63,11 +63,12 @@ def get_dtype_kinds(l): return typs -def _get_series_result_type(result): +def _get_series_result_type(res...
Related to https://github.com/pandas-dev/pandas/issues/17283 Goal is to get `pd.concat([list of series]` working with Series with external block type. Currently the values are always converted to arrays, concatenated, and converted back to block with block type inference. This is a proof-of-concept to check wheth...
https://api.github.com/repos/pandas-dev/pandas/pulls/17728
2017-09-30T15:26:19Z
2017-10-12T21:02:14Z
2017-10-12T21:02:14Z
2018-01-11T17:29:50Z
Update clipboard Qt-bindings for flexiblity and Python3 compatibility
diff --git a/ci/requirements-3.6_BUILD_TEST.sh b/ci/requirements-3.6_BUILD_TEST.sh index 84dd27c50d587..2a3adeff836ee 100644 --- a/ci/requirements-3.6_BUILD_TEST.sh +++ b/ci/requirements-3.6_BUILD_TEST.sh @@ -4,4 +4,4 @@ source activate pandas echo "install 36 BUILD_TEST" -conda install -n pandas -c conda-forge py...
This should prevent any conflicts with other qt-bindings packages when embedding pandas in a Qt-based gui and should also provide compatibility with Python3 since PyQt4 may not be available for the latest releases. - [ ] closes #17722
https://api.github.com/repos/pandas-dev/pandas/pulls/17723
2017-09-29T18:40:37Z
2017-11-24T22:17:03Z
2017-11-24T22:17:03Z
2017-11-25T00:42:02Z
Separate out _convert_datetime_to_tsobject
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 4c34d0fcb1e5f..60b7c3cfcb6c7 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -728,7 +728,7 @@ class Timestamp(_Timestamp): # reconstruct & check bounds ts_input = datetime(dts.year, dts.month, dts.day, dts.hour, dts...
A bunch of calls to `convert_to_tsobject` are made in cases where we already know that the input is a `datetime` object. This PR separates out the `datetime` case into a new function `_convert_datetime_to_tsobject`. Second, to make the dependency between `_TSObject` and `Timestamp` one-way, this removes the three r...
https://api.github.com/repos/pandas-dev/pandas/pulls/17715
2017-09-29T02:49:22Z
2017-10-02T12:43:40Z
2017-10-02T12:43:40Z
2017-10-30T16:25:23Z
Doc: Further improvements for IntervalIndex and Interval
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index 799d04859cc2a..cfdb53ec7e4b1 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -833,12 +833,21 @@ Of course if you need integer based selection, then use ``iloc`` IntervalIndex ~~~~~~~~~~~~~ +:class:`IntervalIndex` together wit...
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This follows #17706. Further changes are: * Taken text from the whatsnew for v0.20 and use it in advanced.rst to give more explations to ``IntervalIndex`` and ``Interval``. * in interval.pyx, the doc string "Attributes" didn't parse properly, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17714
2017-09-29T01:41:22Z
2017-09-29T15:00:09Z
2017-09-29T15:00:09Z
2017-09-29T16:08:11Z
update imports of DateParseError, remove unused imports from tslib
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 4c34d0fcb1e5f..b0b70bb810204 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -1,12 +1,9 @@ # -*- coding: utf-8 -*- # cython: profile=False -import warnings - cimport numpy as np from numpy cimport (int8_t, int32_t, int64_t, imp...
Start checking off the todo list in #17652 - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17713
2017-09-29T01:30:58Z
2017-09-29T10:04:42Z
2017-09-29T10:04:42Z
2017-10-30T16:23:15Z
Add missing file to _pyxfiles, delete commented-out
diff --git a/setup.py b/setup.py index d25ae4a5fb45c..793aa089e708f 100755 --- a/setup.py +++ b/setup.py @@ -341,6 +341,7 @@ class CheckSDist(sdist_class): 'pandas/_libs/window.pyx', 'pandas/_libs/sparse.pyx', 'pandas/_libs/parsers.pyx', + 'pandas/_l...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17712
2017-09-28T23:54:26Z
2017-09-29T10:06:00Z
2017-09-29T10:06:00Z
2017-10-30T16:23:16Z
remove unused time conversion funcs
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 884117799ec5b..c96251a0293d6 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -13,29 +13,19 @@ cimport util import numpy as np -cimport tslib +from tslib cimport _to_i8 from hashtable cimport HashTable -from tslibs.timezones...
Takes the place of #17708, removing funcs instead of moving them. Had to cpdef `pydt_to_i8` because the func it is replacing in `_libs.index` was cdef'd. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17711
2017-09-28T21:41:04Z
2017-10-01T20:47:44Z
2017-10-01T20:47:44Z
2017-10-30T16:23:08Z
Delay import
diff --git a/.travis.yml b/.travis.yml index 034e2a32bb75c..fe1a2950dbf08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -121,6 +121,8 @@ script: - ci/script_single.sh - ci/script_multi.sh - ci/lint.sh + - echo "checking imports" + - source activate pandas && python ci/check_imports.py - echo "script done"...
Closes https://github.com/pandas-dev/pandas/issues/16764 Improves performance by delaying the import of matplotlib, s3fs, pytest, and openpyxl. Also removes our old MPL style sheet. The option was deprecated and removed, but the stylesheet hung around. Master: ``` In [1]: %time import numpy CPU times: use...
https://api.github.com/repos/pandas-dev/pandas/pulls/17710
2017-09-28T20:16:25Z
2017-10-02T13:32:53Z
2017-10-02T13:32:53Z
2017-10-25T22:28:40Z
DOC: Improved doc string for IntervalIndex + related changes
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index bfbda9696ff2b..306597031817d 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -58,6 +58,10 @@ cdef class Interval(IntervalMixin): closed : {'left', 'right', 'both', 'neither'} Whether the interval is closed o...
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This PR has Improvements for the doc string for ``IntervalIndex`` + related changes
https://api.github.com/repos/pandas-dev/pandas/pulls/17706
2017-09-28T13:27:14Z
2017-09-28T19:26:39Z
2017-09-28T19:26:39Z
2017-10-09T21:00:10Z
DEPR: deprecate pd.TimeGrouper
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index ae55b4a0aa469..dae93feb48b02 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -492,6 +492,7 @@ Deprecations - ``pd.options.html.border`` has been deprecated in favor of ``pd.options.display.html.bo...
closes #16747
https://api.github.com/repos/pandas-dev/pandas/pulls/17703
2017-09-28T10:26:16Z
2017-09-28T11:50:33Z
2017-09-28T11:50:33Z
2017-09-28T11:51:34Z
CI: Pin miniconda version
diff --git a/appveyor.yml b/appveyor.yml index a1f8886f6d068..f1259f271ee39 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -59,7 +59,7 @@ install: # install our build environment - cmd: conda config --set show_channel_urls true --set always_yes true --set changeps1 false - - cmd: conda update -q conda + # - ...
xref #17696
https://api.github.com/repos/pandas-dev/pandas/pulls/17700
2017-09-27T22:17:55Z
2017-09-28T09:59:26Z
2017-09-28T09:59:26Z
2017-09-28T10:53:58Z
DEPR: Deprecate cdate_range and merge into bdate_range
diff --git a/doc/source/api.rst b/doc/source/api.rst index 4ffeb5035912f..28d4567027572 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -218,7 +218,6 @@ Top-level dealing with datetimelike to_timedelta date_range bdate_range - cdate_range period_range timedelta_range infer_freq dif...
- [X] closes #17596 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry A bit going on here, so see summary below. Deprecated `cdate_range`: - Removed from api (was added to api after 0.20.3 release) - Added a `FutureWarning` to `cdate_range` i...
https://api.github.com/repos/pandas-dev/pandas/pulls/17691
2017-09-27T05:48:25Z
2017-10-02T11:28:31Z
2017-10-02T11:28:30Z
2017-10-02T13:39:09Z
typo fix evalute_compare-->evaluate_compare
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index dba616c2d15e6..c4e1398d0178f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3742,7 +3742,7 @@ def _evaluate_with_timedelta_like(self, other, op, opstr): def _evaluate_with_datetime_like(self, other, op, ops...
It's never actually called and if it did would just raise AbstractMethodError. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17688
2017-09-27T01:56:31Z
2017-09-27T10:20:44Z
2017-09-27T10:20:44Z
2017-10-30T16:23:19Z
BUG: remove tab completion for deprecated functions
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index c8476841bfce4..7a2da9655cc4a 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -10,10 +10,11 @@ class DirNamesMixin(object): _accessors = frozenset([]) + _deprecations = frozenset([]) def _dir_deletions(self): ...
closes #17674
https://api.github.com/repos/pandas-dev/pandas/pulls/17683
2017-09-26T13:51:02Z
2017-09-26T16:25:08Z
2017-09-26T16:25:08Z
2017-09-26T16:27:47Z
DOC: Add references for different index types + examples for pd.Index
diff --git a/doc/source/api.rst b/doc/source/api.rst index 28d4567027572..d98a18e6f7e36 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1626,6 +1626,52 @@ Conversion .. currentmodule:: pandas +PeriodIndex +-------------- + +.. autosummary:: + :toctree: generated/ + :template: autosummary/class_wit...
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Added 'See also'-references for different index types to make it easier to find the correct index type when in doubt + added simple examples for pd.Index
https://api.github.com/repos/pandas-dev/pandas/pulls/17680
2017-09-26T11:08:16Z
2017-10-06T07:15:33Z
2017-10-06T07:15:33Z
2017-10-09T21:00:05Z
DOC: correct grammar in unicode section
diff --git a/doc/source/options.rst b/doc/source/options.rst index f042e4d3f5120..2da55a5a658a4 100644 --- a/doc/source/options.rst +++ b/doc/source/options.rst @@ -474,10 +474,10 @@ Unicode Formatting Enabling this option will affect the performance for printing of DataFrame and Series (about 2 times slower). ...
Rewrite some sentences in the Unicode section for grammatical correctness.
https://api.github.com/repos/pandas-dev/pandas/pulls/17678
2017-09-26T04:50:37Z
2017-09-26T10:34:34Z
2017-09-26T10:34:34Z
2017-09-26T10:34:39Z
DOC iteritems docstring update and examples
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 81d5c112885ec..288ff26b14bc4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -778,14 +778,50 @@ def style(self): return Styler(self) def iteritems(self): - """ + r""" Iterator over (column name, Series)...
Updated iteritems docstring to start with an infinitive and added a short example - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22658
2018-09-10T12:34:25Z
2018-09-27T12:54:12Z
2018-09-27T12:54:12Z
2018-09-27T12:54:28Z
DOC: Follows ISO 639-1 code
diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet_JA.pdf b/doc/cheatsheet/Pandas_Cheat_Sheet_JA.pdf new file mode 100644 index 0000000000000..daa65a944e68a Binary files /dev/null and b/doc/cheatsheet/Pandas_Cheat_Sheet_JA.pdf differ diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet_JA.pptx b/doc/cheatsheet/Pandas_Cheat_Sheet...
## Changes - change suffix `_JP` to `_JA` according to `ISO 639` - fixed typo in `Pandas_Cheat_Sheet_JA.pdf` - translated `Pandas_Cheat_Sheet_JA.pptx` in Japanese
https://api.github.com/repos/pandas-dev/pandas/pulls/22657
2018-09-10T08:51:47Z
2018-09-30T21:27:18Z
2018-09-30T21:27:18Z
2018-09-30T21:27:18Z
BUG: output formatting with to_html(), index=False and/or index_names=False (#22579, #22747)
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 9bb6e0c90ae06..0890dfe76bbde 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1520,6 +1520,8 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - :func:`read_sas()...
- [x] closes #22579 - [x] closes #22747 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22655
2018-09-10T03:35:05Z
2019-01-01T16:35:15Z
2019-01-01T16:35:14Z
2019-01-01T21:00:37Z
ENH: Support writing timestamps with timezones with to_sql
diff --git a/doc/source/io.rst b/doc/source/io.rst index 68faefa872c88..9f458b58717d6 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4806,6 +4806,36 @@ default ``Text`` type for string columns: Because of this, reading the database table back in does **not** generate a categorical. +.. _io.sql_d...
- [x] closes #9086 - [x] closes #23510 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22654
2018-09-10T02:04:06Z
2018-11-08T14:55:50Z
2018-11-08T14:55:50Z
2018-11-08T18:02:15Z
BUG SeriesGroupBy.mean() overflowed on some integer arrays (#22487)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 649629714c3b1..1f5ba610cdeb7 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -761,6 +761,7 @@ Groupby/Resample/Rolling - Bug in :meth:`Resampler.apply` when passing postiional arguments to applied...
When integer arrays contained integers that were outside the range of int64, the conversion would overflow. Instead only allow allow safe casting and if a safe cast can not be done, cast to float64 instead. - [X] closes #22487 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flak...
https://api.github.com/repos/pandas-dev/pandas/pulls/22653
2018-09-09T22:29:20Z
2018-09-18T14:47:32Z
2018-09-18T14:47:31Z
2018-09-18T14:47:41Z
ASV: more for str.cat
diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py index b203c8b0fa5c9..ccfac2f73f14d 100644 --- a/asv_bench/benchmarks/strings.py +++ b/asv_bench/benchmarks/strings.py @@ -1,7 +1,7 @@ import warnings import numpy as np -from pandas import Series +from pandas import Series, DataFrame im...
Planning to do a clean-up of the `Series.str.cat` internals and wanted to expand ASV-coverage before doing so.
https://api.github.com/repos/pandas-dev/pandas/pulls/22652
2018-09-09T20:42:12Z
2018-09-14T12:43:59Z
2018-09-14T12:43:59Z
2018-09-15T16:39:27Z
BUG: Make sure that sas7bdat parsers memory is initialized to 0 (#21616)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index fb7af00f61534..2add33becd679 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -734,7 +734,7 @@ I/O - :func:`read_html()` no longer ignores all-whitespace ``<tr>`` within ``<thead>`` when considerin...
Memory for numbers in sas7bdat-parsing was not initialized properly to 0. For sas7bdat files with numbers smaller than 8 bytes this made the least significant part of the numbers essentially random. Fix it by initializing memory correctly. - [X] closes #21616 - [X] tests added / passed - [X] passes `git diff up...
https://api.github.com/repos/pandas-dev/pandas/pulls/22651
2018-09-09T18:58:39Z
2018-09-15T12:12:56Z
2018-09-15T12:12:56Z
2018-09-15T12:13:01Z
BUG/ENH: Handle AmbiguousTimeError in date rounding
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 487d5d0d2accd..de4d33789105a 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -182,6 +182,7 @@ Other Enhancements - :func:`to_timedelta` now supports iso-formated timedelta strings (:issue:`21877`)...
- [x] closes #18946 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Discussed in #22560, adding an `ambiguous` argument to `round`, `ceil` and `floor` so the user can dictate how to handle rounding timestamps that land on ambiguous times.
https://api.github.com/repos/pandas-dev/pandas/pulls/22647
2018-09-09T06:48:32Z
2018-09-23T13:25:41Z
2018-09-23T13:25:41Z
2018-09-23T16:18:22Z
TST: Avoid DeprecationWarnings
diff --git a/pandas/core/common.py b/pandas/core/common.py index a3fba762509f1..92e4e23ce958e 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -122,6 +122,24 @@ def is_bool_indexer(key): return False +def cast_scalar_indexer(val): + """ + To avoid numpy DeprecationWarnings, cast float to...
Avoid a boatload of these: ``` pandas/tests/plotting/test_frame.py::TestDataFramePlots::()::test_plot /home/travis/build/pandas-dev/pandas/pandas/core/indexes/multi.py:1556: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future if lab[key] == -1: /ho...
https://api.github.com/repos/pandas-dev/pandas/pulls/22646
2018-09-09T03:52:05Z
2018-09-12T11:26:13Z
2018-09-12T11:26:13Z
2018-09-12T13:42:04Z
TST: Collect/Use arithmetic test fixtures
diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py index 844472b8bcf0d..b800b66e8edea 100644 --- a/pandas/tests/arithmetic/conftest.py +++ b/pandas/tests/arithmetic/conftest.py @@ -28,14 +28,32 @@ def zero(request): return request.param +# -----------------------------------...
Takes over from #22350 (which would have been a rebasing nightmare), addressing AFAICT all unaddressed comments from there. All remaining fixtures in tests/arithmetic are collected in tests/arithmetic/conftest.py Fixtures are given more descriptive names and docstrings as requested in #22350. A handful of tests ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22645
2018-09-09T01:36:38Z
2018-09-12T11:28:48Z
2018-09-12T11:28:48Z
2018-09-12T13:41:23Z
API/ENH: tz_localize handling of nonexistent times: rename keyword + add shift option
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 85b0abe421eb2..a52c80106f100 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -2357,6 +2357,38 @@ constructor as well as ``tz_localize``. # tz_convert(None) is identical with tz_convert('UTC').tz_localize(None) did...
- [x] closes #8917 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Currently, users do not have any control over nonexistent datetime handling when `tz_localize`ing like they do ambiguous times. This adds a new keyword `nonexistent` to `tz_local...
https://api.github.com/repos/pandas-dev/pandas/pulls/22644
2018-09-09T01:34:58Z
2018-10-25T11:46:30Z
2018-10-25T11:46:30Z
2018-10-25T15:48:10Z
DOC: improve doc string for .aggregate and .transform
diff --git a/ci/doctests.sh b/ci/doctests.sh index 2af5dbd26aeb1..654bd57107904 100755 --- a/ci/doctests.sh +++ b/ci/doctests.sh @@ -21,7 +21,7 @@ if [ "$DOCTEST" ]; then # DataFrame / Series docstrings pytest --doctest-modules -v pandas/core/frame.py \ - -k"-assign -axes -combine -isin -itertuples -...
Since #21224, operations using ``axis=1`` in df.aggregate and df.transform now work the same as when axis=0. This PR updates the methods' doc strings to reflect the new reality. For example, we can now pass a dict to DataFrame.agg/transform when ``axis=1`` also, and ``DataFrame.transform`` now has an ``axis`` parame...
https://api.github.com/repos/pandas-dev/pandas/pulls/22641
2018-09-08T21:31:34Z
2018-09-18T12:18:09Z
2018-09-18T12:18:08Z
2018-09-20T21:12:02Z
BUG: df.sort_values() not respecting na_position with categoricals #22556
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 16f0b9ee99909..351dc363c9550 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -788,6 +788,7 @@ Categorical ^^^^^^^^^^^ - Bug in :meth:`Categorical.from_codes` where ``NaN`` values in ``codes`` w...
- [x] closes #22556 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22640
2018-09-08T20:51:57Z
2018-10-18T16:07:26Z
2018-10-18T16:07:26Z
2018-10-18T23:32:03Z
pythonize cython code
diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 13baa100b84b7..0000000000000 --- a/.coveragerc +++ /dev/null @@ -1,30 +0,0 @@ -# .coveragerc to control coverage.py -[run] -branch = False -omit = */tests/* -plugins = Cython.Coverage - -[report] -# Regexes for lines to exclude from consideration -ex...
Use python-style type annotations instead of cython-style in a few places. Use python-style isinstance checks in cases where cython will automatically optimize them into C calls. Part of the hope is that we can get the code close enough to valid python that we can trick flake8 into working on it.
https://api.github.com/repos/pandas-dev/pandas/pulls/22638
2018-09-08T17:52:45Z
2018-09-12T11:33:44Z
2018-09-12T11:33:44Z
2018-09-12T18:29:06Z
CI / BLD: Various CI Backports
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000000..e947f30d285cd --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,147 @@ +version: 2 +jobs: + + # -------------------------------------------------------------------------- + # 0. py27_compat + # ----------------------...
* Pin `blosc` to `1.14.3` (#22429) * Migrate to CircleCI 2.0 (#21814) * Pin `openpyxl` to `2.5.5` (#22601) * Bump `numpy` to `1.9.3` (#22499) * Fix locale handling (#21739, #22213) * Upgrade `Cython` to `>=0.28.2` (#21688)
https://api.github.com/repos/pandas-dev/pandas/pulls/22637
2018-09-08T16:48:16Z
2018-09-11T16:40:59Z
2018-09-11T16:40:59Z
2018-09-11T20:07:41Z
BUG: NaN should have pct rank of NaN
diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt index 304ab12752ad4..f69e38e7fdd50 100644 --- a/doc/source/whatsnew/v0.23.5.txt +++ b/doc/source/whatsnew/v0.23.5.txt @@ -20,6 +20,9 @@ and bug fixes. We recommend that all users upgrade to this version. Fixed Regressions ~~~~~~~~~~~~~~~~~...
Backport of #22600.
https://api.github.com/repos/pandas-dev/pandas/pulls/22634
2018-09-08T05:41:02Z
2018-09-11T21:45:26Z
2018-09-11T21:45:26Z
2018-09-11T21:45:46Z
BUG: Some sas7bdat files with many columns are not parseable by read_sas
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 649629714c3b1..949bc7b73af7e 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -742,6 +742,8 @@ I/O - :func:`read_excel()` will correctly show the deprecation warning for previously deprecated ``she...
- [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry The reason is that column definitions may be split up into different pages. Allow column information to be parsed from different pages and add a test for it.
https://api.github.com/repos/pandas-dev/pandas/pulls/22628
2018-09-07T15:07:08Z
2018-09-18T12:13:46Z
2018-09-18T12:13:46Z
2018-09-18T12:17:17Z
CLN/DEPR: removed deprecated as_indexer arg from str.match()
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 1979bde796452..5560d7edeca1a 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -528,7 +528,7 @@ Removal of prior version deprecations/changes - Removal of the previously deprecated module ``pandas.c...
- [x] closes #22316 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is the renewal of #22356, as the git got tangled up I re-forked the repo.
https://api.github.com/repos/pandas-dev/pandas/pulls/22626
2018-09-07T09:05:41Z
2018-09-07T12:47:56Z
2018-09-07T12:47:56Z
2018-09-09T09:20:05Z
Test in scripts/validate_docstrings.py that the short summary is always one line long
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index 0c0757c6963d7..00496f771570b 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -362,6 +362,15 @@ def multi_line(self): which is not correct. ...
- [x] closes #22615 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The previous test to check if the summary property should be empty was based on the non-existence of the extended summary which doesn't seem to make sense. The test case I added failed before changin...
https://api.github.com/repos/pandas-dev/pandas/pulls/22617
2018-09-06T01:16:49Z
2018-09-18T13:00:19Z
2018-09-18T13:00:18Z
2018-09-18T13:27:11Z
BUG: Check types in Index.__contains__ (#22085)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3a44b0260153c..ef6e46976b50c 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -723,6 +723,7 @@ Indexing - ``Float64Index.get_loc`` now raises ``KeyError`` when boolean key passed. (:issue:`19087`) ...
- [x] closes #22085 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I added is_float, is_integer_dtype in Index.__contains__. If key is float and dtype of Index object is integer, return False. And this is the same as #22360. I deleted the b...
https://api.github.com/repos/pandas-dev/pandas/pulls/22602
2018-09-05T07:07:32Z
2018-09-19T21:17:13Z
2018-09-19T21:17:13Z
2018-09-20T04:13:54Z
BLD: Fix openpyxl to 2.5.5
diff --git a/ci/appveyor-27.yaml b/ci/appveyor-27.yaml index 6843c82236a35..bcd9ddee1715e 100644 --- a/ci/appveyor-27.yaml +++ b/ci/appveyor-27.yaml @@ -13,7 +13,7 @@ dependencies: - matplotlib - numexpr - numpy=1.12* - - openpyxl + - openpyxl=2.5.5 - pytables - python=2.7.* - pytz diff --git a/ci/a...
`2.5.5` --> `2.5.6` broke compatibility with pandas `Timestamp` objects. Closes #22595.
https://api.github.com/repos/pandas-dev/pandas/pulls/22601
2018-09-05T06:51:54Z
2018-09-05T10:52:28Z
2018-09-05T10:52:28Z
2018-09-18T19:56:59Z
BUG: NaN should have pct rank of NaN
diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt index 2a1172c8050ad..8f4b1a13c2e9d 100644 --- a/doc/source/whatsnew/v0.23.5.txt +++ b/doc/source/whatsnew/v0.23.5.txt @@ -23,6 +23,9 @@ Fixed Regressions - Constructing a DataFrame with an index argument that wasn't already an instance o...
Closes #22519.
https://api.github.com/repos/pandas-dev/pandas/pulls/22600
2018-09-05T06:35:26Z
2018-09-08T02:27:24Z
2018-09-08T02:27:24Z
2018-09-08T05:39:21Z
Implement delegate_names to allow decorating delegated attributes
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index 7a853d575aa69..eab529584d1fb 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -105,6 +105,38 @@ def f(self, *args, **kwargs): setattr(cls, name, f) +def delegate_names(delegate, accessors, typ, overwrite=False...
This PR defines a `delegate_names` decorator that provides an alternative (and to my taste, much nicer) syntax for pinning delegated attributes to Accessor classes. Effectively this just moves the call to `_add_delegate_accessors` from after the class definition to a decorator on the class. I find this much harder ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22599
2018-09-05T02:14:45Z
2018-09-08T02:33:41Z
2018-09-08T02:33:41Z
2018-09-08T03:14:07Z
Fix string format in test runner
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index aee7dba450a30..01fafd7219382 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -2394,7 +2394,7 @@ def wrapper(*args, **kwargs): raise else: skip("Skipping test due to lack of connectivity"...
`.format()` was expecting keyword arguments. Updated to match other skips nearby.
https://api.github.com/repos/pandas-dev/pandas/pulls/22598
2018-09-04T22:20:33Z
2018-09-06T19:42:42Z
2018-09-06T19:42:42Z
2018-09-06T19:42:49Z
Set hypothesis healthcheck
diff --git a/pandas/conftest.py b/pandas/conftest.py index a49bab31f0bc8..fdac045e67ffa 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -9,6 +9,11 @@ from pandas.compat import PY3 import pandas.util._test_decorators as td +import hypothesis +hypothesis.settings.suppress_health_check = (hypothesis.Health...
- [y] closes #22593 - [pending] tests added / passed - [y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [N/A] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22597
2018-09-04T22:20:22Z
2018-09-08T02:32:38Z
2018-09-08T02:32:37Z
2018-09-08T02:32:41Z
TST: add test to io/formats/test_to_html.py to close GH6131
diff --git a/pandas/tests/io/formats/test_to_html.py b/pandas/tests/io/formats/test_to_html.py index f69cac62513d4..845fb1ee3dc3a 100644 --- a/pandas/tests/io/formats/test_to_html.py +++ b/pandas/tests/io/formats/test_to_html.py @@ -1844,6 +1844,67 @@ def test_to_html_no_index_max_rows(self): </table>""") ...
- [x] closes #6131 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22588
2018-09-04T16:00:39Z
2018-09-09T17:11:29Z
2018-09-09T17:11:29Z
2018-09-09T18:39:31Z
Add 'name' as argument for index 'to_frame' method
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 232f879285543..3dfb0f70b8142 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -184,6 +184,7 @@ Other Enhancements - :class:`DatetimeIndex` gained :attr:`DatetimeIndex.timetz` attribute. Returns loc...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Since series `to_frame` method has a `name` argument, I believe it makes sense for index also have it.
https://api.github.com/repos/pandas-dev/pandas/pulls/22580
2018-09-03T11:19:23Z
2018-09-14T04:45:16Z
2018-09-14T04:45:16Z
2018-09-14T12:36:17Z
BUG: fix failing DataFrame.loc when indexing with an IntervalIndex
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 1979bde796452..3770e130e4dad 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -669,6 +669,7 @@ Indexing - Bug where indexing with a Numpy array containing negative values would mutate the indexer (...
- [x] closes #19977 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22576
2018-09-02T17:06:47Z
2018-09-08T02:52:59Z
2018-09-08T02:52:59Z
2018-09-13T18:53:00Z
CLN: tests for str.cat
diff --git a/pandas/tests/test_strings.py b/pandas/tests/test_strings.py index ab508174fa4a9..c238abdd32f5d 100644 --- a/pandas/tests/test_strings.py +++ b/pandas/tests/test_strings.py @@ -144,71 +144,50 @@ def test_cat(self): with tm.assert_raises_regex(ValueError, rgx): strings.str_cat(one, 'thr...
Cleaning up some left-overs from #20347 and preparing the tests for changing the default of `join` to `'left'` in 1.0 (which would break some tests that assume no alignment currently). As a side benefit, this has: * nicer parametrization * nicer switches (and reduced usage of them within the tests) * now follows `re...
https://api.github.com/repos/pandas-dev/pandas/pulls/22575
2018-09-02T00:36:07Z
2018-09-08T03:05:50Z
2018-09-08T03:05:50Z
2018-09-09T21:23:30Z
CLN: Rename 'n' to 'repeats' in .repeat methods
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 7ed92935a0991..1c820c5bcd114 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -527,6 +527,7 @@ Removal of prior version deprecations/changes - Several private functions were removed from the (non-p...
For `Index` and `MultiIndex`. xref #14645.
https://api.github.com/repos/pandas-dev/pandas/pulls/22574
2018-09-02T00:29:05Z
2018-09-04T11:13:35Z
2018-09-04T11:13:35Z
2018-09-05T03:53:01Z
CLN: Remove unused variable in test_reshape.py
diff --git a/pandas/tests/indexes/multi/test_reshape.py b/pandas/tests/indexes/multi/test_reshape.py index 85eec6a232180..efa9fca752157 100644 --- a/pandas/tests/indexes/multi/test_reshape.py +++ b/pandas/tests/indexes/multi/test_reshape.py @@ -126,5 +126,5 @@ def test_delete_base(idx): assert result.name == expec...
Title is self-explanatory.
https://api.github.com/repos/pandas-dev/pandas/pulls/22573
2018-09-02T00:16:39Z
2018-09-02T01:17:51Z
2018-09-02T01:17:51Z
2018-09-02T01:17:53Z