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: IntervalIndex.equals defer to IntervalArray.equals
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 4d13a18c8ef0b..95a003efbe1d0 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -8,7 +8,9 @@ from pandas.util._decorators import cache_readonly, doc from pandas.util._validators import validate_fillna_kwarg...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Small behavior change in that `interval_index.equals(series[interval])` will now return False, matching other Index subclasses.
https://api.github.com/repos/pandas-dev/pandas/pulls/36871
2020-10-04T23:34:49Z
2020-10-06T22:52:57Z
2020-10-06T22:52:57Z
2020-10-06T23:10:30Z
TST: xfailed arithmetic tests
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index a269580bc4453..f0840ac3d2aea 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -333,6 +333,7 @@ Numeric - Bug in :class:`Series` where two :class:`Series` each have a :class:`DatetimeIndex` with differe...
- [ ] 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/36870
2020-10-04T22:56:03Z
2020-10-06T22:06:03Z
2020-10-06T22:06:03Z
2020-10-06T22:07:35Z
DOC: Distinguish between different types of boolean indexing #10492
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 530fdfba7d12c..2bc7e13e39ec4 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -933,6 +933,24 @@ and :ref:`Advanced Indexing <advanced>` you may select along more than one axis df2....
- [x] closes #10492 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/36869
2020-10-04T21:00:55Z
2020-10-08T01:23:14Z
2020-10-08T01:23:14Z
2020-10-15T06:09:22Z
BUG: df.replace over pd.Period columns (#34871)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 28f7df98cb86b..d56f3c978384c 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -562,6 +562,8 @@ Strings Interval ^^^^^^^^ + +- Bug in :meth:`DataFrame.replace` and :meth:`Series.replace` where :class...
- [x] closes #34871 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This commit ensures that PeriodArrays return False for _can_hold_element for any element that is not a pd.Period. This prevents upstream code from c...
https://api.github.com/repos/pandas-dev/pandas/pulls/36867
2020-10-04T19:01:03Z
2020-11-17T01:17:29Z
2020-11-17T01:17:29Z
2020-11-17T01:31:42Z
TST: insert 'match' to bare pytest raises in pandas/tests/tseries/off…
diff --git a/pandas/tests/tseries/offsets/test_offsets.py b/pandas/tests/tseries/offsets/test_offsets.py index 35fef0637dc76..6a87c05384689 100644 --- a/pandas/tests/tseries/offsets/test_offsets.py +++ b/pandas/tests/tseries/offsets/test_offsets.py @@ -266,9 +266,10 @@ class TestCommon(Base): def test_immutable(se...
…sets/test_offsets.py - [ ] ref https://github.com/pandas-dev/pandas/issues/30999 - [ ] 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/36865
2020-10-04T18:27:10Z
2020-10-11T19:21:27Z
2020-10-11T19:21:27Z
2020-10-11T19:21:32Z
CI: Update error message for np_dev
diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py index 1fafdf00393e1..fbdac2bb2d8e8 100644 --- a/pandas/tests/series/indexing/test_indexing.py +++ b/pandas/tests/series/indexing/test_indexing.py @@ -367,14 +367,17 @@ def test_2d_to_1d_assignment_raises(): x...
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=44153&view=logs&jobId=eab14f69-13b6-5db7-daeb-7b778629410b&j=eab14f69-13b6-5db7-daeb-7b778629410b&t=ce687173-08c6-5301-838d-71b2dda24510
https://api.github.com/repos/pandas-dev/pandas/pulls/36864
2020-10-04T18:20:23Z
2020-10-04T22:41:02Z
2020-10-04T22:41:02Z
2020-10-05T10:47:02Z
CI: Show ipython directive errors
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 149acef72db26..46de8d466dd11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,7 +125,7 @@ jobs: # This can be removed when the ipython directive fails when there are errors, # including the `tee sphinx.log` in t...
Current output of ipython directive errors in CI is essentially a blank line, so adding a bit more to try to show what error is happening. ``` (pandas-dev) ➜ ~ grep -B1 "^<<<-------------------------------------------------------------------------$" sphinx.log <<<--------------------------------------------------...
https://api.github.com/repos/pandas-dev/pandas/pulls/36863
2020-10-04T17:29:04Z
2020-10-06T00:06:59Z
2020-10-06T00:06:59Z
2020-10-06T00:07:04Z
DOC: make return type documentation of series methods consistent #35409
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 1a8861af10ed1..8dc5e6c0ff2aa 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -723,8 +723,8 @@ def as_ordered(self, inplace=False): Returns ------- - Categorical -...
- [x] closes #35409 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/36862
2020-10-04T16:49:03Z
2020-10-10T19:41:57Z
2020-10-10T19:41:57Z
2020-10-15T06:09:08Z
REF/CLN: pandas/io/pytables.py
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index a3d6975c00a95..3e3330fa4378f 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -2,12 +2,24 @@ High level interface to PyTables for reading and writing pandas data structures to disk """ +from contextlib import suppress import copy fro...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Clean-up and minor refactor of ``pandas/io/pytables.py``. - Extract method ``_identify_group`` - Clean-up some docstrings (spacing) - Use suppress...
https://api.github.com/repos/pandas-dev/pandas/pulls/36859
2020-10-04T16:17:03Z
2020-10-06T22:44:23Z
2020-10-06T22:44:23Z
2020-10-07T09:44:10Z
DOC: doc/source/whatsnew
diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst index 443250592a4a7..aa2749c85a232 100644 --- a/doc/source/whatsnew/v0.10.0.rst +++ b/doc/source/whatsnew/v0.10.0.rst @@ -49,8 +49,8 @@ talking about: :okwarning: import pandas as pd - df = pd.DataFrame(np.random.randn(6, 4), - ...
- [x] xref #36777 - [ ] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36857
2020-10-04T10:13:38Z
2020-10-05T12:58:10Z
2020-10-05T12:58:10Z
2020-10-06T08:15:18Z
DOC: blacken-docs doc/source/ecosystem.rst
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index ed6ce7e9759b6..4086f64817568 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -170,7 +170,9 @@ invoked with the following command .. code:: python - import dtale; dtale.show(df) + import dtale + + dtale.show(df) ...
- [x] xref #36777 - [ ] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36856
2020-10-04T09:41:10Z
2020-10-04T11:45:43Z
2020-10-04T11:45:43Z
2020-10-04T11:45:52Z
TYP: update setup.cfg
diff --git a/setup.cfg b/setup.cfg index 73986f692b6cd..48948e0d754c9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -207,9 +207,6 @@ check_untyped_defs=False [mypy-pandas.core.indexes.multi] check_untyped_defs=False -[mypy-pandas.core.indexes.period] -check_untyped_defs=False - [mypy-pandas.core.indexes.range] check_...
https://api.github.com/repos/pandas-dev/pandas/pulls/36854
2020-10-04T08:35:04Z
2020-10-04T22:39:46Z
2020-10-04T22:39:46Z
2020-10-05T09:36:00Z
REF/CLN: pandas/io/parsers.py
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 63c3f9899d915..866854ff1fe33 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -606,7 +606,7 @@ def read_csv( del kwds["filepath_or_buffer"] del kwds["sep"] - kwds_defaults = _check_defaults_read( + kwds_defaults = _refine_de...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Refactor/cleanup ``pandas/io/parsers.py`` - Extract method _refresh_kwargs_based_on_dialect - Extract method _validate_skipfooter - Drop local var...
https://api.github.com/repos/pandas-dev/pandas/pulls/36852
2020-10-04T07:17:43Z
2020-10-14T17:54:46Z
2020-10-14T17:54:46Z
2020-10-22T07:31:10Z
DOC: Standardize references to pandas in the documentation for #32316
diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst index 387f65ea583a0..5aa1c1099d6e0 100644 --- a/doc/source/development/code_style.rst +++ b/doc/source/development/code_style.rst @@ -9,7 +9,7 @@ pandas code style guide .. contents:: Table of contents: :local: -*pandas* f...
Standardize references to pandas in the documentation for #32316
https://api.github.com/repos/pandas-dev/pandas/pulls/36851
2020-10-04T05:49:02Z
2020-10-04T21:05:48Z
null
2020-10-04T21:05:49Z
DOC: black enhancingperf.rst and 10min.rst code style
diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst index 673f8689736f1..8270b2ee49bd8 100644 --- a/doc/source/user_guide/10min.rst +++ b/doc/source/user_guide/10min.rst @@ -34,9 +34,9 @@ and labeled columns: .. ipython:: python - dates = pd.date_range('20130101', periods=6) + dates ...
ref #36777
https://api.github.com/repos/pandas-dev/pandas/pulls/36849
2020-10-04T04:38:34Z
2020-10-04T17:39:24Z
2020-10-04T17:39:24Z
2020-10-05T05:57:39Z
REF: IndexOpsMixin wrapping
diff --git a/pandas/core/base.py b/pandas/core/base.py index 24bbd28ddc421..1063e742e38c8 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -4,7 +4,7 @@ import builtins import textwrap -from typing import Any, Callable, Dict, FrozenSet, List, Optional, Union, cast +from typing import Any, Callable, Dict...
- [ ] 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/36848
2020-10-04T02:54:10Z
2020-10-08T20:46:38Z
2020-10-08T20:46:38Z
2020-10-08T21:19:55Z
CI: pin pymysql #36465
diff --git a/ci/deps/travis-37-cov.yaml b/ci/deps/travis-37-cov.yaml index 7d5104a58ce83..c89b42ef06a2e 100644 --- a/ci/deps/travis-37-cov.yaml +++ b/ci/deps/travis-37-cov.yaml @@ -32,7 +32,7 @@ dependencies: - google-cloud-bigquery>=1.27.2 # GH 36436 - psycopg2 - pyarrow>=0.15.0 - - pymysql=0.7.11 + - pymys...
Part of #36465
https://api.github.com/repos/pandas-dev/pandas/pulls/36847
2020-10-04T02:51:52Z
2020-10-10T16:24:07Z
2020-10-10T16:24:06Z
2020-10-10T21:32:25Z
Update documentation
diff --git a/README.md b/README.md index a2f2f1c04442a..4ab684f36c054 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ ## What is it? -**pandas** is a Python package that provides fast, flexible, and expressive data +**Pandas** is a Python package that provides fast, flexible, and expressive data structur...
Capitalization error
https://api.github.com/repos/pandas-dev/pandas/pulls/36846
2020-10-04T02:40:08Z
2020-10-04T03:18:12Z
null
2020-10-04T03:18:19Z
DOC: normalize usage of word "pandas"
diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst index 387f65ea583a0..5aa1c1099d6e0 100644 --- a/doc/source/development/code_style.rst +++ b/doc/source/development/code_style.rst @@ -9,7 +9,7 @@ pandas code style guide .. contents:: Table of contents: :local: -*pandas* f...
changes references to the library, pandas, to match the standard lowercase spelling. This changes applicable `.rst` files under the `doc/source` path. References such as Pandas, **pandas**, *pandas*, and ``pandas`` have been replaced with pandas. - [x] closes #32316 - [x] tests added / passed - [x] passes `bla...
https://api.github.com/repos/pandas-dev/pandas/pulls/36845
2020-10-04T00:34:52Z
2020-10-04T20:13:32Z
2020-10-04T20:13:32Z
2020-10-04T23:16:35Z
DOC: Typo fix
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 77a1fef28f373..12dd72f761408 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -793,7 +793,7 @@ "source": [ "The next option you have are \"table styles\".\n", "These are styles...
Noticed a minor typo when using the docs
https://api.github.com/repos/pandas-dev/pandas/pulls/36844
2020-10-04T00:09:36Z
2020-10-04T03:27:50Z
2020-10-04T03:27:50Z
2020-10-04T03:27:58Z
REF: separate flex from non-flex DataFrame ops
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 2f462b16ddf78..ae84ad08270f6 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -362,6 +362,7 @@ Numeric - Bug in :class:`Series` flex arithmetic methods where the result when operating with a ``list``, ...
- [x] closes #36796 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Unless supporting this is intentional, in which case we should deprecate and explicitly implement flex-bool operations. If/when this is done, we ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36843
2020-10-03T23:42:40Z
2020-10-10T22:27:19Z
2020-10-10T22:27:19Z
2020-10-10T22:45:58Z
BUG: Groupy dropped nan groups from result when grouping over single column
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 7c850ffedfcab..1cb8710799d30 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -519,6 +519,7 @@ Groupby/resample/rolling - Using :meth:`Rolling.var()` instead of :meth:`Rolling.std()` avoids numerical i...
- [x] closes #35646 - [x] closes #35542 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry When grouping over 2 columns with only ``nans`` this raised an error previously. Realised this, when running tests for my fix, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36842
2020-10-03T23:31:55Z
2020-11-04T02:59:03Z
2020-11-04T02:59:03Z
2020-11-04T21:12:38Z
TST: Verify parsing of data with encoded special characters (16218)
diff --git a/pandas/tests/io/parser/test_encoding.py b/pandas/tests/io/parser/test_encoding.py index f23b498c7388a..876696ecdad9c 100644 --- a/pandas/tests/io/parser/test_encoding.py +++ b/pandas/tests/io/parser/test_encoding.py @@ -10,7 +10,7 @@ import numpy as np import pytest -from pandas import DataFrame +from ...
- [x] closes #16218 - [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/36841
2020-10-03T22:23:18Z
2020-10-12T06:38:30Z
2020-10-12T06:38:30Z
2020-10-12T06:38:38Z
PERF: Index._shallow_copy shares _cache with copies of self
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 47ebd962b367c..81e310a2c44f1 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -285,6 +285,8 @@ Performance improvements - ``Styler`` uuid method altered to compress data transmission over web whilst ma...
#32640 copied the cache when copying indexes. Indexes are immutable, so some refactoring allows us to __share__ the cache instead. This means potentially fewer expensive index ops. ```python >>> idx = pd.CategoricalIndex(np.arange(100_000)) >>> copied = idx.copy() >>> copied._cache {} >>> idx.get_loc(99_999) >...
https://api.github.com/repos/pandas-dev/pandas/pulls/36840
2020-10-03T22:20:37Z
2020-10-06T15:33:14Z
2020-10-06T15:33:14Z
2020-11-28T18:25:04Z
PERF: Add asv benchmarks for select_dtypes (14588)
diff --git a/asv_bench/benchmarks/dtypes.py b/asv_bench/benchmarks/dtypes.py index bd17b710b108d..a5ed5c389fee4 100644 --- a/asv_bench/benchmarks/dtypes.py +++ b/asv_bench/benchmarks/dtypes.py @@ -1,5 +1,9 @@ +import string + import numpy as np +from pandas import DataFrame +import pandas._testing as tm from pandas...
- [x] closes #14588 - [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/36839
2020-10-03T20:31:48Z
2020-10-05T17:41:30Z
2020-10-05T17:41:30Z
2020-10-05T17:41:34Z
DEPR: Deprecate use of strings denoting units with 'M', 'Y' or 'y' in pd.to_timedelta (36666)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index d10cb28a3f588..4e0c1ae01fdf3 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -336,6 +336,7 @@ Deprecations - :meth:`Rolling.count` with ``min_periods=None`` will default to the size of the window in a...
- [x] closes #36666 - [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/36838
2020-10-03T17:35:09Z
2020-10-31T18:52:07Z
2020-10-31T18:52:07Z
2020-10-31T18:52:13Z
DOC: Update docs on estimated time of running full asv suite (36344)
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index d6955c5d4b8d2..e96da41918259 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -1362,16 +1362,16 @@ environments. If you want to use virtualenv instead, write:: The `...
- [x] closes #36344 - [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/36836
2020-10-03T15:32:45Z
2020-10-08T00:59:25Z
2020-10-08T00:59:25Z
2020-10-08T00:59:47Z
DOC: update code style for remaining intro tutorial docs for #36777 computation.rst
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index e7edda90610b5..46531de2fd763 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -64,7 +64,7 @@ series in the DataFrame, also excluding NA/null values. .. ipython:: python ...
…omputation.rst #36832 - [ ] 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/36835
2020-10-03T14:12:21Z
2020-10-03T14:59:04Z
null
2020-10-03T14:59:04Z
Fix/empty string datetimelike conversion/issue 36550
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index b1b38505b9476..b7229c8f56080 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -485,7 +485,16 @@ cpdef array_to_datetime( # string seen_string = True - if len(val) == 0 or ...
- [x] xref #36550 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry # Empty string conversion The actual comportment of Timedelta, Timestamp and to_datetime is to return NaT. ```python import pandas as pd pd.to_d...
https://api.github.com/repos/pandas-dev/pandas/pulls/36834
2020-10-03T13:57:31Z
2020-11-27T18:47:26Z
null
2020-11-27T18:47:26Z
REF: NDFrame describe
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 24c1ae971686e..b0b60fea2bf27 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -55,11 +55,7 @@ from pandas.compat.numpy import function as nv from pandas.errors import AbstractMethodError, InvalidIndexError from pandas.util._decorat...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Refactor ``NDFrame.describe`` method. - Create module ``pandas/io/formats/describe.py`` - Delegate ``NDFrame.describe`` to function ``describe_nd...
https://api.github.com/repos/pandas-dev/pandas/pulls/36833
2020-10-03T12:31:44Z
2020-12-29T20:46:38Z
null
2021-01-11T12:27:21Z
DOC: update code style for remaining intro tutorial docs for #36777 computation.rst
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index e7edda90610b5..0f323f7796433 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -64,7 +64,7 @@ series in the DataFrame, also excluding NA/null values. .. ipython:: python ...
update code style computation.rst for #36777
https://api.github.com/repos/pandas-dev/pandas/pulls/36832
2020-10-03T12:01:16Z
2020-10-03T14:00:50Z
null
2020-10-03T14:00:50Z
DOC: reformat doc groupby.rst
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 9696f14f03b56..ec64442319a84 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -677,7 +677,7 @@ and unpack the keyword arguments animals.groupby("kind").agg( **{ - "to...
ref #36777
https://api.github.com/repos/pandas-dev/pandas/pulls/36831
2020-10-03T11:12:18Z
2020-10-03T18:09:22Z
2020-10-03T18:09:22Z
2020-10-04T22:33:14Z
DOC: update code style for remaining intro tutorial docs for #36777 computation.rst
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index e7edda90610b5..0f323f7796433 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -64,7 +64,7 @@ series in the DataFrame, also excluding NA/null values. .. ipython:: python ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36829
2020-10-03T10:39:00Z
2020-10-03T14:00:04Z
null
2020-10-03T14:00:04Z
CI add end-of-file-fixer
diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index 7dd2e04249492..87a5b7905fc6d 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -60,4 +60,3 @@ and the [Swift Code of Conduct][swift]. [homepage]: https://www.contributor-covenant.org [version]: https://www.contributor...
xref https://github.com/pandas-dev/pandas/pull/36600#issuecomment-702976850 > ok if you'd fix the EOF issue can merge (and yes good idea to add to the pre-commit hook / separate PR pls) Note: in addition to adding the end-of-file-fixer pre-commit hook, I applied the following ```diff diff --git a/scripts/gene...
https://api.github.com/repos/pandas-dev/pandas/pulls/36826
2020-10-03T06:43:25Z
2020-10-06T22:54:42Z
2020-10-06T22:54:42Z
2020-10-07T07:26:31Z
DOC: Fix extending.rst code style #36777
diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst index c708ebb361ed1..afdd2c2a0571e 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -34,7 +34,7 @@ decorate a class, providing the name of attribute to add. The class's @static...
ref #36777 I tried to format development/extending.rst, please review cc @dsaxton
https://api.github.com/repos/pandas-dev/pandas/pulls/36825
2020-10-03T06:31:44Z
2020-10-03T14:46:51Z
null
2020-10-03T14:48:26Z
DOC: use black to fix code style in doc pandas-dev#36777
diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst index c708ebb361ed1..6fabffc314fe5 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -34,7 +34,7 @@ decorate a class, providing the name of attribute to add. The class's @static...
Partially addresses #36777. Fixed the following files: - `doc/source/development/extending.rst` - `doc/source/user_guide/duplicates.rst` - `doc/source/user_guide/gotchas.rst` - `doc/source/user_guide/scale.rst`
https://api.github.com/repos/pandas-dev/pandas/pulls/36824
2020-10-03T04:34:51Z
2020-10-03T14:35:03Z
2020-10-03T14:35:03Z
2020-10-06T12:21:29Z
DOC: update code style for user guide for #36777
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 52342de98de79..9696f14f03b56 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -68,19 +68,23 @@ object (more on what the GroupBy object is later), you may do the following: .. ipython:: py...
Addresses part of #36777 Ran blacken-tools and checked for warnings from flake8-rst for 5 additional doc files.
https://api.github.com/repos/pandas-dev/pandas/pulls/36823
2020-10-03T00:03:01Z
2020-10-03T14:30:49Z
2020-10-03T14:30:49Z
2020-10-03T15:00:39Z
BUG: Raise ValueError with nan in timeaware windows
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index d9d1ce797dd62..339cda4db48fb 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -460,6 +460,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.ffill` and :meth:`DataFrameGroupBy.bfill` where ...
- [x] closes #34617 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Raising a ValueError when NaN is in timeaware window. cc @mroeschke
https://api.github.com/repos/pandas-dev/pandas/pulls/36822
2020-10-02T23:47:22Z
2020-10-15T00:28:32Z
2020-10-15T00:28:31Z
2020-10-15T18:54:02Z
DOC: update code style for development doc and user guide #36777
diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst index c708ebb361ed1..46960140d3a8c 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -34,7 +34,7 @@ decorate a class, providing the name of attribute to add. The class's @static...
Addresses part of #36777 Ran blacken-tools and checked for warnings from flake8-rst for 4 additional doc files.
https://api.github.com/repos/pandas-dev/pandas/pulls/36821
2020-10-02T23:39:23Z
2020-10-03T14:25:29Z
2020-10-03T14:25:29Z
2020-10-03T15:00:04Z
Issue36124 display of int enums
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 0b0334d52c1e9..599667a093290 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -2115,7 +2115,8 @@ def maybe_convert_numeric(ndarray[object] values, set na_values, def maybe_convert_objects(ndarray[object] objects, bint try_float=False, ...
- [x] closes #36124 - [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/36820
2020-10-02T23:33:30Z
2021-04-11T00:51:02Z
null
2022-08-31T14:30:50Z
Backport PR #36675 on branch 1.1.x (REGR: Series.loc with a MultiIndex containing Timestamp raises InvalidIndexError)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 15777abcb8084..acf1dafc59885 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -37,6 +37,7 @@ Fixed regressions - Fixed regression in modulo of :class:`Index`, :class:`Series` and :class:`DataFrame` usi...
Backport PR #36675: REGR: Series.loc with a MultiIndex containing Timestamp raises InvalidIndexError
https://api.github.com/repos/pandas-dev/pandas/pulls/36818
2020-10-02T23:02:59Z
2020-10-03T11:50:23Z
2020-10-03T11:50:23Z
2020-10-03T11:50:24Z
DOC: update code style for remaining intro tutorial docs for #36777
diff --git a/doc/source/getting_started/intro_tutorials/01_table_oriented.rst b/doc/source/getting_started/intro_tutorials/01_table_oriented.rst index dc9bec2284aab..e8e0fef271a74 100644 --- a/doc/source/getting_started/intro_tutorials/01_table_oriented.rst +++ b/doc/source/getting_started/intro_tutorials/01_table_orie...
Addresses part of #36777 Ran blacken-tools and checked for warnings from flake8-rst for the remaining 5 intro tutorials. Note that tutorial 3 met the formatting requirements as is, so there is no change there.
https://api.github.com/repos/pandas-dev/pandas/pulls/36817
2020-10-02T20:28:20Z
2020-10-02T21:58:11Z
2020-10-02T21:58:11Z
2020-10-02T22:39:47Z
Rolling on DataFrameGroupBy duplicated index column when part of the grouping cols is from index
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 016e8d90e7d21..b5fca1ec1dc98 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -404,6 +404,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.groupby` does not always maintain column index name for...
…grouping cols is from index - [x] closes #36794 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Could not find a elegant way, to avoid adding the components in the for loop, so I dropped it from the resulting Mul...
https://api.github.com/repos/pandas-dev/pandas/pulls/36816
2020-10-02T19:29:15Z
2020-10-02T23:35:23Z
null
2020-10-03T02:26:21Z
DOC: uses black to fix formatting #36777
diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index aee56a2565310..8dbfc261e6fa8 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -7,6 +7,7 @@ from matplotlib import pyplot as plt import pandas.util._doctools as doctools + p = d...
Fixes /docs/source/user_guide/merging.rst formatting. Passes flake8-rst test. - [x] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ref https://github.com/pandas-dev/pandas/issues/36777
https://api.github.com/repos/pandas-dev/pandas/pulls/36815
2020-10-02T19:29:14Z
2020-10-02T22:05:24Z
2020-10-02T22:05:24Z
2020-10-02T22:05:30Z
DOC: add example & prose of slicing with labels when index has duplicate labels
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 530fdfba7d12c..44e2d8daa4de0 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -422,6 +422,17 @@ above example, ``s.loc[1:6]`` would raise ``KeyError``. For the rationale behind this beh...
- [x] closes #36251
https://api.github.com/repos/pandas-dev/pandas/pulls/36814
2020-10-02T19:25:58Z
2020-11-05T01:22:25Z
2020-11-05T01:22:24Z
2020-11-06T06:13:08Z
DOC: use black to fix code style in doc pandas-dev#36777
diff --git a/doc/source/getting_started/comparison/comparison_with_r.rst b/doc/source/getting_started/comparison/comparison_with_r.rst index e1a4cfe49b7d1..358bb6ad951f0 100644 --- a/doc/source/getting_started/comparison/comparison_with_r.rst +++ b/doc/source/getting_started/comparison/comparison_with_r.rst @@ -122,16 ...
Partially addresses #36777. Ran black on all the files under `doc/source/getting_started/comparison`.
https://api.github.com/repos/pandas-dev/pandas/pulls/36813
2020-10-02T19:19:27Z
2020-10-02T21:03:51Z
2020-10-02T21:03:51Z
2020-10-05T19:18:15Z
timeseries.rst
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 61902b4a41b7c..84ea6feb8ef27 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -2448,7 +2448,7 @@ This will fail as there are ambiguous times (``'11/06/2011 01:00'``) Handle th...
- [ ] 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/36812
2020-10-02T18:56:30Z
2020-10-02T19:39:34Z
null
2020-10-02T19:39:41Z
DOC: use blacken to fix code style in documentation #36777
diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst index e33e85d3d2224..0a30d865f3c23 100644 --- a/doc/source/user_guide/cookbook.rst +++ b/doc/source/user_guide/cookbook.rst @@ -33,9 +33,9 @@ These are some neat pandas ``idioms`` .. ipython:: python - df = pd.DataFrame({'AAA': ...
Addresses part of #36777 Ran blacken-tools on cookbook.rst and checked for warnings from flake8-rst
https://api.github.com/repos/pandas-dev/pandas/pulls/36811
2020-10-02T17:42:06Z
2020-10-02T19:15:08Z
2020-10-02T19:15:08Z
2020-10-02T20:15:07Z
CLN: test_moments_consistency_*.py
diff --git a/pandas/tests/window/common.py b/pandas/tests/window/common.py index 7e0be331ec8d5..7c8c9de40f7c5 100644 --- a/pandas/tests/window/common.py +++ b/pandas/tests/window/common.py @@ -4,49 +4,6 @@ import pandas._testing as tm -def check_pairwise_moment(frame, dispatch, name, **kwargs): - def get_result...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` In-lining some common functions to make it easier to follow test failure tracebacks
https://api.github.com/repos/pandas-dev/pandas/pulls/36810
2020-10-02T17:34:42Z
2020-10-02T21:39:27Z
2020-10-02T21:39:27Z
2020-10-02T21:42:16Z
TST: insert 'match' to bare pytest raises in pandas/tests/indexing/te…
diff --git a/pandas/tests/indexing/test_indexing.py b/pandas/tests/indexing/test_indexing.py index 7d5fea232817d..fd83f9ab29407 100644 --- a/pandas/tests/indexing/test_indexing.py +++ b/pandas/tests/indexing/test_indexing.py @@ -31,7 +31,11 @@ def test_setitem_ndarray_1d(self): df["bar"] = np.zeros(10, dtype=c...
…st_indexing.py - [ ] ref https://github.com/pandas-dev/pandas/issues/30999 - [ ] 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/36809
2020-10-02T17:11:04Z
2020-10-02T18:08:58Z
2020-10-02T18:08:58Z
2020-10-02T18:09:06Z
Fix select_dtypes(include='int') for Windows.
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 17d8c79994dbe..2deb3295d3c68 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -304,6 +304,7 @@ Numeric - Bug in :meth:`DataFrame.mode` and :meth:`Series.mode` not keeping consistent integer :class:`Ind...
- [x] closes #36596 - [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/36808
2020-10-02T15:51:32Z
2021-02-07T17:06:43Z
2021-02-07T17:06:43Z
2021-02-07T17:06:47Z
github --> GitHub
diff --git a/README.md b/README.md index a2f2f1c04442a..04d8963b3392e 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ For usage questions, the best place to go to is [StackOverflow](https://stackove Further, general questions and discussions can also take place on the [pydata mailing list](https://groups.go...
Changed from "github" to "GitHub" in README.md to make it consistent throughout the document.
https://api.github.com/repos/pandas-dev/pandas/pulls/36804
2020-10-02T13:27:01Z
2020-10-02T13:30:18Z
null
2020-10-02T13:30:29Z
DOC: ran blacken docs tool and checked output to improve formatting #36777
diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst index 673f8689736f1..08f83a4674ada 100644 --- a/doc/source/user_guide/10min.rst +++ b/doc/source/user_guide/10min.rst @@ -34,9 +34,9 @@ and labeled columns: .. ipython:: python - dates = pd.date_range('20130101', periods=6) + dates ...
For task #36777 Ran blacken-tools on user_guide/10min.rst, user_guide/advanced.rst, basics.rst
https://api.github.com/repos/pandas-dev/pandas/pulls/36802
2020-10-02T06:09:05Z
2020-10-05T02:07:28Z
2020-10-05T02:07:28Z
2020-10-06T08:15:40Z
CLN: Use more pytest idioms in test_momemts_ewm.py
diff --git a/pandas/tests/window/moments/test_moments_ewm.py b/pandas/tests/window/moments/test_moments_ewm.py index a83bfabc4a048..287cd7ebba536 100644 --- a/pandas/tests/window/moments/test_moments_ewm.py +++ b/pandas/tests/window/moments/test_moments_ewm.py @@ -7,21 +7,19 @@ import pandas._testing as tm -def ch...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Use `pytest.mark.parameterize` and unnest helper test functions
https://api.github.com/repos/pandas-dev/pandas/pulls/36801
2020-10-02T02:34:31Z
2020-10-02T20:24:07Z
2020-10-02T20:24:07Z
2020-10-02T20:27:26Z
BUG: Fix FloatingArray output formatting
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 539275c7ff617..c1ddf2c29c5ae 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2656,7 +2656,7 @@ def memory_usage(self, index=True, deep=False) -> Series: Examples -------- >>> dtypes = ['int64', 'float64', 'complex...
- [x] closes #36775 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/36800
2020-10-02T01:38:28Z
2020-10-16T01:46:54Z
2020-10-16T01:46:54Z
2020-10-16T06:17:06Z
BUG/CLN: Clean float / complex string formatting
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 2b4b10c39602a..2805bd9ac2db3 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -424,6 +424,7 @@ I/O - Bug in :func:`read_table` and :func:`read_csv` when ``delim_whitespace=True`` and ``sep=default`` (:...
Noticed while working on another bug. The _is_number helper here is wrong and can cause incorrect results given that this code path is hit by arbitrary strings (e.g., it thinks "foo" is a number). Also the _trim_zeros_complex helper apparently does nothing: ```python [ins] In [3]: _trim_zeros_float(["0.00000"]) Out[...
https://api.github.com/repos/pandas-dev/pandas/pulls/36799
2020-10-02T01:24:54Z
2020-10-14T12:51:53Z
2020-10-14T12:51:53Z
2020-10-14T15:06:37Z
DOC: remove outdated doc closes #31487
diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index 0e6767e88edc2..c27c73d439a0c 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -663,31 +663,6 @@ row-wise. For example: df - df.iloc[0] -In the special case of working with time serie...
- [x] closes #31487 - [ ] 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/36797
2020-10-01T23:45:15Z
2020-10-02T22:39:17Z
2020-10-02T22:39:17Z
2020-10-02T23:00:15Z
DEPR: automatic alignment on frame.__cmp__(series)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 8688b2ae81302..9d6b7fadd2e80 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -265,6 +265,7 @@ Deprecations - Deprecated indexing :class:`DataFrame` rows with datetime-like strings ``df[string]``, use ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry xref #28759, may close it depending on if we want to do anything else on that front
https://api.github.com/repos/pandas-dev/pandas/pulls/36795
2020-10-01T23:14:45Z
2020-10-03T00:55:37Z
2020-10-03T00:55:37Z
2020-10-03T01:16:39Z
API: make DataFrame.__boolop__ default_axis match DataFrame.__arithop__ default_axis
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 2dc97a3583dfb..7827efbd34207 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -146,31 +146,6 @@ def _maybe_match_name(a, b): # ----------------------------------------------------------------------------- -def...
- [x] closes #36788 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fix a test warning generated by an ipython test, unrelated
https://api.github.com/repos/pandas-dev/pandas/pulls/36793
2020-10-01T22:39:18Z
2020-10-02T21:41:08Z
2020-10-02T21:41:07Z
2020-10-02T21:48:05Z
ERR: error handling in DataFrame.__rmatmul__
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 016e8d90e7d21..2804b410cfc0e 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -326,7 +326,7 @@ Numeric - Bug in :meth:`Series.equals` where a ``ValueError`` was raised when numpy arrays were compared t...
- [x] closes #21581 - [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/36792
2020-10-01T22:19:02Z
2020-10-02T21:12:36Z
2020-10-02T21:12:36Z
2020-10-02T21:54:06Z
BUG: GroupBy.ffill()/bfill() do not return NaN values for NaN groups
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 1336fd7d83f7e..b422344f1cd6d 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -443,6 +443,7 @@ Groupby/resample/rolling - Bug in :meth:`Rolling.sum()` returned wrong values when dtypes where mixed betw...
- [x] closes #34725 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry See #34725 for a good description of the problem. This fixes the issue in the tidiest way I could find. One test is added that covers all re...
https://api.github.com/repos/pandas-dev/pandas/pulls/36790
2020-10-01T21:45:55Z
2020-10-10T22:32:29Z
2020-10-10T22:32:29Z
2020-10-10T22:32:35Z
TST: Add test for 32724
diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py index 9ac4871ad24a1..10527649b728f 100644 --- a/pandas/tests/window/test_rolling.py +++ b/pandas/tests/window/test_rolling.py @@ -824,3 +824,14 @@ def test_rolling_axis_1_non_numeric_dtypes(value): result = df.rolling(window=2, ...
- [x] closes #32724 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Was fixed in the past.
https://api.github.com/repos/pandas-dev/pandas/pulls/36789
2020-10-01T21:43:02Z
2020-10-02T18:31:09Z
2020-10-02T18:31:09Z
2020-10-02T18:35:37Z
BUG: Rolling returned nan with FixedForwardWindowIndexer for count when window contained only missing values
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 15777abcb8084..8edfd5885fc28 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -58,6 +58,7 @@ Bug fixes - Bug in :meth:`Series.astype` showing too much precision when casting from ``np.float32`` to stri...
- [x] closes #35579 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Issue still has milestone 1.1.3. If it's to late for this release, I'll move the whats new note to 1.1.4 for when the associated PR is merged. cc...
https://api.github.com/repos/pandas-dev/pandas/pulls/36787
2020-10-01T21:04:25Z
2020-10-01T21:56:53Z
null
2020-10-01T21:56:59Z
CLN: Remove param _set_identity from MultiIndex
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 1628b44be4096..a157fdfdde447 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -278,7 +278,6 @@ def __new__( copy=False, name=None, verify_integrity: bool = True, - _set_identit...
I don't see how `_set_identity`can be needed and other index classes don'r have this parameter, so best to just remove it. Other index classes always end by calling `_reset_identity`, so I just do that here also. I'm not sure that's really needed, but that's for another day.
https://api.github.com/repos/pandas-dev/pandas/pulls/36786
2020-10-01T20:57:18Z
2020-10-02T21:13:22Z
2020-10-02T21:13:22Z
2020-10-02T21:56:57Z
CLN: test_moments_rolling.py for quantile/kurt/skew
diff --git a/pandas/tests/window/moments/test_moments_rolling.py b/pandas/tests/window/moments/test_moments_rolling.py index 880316ec6111a..488306d0585c5 100644 --- a/pandas/tests/window/moments/test_moments_rolling.py +++ b/pandas/tests/window/moments/test_moments_rolling.py @@ -1,187 +1,12 @@ import numpy as np -fro...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/36784
2020-10-01T20:49:33Z
2020-10-02T20:36:16Z
2020-10-02T20:36:16Z
2020-10-02T21:01:39Z
Test that nan value counts are included when dropna=False. GH#31944
diff --git a/pandas/tests/base/test_value_counts.py b/pandas/tests/base/test_value_counts.py index de04c30432e6f..73a41e7010c5f 100644 --- a/pandas/tests/base/test_value_counts.py +++ b/pandas/tests/base/test_value_counts.py @@ -274,3 +274,17 @@ def test_value_counts_datetime64(index_or_series): td2 = klass(td2, n...
- [x] closes #31944 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Added test per @Dr-Irv request.
https://api.github.com/repos/pandas-dev/pandas/pulls/36783
2020-10-01T19:38:27Z
2020-10-06T22:43:17Z
2020-10-06T22:43:17Z
2020-10-06T22:43:21Z
Revert "Update README.md"
diff --git a/README.md b/README.md index da8487d76f4a1..a2f2f1c04442a 100644 --- a/README.md +++ b/README.md @@ -32,32 +32,32 @@ its way towards this goal. Here are just a few of the things that pandas does well: - Easy handling of [**missing data**][missing-data] (represented as - `NaN`, `NA`, or `NaT`) in fl...
Reverts pandas-dev/pandas#36772
https://api.github.com/repos/pandas-dev/pandas/pulls/36781
2020-10-01T17:22:24Z
2020-10-01T17:22:58Z
2020-10-01T17:22:58Z
2020-10-01T17:23:08Z
DOC: Fix code style in documentation
diff --git a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst b/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst index bd85160d2622a..7e919777fdf03 100644 --- a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst +++ b/doc/source/getting_started/intro_tutor...
ref #36777
https://api.github.com/repos/pandas-dev/pandas/pulls/36780
2020-10-01T17:05:57Z
2020-10-02T14:33:45Z
2020-10-02T14:33:45Z
2020-10-02T14:34:07Z
CI: troubleshoot UnsatisfiableError in travis-36-cov on 1.1.x
diff --git a/ci/deps/travis-36-cov.yaml b/ci/deps/travis-36-cov.yaml index c380423c55f19..296d9c39b5250 100644 --- a/ci/deps/travis-36-cov.yaml +++ b/ci/deps/travis-36-cov.yaml @@ -6,49 +6,48 @@ dependencies: - python=3.6.* # tools - - cython>=0.29.21 - - pytest>=5.0.1 - - pytest-xdist>=1.21 - - hypothesis>...
- [ ] 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/36779
2020-10-01T16:44:58Z
2020-10-01T17:29:43Z
null
2020-11-26T10:31:31Z
ENH: Implement FloatingArray reductions
diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py index c3710196a8611..a230760ca1abe 100644 --- a/pandas/core/arrays/floating.py +++ b/pandas/core/arrays/floating.py @@ -25,8 +25,7 @@ from pandas.core.dtypes.dtypes import register_extension_dtype from pandas.core.dtypes.missing import isna ...
Mostly copy / paste from https://github.com/pandas-dev/pandas/pull/36761 @jorisvandenbossche Would this require a whatsnew note? Seems the current v1.2.0 note is fairly high level and doesn't talk about specific methods that are supported. Should we talk about this or leave as-is?
https://api.github.com/repos/pandas-dev/pandas/pulls/36778
2020-10-01T15:28:36Z
2020-10-03T00:58:29Z
2020-10-03T00:58:29Z
2020-10-03T05:18:31Z
Very useful toolkit for pythonUpdate
diff --git a/README.md b/README.md index da8487d76f4a1..6c8dbebbb22b5 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ----------------- -# pandas: powerful Python data analysis toolkit +# pandas: very useful toolkit fot Python [![PyPI Latest Release](https://img.shields.io/pypi/v/pandas.svg)](https://pypi....
- [ ] 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/36776
2020-10-01T14:48:55Z
2020-10-01T14:52:56Z
null
2020-10-02T09:08:28Z
scatterplot issue
diff --git a/.github/ISSUE_TEMPLATE/plotscatter.py b/.github/ISSUE_TEMPLATE/plotscatter.py new file mode 100644 index 0000000000000..279353c0884c6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/plotscatter.py @@ -0,0 +1,15 @@ +import matplotlib.pyplot as plt +import seaborn as sns +import numpy as np +import pandas as pd +...
added basic idea to add labels to scatter plot
https://api.github.com/repos/pandas-dev/pandas/pulls/36774
2020-10-01T13:43:30Z
2020-10-01T13:56:38Z
null
2020-10-02T09:08:37Z
DOC: Fix code block line length
diff --git a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst b/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst index 7e919777fdf03..6ce98ba5dbd1b 100644 --- a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst +++ b/doc/source/getting_started/intro_tutor...
https://github.com/pandas-dev/pandas/pull/36734#discussion_r498058234
https://api.github.com/repos/pandas-dev/pandas/pulls/36773
2020-10-01T13:26:00Z
2020-10-07T02:40:48Z
2020-10-07T02:40:48Z
2020-10-07T02:46:43Z
Update README.md
diff --git a/README.md b/README.md index a2f2f1c04442a..da8487d76f4a1 100644 --- a/README.md +++ b/README.md @@ -32,32 +32,32 @@ its way towards this goal. Here are just a few of the things that pandas does well: - Easy handling of [**missing data**][missing-data] (represented as - `NaN`, `NA`, or `NaT`) in fl...
- [ ] 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/36772
2020-10-01T12:49:56Z
2020-10-01T14:29:47Z
2020-10-01T14:29:47Z
2020-10-01T14:40:05Z
BUG: Timedelta drops decimals if precision is greater than nanoseconds
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index f751a91cecf19..fea647b919e30 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -410,6 +410,7 @@ Timedelta - Bug in :class:`TimedeltaIndex`, :class:`Series`, and :class:`DataFrame` floor-division with ``...
- [x] closes #36738 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I am not quite sure, if we should round to nanoseconds or cut if off after the 9th decimal. I implemented a simple cut off, but would be happy to ch...
https://api.github.com/repos/pandas-dev/pandas/pulls/36771
2020-10-01T12:09:11Z
2020-11-15T17:31:47Z
2020-11-15T17:31:47Z
2020-11-15T17:32:28Z
CI: troubleshoot travis ci on 1.1.x
diff --git a/ci/deps/travis-36-cov.yaml b/ci/deps/travis-36-cov.yaml index c380423c55f19..8c8db106af05c 100644 --- a/ci/deps/travis-36-cov.yaml +++ b/ci/deps/travis-36-cov.yaml @@ -15,7 +15,6 @@ dependencies: # pandas dependencies - beautifulsoup4 - botocore>=1.11 - - cython>=0.29.16 - dask - fastparque...
- [ ] 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/36770
2020-10-01T12:07:02Z
2020-10-01T19:19:16Z
2020-10-01T19:19:16Z
2020-10-01T19:19:23Z
BUG: Index sortlevel ascending add type checking #32334
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e810fc0239b40..bfe7a0489b10a 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -352,7 +352,7 @@ Indexing - Bug in :meth:`PeriodIndex.get_loc` incorrectly raising ``ValueError`` on non-datelike strings i...
- [x] closes #32334 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Add the check of ascending parameter in the sortlevel method, only allow bool value and single bool value list cc @Dr-Irv
https://api.github.com/repos/pandas-dev/pandas/pulls/36767
2020-10-01T09:22:49Z
2020-10-01T18:32:25Z
2020-10-01T18:32:25Z
2020-10-05T05:57:39Z
BUG: fix inconsistent col spacing in info
diff --git a/pandas/io/formats/info.py b/pandas/io/formats/info.py index e8e41d4325103..9812ca39e2656 100644 --- a/pandas/io/formats/info.py +++ b/pandas/io/formats/info.py @@ -288,7 +288,11 @@ def _verbose_repr( len_column = len(pprint_thing(column_head)) space = max(max_col, len_column) + col_space ...
- [x] closes #36765 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/36766
2020-10-01T07:52:29Z
2020-10-07T15:08:18Z
2020-10-07T15:08:18Z
2020-10-07T15:08:18Z
DOC: Fix PR09 errors in several files
diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py index 630606b4d8111..913f135b449f3 100644 --- a/pandas/core/computation/eval.py +++ b/pandas/core/computation/eval.py @@ -212,7 +212,8 @@ def eval( truediv : bool, optional Whether to use true division, like in Python >= 3. -...
- [x] closes #36764 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry As far as I can see, there are some PR09 pandas docstring errors. So with this PR I will resolve them. There are more commits soon. ``` PR09 Para...
https://api.github.com/repos/pandas-dev/pandas/pulls/36763
2020-10-01T06:13:25Z
2020-10-02T17:34:28Z
2020-10-02T17:34:27Z
2020-10-03T01:43:39Z
TST: insert 'match' to bare pytest raises in pandas/tests/indexing/te…
diff --git a/pandas/tests/indexing/test_chaining_and_caching.py b/pandas/tests/indexing/test_chaining_and_caching.py index 1254f1f217a2e..1241d394d7936 100644 --- a/pandas/tests/indexing/test_chaining_and_caching.py +++ b/pandas/tests/indexing/test_chaining_and_caching.py @@ -155,10 +155,11 @@ def test_detect_chained_a...
…st_chaining_and_caching.py - [ ] ref https://github.com/pandas-dev/pandas/issues/30999 - [ ] 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/36762
2020-10-01T05:47:52Z
2020-10-01T10:54:27Z
2020-10-01T10:54:26Z
2020-10-01T10:54:48Z
ENH: Implement IntegerArray reductions
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e810fc0239b40..a686a1f2371d6 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -168,6 +168,7 @@ Other enhancements - ``Styler`` now allows direct CSS class name addition to individual data cells (:issue...
- [x] ref #33790 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I'm not sure if this is the "best" way to implement these reductions (see linked issue), but in any case I figure this is better than nothing since we ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36761
2020-10-01T02:46:29Z
2020-10-02T21:45:18Z
2020-10-02T21:45:18Z
2020-10-02T21:46:32Z
BUG: inconsistent name-retention in Series ops
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 2fe878897b2e7..aa59467947986 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -337,6 +337,7 @@ Numeric - Bug in :class:`Series` where two :class:`Series` each have a :class:`DatetimeIndex` with differe...
- [x] closes #33930 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry As a follow-up I think we can remove a bunch of name-based tests from tests.arithmetic.
https://api.github.com/repos/pandas-dev/pandas/pulls/36760
2020-10-01T02:14:15Z
2020-10-07T15:00:01Z
2020-10-07T15:00:01Z
2020-10-07T15:00:09Z
ENH: allow for top and mid-level assignment to DataFrames with MultIndex columns #7475
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f2e833dfe7790..73b5554918da4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3189,10 +3189,20 @@ def _setitem_array(self, key, value): self.iloc[indexer] = value else: if isinstance(value, DataFrame): - ...
- [x] closes #7475 (related to #35727) - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This allows for one to assign to the top and mid-levels of DataFrame columns. To do so, it adds another fallback execution path t...
https://api.github.com/repos/pandas-dev/pandas/pulls/36755
2020-09-30T23:10:34Z
2021-10-04T00:10:48Z
null
2021-10-04T00:10:48Z
ENH: Add headers paramater to read_json and read_csv
diff --git a/pandas/io/common.py b/pandas/io/common.py index c147ae9fd0aa8..05542d596e961 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -148,9 +148,9 @@ def urlopen(*args, **kwargs): Lazy-import wrapper for stdlib urlopen, as that imports a big chunk of the stdlib. """ - import urllib....
- [x] closes #36688 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This adds the option to specify headers when reading a csv or a json file from an URL in Python3. Let me know if new tests are needed.
https://api.github.com/repos/pandas-dev/pandas/pulls/36754
2020-09-30T22:03:49Z
2020-11-27T18:43:36Z
null
2020-11-27T18:43:36Z
BUG: Segfault with string Index when using Rolling after Groupby
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 6ab42dda865e7..6cad9cdd6528f 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -397,7 +397,7 @@ def _insert_on_column(self, result: "DataFrame", obj: "DataFrame"): if self.on is not None and not s...
- [x] closes #36727 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The segfault was caused by ``self.obj.index.asi8=None`` when Index is a string Index. ``self._on.asi8`` solves that issue. Additionally I noticed...
https://api.github.com/repos/pandas-dev/pandas/pulls/36753
2020-09-30T21:33:33Z
2020-10-06T18:04:01Z
2020-10-06T18:04:00Z
2020-10-10T23:35:12Z
REF: simplify info.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 801307a8f9481..244423a1dd4e3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2604,7 +2604,7 @@ def to_html( DataFrame.memory_usage: Memory usage of DataFrame columns.""" ), ) - @doc(DataFrameInfo.info) + @do...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Enable polymorphism and builder pattern in ``info.py``. The main benefits: - Separated data representation from data itself - More clear construct...
https://api.github.com/repos/pandas-dev/pandas/pulls/36752
2020-09-30T21:31:23Z
2020-10-21T12:54:55Z
2020-10-21T12:54:55Z
2020-10-21T12:55:00Z
Backport PR #36706 on branch 1.1.x (CI: npdev new exception message)
diff --git a/pandas/tests/arithmetic/common.py b/pandas/tests/arithmetic/common.py index 755fbd0d9036c..cd8dd102dc27c 100644 --- a/pandas/tests/arithmetic/common.py +++ b/pandas/tests/arithmetic/common.py @@ -76,6 +76,13 @@ def assert_invalid_comparison(left, right, box): "Cannot compare type", ...
Backport PR #36706: CI: npdev new exception message
https://api.github.com/repos/pandas-dev/pandas/pulls/36751
2020-09-30T21:14:04Z
2020-10-01T16:48:38Z
2020-10-01T16:48:38Z
2020-10-01T16:48:39Z
Backport PR #36552 on branch 1.1.x (REGR: Series.__mod__ behaves different with numexpr)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 91b9cf59687b3..15777abcb8084 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -34,6 +34,7 @@ Fixed regressions - Fixed regression when adding a :meth:`timedelta_range` to a :class:`Timestamp` raised a ...
Backport PR #36552: REGR: Series.__mod__ behaves different with numexpr
https://api.github.com/repos/pandas-dev/pandas/pulls/36750
2020-09-30T20:29:02Z
2020-10-01T16:49:48Z
2020-10-01T16:49:48Z
2020-10-01T16:49:48Z
Added notes for Jupyter & Colab users
diff --git a/README.md b/README.md index a2f2f1c04442a..ab5dce5a64048 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,9 @@ has been under active development since then. For usage questions, the best place to go to is [StackOverflow](https://stackoverflow.com/questions/tagged/pandas). Further, general questions ...
- [ ] 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/36749
2020-09-30T19:44:30Z
2020-10-01T10:54:10Z
null
2020-10-02T09:08:48Z
[DOC]: Add explanation about DataFrame methods use all Categories
diff --git a/doc/source/user_guide/categorical.rst b/doc/source/user_guide/categorical.rst index 926c2d9be74c2..6a8e1767ef7e8 100644 --- a/doc/source/user_guide/categorical.rst +++ b/doc/source/user_guide/categorical.rst @@ -618,6 +618,19 @@ even if some categories are not present in the data: s = pd.Series(pd.Cat...
- [x] closes #36740
https://api.github.com/repos/pandas-dev/pandas/pulls/36747
2020-09-30T18:41:43Z
2020-10-01T01:18:42Z
2020-10-01T01:18:41Z
2020-10-01T07:26:09Z
Standardize cast_str behavior in all datetimelike fill_value validators
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 83a9c0ba61c2d..ef402fce642b9 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -756,9 +756,7 @@ def _validate_shift_value(self, fill_value): return self._unbox(fill_value) - ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This will in turn allow us to simplify/de-duplicate a bunch of code since we now pass cast_str in all cases.
https://api.github.com/repos/pandas-dev/pandas/pulls/36746
2020-09-30T18:33:31Z
2020-10-06T02:29:09Z
2020-10-06T02:29:09Z
2020-10-06T02:48:21Z
BUG: DTI/TDI.equals with i8
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 016e8d90e7d21..770b64975ead4 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -304,7 +304,7 @@ Datetimelike - Bug in :meth:`DatetimeIndex.searchsorted`, :meth:`TimedeltaIndex.searchsorted`, :meth:`Peri...
- [ ] closes #xxxx - [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/36744
2020-09-30T16:34:37Z
2020-10-02T21:29:24Z
2020-10-02T21:29:24Z
2020-10-02T21:47:36Z
TYP: some more static definitions of methods for DatetimeIndex
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 016544d823ae3..da78f8ff5d603 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1,6 +1,6 @@ from datetime import date, datetime, time, timedelta, tzinfo import operator -from typing import Opti...
xref #32100, https://github.com/pandas-dev/pandas/issues/31160#issuecomment-701244665
https://api.github.com/repos/pandas-dev/pandas/pulls/36742
2020-09-30T14:26:27Z
2020-10-01T01:23:33Z
2020-10-01T01:23:33Z
2020-10-01T09:06:17Z
TST: honor encoding in read_fwf for memory-mapped files
diff --git a/pandas/tests/io/parser/test_read_fwf.py b/pandas/tests/io/parser/test_read_fwf.py index 13519154f82b8..d45317aaa3458 100644 --- a/pandas/tests/io/parser/test_read_fwf.py +++ b/pandas/tests/io/parser/test_read_fwf.py @@ -634,3 +634,24 @@ def test_binary_mode(): df = pd.read_fwf(file) ...
- [x] closes #23254 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry: not needed `encoding` was already working for memory-mapped files in `read_fwf`.
https://api.github.com/repos/pandas-dev/pandas/pulls/36737
2020-09-30T06:14:33Z
2020-09-30T17:22:42Z
2020-09-30T17:22:42Z
2020-09-30T17:25:34Z
TST: read binary file objects with read_fwf
diff --git a/pandas/tests/io/parser/test_read_fwf.py b/pandas/tests/io/parser/test_read_fwf.py index 127d0dc4c9829..13519154f82b8 100644 --- a/pandas/tests/io/parser/test_read_fwf.py +++ b/pandas/tests/io/parser/test_read_fwf.py @@ -6,6 +6,7 @@ from datetime import datetime from io import BytesIO, StringIO +from pa...
- [x] closes #18035 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry: not needed `read_fwf` has already supported reading binary file objects. Added the test case from the issue.
https://api.github.com/repos/pandas-dev/pandas/pulls/36735
2020-09-30T05:50:52Z
2020-09-30T13:10:05Z
2020-09-30T13:10:04Z
2020-09-30T13:10:08Z
DOC: Format more code blocks
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index fc5aad12cd5e8..e483cebf71614 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -135,12 +135,10 @@ usecols : list-like or callable, default ``None`` import pandas as pd from io import StringIO - ...
Actually, contrary to https://github.com/pandas-dev/pandas/pull/36700#issuecomment-700957831 there is quite a lot more clean up to do (so maybe could make for some good first issues @simonjayhawkins), it's just that other docs contain blocks that blacken-docs can't parse (e.g., raw output or ipython code containing mag...
https://api.github.com/repos/pandas-dev/pandas/pulls/36734
2020-09-30T01:01:17Z
2020-10-01T01:14:22Z
2020-10-01T01:14:21Z
2020-10-01T12:13:43Z
CI: disable ARM build
diff --git a/.travis.yml b/.travis.yml index 81cd461dd2c87..2ef8e0e03aaf8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,16 +46,16 @@ matrix: - env: - JOB="3.7" ENV_FILE="ci/deps/travis-37.yaml" PATTERN="(not slow and not network and not clipboard)" - - arch: arm64 - env: - - JOB="3.7,...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref #36719
https://api.github.com/repos/pandas-dev/pandas/pulls/36733
2020-09-30T00:55:39Z
2020-09-30T19:55:14Z
2020-09-30T19:55:14Z
2020-09-30T20:59:15Z
EA: tighten TimedeltaArray._from_sequence signature
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index 6ca57e7872910..c97c7da375fd4 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -214,6 +214,19 @@ def _simple_new( @classmethod def _from_sequence( + cls, data, dtype=TD64NS_DTY...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref #36718
https://api.github.com/repos/pandas-dev/pandas/pulls/36731
2020-09-29T22:16:24Z
2020-10-02T23:14:04Z
2020-10-02T23:14:03Z
2020-10-12T08:50:21Z
[BUG]: Rolling selected too large windows with PeriodIndex
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 25fac48397c68..77cf6d61ff7e6 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -407,6 +407,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.apply` raising error with ``np.nan`` group(s) wh...
- [x] closes #34225 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ``asi8`` of PeriodIndex is not in nanoseconds, so we can not set ``self.window=freq.nanos``
https://api.github.com/repos/pandas-dev/pandas/pulls/36730
2020-09-29T22:13:38Z
2020-10-03T00:59:34Z
2020-10-03T00:59:34Z
2023-04-27T19:52:09Z
PERF: using murmur hash for float64 khash-tables
diff --git a/asv_bench/benchmarks/hash_functions.py b/asv_bench/benchmarks/hash_functions.py new file mode 100644 index 0000000000000..17bf434acf38a --- /dev/null +++ b/asv_bench/benchmarks/hash_functions.py @@ -0,0 +1,164 @@ +import numpy as np + +import pandas as pd + + +class IsinAlmostFullWithRandomInt: + params...
- [x] closes #28303 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The currently used hash-function can lead to many collisions (see #28303 or [this comment](https://github.com/pandas-dev/pandas/pull/36611#issuecomm...
https://api.github.com/repos/pandas-dev/pandas/pulls/36729
2020-09-29T21:24:54Z
2020-11-14T16:15:26Z
2020-11-14T16:15:26Z
2020-11-14T16:16:15Z