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
REF: directory for method-specific series/frame tests
diff --git a/pandas/tests/frame/methods/__init__.py b/pandas/tests/frame/methods/__init__.py new file mode 100644 index 0000000000000..245594bfdc9e7 --- /dev/null +++ b/pandas/tests/frame/methods/__init__.py @@ -0,0 +1,7 @@ +""" +Test files dedicated to individual (stand-alone) DataFrame methods + +Ideally these files/...
Per the docstring in each of the new directories: ``` Test files dedicated to individual (stand-alone) DataFrame methods Ideally these files/tests should correspond 1-to-1 with tests.series.methods These may also present opportunities for sharing/de-duplicating test code. ``` If this approach is approved...
https://api.github.com/repos/pandas-dev/pandas/pulls/30362
2019-12-19T21:37:30Z
2019-12-20T15:33:02Z
2019-12-20T15:33:02Z
2019-12-20T16:18:07Z
REF: refactor cumulative op tests from test_analytics
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index cef389a6c4167..0653c9dc5f91b 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -1495,112 +1495,6 @@ def test_sum_bools(self): bools = isna(df) assert bools.sum(a...
The removal of `ix` highlighted how difficult it is to tell how thorough tests are for some funcs/methods. This is one of several PRs intended to clarify where the tests for X live, and ideally to make that follow a standard pattern across DataFrame/Series/Index subclasses (and EA where relevant)
https://api.github.com/repos/pandas-dev/pandas/pulls/30358
2019-12-19T20:06:59Z
2019-12-20T15:33:54Z
2019-12-20T15:33:54Z
2019-12-20T16:17:15Z
CLN: format replaced with f-strings #29547
diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py index 433bca940c028..209f889e809c3 100644 --- a/pandas/core/indexers.py +++ b/pandas/core/indexers.py @@ -144,9 +144,7 @@ def validate_indices(indices: np.ndarray, n: int) -> None: if len(indices): min_idx = indices.min() if min_idx <...
- [x] ref #29547 - [x] passes `black pandas` - [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff
https://api.github.com/repos/pandas-dev/pandas/pulls/30355
2019-12-19T18:53:12Z
2019-12-19T21:37:19Z
2019-12-19T21:37:19Z
2019-12-19T21:37:33Z
TST: collect arithmetic test helpers
diff --git a/pandas/tests/arithmetic/common.py b/pandas/tests/arithmetic/common.py new file mode 100644 index 0000000000000..bc02a1e76a695 --- /dev/null +++ b/pandas/tests/arithmetic/common.py @@ -0,0 +1,89 @@ +""" +Assertion helpers for arithmetic tests. +""" +import numpy as np +import pytest + +from pandas import Da...
broken off from a WIP branch that parametrizes/fixturizes/de-duplicates a bunch of timedelta64 arithmetic tests
https://api.github.com/repos/pandas-dev/pandas/pulls/30354
2019-12-19T18:17:42Z
2019-12-23T19:30:20Z
2019-12-23T19:30:20Z
2019-12-23T20:15:32Z
[ENH] Add to_markdown method
diff --git a/ci/deps/travis-37.yaml b/ci/deps/travis-37.yaml index 6826a9d072ff3..73e2c20b31438 100644 --- a/ci/deps/travis-37.yaml +++ b/ci/deps/travis-37.yaml @@ -20,6 +20,7 @@ dependencies: - pyarrow - pytz - s3fs + - tabulate - pyreadstat - pip - pip: diff --git a/ci/deps/travis-38.yaml b/ci/deps...
- [ ] closes #11052 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30350
2019-12-19T16:41:57Z
2019-12-27T16:58:06Z
2019-12-27T16:58:05Z
2020-01-24T13:10:30Z
DOC: "Next" link from user_guide/io.rst goes to read_sql_table API pa…
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index ae0f02312e1df..268553dcd62d8 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -4828,7 +4828,6 @@ See also some :ref:`cookbook examples <cookbook.sql>` for some advanced strategi The key functions are: .. au...
…ge (#30332)
https://api.github.com/repos/pandas-dev/pandas/pulls/30348
2019-12-19T16:27:16Z
2019-12-20T02:40:13Z
2019-12-20T02:40:13Z
2019-12-25T14:16:56Z
COMPAT: numpy test warnings
diff --git a/pandas/tests/arrays/test_integer.py b/pandas/tests/arrays/test_integer.py index f172280202e64..60fe22e54f224 100644 --- a/pandas/tests/arrays/test_integer.py +++ b/pandas/tests/arrays/test_integer.py @@ -894,6 +894,8 @@ def test_astype_nansafe(): @pytest.mark.parametrize("ufunc", [np.abs, np.sign]) +#...
Fixes #30334. Some of the warnings are coming from within pandas (like the FutureWarning on truediv), some are numpy warnings (like the nan-warning on sign). All in all changes are minor. Tests are passing with `-Werror` for me now.
https://api.github.com/repos/pandas-dev/pandas/pulls/30345
2019-12-19T10:11:40Z
2020-01-21T21:11:56Z
2020-01-21T21:11:55Z
2020-01-21T21:12:02Z
REF: pytables prepare to make _create_axes return a new object
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 07bf30e51a763..5b2e2c24a5328 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -3230,13 +3230,13 @@ def validate(self, other): oax = ov[i] if sax != oax: raise ValueError( ...
in the next pass we'll make create_axes return a new object, and instead of altering a bunch of attributes in create_axes, we'll pass them to the constructor for our new object just before returning Doing all that makes for a pretty big diff, so this splits out some pieces. The biggest one is implementing _get_bloc...
https://api.github.com/repos/pandas-dev/pandas/pulls/30344
2019-12-19T05:07:01Z
2019-12-19T17:43:15Z
2019-12-19T17:43:15Z
2019-12-19T18:09:27Z
CLN: pytables make lookups explicit instead of using globals
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 07bf30e51a763..35ba2dca8cf8a 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -176,22 +176,6 @@ class DuplicateWarning(Warning): # formats _FORMAT_MAP = {"f": "fixed", "fixed": "fixed", "t": "table", "table": "table"} -# storer class ...
also fail-fast and get an annotation in the bargain
https://api.github.com/repos/pandas-dev/pandas/pulls/30343
2019-12-19T03:54:04Z
2019-12-19T17:41:47Z
2019-12-19T17:41:46Z
2019-12-19T18:19:39Z
REF: remove pytables Table.metadata
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 07bf30e51a763..410cbe4f3a04f 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -2033,9 +2033,6 @@ def maybe_set_size(self, min_itemsize=None): if min_itemsize is not None and self.typ.itemsize < min_itemsize: ...
Its superfluous AFAICT
https://api.github.com/repos/pandas-dev/pandas/pulls/30342
2019-12-19T03:40:19Z
2019-12-19T17:42:19Z
2019-12-19T17:42:19Z
2019-12-19T17:48:38Z
Fix typos, via a Levenshtein-style corrector
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index 9e74eb46f7b1f..6844df495547a 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -57,10 +57,10 @@ DeprecatedOption = namedtuple("DeprecatedOption", "key msg rkey removal_ver") RegisteredOption = namedtuple("RegisteredOption", "...
Should be non-semantic.
https://api.github.com/repos/pandas-dev/pandas/pulls/30341
2019-12-19T03:28:58Z
2019-12-19T06:42:18Z
2019-12-19T06:42:18Z
2019-12-19T18:24:32Z
DEPR: camelCase in offsets, get_offset
diff --git a/asv_bench/benchmarks/tslibs/offsets.py b/asv_bench/benchmarks/tslibs/offsets.py index d6379b922641c..fc1efe63307b2 100644 --- a/asv_bench/benchmarks/tslibs/offsets.py +++ b/asv_bench/benchmarks/tslibs/offsets.py @@ -59,7 +59,7 @@ def setup(self, offset): def time_on_offset(self, offset): fo...
- [x] closes #4205 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30340
2019-12-19T02:11:31Z
2019-12-27T20:53:28Z
2019-12-27T20:53:28Z
2019-12-27T20:58:15Z
BUG: Fix infer_dtype_from_scalar to infer IntervalDtype
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index c072bfeff4a72..3d1ab08336be8 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -758,7 +758,7 @@ Interval ^^^^^^^^ - Bug in :meth:`IntervalIndex.get_indexer` where a :class:`Categorical` or :class:`Ca...
- [X] closes #30337 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30339
2019-12-19T02:09:20Z
2019-12-19T14:08:35Z
2019-12-19T14:08:35Z
2019-12-19T17:26:12Z
REF: change parameter name fname -> path
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index ae0f02312e1df..7f7b00ccfc167 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -4763,10 +4763,10 @@ Parquet supports partitioning of data based on the values of one or more columns .. ipython:: python df...
- [x] closes #23574 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30338
2019-12-19T02:03:29Z
2019-12-19T17:40:39Z
2019-12-19T17:40:39Z
2019-12-19T18:44:56Z
BUG+TST: non-optimized apply_index and empty DatetimeIndex
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index c072bfeff4a72..c4fca8eba784d 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -711,7 +711,7 @@ Datetimelike - Bug in :func:`pandas.to_datetime` when called with ``None`` raising ``TypeError`` instead o...
- [x] closes #12724 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30336
2019-12-18T23:58:18Z
2019-12-20T11:56:25Z
2019-12-20T11:56:24Z
2019-12-20T16:31:12Z
BUG: raise on non-hashable Index name, closes #29069
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index faca744a8f92c..3fe228c4e4076 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -892,7 +892,7 @@ Other - Fixed :class:`IntegerArray` returning ``inf`` rather than ``NaN`` for operations dividing by 0 (:i...
- [x] closes #29069 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30335
2019-12-18T22:55:25Z
2019-12-27T16:00:52Z
2019-12-27T16:00:52Z
2019-12-27T18:05:50Z
DOC: whatsnew fixups
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index e44fec112c5c1..dd78fc3799656 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -254,10 +254,10 @@ To update, use ``MultiIndex.set_names``, which returns a new ``MultiIndex``. mi2 = mi.set_names("new ...
* Refer to public API * Fixed formatting * Remove ref to undocumented function
https://api.github.com/repos/pandas-dev/pandas/pulls/30331
2019-12-18T20:48:07Z
2019-12-18T22:57:05Z
2019-12-18T22:57:05Z
2019-12-18T22:57:13Z
Cleaned up Tempita refs and Cython import
diff --git a/setup.py b/setup.py index 45f3af3d5c374..c6b078dae280a 100755 --- a/setup.py +++ b/setup.py @@ -63,24 +63,15 @@ def is_platform_mac(): from distutils.extension import Extension # noqa: E402 isort:skip from distutils.command.build import build # noqa: E402 isort:skip -try: - if not _CYTHON_INSTALLE...
It has been 6 years since last Tempita release on Pypi so I think this can be removed.
https://api.github.com/repos/pandas-dev/pandas/pulls/30330
2019-12-18T20:08:44Z
2019-12-20T15:47:16Z
2019-12-20T15:47:15Z
2020-01-16T00:33:22Z
BUG: Integer Overflow in read_json with big number in string
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index a04ba157ce0ae..2d5c0c92b0ef7 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -132,7 +132,7 @@ MultiIndex I/O ^^^ - +- Bug in :meth:`read_json` where integer overflow was occuring when json contains...
- [x] closes #30320 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30329
2019-12-18T19:24:42Z
2020-01-24T04:25:17Z
2020-01-24T04:25:17Z
2020-01-24T04:25:38Z
CLN: Old string formatting: .format() -> f""
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index b31973de5bca0..b86293e78a80d 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -232,7 +232,7 @@ def _has_valid_tuple(self, key: Tuple): except ValueError: raise ValueError( "Locati...
- [x] xref #29547 - [x] passes `black pandas` Old style % formatting to f-strings
https://api.github.com/repos/pandas-dev/pandas/pulls/30328
2019-12-18T19:15:16Z
2019-12-20T15:49:53Z
2019-12-20T15:49:53Z
2019-12-21T04:00:43Z
TST: tests for needs-test issues #12857 #12689
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index f6e203afb0898..5ecbe21d113b5 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -16,6 +16,13 @@ class TestFrameComparisons: # Specifically _not_ flex-comparisons + d...
- [x] closes #12689 - [x] closes #9232 - [x] closes #6051 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30327
2019-12-18T19:06:51Z
2019-12-24T14:24:26Z
2019-12-24T14:24:25Z
2019-12-24T16:50:11Z
TST: follow-up to #30318
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index fa8e4985090a7..f123a5265bb0d 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -663,10 +663,7 @@ def _aggregate_series_pure_python(self, obj: Series, func): if len(res) == 1: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30326
2019-12-18T17:34:50Z
2019-12-18T19:31:19Z
2019-12-18T19:31:19Z
2019-12-18T19:34:08Z
ENH: add ExtensionArray.to_numpy to have control over conversion to numpy array
diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst index 16a84b5d2ecaf..374e1395b42f7 100644 --- a/doc/source/reference/extensions.rst +++ b/doc/source/reference/extensions.rst @@ -67,3 +67,8 @@ behaves correctly. :toctree: api/ api.indexers.check_bool_array_indexer + + +The ...
xref https://github.com/pandas-dev/pandas/issues/30038 Would still need to add this to the other arrays with NA (IntegerArray, StringArray), and need to pass through such option from Series.to_numpy. But already putting this up to check if we are OK with such interface and behaviour.
https://api.github.com/repos/pandas-dev/pandas/pulls/30322
2019-12-18T13:45:15Z
2020-01-07T16:26:03Z
2020-01-07T16:26:03Z
2020-01-07T16:26:17Z
Switching %r for repr(op_str) in test-expressions.py for issue 29886
diff --git a/pandas/tests/test_expressions.py b/pandas/tests/test_expressions.py index 1974f712b13ee..9808c3d78b436 100644 --- a/pandas/tests/test_expressions.py +++ b/pandas/tests/test_expressions.py @@ -261,9 +261,9 @@ def testit(): def test_bool_ops_raise_on_arithmetic(self, op_str, opname): df = DataF...
Swaps the following in pandas/tests/test_expressions.py: From: `msg = "operator %r not implemented for bool dtypes"` `f = getattr(operator, opname)` `err_msg = re.escape(msg % op_str)` To: `msg = f"operator {repr(op_str)} not implemented for bool dtypes"` `f = getattr(operator, opname)` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30321
2019-12-18T12:44:47Z
2019-12-18T19:32:46Z
2019-12-18T19:32:46Z
2019-12-18T19:32:58Z
DOC: Remove reference to moving windows regressions
diff --git a/README.md b/README.md index cb3a966c08f74..1130eb30954dc 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ Here are just a few of the things that pandas does well: and saving/loading data from the ultrafast [**HDF5 format**][hdfstore] - [**Time series**][timeseries]-specific functionality:...
Remove outdated reference to moving regression which was dropped - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/30319
2019-12-18T10:37:27Z
2019-12-18T12:24:11Z
2019-12-18T12:24:11Z
2019-12-19T22:29:42Z
TST: add test for Series.item backed with ExtensionArray
diff --git a/pandas/tests/extension/base/getitem.py b/pandas/tests/extension/base/getitem.py index d56cc50f4739c..0e4a86ed44529 100644 --- a/pandas/tests/extension/base/getitem.py +++ b/pandas/tests/extension/base/getitem.py @@ -266,3 +266,9 @@ def test_loc_len1(self, data): df = pd.DataFrame({"A": data}) ...
Follow-up on https://github.com/pandas-dev/pandas/pull/30175 cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/30318
2019-12-18T08:26:17Z
2019-12-18T12:31:08Z
2019-12-18T12:31:08Z
2019-12-18T12:31:08Z
DOC/CLN: move NDFrame.groupby to (DataFrame|Series).groupby
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1de0d3b58dc5f..7d71c3bfb0368 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -100,6 +100,7 @@ from pandas.core.arrays.datetimelike import DatetimeLikeArrayMixin as DatetimeLikeArray from pandas.core.arrays.sparse import SparseFrameAccessor...
By moving this method up to dataFrame/Series, we get better doc strings and more precise type hints.
https://api.github.com/repos/pandas-dev/pandas/pulls/30314
2019-12-17T23:08:14Z
2020-01-01T03:35:13Z
2020-01-01T03:35:13Z
2020-01-01T11:37:23Z
xfail test_scikit_learn
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index ea128c8c3a422..e85e8ec90d666 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -67,6 +67,9 @@ def test_statsmodels(): # Cython import warning @pytest.mark.filterwarnings("ignore:can't:ImportWarni...
xref https://github.com/pandas-dev/pandas/issues/30309, this is a bit tricky. Will do a proper fix in https://github.com/pandas-dev/pandas/pull/30312, but xfailing for now.
https://api.github.com/repos/pandas-dev/pandas/pulls/30313
2019-12-17T20:47:35Z
2019-12-17T21:33:12Z
2019-12-17T21:33:11Z
2019-12-17T21:33:16Z
CI: Fixed travis-36-cov build
diff --git a/.travis.yml b/.travis.yml index 0acd386eea9ed..0c7740295b637 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,31 +30,34 @@ matrix: - python: 3.5 include: - - dist: trusty - env: + - env: - JOB="3.8" ENV_FILE="ci/deps/travis-38.yaml" PATTERN="(not slow and not network)" ...
Closes #30309 Just debugging right now. Can't reproduce locally yet.
https://api.github.com/repos/pandas-dev/pandas/pulls/30312
2019-12-17T19:33:54Z
2019-12-18T12:32:51Z
2019-12-18T12:32:50Z
2019-12-18T12:32:54Z
Groupby agg works with pd.Series.nunique, but groupby nunique fails with axis=1
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 6fd758abb1f33..2826029d902db 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -833,6 +833,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.groupby` where ``any``, ``all``, ``nunique`` and transf...
- [x] closes #30253 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30311
2019-12-17T18:39:21Z
2019-12-18T18:17:49Z
2019-12-18T18:17:49Z
2019-12-19T01:13:40Z
Fixings fstrings in pandas/io/stata.py & pandas/io/sql.py
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index b619ea93b981d..a87d27d8b35d8 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -241,7 +241,7 @@ def read_sql_table( try: meta.reflect(only=[table_name], views=True) except sqlalchemy.exc.InvalidRequestError: - raise ValueError("Table...
- [x] ref #29547 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30310
2019-12-17T18:30:32Z
2019-12-31T00:12:31Z
null
2019-12-31T00:12:32Z
DOC/TST: Indexing with NA raises
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b34f5dfdd1a83..88548f6c2f678 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: language: python_venv additional_dependencies: [flake8-comprehensions>=3.1.0] - repo: https://github.com/pre-...
xref https://github.com/pandas-dev/pandas/issues/29556, https://github.com/pandas-dev/pandas/issues/28778 We're already doing the right thing on master. This just documents that behavior, and adds a handful of tests. I'm not sure if there are existing tests I should be parameterizing. I only found a couple in `te...
https://api.github.com/repos/pandas-dev/pandas/pulls/30308
2019-12-17T18:00:10Z
2020-01-03T02:21:27Z
2020-01-03T02:21:27Z
2020-10-07T15:52:55Z
CLN: changed .format to f string in pandas/core/arrays/base.py
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index f3325f6ffd9d9..53ae1094c6765 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -27,8 +27,6 @@ from pandas.core.missing import backfill_1d, pad_1d from pandas.core.sorting import nargsort -_not_implemented_message = ...
- [ ] ref #29547 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30306
2019-12-17T17:13:22Z
2019-12-17T18:24:12Z
2019-12-17T18:24:12Z
2019-12-17T19:31:46Z
ENH: Add support for DataFrame(ExtensionArray)
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index e44fec112c5c1..90e0c31f1a1a5 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -206,6 +206,7 @@ Other enhancements now preserve those data types with pyarrow >= 1.0.0 (:issue:`20612`). - The ``partit...
- [x] closes #11363 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Problem: In core.frame ``` elif isinstance(data, abc.Iterable) and not isinstance(data, (str, bytes)): if not isinstance(dat...
https://api.github.com/repos/pandas-dev/pandas/pulls/30305
2019-12-17T14:18:48Z
2019-12-18T22:20:12Z
2019-12-18T22:20:12Z
2019-12-19T07:34:31Z
BUG: fix DataFrame.apply returning wrong result when dealing with dtype (#28773)
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 4f0ca97310d85..2c2f0ad4c006f 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -1273,6 +1273,7 @@ Other - Bug in :meth:`DataFrame.append` that raised ``IndexError`` when appending with empty list (:issu...
- [x] closes #28773 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The DataFrame.apply was sometimes returning wrong result when we passed function, that was dealing with dtypes. It was caused by retrieving the Da...
https://api.github.com/repos/pandas-dev/pandas/pulls/30304
2019-12-17T12:35:06Z
2020-05-22T11:22:41Z
null
2020-05-22T11:22:41Z
CI: Checks job aborted if a step fails GH30298
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a36420556ae24..40dd083866276 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,53 +23,53 @@ jobs: - name: Looking for unwanted patterns run: ci/code_checks.sh patterns - if: true + if: always() ...
- [ ] closes #30298 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30303
2019-12-17T08:30:56Z
2019-12-30T20:53:06Z
2019-12-30T20:53:06Z
2019-12-30T20:53:06Z
BUG: func 'to_pickle' and 'read_pickle' where not accepting URL GH30299
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index c288a008777cf..7c754effacdc3 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -797,7 +797,7 @@ I/O - Bug in :func:`read_json` where default encoding was not set to ``utf-8`` (:issue:`29565`) - Bug in ...
- [ ] closes #30298 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30302
2019-12-17T07:51:43Z
2019-12-17T07:52:57Z
null
2019-12-17T07:54:33Z
ENH: meth 'DataFrame.to_pickle' and func 'read_pickle' to accept URL GH#30163
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 5e39ca692746b..11a6f2628ac52 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -220,6 +220,8 @@ Other enhancements - The ``pandas.datetime`` class is now deprecated. Import from ``datetime`` instead (:i...
- [ ] closes #30163 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30301
2019-12-17T06:56:11Z
2020-01-09T13:16:26Z
2020-01-09T13:16:26Z
2020-01-10T04:10:38Z
BUG: Make :func:'read_pickle' and :func:'to_pickle' accept FilePathOrBuffer
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index c288a008777cf..2fa45eb1ba931 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -797,7 +797,7 @@ I/O - Bug in :func:`read_json` where default encoding was not set to ``utf-8`` (:issue:`29565`) - Bug in ...
- [ ] closes #30297 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30299
2019-12-17T06:23:45Z
2019-12-17T06:40:21Z
null
2019-12-17T06:55:18Z
BUG: :func:'read_pickle' and :func:'to_pickle' now accept URL and buf…
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index c288a008777cf..2fa45eb1ba931 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -797,7 +797,7 @@ I/O - Bug in :func:`read_json` where default encoding was not set to ``utf-8`` (:issue:`29565`) - Bug in ...
…fer as well as file path GH30163 - [ ] closes #30163 - [ ] tests passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30297
2019-12-17T05:33:41Z
2019-12-17T06:09:25Z
null
2019-12-17T06:09:25Z
JSON Support for parsing NaN, Infinity and -Infinity
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index b194f20c3c433..6a40f6b251bb5 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -216,6 +216,7 @@ Other enhancements (:meth:`~DataFrame.to_parquet` / :func:`read_parquet`) using the `'pyarrow'` engine ...
- [X] closes #12213 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Not sure if we totally want this but figured I'd give it a shot any way. `simplejson` and the stdlib by comparison would decode these values
https://api.github.com/repos/pandas-dev/pandas/pulls/30295
2019-12-17T04:50:17Z
2020-01-02T00:40:41Z
2020-01-02T00:40:41Z
2020-01-02T00:40:50Z
CLN: .format to f-string formatting in various files
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index 8f75d0381c1a6..9e74eb46f7b1f 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -462,6 +462,7 @@ def register_option(key: str, defval: object, doc="", validator=None, cb=None): cursor = _global_config msg = "Path pre...
- [ ] ref https://github.com/pandas-dev/pandas/issues/29547 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30294
2019-12-16T23:08:48Z
2019-12-17T16:49:40Z
2019-12-17T16:49:40Z
2019-12-17T16:49:46Z
test CI
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8c4f3740ef8fa..559cedd62e7ce 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -39,7 +39,7 @@ function invgrep { } if [[ "$GITHUB_ACTIONS" == "true" ]]; then - FLAKE8_FORMAT="##[error]%(path)s:%(row)s:%(col)s:%(code):%(text)s" + FLAKE8_FORMAT="#...
Debugging an issue noted in https://github.com/pandas-dev/pandas/pull/30139 and maybe in https://github.com/pandas-dev/pandas/pull/30245
https://api.github.com/repos/pandas-dev/pandas/pulls/30293
2019-12-16T22:33:15Z
2019-12-17T15:01:05Z
2019-12-17T15:01:05Z
2019-12-17T15:01:09Z
CLN: changed .format to f-string in pandas/core/dtypes
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 602d7d0da95e6..8e629896fdb7b 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -193,9 +193,7 @@ def ensure_python_int(value: Union[int, np.integer]) -> int: TypeError: if the value isn't an int or can't be ...
- [ ] ref #29547 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30287
2019-12-16T09:02:01Z
2019-12-18T23:08:54Z
2019-12-18T23:08:54Z
2019-12-18T23:09:26Z
ENH: Add StataWriter 118 for unicode support
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index e8663853b7684..aa342fc58b38a 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -221,8 +221,8 @@ Other enhancements - DataFrame constructor preserve `ExtensionArray` dtype with `ExtensionArray` (:issue:`...
Add StataWriter with unicode support - [X] closes #23573 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30285
2019-12-16T00:46:04Z
2019-12-31T21:05:42Z
2019-12-31T21:05:42Z
2020-07-28T14:41:35Z
BUG: DataFrame constructor raised ValueError with list-like data and …
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 539649df05046..7982dd70178e9 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -861,7 +861,7 @@ ExtensionArray - Bug in :class:`arrays.PandasArray` when setting a scalar string (:issue:`28118`, :issue...
…dtype specified - [ ] closes #30280 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30284
2019-12-15T23:47:35Z
2019-12-17T13:25:58Z
2019-12-17T13:25:57Z
2019-12-17T14:01:33Z
Replaced void pointers with Types in JSON Datetime Conversions
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 5d17d3a2d7bcb..9abcb8333b435 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -59,8 +59,8 @@ PyObject *cls_timedelta; npy_int64 get_nat(void) { return NPY_...
This also incorporates the clean up from #30271 Benchmarks show the following benefit, though most likely just noise: ```sh . before after ratio [04fce81f] [f8ed75d0] <stash~6^2> <json-dates> - 336±9ms 302±4ms 0.90 io.json.ToJSON.time_to_jso...
https://api.github.com/repos/pandas-dev/pandas/pulls/30283
2019-12-15T23:45:07Z
2019-12-24T17:27:47Z
2019-12-24T17:27:47Z
2019-12-24T17:28:50Z
solve "Int64 with null value mangles large-ish integers" problem
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index a49b29d691692..69a83ab3c0266 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1190,6 +1190,7 @@ ExtensionArray - Fixed bug where the constructor of :class:`DataFrame` with ``dtype='string'`` would fai...
- [x] closes #30268 - [ ] tests added/passed - [x] passes black pandas - [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff - [x] whatsnew entry The `pd.Series` was giving less precise output when inputting a list containing large integers and np.nan values and passing `dtype="Int64"`. Which was due...
https://api.github.com/repos/pandas-dev/pandas/pulls/30282
2019-12-15T14:29:59Z
2020-11-26T19:04:41Z
null
2020-11-26T19:04:42Z
Unhide plt, beginners don't know how to import it.
diff --git a/doc/source/getting_started/10min.rst b/doc/source/getting_started/10min.rst index 66e500131b316..003ac9f97e6c2 100644 --- a/doc/source/getting_started/10min.rst +++ b/doc/source/getting_started/10min.rst @@ -698,7 +698,6 @@ Plotting See the :ref:`Plotting <visualization>` docs. .. ipython:: python - ...
Alter https://github.com/pandas-dev/pandas/pull/30274. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30279
2019-12-15T01:53:52Z
2019-12-16T04:03:26Z
null
2019-12-16T04:03:26Z
STY: Replace .format() to fstrings
diff --git a/pandas/core/missing.py b/pandas/core/missing.py index 5b9e37bd54bad..b30a7a24f3495 100644 --- a/pandas/core/missing.py +++ b/pandas/core/missing.py @@ -88,10 +88,7 @@ def clean_fill_method(method, allow_nearest=False): valid_methods.append("nearest") expecting = "pad (ffill), backfill (bf...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry #29547
https://api.github.com/repos/pandas-dev/pandas/pulls/30278
2019-12-14T21:32:29Z
2019-12-18T09:57:19Z
2019-12-18T09:57:19Z
2019-12-18T09:57:32Z
[bug] don't remove timezone-awareness when using the method from Dat…
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 1253788d7ff27..faca744a8f92c 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -714,6 +714,7 @@ Datetimelike - Bug in :func:`pandas.to_datetime` failing for `deques` when using ``cache=True`` (the defau...
…aFrame - [x] closes #30238 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30277
2019-12-14T18:38:20Z
2019-12-24T14:58:53Z
2019-12-24T14:58:53Z
2019-12-24T16:08:38Z
DOC: Make pyplot import explicit in the 10 minutes to pandas page
diff --git a/doc/source/getting_started/10min.rst b/doc/source/getting_started/10min.rst index 66e500131b316..f2701df40f51b 100644 --- a/doc/source/getting_started/10min.rst +++ b/doc/source/getting_started/10min.rst @@ -15,6 +15,7 @@ Customarily, we import as follows: import numpy as np import pandas as pd +...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30274
2019-12-14T08:25:07Z
2019-12-26T12:44:29Z
null
2019-12-26T12:44:29Z
CLN: changed .format to f-string in pandas/core/indexes
diff --git a/pandas/core/indexes/accessors.py b/pandas/core/indexes/accessors.py index e8d2ba85e08a6..ae27aad3dda08 100644 --- a/pandas/core/indexes/accessors.py +++ b/pandas/core/indexes/accessors.py @@ -26,8 +26,8 @@ class Properties(PandasDelegate, PandasObject, NoNewAttributesMixin): def __init__(self, data, o...
towards #29547 - [ ] closes - [x] tests passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30273
2019-12-14T07:43:41Z
2019-12-15T12:35:23Z
2019-12-15T12:35:23Z
2019-12-15T12:39:43Z
Simplified objToJSON signatures
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 5d17d3a2d7bcb..99ba15f94e584 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -59,8 +59,7 @@ PyObject *cls_timedelta; npy_int64 get_nat(void) { return NPY_...
Pre-cursor to a change that splits datetime functions that return `char *` off from datetime functions that return int. Right now these are intermixed in functions that return void pointers, which makes type checking and grokking more difficult than they need to be
https://api.github.com/repos/pandas-dev/pandas/pulls/30271
2019-12-14T03:33:15Z
2019-12-15T17:40:01Z
null
2020-01-16T00:33:21Z
ENH: pass through schema keyword in to_parquet for pyarrow
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 6fd758abb1f33..17818118e587d 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -205,6 +205,8 @@ Other enhancements (:meth:`~DataFrame.to_parquet` / :func:`read_parquet`) using the `'pyarrow'` engine ...
- [X] closes #30189 - [x] tests added / passed - [X] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30270
2019-12-13T23:47:53Z
2019-12-18T10:39:32Z
2019-12-18T10:39:32Z
2019-12-18T10:39:46Z
Remove skiplist.pxd
diff --git a/pandas/_libs/skiplist.pxd b/pandas/_libs/skiplist.pxd deleted file mode 100644 index e827223bbe0a7..0000000000000 --- a/pandas/_libs/skiplist.pxd +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# See GH#27465 for reference on related-but-unused cython code - -cdef extern from "src/skiplist.h": - ...
Just placed header definitions where they are actually used follow up to #27465
https://api.github.com/repos/pandas-dev/pandas/pulls/30269
2019-12-13T22:55:08Z
2019-12-14T03:57:40Z
2019-12-14T03:57:40Z
2019-12-14T03:58:00Z
Made date time sources usage more explicit in setup.py
diff --git a/setup.py b/setup.py index 01d41ea5241f2..9a1a3a5848b66 100755 --- a/setup.py +++ b/setup.py @@ -549,17 +549,10 @@ def srcpath(name=None, suffix=".pyx", subdir="src"): klib_include = ["pandas/_libs/src/klib"] -np_datetime_headers = [ +tseries_depends = [ "pandas/_libs/tslibs/src/datetime/np_dateti...
Not sure this fully solves #30236 but doesn't hurt and makes things more explicit
https://api.github.com/repos/pandas-dev/pandas/pulls/30266
2019-12-13T22:08:24Z
2019-12-18T18:34:02Z
2019-12-18T18:34:02Z
2019-12-18T18:34:06Z
[WIP]: Indexing with BooleanArray propagates NA
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 743d45e1fa400..66c32e0a1b9c6 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -24,6 +24,7 @@ ) from pandas.core.dtypes.dtypes import register_extension_dtype from pandas.core.dtypes.generic import ABCDat...
This implements indexing a Series with a BooleanArray for some dtypes. NA values in the mask propagate. It's not clear that we want to propagate NAs. This required updating each EA's `__getitem__` to correctly propagate NA. Doing the same for ndarray-backed Series is possible, but will require some additional hac...
https://api.github.com/repos/pandas-dev/pandas/pulls/30265
2019-12-13T20:46:44Z
2019-12-16T21:40:46Z
null
2019-12-18T14:26:54Z
WIP/ERR: raise consistent errors for non-existent files
diff --git a/pandas/io/common.py b/pandas/io/common.py index a01011cd7d4e4..2ae996acbb079 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -3,6 +3,7 @@ import bz2 import codecs import csv +import errno import gzip from io import BufferedIOBase, BytesIO import mmap @@ -219,6 +220,9 @@ def get_filepath...
- [x] closes #29125 - [x] closes #13872 - [ ] closes #17918 <-- needs tests and double-checking - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref #29102 the json case is xfailed here.
https://api.github.com/repos/pandas-dev/pandas/pulls/30264
2019-12-13T20:42:47Z
2019-12-21T19:18:11Z
null
2021-11-20T23:21:55Z
CLN: Assorted cleanups
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 0de7a2e745531..b398a197a4bc0 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -244,13 +244,13 @@ def maybe_upcast_putmask(result: np.ndarray, mask: np.ndarray, other): necessary. mask : boolean ndarray ...
Many of these are broken off from #30035.
https://api.github.com/repos/pandas-dev/pandas/pulls/30260
2019-12-13T17:45:36Z
2019-12-15T21:43:42Z
2019-12-15T21:43:42Z
2019-12-16T01:04:30Z
CLN: more lgtm.com cleanups
diff --git a/pandas/core/arrays/_ranges.py b/pandas/core/arrays/_ranges.py index 2cae2c9250ea5..20e4cf70eddcf 100644 --- a/pandas/core/arrays/_ranges.py +++ b/pandas/core/arrays/_ranges.py @@ -179,7 +179,6 @@ def _generate_range_overflow_safe_signed( # watch out for very special case in which we just sligh...
https://api.github.com/repos/pandas-dev/pandas/pulls/30259
2019-12-13T17:03:49Z
2019-12-15T21:39:26Z
2019-12-15T21:39:26Z
2019-12-16T00:34:04Z
CLN: various lgtm.com cleanups
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index ef3d8cd53596b..14a3c3c008e92 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -320,7 +320,6 @@ def apply_series_generator(self) -> Tuple[ResType, "Index"]: series_gen = self.series_generator res_index = self.result_index -...
https://api.github.com/repos/pandas-dev/pandas/pulls/30258
2019-12-13T16:11:36Z
2019-12-15T21:46:17Z
2019-12-15T21:46:17Z
2019-12-16T00:33:55Z
DOC: .get_slice_bound in MultiIndex needs documentation.
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 05a4da28eb0a1..0908bc6209369 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1,7 +1,7 @@ from collections import OrderedDict import datetime from sys import getsizeof -from typing import List, Optional +fr...
- [x] closes #29967 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I'm not good at English. So if there are wrong sentences or awkward sentences, please let me know.
https://api.github.com/repos/pandas-dev/pandas/pulls/30257
2019-12-13T13:56:19Z
2020-01-01T17:27:21Z
2020-01-01T17:27:21Z
2020-06-17T11:31:50Z
CI: wrap ExcelFile.__del__ in try/except
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 7cb1309ae8d41..81d3d46f78bdb 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -903,5 +903,9 @@ def __exit__(self, exc_type, exc_value, traceback): self.close() def __del__(self): - # Ensure we don't leak...
Closes https://github.com/pandas-dev/pandas/issues/30217
https://api.github.com/repos/pandas-dev/pandas/pulls/30255
2019-12-13T10:08:40Z
2019-12-13T17:31:05Z
2019-12-13T17:31:05Z
2019-12-14T07:45:52Z
Make resample documentation better
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index cf2244b4df4d2..01bc989698259 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7708,6 +7708,8 @@ def resample( ---------- rule : DateOffset, Timedelta or str The offset string or object representing targ...
I removed the checkboxes because they were not relevant. This is a docstring update. I found the answer in https://stackoverflow.com/questions/17001389/pandas-resample-documentation but it should have been present in the docs
https://api.github.com/repos/pandas-dev/pandas/pulls/30252
2019-12-13T04:51:57Z
2020-01-03T13:07:54Z
null
2021-04-20T17:08:06Z
DEPR: change DataFrame.append default sort kwarg
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fa85c54eb42fa..66226d4ef0fe7 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6664,7 +6664,7 @@ def infer(x): # ---------------------------------------------------------------------- # Merging / joining methods - def append(se...
xref #20613 AFAICT this doesn't break any tests, was this supposed to have been changed along with the default in `concat` #29786 ?
https://api.github.com/repos/pandas-dev/pandas/pulls/30251
2019-12-13T01:15:27Z
2019-12-15T21:46:58Z
2019-12-15T21:46:58Z
2019-12-16T01:06:10Z
CLN : f-string instead of str.format() in pandas/utils and pandas/io/formats
diff --git a/pandas/io/formats/css.py b/pandas/io/formats/css.py index 6bc5f56bb5f7f..583dd49d4c66a 100644 --- a/pandas/io/formats/css.py +++ b/pandas/io/formats/css.py @@ -18,8 +18,7 @@ def expand(self, prop, value): mapping = self.SIDE_SHORTHANDS[len(tokens)] except KeyError: warnin...
- [x] ref #29547 and ref #30020 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I accidentally deleted the branch for #30230 which closed it, but I applied all the requested changes in this PR.
https://api.github.com/repos/pandas-dev/pandas/pulls/30250
2019-12-13T01:05:53Z
2019-12-13T13:17:24Z
2019-12-13T13:17:24Z
2019-12-14T16:02:35Z
TST: Fix apparent typo skip_if_no lxml->bs4
diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py index c34f2ebace683..39cbe843d1f2b 100644 --- a/pandas/tests/io/test_html.py +++ b/pandas/tests/io/test_html.py @@ -87,7 +87,7 @@ def test_same_ordering(datapath): @pytest.mark.parametrize( "flavor", [ - pytest.param("bs4", marks...
https://api.github.com/repos/pandas-dev/pandas/pulls/30249
2019-12-13T01:03:46Z
2019-12-13T13:31:34Z
2019-12-13T13:31:34Z
2019-12-13T15:28:11Z
CLN changed .format to f-string for test_converter.py, test_datetimel…
diff --git a/pandas/tests/plotting/test_converter.py b/pandas/tests/plotting/test_converter.py index fb9ad57626600..5cea4fb5acca0 100644 --- a/pandas/tests/plotting/test_converter.py +++ b/pandas/tests/plotting/test_converter.py @@ -268,7 +268,7 @@ def _assert_less(ts1, ts2): val1 = self.dtc.convert(ts1, N...
…ike.py, test_series.py #29547 https://github.com/pandas-dev/pandas/issues/29547 - [x] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30248
2019-12-12T23:11:53Z
2019-12-13T13:33:34Z
2019-12-13T13:33:33Z
2019-12-27T23:45:17Z
CLN: more consistent error message for ExtensionDtype.construct_from_string
diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py index bc7de0e2c4e1e..13748e03e856d 100644 --- a/pandas/core/arrays/numpy_.py +++ b/pandas/core/arrays/numpy_.py @@ -72,7 +72,12 @@ def _is_boolean(self): @classmethod def construct_from_string(cls, string): - return cls(np.dtype...
message check added to `test_construct_from_string` in `pandas/tests/extension/base/dtype.py` and error messages changed to be consistent with error message on class method in `pandas/core/dtypes/base.py` xref Provide ExtensionDtype.construct_from_string by default #26562
https://api.github.com/repos/pandas-dev/pandas/pulls/30247
2019-12-12T22:48:40Z
2019-12-13T13:32:35Z
2019-12-13T13:32:35Z
2019-12-13T14:28:49Z
ERR: stringify error message from parsers.pyx, closes #29233
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index adc7a650b745f..bb1493280dfd2 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -657,7 +657,7 @@ cdef class TextReader: if isinstance(source, str): encoding = sys.getfilesystemencoding() or "utf-8" - + ...
- [x] closes #29233 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30246
2019-12-12T21:51:36Z
2019-12-13T14:21:39Z
2019-12-13T14:21:39Z
2019-12-13T15:29:08Z
Implement NA.__array_ufunc__
diff --git a/doc/source/getting_started/dsintro.rst b/doc/source/getting_started/dsintro.rst index 82d4b5e34e4f8..8bd271815549d 100644 --- a/doc/source/getting_started/dsintro.rst +++ b/doc/source/getting_started/dsintro.rst @@ -676,11 +676,11 @@ similar to an ndarray: # only show the first 5 rows df[:5].T +....
This gives us consistent comparisons with NumPy scalars. I have a few implementation questions: 1. I wanted to reuse `maybe_dispatch_ufunc_to_dunder_op`. That was in `core/ops/dispatch.py`, but NA is defend in `_libs/missing.pyx`. For now I just moved it to `_libs/missing.pyx`, is there a better home for it? I do...
https://api.github.com/repos/pandas-dev/pandas/pulls/30245
2019-12-12T21:48:00Z
2020-01-05T20:43:08Z
2020-01-05T20:43:08Z
2020-01-05T20:43:25Z
TST: Add message checks to tests/arrays/sparse/
diff --git a/pandas/tests/arrays/sparse/test_array.py b/pandas/tests/arrays/sparse/test_array.py index 75a4f683e92d2..0aaf294378bf7 100644 --- a/pandas/tests/arrays/sparse/test_array.py +++ b/pandas/tests/arrays/sparse/test_array.py @@ -307,11 +307,12 @@ def test_take_filling(self): with pytest.raises(ValueErr...
- [ ] xref #23922 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30244
2019-12-12T21:44:36Z
2019-12-12T23:09:16Z
2019-12-12T23:09:16Z
2019-12-12T23:16:21Z
Remove yapf references
diff --git a/pandas/core/ops/methods.py b/pandas/core/ops/methods.py index 477c847fb01e6..8c66eea270c76 100644 --- a/pandas/core/ops/methods.py +++ b/pandas/core/ops/methods.py @@ -162,7 +162,6 @@ def _create_methods(cls, arith_method, comp_method, bool_method, special): have_divmod = issubclass(cls, ABCSeries) ...
I'm not aware that we actually use this
https://api.github.com/repos/pandas-dev/pandas/pulls/30243
2019-12-12T21:19:44Z
2019-12-13T13:29:30Z
2019-12-13T13:29:30Z
2020-01-16T00:33:18Z
TST: Add message checks to tests/arrays/categorical/
diff --git a/pandas/tests/arrays/categorical/test_algos.py b/pandas/tests/arrays/categorical/test_algos.py index da142fa0bd63c..870a0a5db175e 100644 --- a/pandas/tests/arrays/categorical/test_algos.py +++ b/pandas/tests/arrays/categorical/test_algos.py @@ -60,17 +60,21 @@ def test_isin_cats(): @pytest.mark.paramet...
- [ ] xref #23922 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30242
2019-12-12T21:00:04Z
2019-12-15T21:35:54Z
2019-12-15T21:35:54Z
2019-12-16T00:35:03Z
BUG: to_datetime with unit with Int64
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 3810ab37822cc..3f944b8862417 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -796,6 +796,7 @@ Datetimelike - Bug in :meth:`DataFrame.append` would remove the timezone-awareness of new data (:issue:`30...
- [X] closes #30050 - [X] tests added 1 / passed 1 - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Test output: ``` $ py.test pandas/tests/tools/test_datetime.py ============================= test session starts ============================...
https://api.github.com/repos/pandas-dev/pandas/pulls/30241
2019-12-12T20:01:05Z
2020-01-02T20:38:41Z
2020-01-02T20:38:41Z
2020-01-03T06:14:23Z
REF: dont set self.data in pytables take_data
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index fe34f009165ac..18c2a761277f1 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1994,9 +1994,8 @@ def convert(self, values: np.ndarray, nan_rep, encoding: str, errors: str): self.values = new_pd_index def take_data(self): -...
https://api.github.com/repos/pandas-dev/pandas/pulls/30240
2019-12-12T19:24:41Z
2019-12-12T20:42:33Z
2019-12-12T20:42:33Z
2019-12-12T20:56:36Z
API: Return BoolArray for string ops when backed by StringArray
diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst index 072871f89bdae..032d51c5a388f 100644 --- a/doc/source/user_guide/text.rst +++ b/doc/source/user_guide/text.rst @@ -74,6 +74,7 @@ These are places where the behavior of ``StringDtype`` objects differ from l. For ``StringDtype``, :ref:`str...
ref https://github.com/pandas-dev/pandas/issues/29556
https://api.github.com/repos/pandas-dev/pandas/pulls/30239
2019-12-12T17:04:50Z
2019-12-19T17:09:21Z
2019-12-19T17:09:21Z
2019-12-19T17:28:38Z
Removed parallel CI
diff --git a/ci/setup_env.sh b/ci/setup_env.sh index a58dbe09dec01..3d79c0cfd7000 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -121,7 +121,7 @@ conda list pandas # Make sure any error below is reported as such echo "[Build extensions]" -python setup.py build_ext -q -i -j4 +python setup.py build_ext -q -i ...
I think this was responsible for some of the Py36 failures showing up in CI this morning, so reverting this piece for now (can still locally use parallel build_ext) until investigated further
https://api.github.com/repos/pandas-dev/pandas/pulls/30237
2019-12-12T16:24:41Z
2019-12-12T17:07:48Z
2019-12-12T17:07:48Z
2019-12-12T17:07:51Z
DOC: Add MultiIndex.get_locs to generated reference
diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst index ec485675771c4..ab6ea5aea6c61 100644 --- a/doc/source/reference/indexing.rst +++ b/doc/source/reference/indexing.rst @@ -313,6 +313,7 @@ MultiIndex selecting :toctree: api/ MultiIndex.get_loc + MultiIndex.get_locs Mu...
This should fix the failing CI, see https://github.com/pandas-dev/pandas/pull/30226 CLoses #30235
https://api.github.com/repos/pandas-dev/pandas/pulls/30234
2019-12-12T15:57:44Z
2019-12-12T17:39:53Z
2019-12-12T17:39:52Z
2019-12-12T19:26:35Z
CI: restore npdev build
diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index b5ebb79b0f1ab..55f80bf644ecc 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -44,15 +44,13 @@ jobs: PATTERN: "not slow and not network" LOCALE_OVERRIDE: "zh_CN.UTF-8" - # Disabled for NumPy object-dtype warning. - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30233
2019-12-12T15:45:25Z
2019-12-12T21:10:53Z
2019-12-12T21:10:53Z
2019-12-12T21:13:13Z
StringArray comparisions return BooleanArray
diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst index 072871f89bdae..ff0474dbecbb4 100644 --- a/doc/source/user_guide/text.rst +++ b/doc/source/user_guide/text.rst @@ -94,7 +94,11 @@ l. For ``StringDtype``, :ref:`string accessor methods<api.series.str>` 2. Some string methods, like :meth:`...
xref https://github.com/pandas-dev/pandas/issues/29556 cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/30231
2019-12-12T15:14:37Z
2019-12-18T08:30:27Z
2019-12-18T08:30:27Z
2019-12-18T08:30:33Z
CLN: replace str.format() in pandas/io/formats
diff --git a/pandas/io/formats/css.py b/pandas/io/formats/css.py index 6bc5f56bb5f7f..fd7cbc2c7d822 100644 --- a/pandas/io/formats/css.py +++ b/pandas/io/formats/css.py @@ -17,10 +17,7 @@ def expand(self, prop, value): try: mapping = self.SIDE_SHORTHANDS[len(tokens)] except KeyError: - ...
- [x] ref #29547 and ref #30020 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30230
2019-12-12T14:51:02Z
2019-12-13T00:37:39Z
null
2019-12-13T00:37:40Z
Groupby crash on a single level
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst old mode 100644 new mode 100755 index d0dc3f58379a0..0f0d86e271061 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -824,7 +824,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.rolling().quantile()` i...
- [/] closes #30208 - [/] tests added / passed - [/] passes `black pandas` - [/] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30229
2019-12-12T14:24:54Z
2019-12-13T17:06:38Z
2019-12-13T17:06:37Z
2019-12-13T17:06:45Z
BUG: min/max on empty categorical fails
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 29060a93923eb..d4f58ec3086b0 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -667,6 +667,7 @@ Categorical same type as if one used the :meth:`.str.` / :meth:`.dt.` on a :class:`Series` of that type....
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Currently on master, the following fails: ```python import pandas as pd # Empty Dataframe df = pd.DataFrame({ "cat": pd.Categorical([], categories=list("ABC")...
https://api.github.com/repos/pandas-dev/pandas/pulls/30227
2019-12-12T11:35:26Z
2019-12-17T15:52:19Z
2019-12-17T15:52:19Z
2019-12-18T07:15:23Z
DOC: Documentation for MultiIndex.get_locs() is missing in v0.25 docs
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index cffd1e99b37f3..57c7cd2df81c1 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -191,6 +191,7 @@ class MultiIndex(Index): swaplevel reorder_levels remove_unused_levels + get_locs See Also...
Like a comment in #30056. I add "get_locs" to method - [ ] closes #30056 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30226
2019-12-12T11:29:20Z
2019-12-12T11:55:03Z
2019-12-12T11:55:02Z
2019-12-12T15:57:30Z
BUG: loc-indexing with a slice on a CategoricalIndex
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 29060a93923eb..8539bca231511 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -743,7 +743,7 @@ Indexing - Fix assignment of column via `.loc` with numpy non-ns datetime type (:issue:`27395`) - Bug in ...
- [x] followup to #29922 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry #29922 didn't handle loc-indexing using a slice on non-string CategoricalIndexes. This fixes that. E.g. we had: ```python >>> cat_idx = pd....
https://api.github.com/repos/pandas-dev/pandas/pulls/30225
2019-12-12T10:12:01Z
2019-12-12T13:39:54Z
2019-12-12T13:39:53Z
2019-12-12T15:04:22Z
CLN: changed .format to f string in construction.py, dtypes/base.py, and dtypes/cast.py
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index c7dec9e1234d2..a6c489b95952f 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -265,8 +265,8 @@ def array( ) if lib.is_scalar(data): - msg = "Cannot pass scalar '{}' to 'pandas.array'." - r...
- [X] ref [#29547](https://github.com/pandas-dev/pandas/issues/29547) - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30223
2019-12-12T08:10:25Z
2019-12-12T13:14:12Z
2019-12-12T13:14:11Z
2019-12-12T13:14:15Z
TST: tests for needs-test issues
diff --git a/pandas/tests/frame/test_axis_select_reindex.py b/pandas/tests/frame/test_axis_select_reindex.py index 16dfae847e0eb..d6ef3a7600abb 100644 --- a/pandas/tests/frame/test_axis_select_reindex.py +++ b/pandas/tests/frame/test_axis_select_reindex.py @@ -929,6 +929,14 @@ def test_filter_corner(self): res...
- [x] closes #5798 - [x] closes #6795 - [x] closes #9752 - [x] closes #11220 - [x] closes #13000 - [x] closes #15286 - [x] closes #17198 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30222
2019-12-12T01:06:29Z
2019-12-12T21:05:10Z
2019-12-12T21:05:08Z
2019-12-12T23:01:17Z
CLN: remove keep_null_freq in ops
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index f3c01efed6d43..ffa38cbc3d658 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -462,7 +462,8 @@ def wrapper(left, right): res_name = get_op_result_name(left, right) lvalues = extract_array(left, ...
This cleanup is viable now that integer-addition has been disallowed for dt64/td64.
https://api.github.com/repos/pandas-dev/pandas/pulls/30221
2019-12-12T00:11:20Z
2019-12-12T23:08:45Z
2019-12-12T23:08:45Z
2019-12-12T23:36:59Z
CLN: no need for mixin, move non-index timedelta arithmetic test
diff --git a/pandas/tests/indexes/test_frozen.py b/pandas/tests/indexes/test_frozen.py index 40f69ee868a90..2e53e29c3fab1 100644 --- a/pandas/tests/indexes/test_frozen.py +++ b/pandas/tests/indexes/test_frozen.py @@ -5,14 +5,20 @@ from pandas.core.indexes.frozen import FrozenList -class CheckImmutableMixin: - m...
https://api.github.com/repos/pandas-dev/pandas/pulls/30220
2019-12-11T23:29:13Z
2019-12-13T14:09:10Z
2019-12-13T14:09:10Z
2019-12-13T15:30:43Z
DEPR: deprecate label kwarg to lreshape, closes #29742
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 29060a93923eb..eb642a178bb4e 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -490,6 +490,7 @@ Deprecations - :func:`eval` keyword argument "truediv" is deprecated and will be removed in a future versi...
- [x] closes #29742 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30219
2019-12-11T22:17:45Z
2019-12-12T13:10:42Z
2019-12-12T13:10:42Z
2019-12-12T15:31:49Z
STY: Replace .format() to fstrings and %r to repr()
diff --git a/LICENSES/MSGPACK_LICENSE b/LICENSES/MSGPACK_LICENSE deleted file mode 100644 index ae1b0f2f32f06..0000000000000 --- a/LICENSES/MSGPACK_LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (C) 2008-2011 INADA Naoki <songofacandy@gmail.com> - - Licensed under the Apache License, Version 2.0 (the "License"); -...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry #29886
https://api.github.com/repos/pandas-dev/pandas/pulls/30216
2019-12-11T19:33:17Z
2019-12-13T19:14:32Z
null
2019-12-13T19:26:02Z
[Doc Fix] Fix typo from Jupyter Notebook to Jupyter Lab in Ecosystem Doc.
diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md index af6fd1ac77605..60f4f40b8bb98 100644 --- a/web/pandas/community/ecosystem.md +++ b/web/pandas/community/ecosystem.md @@ -137,7 +137,7 @@ attributes like DataFrame columns. ### [Jupyter Notebook / Jupyter Lab](https://jupyter.org)...
I saw this typo in the [doc](https://pandas.pydata.org/pandas-docs/stable/ecosystem.html#jupyter-notebook-jupyter-lab). Decided to create a PR for it. ;)
https://api.github.com/repos/pandas-dev/pandas/pulls/30215
2019-12-11T18:53:37Z
2019-12-25T20:07:19Z
null
2019-12-25T20:07:19Z
Parallelized Build / CI
diff --git a/ci/setup_env.sh b/ci/setup_env.sh index 3d79c0cfd7000..a58dbe09dec01 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -121,7 +121,7 @@ conda list pandas # Make sure any error below is reported as such echo "[Build extensions]" -python setup.py build_ext -q -i +python setup.py build_ext -q -i -j4 ...
Modeled after https://github.com/cython/cython/pull/3187 which in 0.29.14 added parallel support A very slight boost to timing from a clean directory (bottleneck is in the Cythonize calls in both cases) ```sh # Master $ time python setup.py build_ext --inplace -j 4 : 62.93s user 3.18s system 97% cpu 1:07.77 t...
https://api.github.com/repos/pandas-dev/pandas/pulls/30214
2019-12-11T17:39:00Z
2019-12-12T13:42:32Z
2019-12-12T13:42:32Z
2019-12-19T20:06:48Z
ENH: Support string arguments for partition_cols in pandas.to_parquet
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 29060a93923eb..4f4ace502d443 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -204,6 +204,7 @@ Other enhancements - Roundtripping DataFrames with nullable integer or string data types to parquet (:m...
- [x] closes #27117 - [x] tests added - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30213
2019-12-11T17:25:45Z
2019-12-14T07:59:16Z
2019-12-14T07:59:15Z
2019-12-14T07:59:26Z
Fix IntegerArray pow for special cases
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index d0dc3f58379a0..9814f92e0739b 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -869,7 +869,8 @@ Other - Bug in :meth:`DataFrame.append` that raised ``IndexError`` when appending with empty list (:issue:...
Split from #29964 Only https://github.com/pandas-dev/pandas/commit/9e5a69c3a32aad746ef3df29e43df352f4551f4d is relevant. The rest is https://github.com/pandas-dev/pandas/pull/30183, but pushing this up now.
https://api.github.com/repos/pandas-dev/pandas/pulls/30210
2019-12-11T16:11:20Z
2019-12-14T07:55:29Z
2019-12-14T07:55:28Z
2019-12-14T07:55:29Z
ENH: show percentiles in timestamp describe (#30164)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 8133e54c934ad..905348fd6db42 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -21,6 +21,17 @@ Other enhancements - - +.. --------------------------------------------------------------------------- +...
closes https://github.com/pandas-dev/pandas/issues/30164 When creating a pandas Series of timestamps and calling `describe` on it, it will not show the percentiles of the data, even if these are specified as arguments (`s.describe(percentiles = [0.25, 0.5, 0.75])`). This PR solves the issue by introducing a new d...
https://api.github.com/repos/pandas-dev/pandas/pulls/30209
2019-12-11T13:27:36Z
2020-01-20T23:37:56Z
2020-01-20T23:37:56Z
2020-01-20T23:38:33Z
PERF: Fix performance regression in infer_dtype
diff --git a/asv_bench/benchmarks/dtypes.py b/asv_bench/benchmarks/dtypes.py index 24cc1c6f9fa70..bd17b710b108d 100644 --- a/asv_bench/benchmarks/dtypes.py +++ b/asv_bench/benchmarks/dtypes.py @@ -5,6 +5,7 @@ from .pandas_vb_common import ( datetime_dtypes, extension_dtypes, + lib, numeric_dtypes, ...
Fixes major performance regression in `infer_dtype` introduced in aaaac86ee019675119cb0ae9c3fb7a2b7eef9959 - [x] closes #28814 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30202
2019-12-11T06:34:54Z
2019-12-23T17:02:23Z
2019-12-23T17:02:23Z
2019-12-23T17:02:37Z
Cleaned Up setup.py includes
diff --git a/setup.py b/setup.py index 618cad331c25a..01d41ea5241f2 100755 --- a/setup.py +++ b/setup.py @@ -545,12 +545,10 @@ def srcpath(name=None, suffix=".pyx", subdir="src"): return pjoin("pandas", subdir, name + suffix) -common_include = ["pandas/_libs/src/klib", "pandas/_libs/src"] -ts_include = ["panda...
Looking to make these more explicit and remove where not required
https://api.github.com/repos/pandas-dev/pandas/pulls/30201
2019-12-11T04:57:52Z
2019-12-12T21:07:17Z
2019-12-12T21:07:17Z
2019-12-12T21:07:21Z