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
DOC: Updating whatsnew to release 1.5.3
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index fee7429512034..489a9b47c11e1 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -1,7 +1,7 @@ .. _whatsnew_153: -What's new in 1.5.3 (December ??, 2022) ---------------------------------------- +What's ...
xref #49857
https://api.github.com/repos/pandas-dev/pandas/pulls/50809
2023-01-18T05:57:39Z
2023-01-18T09:54:27Z
2023-01-18T09:54:27Z
2023-03-15T15:49:29Z
REF: avoid parse_datetime_string in tslib
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index a3e683ccc6b97..df6204d61f983 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -35,7 +35,6 @@ from pandas._libs.tslibs.np_datetime cimport ( npy_datetimestruct_to_datetime, pandas_datetime_to_datetimestruct, pydate_to_dt...
With this, parse_datetime_string is only called from convert_str_to_tsobject
https://api.github.com/repos/pandas-dev/pandas/pulls/50808
2023-01-18T02:37:38Z
2023-01-18T19:27:03Z
2023-01-18T19:27:03Z
2023-01-18T20:28:19Z
Backport PR #50800 on branch 1.5.x (DOC: Clean up 1.5.x whatsnews)
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index 2aa1562168fbb..bcd8ddb9cbc0b 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -76,14 +76,14 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.loc` raising ``FutureWarning`` when setting an em...
Backport PR #50800: DOC: Clean up 1.5.x whatsnews
https://api.github.com/repos/pandas-dev/pandas/pulls/50807
2023-01-18T02:34:50Z
2023-01-18T08:34:39Z
2023-01-18T08:34:39Z
2023-01-18T08:34:51Z
BUG: Parsing week-freq Periods
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3c9c861afd989..6a2c8e49cecb8 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1100,6 +1100,8 @@ Period - Bug in :meth:`Period.strftime` and :meth:`PeriodIndex.strftime`, raising ``UnicodeDecodeError``...
@lithomas1 IIRC youve spent some time recently in optimizing this portion of the constructor. I'm open to ideas on optimize this check or do it as the fallback rather than up-front. The reason it is currently up-front is bc ATM `parse_datetime_string_with_reso` gets this wrong, bc dateutil gets it wrong. Following...
https://api.github.com/repos/pandas-dev/pandas/pulls/50803
2023-01-17T22:56:45Z
2023-01-26T19:29:43Z
2023-01-26T19:29:43Z
2023-09-02T16:55:41Z
ENH: Add lazy copy to astype
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 70c60401f29fb..36f1a77badc95 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -224,6 +224,7 @@ Copy-on-Write improvements - :meth:`DataFrame.truncate` - :meth:`DataFrame.tz_convert` / :meth:`Serie...
xref https://github.com/pandas-dev/pandas/issues/49473 - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed]...
https://api.github.com/repos/pandas-dev/pandas/pulls/50802
2023-01-17T21:27:50Z
2023-02-09T10:49:04Z
2023-02-09T10:49:04Z
2023-03-27T17:14:26Z
DOC: Clean up 1.5.x whatsnews
diff --git a/doc/source/whatsnew/v1.5.1.rst b/doc/source/whatsnew/v1.5.1.rst index 2aa1562168fbb..bcd8ddb9cbc0b 100644 --- a/doc/source/whatsnew/v1.5.1.rst +++ b/doc/source/whatsnew/v1.5.1.rst @@ -76,14 +76,14 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.loc` raising ``FutureWarning`` when setting an em...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50800
2023-01-17T20:32:42Z
2023-01-18T02:34:40Z
2023-01-18T02:34:40Z
2023-01-18T08:39:37Z
DOC: Fix groupby rendering in whatsnew
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 8da9d7e3a04c0..9cc63b01693f1 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -94,10 +94,9 @@ Copy-on-Write improvements was added to the following methods: - :meth:`DataFrame.reset_index` / :me...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50799
2023-01-17T20:27:38Z
2023-01-18T08:40:33Z
2023-01-18T08:40:33Z
2023-01-18T09:02:10Z
22693 test skip blank rows read csv
- closes #22693 - test added with xfail decorator @noatamir @phofl
https://api.github.com/repos/pandas-dev/pandas/pulls/50798
2023-01-17T19:45:46Z
2023-01-18T20:24:46Z
null
2023-01-18T20:24:46Z
ENH: Add dtype to read sql to be consistent with read_sql_query
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7555c8b68a4f7..b8cc27ff35abb 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -165,6 +165,7 @@ Other enhancements - Improved error message in :func:`to_datetime` for non-ISO8601 formats, informing user...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50797
2023-01-17T19:44:48Z
2023-01-20T18:56:46Z
2023-01-20T18:56:46Z
2023-01-21T01:32:48Z
BUG: to_dict not converting NA to None
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 8da9d7e3a04c0..f655b20407b41 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1021,6 +1021,7 @@ I/O - Bug in :meth:`DataFrame.to_string` ignoring float formatter for extension arrays (:issue:`39336`) ...
- [x] closes #50795 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50796
2023-01-17T19:31:29Z
2023-01-18T08:41:22Z
2023-01-18T08:41:22Z
2023-01-20T15:30:24Z
BUG: Fix memory leak in to_json for time objects
diff --git a/asv_bench/benchmarks/io/json.py b/asv_bench/benchmarks/io/json.py index bb09fe0ff634d..39f234c6fa816 100644 --- a/asv_bench/benchmarks/io/json.py +++ b/asv_bench/benchmarks/io/json.py @@ -294,7 +294,8 @@ def time_float_longint_str_lines(self): class ToJSONMem: def setup_cache(self): df = Dat...
- [ ] closes #40443 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/50794
2023-01-17T18:38:04Z
2023-01-18T19:29:37Z
2023-01-18T19:29:37Z
2023-01-18T19:39:48Z
BUG: non-nano strftime returns wrong results
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 0da8a9e73d963..c1aef2e5115ac 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1409,7 +1409,18 @@ class Timestamp(_Timestamp): >>> ts.strftime('%Y-%m-%d %X') '2020-03-1...
- [ ] closes #50787 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50793
2023-01-17T18:16:37Z
2023-01-18T19:31:29Z
2023-01-18T19:31:29Z
2023-01-19T18:46:02Z
Backport PR #50682 on branch 1.5.x (BUG: pivot_table with nested elements and numpy 1.24)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index 489a6fda9ffab..6abbff9ed872c 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -32,8 +32,8 @@ Bug fixes - Bug in :meth:`Series.quantile` emitting warning from NumPy when :class:`Series` has only ``NA`` ...
Backport PR #50682: BUG: pivot_table with nested elements and numpy 1.24
https://api.github.com/repos/pandas-dev/pandas/pulls/50792
2023-01-17T17:35:54Z
2023-01-17T20:33:33Z
2023-01-17T20:33:33Z
2023-01-17T20:33:34Z
REF: consolidate datetime parsing paths and exception handling
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 7e1368061322b..df2508397ff34 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -292,7 +292,7 @@ The default behavior, ``errors='raise'``, is to raise when unparsable: .. code-blo...
One last check I'd like to move down into dateutil_parse is the `if dt.tzinfo is not None:` in parse_datetime_string, but it turns doing that breaks a bunch of Period parsing bc of dateutil parsing "2001-11-19/2001-11-25" as 2001-11-19 20:01:00 with a tzoffset of -1500 hours. I'm indifferent between "Unknown string ...
https://api.github.com/repos/pandas-dev/pandas/pulls/50790
2023-01-17T16:30:09Z
2023-01-20T18:01:58Z
2023-01-20T18:01:58Z
2023-01-20T18:10:03Z
DOC: Fix some RT02 issues in docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 6df5d00d62afb..0aee8cd546d47 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -85,27 +85,17 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (RT02)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50785
2023-01-17T10:56:50Z
2023-01-18T19:33:44Z
2023-01-18T19:33:44Z
2023-01-19T08:57:44Z
TST: Add test_factorize_mixed_values
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index ed1d346889566..ce3388973458f 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -505,6 +505,32 @@ def test_int_factorize_use_na_sentinel_false( tm.assert_numpy_array_equal(uniques, expected_uniques, strict_nan=T...
- [x] closes #19721 It has mentioned some different values for `factorize`. This is the list: ```python pd.factorize(pd.Categorical(['a', 'a', 'c'])) pd.factorize(pd.Index(pd.Categorical(['a', 'a', 'b']))) pd.factorize(pd.Series(pd.DatetimeIndex(['2017', '2017'], tz='US/Eastern'))) pd.factorize(pd.Series(pd.Cat...
https://api.github.com/repos/pandas-dev/pandas/pulls/50784
2023-01-17T07:24:50Z
2023-01-17T17:44:39Z
2023-01-17T17:44:39Z
2023-01-18T03:03:20Z
REF: fewer paths through datetime parsing code
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 7e1368061322b..df2508397ff34 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -292,7 +292,7 @@ The default behavior, ``errors='raise'``, is to raise when unparsable: .. code-blo...
Goal is to align and eventually de-duplicate parse_datetime_string and parse_datetime_string_with_reso. Get consistent exceptions and exception messages. In upcoming passes I'd like to move all dateutil-exception-catching down to parse_dateutil (including one `except ValueError` in conversion.pyx). I'm indifferent...
https://api.github.com/repos/pandas-dev/pandas/pulls/50783
2023-01-17T02:40:00Z
2023-01-17T03:04:13Z
null
2023-01-17T03:04:13Z
DEPR: remove Int/Uint/Float64Index from pandas/tests/indexing & pandas/tests/series
diff --git a/pandas/core/series.py b/pandas/core/series.py index 91f7095e59db5..2a450289ab80c 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -133,7 +133,6 @@ from pandas.core.indexes.accessors import CombinedDatetimelikeProperties from pandas.core.indexes.api import ( DatetimeIndex, - Float...
Extraction of part of #50479. Progress towards #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/50781
2023-01-16T19:35:15Z
2023-01-19T21:31:32Z
2023-01-19T21:31:32Z
2023-01-19T21:36:14Z
CI: Remove `conda list` from sdist build causing failures
diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index d11b614e2b2c0..a681ea25db60e 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -92,5 +92,4 @@ jobs: - name: Import pandas run: | cd .. - conda list python -c "import pandas; pand...
I think the purpose of this build is to see if the sdist is pip install-able in which case I'm not sure why we are setting up conda just to do a `conda list`.
https://api.github.com/repos/pandas-dev/pandas/pulls/50779
2023-01-16T18:25:35Z
2023-01-23T19:45:57Z
2023-01-23T19:45:57Z
2023-01-23T19:46:02Z
PERF: Use generator expression for Blocks.replace_list
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index 06c4589297cda..204393cbb76f2 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -386,4 +386,33 @@ def time_to_numpy_copy(self): self.ser.to_numpy(copy=True) +c...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50778
2023-01-16T18:10:13Z
2023-02-28T22:15:02Z
2023-02-28T22:15:02Z
2023-03-01T12:24:23Z
API / CoW: DataFrame(<dict of Series>, copy=False) constructor now gives lazy copy
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d1bc322a6ec7a..173793098027f 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -243,6 +243,10 @@ Copy-on-Write improvements a modification to the data happens) when constructing a Series from an exist...
xref https://github.com/pandas-dev/pandas/issues/48998 (bullet point about constructors) When constructing a DataFrame from Series objects, and when specifying `copy=False` with CoW enabled, we need to follow the lazy copy with CoW approach to ensure proper copy/view behaviour with the original Series objects. We...
https://api.github.com/repos/pandas-dev/pandas/pulls/50777
2023-01-16T17:49:10Z
2023-02-10T17:56:04Z
2023-02-10T17:56:04Z
2023-02-10T17:56:14Z
DEPR: Remove ABC(Int|Uint|Float)64Index
diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py index 051aa5c337782..b3eb5b1bfdcde 100644 --- a/pandas/compat/pickle_compat.py +++ b/pandas/compat/pickle_compat.py @@ -120,7 +120,20 @@ def load_reduce(self): ), ("pandas.indexes.numeric", "Float64Index"): ( "pandas.core.in...
Progress towards #42717.
https://api.github.com/repos/pandas-dev/pandas/pulls/50775
2023-01-16T14:10:40Z
2023-01-18T12:31:50Z
2023-01-18T12:31:50Z
2023-01-18T21:42:34Z
BUG: resample don't work with non-nanosecond reso
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 2c1ef7f05fa03..53d02e92946d9 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1031,7 +1031,7 @@ def tz_localize( if self.tz is not None: if tz is None: - new_...
- [ ] closes #50656 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/50774
2023-01-16T13:13:21Z
2023-01-18T17:50:10Z
2023-01-18T17:50:10Z
2023-01-18T17:50:15Z
BUG: DatetimeIndex with non-nano values and freq='D' throws ValueError
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index bb21bed2dc779..816d8abec1428 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1897,7 +1897,12 @@ def _validate_frequency(cls, index, freq, **kwargs): try: on_fre...
- [ ] closes #50727 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50773
2023-01-16T10:55:14Z
2023-01-17T16:33:11Z
2023-01-17T16:33:11Z
2023-01-17T16:33:20Z
DOC: fixed register_extension_dtype import statement
diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py index 0c14fac57d9db..ccf8431660acb 100644 --- a/pandas/core/arrays/floating.py +++ b/pandas/core/arrays/floating.py @@ -2,8 +2,8 @@ import numpy as np +from pandas.core.dtypes.base import register_extension_dtype from pandas.core.dtypes....
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50770
2023-01-16T09:27:52Z
2023-01-16T17:33:53Z
2023-01-16T17:33:53Z
2023-01-16T17:34:08Z
DEPR: deprecate Index.is_numeric
diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst index a974af4ffe1c5..65ed82d9d2cf5 100644 --- a/doc/source/user_guide/scale.rst +++ b/doc/source/user_guide/scale.rst @@ -333,6 +333,7 @@ Dask implements the most used parts of the pandas API. For example, we can do a familiar groupby aggre...
- [ ] progress towards https://github.com/pandas-dev/pandas/issues/50042 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/devel...
https://api.github.com/repos/pandas-dev/pandas/pulls/50769
2023-01-16T06:41:26Z
2023-02-02T22:16:45Z
2023-02-02T22:16:45Z
2023-02-03T03:06:19Z
TST: Test series add sub with UInt64
diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index 93225d937697f..fea216c35129b 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -1463,3 +1463,17 @@ def test_empty_str_comparison(power, string_size): result = rig...
- [x] closes #22023 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50768
2023-01-16T05:17:12Z
2023-01-16T17:39:06Z
2023-01-16T17:39:06Z
2023-01-17T03:27:24Z
DOC: Add docstring for DataFrame.T property
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 46f8c73027f48..f6994b6912e29 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3569,6 +3569,31 @@ def transpose(self, *args, copy: bool = False) -> DataFrame: @property def T(self) -> DataFrame: + """ + The transpose...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50766
2023-01-16T01:25:46Z
2023-01-16T18:42:14Z
2023-01-16T18:42:14Z
2023-11-27T00:21:05Z
ENH: Add use_nullable_dtypes to read_feather
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 033f47f0c994d..18fd3ca829b31 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -45,6 +45,7 @@ The ``use_nullable_dtypes`` keyword argument has been expanded to the following * :func:`read_sql_query` * ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50765
2023-01-15T23:20:15Z
2023-01-17T17:55:02Z
2023-01-17T17:55:02Z
2023-01-17T18:38:07Z
BUG: eval and query not working with ea dtypes
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 532881fee0892..d8beff81e6c6b 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1183,6 +1183,7 @@ Conversion - Bug in :meth:`DataFrame.astype` not copying data when converting to pyarrow dtype (:issue:`...
- [x] closes #29618 (Replace xxxx with the GitHub issue number) - [x] closes #50261 - [x] closes #31913 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas...
https://api.github.com/repos/pandas-dev/pandas/pulls/50764
2023-01-15T22:58:23Z
2023-02-09T16:45:15Z
2023-02-09T16:45:15Z
2023-02-09T16:46:38Z
TYP: fix NDFrame._value type
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 46f8c73027f48..a146098b53934 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -960,12 +960,8 @@ def _can_fast_transpose(self) -> bool: # TODO(EA2D) special case would be unnecessary with 2D EAs return not is_1d_only_ea_dtype...
xref https://github.com/pandas-dev/pandas/issues/37715 Fixes the type of `NDFrame._value` and allow to remove 2 related `# type: ignore` Thanks!
https://api.github.com/repos/pandas-dev/pandas/pulls/50763
2023-01-15T22:13:30Z
2023-01-18T19:45:22Z
2023-01-18T19:45:22Z
2023-01-18T20:05:29Z
BUG: Series add casting to object for list and masked series
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 033f47f0c994d..3dcee72770272 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -929,6 +929,7 @@ Numeric - Bug in arithmetic operations on :class:`Series` not propagating mask when combining masked dtype...
- [x] closes #22962 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50762
2023-01-15T21:12:36Z
2023-01-17T17:53:28Z
2023-01-17T17:53:28Z
2023-04-22T18:12:15Z
BUG: .transform(ngroup) for axis=1 grouper
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index a30d68319cafe..504d03419b5dc 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1126,6 +1126,7 @@ Groupby/resample/rolling - Bug in :class:`.DataFrameGroupBy` would raise when used with an empty DataFra...
Part of #45986 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Ad...
https://api.github.com/repos/pandas-dev/pandas/pulls/50761
2023-01-15T18:13:14Z
2023-01-24T21:44:33Z
2023-01-24T21:44:33Z
2023-01-24T21:44:45Z
BUG: replace raising RecursionError
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 033f47f0c994d..f734db1419282 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -980,6 +980,8 @@ Missing - Bug in :meth:`Series.map` caused incorrect result when data has NaNs and defaultdict mapping was...
- [x] closes #47480 (Replace xxxx with the GitHub issue number) - [x] closes #50758 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks...
https://api.github.com/repos/pandas-dev/pandas/pulls/50760
2023-01-15T17:00:10Z
2023-01-16T19:02:04Z
2023-01-16T19:02:04Z
2023-01-16T19:04:09Z
BUG: Fix file-like objects failing in `read_xml` when iterparse is used
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 8da9d7e3a04c0..eb6504a6a2948 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1022,6 +1022,7 @@ I/O - Fixed memory leak which stemmed from the initialization of the internal JSON module (:issue:`49222...
- [X] closes #50641 - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/50759
2023-01-15T16:45:19Z
2023-01-18T19:47:23Z
2023-01-18T19:47:23Z
2023-02-12T14:15:35Z
BUG: Series constructor overflowing for UInt64
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 6c8dd2f8da938..e20a6a04ce417 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1075,6 +1075,7 @@ ExtensionArray - Bug in :meth:`array.PandasArray.to_numpy` raising with ``NA`` value when ``na_value`` i...
- [x] closes #38798 (Replace xxxx with the GitHub issue number) - [x] closes #25880 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks...
https://api.github.com/repos/pandas-dev/pandas/pulls/50757
2023-01-15T14:34:45Z
2023-01-18T14:58:08Z
2023-01-18T14:58:08Z
2023-01-18T14:58:12Z
TST: Test groupby method drop na
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 5384b228850f4..b4a243671e287 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2846,3 +2846,22 @@ def test_sum_of_booleans(n): result = df.groupby("groupby_col").sum() ...
- [x] closes #21755 (Replace xxxx with GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) when a bug was fixed or a new feature was added - [ ] All [Code checks passed](https://pandas.pydata.org/pandas-docs/dev/developmen...
https://api.github.com/repos/pandas-dev/pandas/pulls/50755
2023-01-15T06:16:59Z
2023-01-17T17:24:37Z
2023-01-17T17:24:37Z
2023-01-18T03:04:10Z
TST: Determine groupby-transform not convert back type
diff --git a/pandas/tests/groupby/transform/test_transform.py b/pandas/tests/groupby/transform/test_transform.py index 528f417ea1039..ab4f2bd5e529b 100644 --- a/pandas/tests/groupby/transform/test_transform.py +++ b/pandas/tests/groupby/transform/test_transform.py @@ -1046,6 +1046,26 @@ def test_groupby_transform_with_...
- [x] closes #22243 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50754
2023-01-15T04:24:19Z
2023-01-17T18:51:38Z
2023-01-17T18:51:37Z
2023-01-18T13:43:08Z
ENH: Add lazy copy to shift
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 4ef91f6de5e27..9bcf7793201cd 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9908,7 +9908,7 @@ def shift( 2020-01-08 45 48 52 """ if periods == 0: - return self.copy() + retu...
- [ ] xref #49473 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50753
2023-01-15T00:52:47Z
2023-01-16T09:10:28Z
2023-01-16T09:10:28Z
2023-01-16T10:08:30Z
DOC: Clean whatsnew and dep warning
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b53595621af11..6c8dd2f8da938 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -572,7 +572,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ - Deprecated argument ``infer_datetime_format`` in :func:`to...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50752
2023-01-14T23:53:45Z
2023-01-15T01:51:00Z
2023-01-15T01:51:00Z
2023-01-15T01:51:04Z
TEST: dropna() doesn't fall into infinite loop
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index 569ec613cbcb9..2cd6c8783d387 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -11,9 +11,12 @@ datetime, timedelta, ) +import errno import functools +impor...
- [x] closes #50708 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). I h...
https://api.github.com/repos/pandas-dev/pandas/pulls/50751
2023-01-14T22:38:16Z
2023-05-26T17:26:11Z
null
2023-05-26T17:51:24Z
ENH: Add use_nullable_dtypes option to read_json
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b22590759ea3f..02e290ea28051 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -41,6 +41,7 @@ The ``use_nullable_dtypes`` keyword argument has been expanded to the following * :func:`read_excel` * :fun...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50750
2023-01-14T21:15:06Z
2023-01-17T19:07:49Z
2023-01-17T19:07:49Z
2023-01-17T19:17:27Z
TST: Consolidate tests that raise in groupby
diff --git a/pandas/tests/groupby/aggregate/test_cython.py b/pandas/tests/groupby/aggregate/test_cython.py index d3f9dd31e9fa1..487daddd3d214 100644 --- a/pandas/tests/groupby/aggregate/test_cython.py +++ b/pandas/tests/groupby/aggregate/test_cython.py @@ -96,13 +96,8 @@ def test_cython_agg_nothing_to_agg(): with ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50749
2023-01-14T20:32:54Z
2023-02-09T21:55:55Z
2023-02-09T21:55:55Z
2023-02-10T22:55:57Z
ENH: Add global nullable option
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index dc05745c8c0e5..5450fdf6b1923 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -49,6 +49,16 @@ The ``use_nullable_dtypes`` keyword argument has been expanded to the following * :func:`read_feather` * :...
- [x] closes #50747 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50748
2023-01-14T19:23:38Z
2023-01-24T13:34:14Z
2023-01-24T13:34:14Z
2023-01-24T13:34:18Z
ENH: Add lazy copy to replace
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 46f8c73027f48..ef4746311645c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5530,7 +5530,7 @@ def _replace_columnwise( DataFrame or None """ # Operate column-wise - res = self if inplace else self.copy() +...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50746
2023-01-14T19:11:26Z
2023-01-17T04:13:44Z
2023-01-17T04:13:44Z
2023-01-17T16:52:08Z
BUG: Stopping to_csv from trying to write to https
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index b395dbc0b6c69..ab4e9c69780d2 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -33,6 +33,7 @@ Bug fixes - Bug when chaining several :meth:`.Styler.concat` calls, only the last styler was concatenated (:...
- [X] closes #50709 - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [X]...
https://api.github.com/repos/pandas-dev/pandas/pulls/50745
2023-01-14T16:39:58Z
2023-01-17T22:16:47Z
null
2023-01-17T22:16:47Z
REF: groupby Series selection with as_index=False
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 02a9444dd4f97..c28da1bc758cd 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -2,12 +2,14 @@ import abc from collections import defaultdict +from contextlib import nullcontext from functools import partial import inspect from typing im...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50744
2023-01-14T15:42:01Z
2023-01-18T19:48:31Z
2023-01-18T19:48:31Z
2023-01-23T21:50:22Z
TST: Test dtype sparseDtype with specificd fill value
diff --git a/pandas/tests/arrays/sparse/test_astype.py b/pandas/tests/arrays/sparse/test_astype.py index d729a31668ade..86d69610059b3 100644 --- a/pandas/tests/arrays/sparse/test_astype.py +++ b/pandas/tests/arrays/sparse/test_astype.py @@ -3,7 +3,11 @@ from pandas._libs.sparse import IntIndex -from pandas import ...
- [x] closes #49987 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50743
2023-01-14T14:17:47Z
2023-01-16T00:09:49Z
2023-01-16T00:09:49Z
2023-01-16T03:06:57Z
DOC: Add datetime.tzinfo to paramater tz in tz_localize and tz_convert
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index f1da99825d5fd..2c1ef7f05fa03 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -803,7 +803,7 @@ def tz_convert(self, tz) -> DatetimeArray: Parameters ---------- - tz : str,...
- [x] closes #50655 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50742
2023-01-14T07:34:46Z
2023-01-16T19:18:14Z
2023-01-16T19:18:14Z
2023-01-17T07:28:56Z
TST: Fix undefined variables in tests
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 2dce3e72b1e3f..523463b9593a2 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -528,6 +528,7 @@ def test_groupby_extension_transform(self, data_for_grouping, request): def te...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50741
2023-01-14T05:20:10Z
2023-01-14T15:52:46Z
2023-01-14T15:52:46Z
2023-01-14T15:52:47Z
TST: Sync pyproject.toml Pytest version with min deps
diff --git a/pyproject.toml b/pyproject.toml index 0308f86beb0d4..dc237d32c022c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -356,7 +356,7 @@ disable = [ [tool.pytest.ini_options] # sync minversion with pyproject.toml & install.rst -minversion = "6.0" +minversion = "7.0" addopts = "--strict-data-files --st...
Bumped in https://github.com/pandas-dev/pandas/pull/50481
https://api.github.com/repos/pandas-dev/pandas/pulls/50740
2023-01-14T00:14:34Z
2023-01-14T19:11:20Z
2023-01-14T19:11:20Z
2023-01-14T19:11:23Z
Backport PR #50396 on branch 1.5.x (BUG/COMPAT: fix assert_* functions for nested arrays with latest numpy)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index 51e36359946e7..9d17d3cf7bea9 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -31,6 +31,7 @@ Bug fixes - Bug in :meth:`Series.quantile` emitting warning from NumPy when :class:`Series` has only ``NA`` ...
Backport PR #50396: BUG/COMPAT: fix assert_* functions for nested arrays with latest numpy
https://api.github.com/repos/pandas-dev/pandas/pulls/50739
2023-01-13T23:14:08Z
2023-01-14T05:21:24Z
2023-01-14T05:21:24Z
2023-01-14T05:21:24Z
DOC: list supported float dtypes I
diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index f30c66d75b525..8ca81acd6a704 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -2073,6 +2073,8 @@ documentation sections for more on each type. | ...
- [x] closes #50216 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Updated documentation for `pandas.to_numeric()`, pointed out that `downcast` parameter doesn’t support `float16` dtype. Listed in the description of [dtype](https://pandas...
https://api.github.com/repos/pandas-dev/pandas/pulls/50738
2023-01-13T20:52:12Z
2023-02-15T18:31:45Z
2023-02-15T18:31:45Z
2023-02-15T18:31:52Z
REF: array_with_unit_to_datetime
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 10bcf6c9eabbf..fc6ba89ecfa24 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -262,7 +262,6 @@ def array_with_unit_to_datetime( bint is_coerce = errors=="coerce" bint is_raise = errors=="raise" ndarray[int64...
use the same pattern @MarcoGorelli recently implemented in array_to_datetime
https://api.github.com/repos/pandas-dev/pandas/pulls/50737
2023-01-13T19:55:44Z
2023-01-17T11:57:13Z
2023-01-17T11:57:13Z
2023-01-17T16:20:27Z
REF: share string parsing code
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 10bcf6c9eabbf..36001248d664b 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -51,7 +51,7 @@ from pandas._libs.tslibs.parsing import parse_datetime_string from pandas._libs.tslibs.conversion cimport ( _TSObject, cast_from_u...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50736
2023-01-13T18:44:16Z
2023-01-16T18:17:14Z
2023-01-16T18:17:14Z
2023-01-16T18:19:27Z
BUG: stringdtype.astype(dt64_or_td64)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b53595621af11..554c972b56b34 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -946,6 +946,7 @@ Conversion Strings ^^^^^^^ - Bug in :func:`pandas.api.dtypes.is_string_dtype` that would not return ``Tr...
- [x] closes #36153 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50734
2023-01-13T16:17:30Z
2023-01-17T19:11:25Z
2023-01-17T19:11:25Z
2023-01-17T19:27:47Z
CLN explicit float casts in tests
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index e7c5142bc05ca..ab3494f0823ad 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -1936,15 +1936,19 @@ def test_dataframe_blockwise_slicelike(): # GH#34367 arr = np.ran...
Similar to https://github.com/pandas-dev/pandas/pull/50493 There are places when an implicit cast happens, but it's not the purpose of the test - the cast might as well be done explicitly then This would help pave the way towards https://github.com/pandas-dev/pandas/pull/50424 --- I expect this to be the la...
https://api.github.com/repos/pandas-dev/pandas/pulls/50733
2023-01-13T15:26:31Z
2023-01-13T18:14:39Z
2023-01-13T18:14:39Z
2023-01-13T18:14:47Z
Enhanced the documentation and added examples in pandas tseries offsets Week class
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index cf02b0cb396bd..17d4e0dd3234b 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -2782,13 +2782,33 @@ cdef class Week(SingleConstructorOffset): Parameters ---------- weekday : int or Non...
- [ ] closes #47651 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50732
2023-01-13T14:57:15Z
2023-01-17T12:43:16Z
2023-01-17T12:43:16Z
2023-01-17T12:43:17Z
Backport PR #50728 on branch 1.5.x (CI fix failing python-dev job)
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index c07a101cc433b..0d265182b3924 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -73,7 +73,7 @@ jobs: run: | python --version python -m pip install --upgrade pip setuptools...
Backport PR #50728: CI fix failing python-dev job
https://api.github.com/repos/pandas-dev/pandas/pulls/50731
2023-01-13T13:27:27Z
2023-01-13T15:07:44Z
2023-01-13T15:07:44Z
2023-01-13T15:07:44Z
PERF (CoW): optimize equality check in groupby is_in_obj
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index e0e5c15f6adfc..051d60c624da0 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -27,15 +27,18 @@ from pandas.core.dtypes.common import ( is_categorical_dtype, + is_dtype_equal, is_list_lik...
See discussion in https://github.com/pandas-dev/pandas/pull/49450 TODO: - [ ] Probably need to add more tests (ensure full helper is covered)
https://api.github.com/repos/pandas-dev/pandas/pulls/50730
2023-01-13T13:16:38Z
2023-02-17T09:07:22Z
null
2023-02-17T09:07:34Z
TST: mark copy_view test_switch_options test as single_cpu
diff --git a/pandas/tests/copy_view/test_internals.py b/pandas/tests/copy_view/test_internals.py index 7a2965f2e1c61..1938a1c58fe3d 100644 --- a/pandas/tests/copy_view/test_internals.py +++ b/pandas/tests/copy_view/test_internals.py @@ -65,6 +65,7 @@ def test_clear_parent(using_copy_on_write): assert subset._mgr.p...
While backporting https://github.com/pandas-dev/pandas/pull/49771 in https://github.com/pandas-dev/pandas/pull/50128, I had to mark the test to not run in parallel to get it passing. This was not needed on the main branch, but since this can depend on the exact order and presence of other tests, seems safer to apply th...
https://api.github.com/repos/pandas-dev/pandas/pulls/50729
2023-01-13T12:53:35Z
2023-01-13T15:56:52Z
2023-01-13T15:56:51Z
2023-01-13T20:03:24Z
CI fix failing python-dev job
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index cded739856a82..2ece92dc50b87 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -73,7 +73,7 @@ jobs: run: | python --version python -m pip install --upgrade pip setuptools...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50728
2023-01-13T10:42:53Z
2023-01-13T13:26:53Z
2023-01-13T13:26:53Z
2023-01-13T13:27:01Z
Backport PR #50630 on branch 1.5.x (BUG: Fix bug in putmask for CoW)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index b2039abe9f715..9263ee42c98c0 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -26,6 +26,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Bug in the Copy-on-Write implementation losing track of views wh...
#50630
https://api.github.com/repos/pandas-dev/pandas/pulls/50726
2023-01-13T08:26:49Z
2023-01-13T10:32:06Z
2023-01-13T10:32:06Z
2023-01-21T01:33:26Z
BUG: Fix agg with single-element function list given arg and kwargs
- [x] closes #50624 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/50725
2023-01-13T07:33:10Z
2023-01-18T14:02:58Z
null
2023-01-18T14:07:22Z
TST: Cleanup more warning filtering
diff --git a/pandas/conftest.py b/pandas/conftest.py index e4e32ab4a7350..1a410f87c8552 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -92,10 +92,6 @@ except zoneinfo.ZoneInfoNotFoundError: # type: ignore[attr-defined] zoneinfo = None -# Until https://github.com/numpy/numpy/issues/19078 is...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50723
2023-01-13T01:58:42Z
2023-01-13T23:27:02Z
2023-01-13T23:27:02Z
2023-01-13T23:27:05Z
REF: stricter typing, better naming in parsing.pyx
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 10bcf6c9eabbf..03450c53781c7 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -770,6 +770,15 @@ cdef _array_to_datetime_object( oresult[i] = "NaT" cnp.PyArray_MultiIter_NEXT(mi) conti...
Trying to move towards having fewer different string parsing paths.
https://api.github.com/repos/pandas-dev/pandas/pulls/50722
2023-01-13T00:46:23Z
2023-01-13T21:38:02Z
2023-01-13T21:38:02Z
2023-01-13T21:38:08Z
DOC: improve Index docstrings
diff --git a/pandas/core/base.py b/pandas/core/base.py index 826583fd26f5d..3f32f3cff8607 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -784,6 +784,10 @@ def hasnans(self) -> bool: Return True if there are any NaNs. Enables various performance speedups. + + Returns + --...
- [X] xref #37875 and #27977 - ~~[Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature~~ - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commi...
https://api.github.com/repos/pandas-dev/pandas/pulls/50720
2023-01-12T23:22:34Z
2023-01-16T18:28:20Z
2023-01-16T18:28:20Z
2023-01-16T18:28:28Z
BUG: .max() gives wrong answer for non-nanosecond datetimeindex
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index b8e2b1fafe326..f9c6465cd948e 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -370,9 +370,9 @@ def _wrap_results(result, dtype: np.dtype, fill_value=None): result = np.nan if isna(result): - ...
- [ ] closes #50716 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50719
2023-01-12T21:39:17Z
2023-01-13T16:44:27Z
2023-01-13T16:44:27Z
2023-01-13T16:44:27Z
Backport PR #50685 on branch 1.5.x (BUG: Series.quantile emitting RuntimeWarning for all NA case)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index b2039abe9f715..81f399233d824 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -27,6 +27,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in :meth:`.Styler.to_excel` leading to error when unrecognized...
Backport PR #50685: BUG: Series.quantile emitting RuntimeWarning for all NA case
https://api.github.com/repos/pandas-dev/pandas/pulls/50718
2023-01-12T20:29:08Z
2023-01-13T08:27:23Z
2023-01-13T08:27:23Z
2023-01-13T08:27:23Z
ENH: support any/all for pyarrow numeric and duration dtypes
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index e2a74ea6f5351..ddb2f01898ec7 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1012,6 +1012,26 @@ def _reduce(self, name: str, *, skipna: bool = True, **kwargs): ------ Typ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50717
2023-01-12T20:00:48Z
2023-01-24T18:21:34Z
2023-01-24T18:21:34Z
2023-01-24T18:24:01Z
Backport PR #50706 on branch 1.5.x (Revert "CI temporarily pin numpy")
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index aef542e8c9f16..b1ea2682b7ea7 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -41,7 +41,7 @@ // pip (with all the conda available packages installed first, // followed by the pip installed packages). "matrix": { - ...
Backport PR #50706: Revert "CI temporarily pin numpy"
https://api.github.com/repos/pandas-dev/pandas/pulls/50715
2023-01-12T18:56:16Z
2023-01-13T16:45:57Z
2023-01-13T16:45:56Z
2023-01-13T16:45:57Z
PERF: Fix reference leak in read_hdf
diff --git a/asv_bench/benchmarks/io/hdf.py b/asv_bench/benchmarks/io/hdf.py index 12bc65f9e7bf5..e44a59114b30d 100644 --- a/asv_bench/benchmarks/io/hdf.py +++ b/asv_bench/benchmarks/io/hdf.py @@ -128,9 +128,17 @@ def setup(self, format): self.df["object"] = tm.makeStringIndex(N) self.df.to_hdf(self.f...
- [ ] closes #37441 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/50714
2023-01-12T18:44:41Z
2023-01-16T19:21:07Z
2023-01-16T19:21:07Z
2023-03-14T12:16:08Z
BUG: Fix style.background_gradient() for nullable dtype (ex: Int64) series with pd.NA values
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 033f47f0c994d..d073c2b126227 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1079,7 +1079,7 @@ ExtensionArray Styler ^^^^^^ -- +- Fix :meth:`~pandas.io.formats.style.Styler.background_gradient` fo...
- [x] closes #50712 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/50713
2023-01-12T18:31:37Z
2023-01-16T17:46:12Z
2023-01-16T17:46:12Z
2023-01-16T17:46:19Z
DOC: added installation instructions for nightly build
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 36bc8dcf02bae..d9330e396ed12 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -17,7 +17,9 @@ body: [latest version](https://pandas.pydata.org/docs/whatsnew/i...
- [x] closes #50703 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/50707
2023-01-12T15:27:02Z
2023-01-13T23:01:19Z
2023-01-13T23:01:19Z
2023-01-13T23:01:26Z
Revert "CI temporarily pin numpy"
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index 6e548bf9d9e8a..16f8f28b66d31 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -41,7 +41,7 @@ // pip (with all the conda available packages installed first, // followed by the pip installed packages). "matrix": { - ...
Reverts pandas-dev/pandas#50356
https://api.github.com/repos/pandas-dev/pandas/pulls/50706
2023-01-12T14:36:28Z
2023-01-12T18:56:04Z
2023-01-12T18:56:04Z
2023-01-12T18:59:04Z
Backport PR #50698 on branch 1.5.x (CI capture error in numpy dev, fix python-dev build)
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index ef16a4fb3fa33..c07a101cc433b 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -73,7 +73,7 @@ jobs: run: | python --version python -m pip install --upgrade pip setuptools...
Backport PR #50698: CI capture error in numpy dev, fix python-dev build
https://api.github.com/repos/pandas-dev/pandas/pulls/50705
2023-01-12T14:25:10Z
2023-01-12T16:31:09Z
2023-01-12T16:31:09Z
2023-01-12T16:35:29Z
Backport PR #49615 on branch 1.5.x (REGR: Better warning in pivot_table when dropping nuisance columns)
… nuisance columns - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/50701
2023-01-12T12:36:43Z
2023-01-12T12:40:21Z
null
2023-01-12T12:41:25Z
Backport PR #49386 on branch 1.5.x (DOC: add name parameter to the IntervalIndex for #48911)
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 8f01dfaf867e7..ea5c6d52f29ba 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -383,7 +383,8 @@ def _from_factorized( Left and right bounds for each interval. closed : {'left', 'rig...
…#48911 Backport PR #49386 - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.or...
https://api.github.com/repos/pandas-dev/pandas/pulls/50700
2023-01-12T12:31:04Z
2023-01-12T14:10:15Z
2023-01-12T14:10:15Z
2023-01-12T14:10:16Z
CI capture error in numpy dev, fix python-dev build
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 220c1e464742e..9076b66683a29 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -73,7 +73,7 @@ jobs: run: | python --version python -m pip install --upgrade pip setuptools...
- [ ] closes #50695 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50698
2023-01-12T11:04:54Z
2023-01-12T14:24:29Z
2023-01-12T14:24:29Z
2023-01-12T16:34:56Z
add multi index with categories test
diff --git a/pandas/tests/indexes/multi/test_setops.py b/pandas/tests/indexes/multi/test_setops.py index d0345861d6778..08ccf696d73f3 100644 --- a/pandas/tests/indexes/multi/test_setops.py +++ b/pandas/tests/indexes/multi/test_setops.py @@ -692,6 +692,43 @@ def test_intersection_lexsort_depth(levels1, levels2, codes1, ...
Reopening, because https://github.com/pandas-dev/pandas/pull/49975 was closed closes #49337
https://api.github.com/repos/pandas-dev/pandas/pulls/50697
2023-01-12T09:43:05Z
2023-01-12T18:58:31Z
2023-01-12T18:58:31Z
2023-01-12T18:58:40Z
CI: Add regular 3.11 pipeline
diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml index d762e20db196a..ac5fd4aa7d4a4 100644 --- a/.github/workflows/macos-windows.yml +++ b/.github/workflows/macos-windows.yml @@ -31,7 +31,7 @@ jobs: strategy: matrix: os: [macos-latest, windows-latest] - ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50696
2023-01-12T09:39:03Z
2023-01-16T18:30:01Z
2023-01-16T18:30:01Z
2023-02-08T17:43:18Z
Backport PR on Branch 1.5.x (REV: revert deprecation of Series.__getitem__ slicing with IntegerIndex)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index 51e36359946e7..3b803af359860 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -45,7 +45,7 @@ Other you may see a ``sqlalchemy.exc.RemovedIn20Warning``. These warnings can be safely ignored for the ...
#50283
https://api.github.com/repos/pandas-dev/pandas/pulls/50694
2023-01-12T08:27:12Z
2023-01-14T18:37:41Z
2023-01-14T18:37:41Z
2023-01-14T18:37:44Z
Backport PR on Branch 1.5.x (DOC: Add note in 1.5.3 about SQLAlchemy warnings)
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index a0c38f1f81538..b2039abe9f715 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -36,6 +36,13 @@ Bug fixes Other ~~~~~ + +.. note:: + + If you are using :meth:`DataFrame.to_sql`, :func:`read_sql`, :...
#50680
https://api.github.com/repos/pandas-dev/pandas/pulls/50693
2023-01-12T08:22:01Z
2023-01-12T12:34:54Z
2023-01-12T12:34:54Z
2023-01-21T01:33:31Z
TST: CoW with df.isetitem()
diff --git a/pandas/tests/copy_view/test_methods.py b/pandas/tests/copy_view/test_methods.py index 2bc4202cce5f5..111073795325b 100644 --- a/pandas/tests/copy_view/test_methods.py +++ b/pandas/tests/copy_view/test_methods.py @@ -759,3 +759,25 @@ def test_squeeze(using_copy_on_write): # Without CoW the original...
xref https://github.com/pandas-dev/pandas/issues/49473 - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed]...
https://api.github.com/repos/pandas-dev/pandas/pulls/50692
2023-01-12T05:35:19Z
2023-01-12T21:28:58Z
2023-01-12T21:28:58Z
2023-03-14T12:16:09Z
TST: incorrect pyarrow xfails
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 78c49ae066288..2dc635f18ffae 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -351,20 +351,15 @@ def check_accumulate(self, s, op_name, skipna): self.assert_series_equal...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50691
2023-01-12T04:02:43Z
2023-01-17T19:41:58Z
2023-01-17T19:41:58Z
2023-01-17T20:31:27Z
BUG: ArrowDtype.construct_from_string round-trip
diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py index 331e66698cc35..fdb9ac877831b 100644 --- a/pandas/core/arrays/arrow/dtype.py +++ b/pandas/core/arrays/arrow/dtype.py @@ -203,6 +203,13 @@ def construct_from_string(cls, string: str) -> ArrowDtype: except ValueError as err: ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50689
2023-01-12T03:17:46Z
2023-02-18T17:38:28Z
2023-02-18T17:38:28Z
2023-02-18T17:38:43Z
TST: simplify pyarrow tests, make mode work with temporal dtypes
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 641eb7b01f0b6..d7faf00113609 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -657,12 +657,11 @@ def factorize( pa_type = self._data.type if pa.types.is_duration(pa_type): ...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/50688
2023-01-12T01:22:40Z
2023-01-18T20:07:38Z
2023-01-18T20:07:37Z
2023-01-18T20:27:31Z
BUG: Support dictionaries in SeriesGroupBy.agg
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 45e4fd9f0aabb..2b8f64a2c7634 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1022,6 +1022,7 @@ Groupby/resample/rolling - Bug in :meth:`.DataFrameGroupBy.transform` and :meth:`.SeriesGroupBy.transfor...
- [x] closes #50684 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50687
2023-01-12T00:13:50Z
2023-01-14T13:50:48Z
null
2023-11-26T13:42:28Z
TST: Fix test_constructor_signed_int_overflow_deprecation w/ multiple warnings
diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index e4ab5ef596440..bc26158f40416 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -13,10 +13,7 @@ iNaT, lib, ) -from pandas.compat import ( - IS64, - ...
- closes #50710 Would raise ``` 2023-01-07T01:45:49.8230480Z FAILED ../lib/python3.10/site-packages/pandas/tests/series/test_constructors.py::TestSeriesConstructors::test_constructor_signed_int_overflow_deprecation - TypeError: issubclass() arg 2 must be a class, a tuple of classes, or a union ``` because t...
https://api.github.com/repos/pandas-dev/pandas/pulls/50686
2023-01-12T00:04:05Z
2023-01-12T20:30:22Z
2023-01-12T20:30:22Z
2023-01-12T20:30:26Z
BUG: Series.quantile emitting RuntimeWarning for all NA case
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index 2141f672462ef..92577c48b865b 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -28,6 +28,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in :meth:`.Styler.to_excel` leading to error when unrecognized...
- [x] closes #50681 (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50685
2023-01-12T00:03:45Z
2023-01-12T20:28:56Z
2023-01-12T20:28:56Z
2023-01-12T21:26:14Z
BUG: is_any_int_dtype not recognizing arrow integers
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 4a8f1292ecdef..aa3cdcd65b344 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -638,7 +638,11 @@ def is_any_int_dtype(arr_or_dtype) -> bool: >>> is_any_int_dtype(pd.Index([1, 2.])) # float False ...
- [x] xref #50667 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/50683
2023-01-11T22:56:27Z
2023-01-12T08:14:05Z
2023-01-12T08:14:05Z
2023-01-12T08:14:10Z
BUG: pivot_table with nested elements and numpy 1.24
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index b395dbc0b6c69..176f713df61d3 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -32,8 +32,8 @@ Bug fixes - Bug in :meth:`Series.quantile` emitting warning from NumPy when :class:`Series` has only ``NA`` ...
- [ ] closes #50342 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50682
2023-01-11T22:43:42Z
2023-01-17T17:35:22Z
2023-01-17T17:35:22Z
2023-01-17T17:35:26Z
DOC: Add note in 1.5.3 about SQLAlchemy warnings
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index 0cb8796e3fb5d..2141f672462ef 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -37,6 +37,13 @@ Bug fixes Other ~~~~~ + +.. note:: + + If you are using :meth:`DataFrame.to_sql`, :func:`read_sql`, :...
xref #50558 As discussed in todays dev call, for 1.5.3 the decision was to document that SQLAlchemy warnings can be expected but not addressed.
https://api.github.com/repos/pandas-dev/pandas/pulls/50680
2023-01-11T21:38:01Z
2023-01-12T08:13:18Z
2023-01-12T08:13:18Z
2023-01-12T15:58:39Z
Update eval_performance.py
diff --git a/doc/scripts/eval_performance.py b/doc/scripts/eval_performance.py index f6087e02a9330..559689ef5915b 100644 --- a/doc/scripts/eval_performance.py +++ b/doc/scripts/eval_performance.py @@ -6,6 +6,7 @@ from pandas import DataFrame setup_common = """from pandas import DataFrame +import numpy as np df = D...
I think there is someone has forgotten or maybe delete this by mistaken : import numpy as np - [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new f...
https://api.github.com/repos/pandas-dev/pandas/pulls/50679
2023-01-11T19:49:06Z
2023-01-12T01:45:07Z
2023-01-12T01:45:07Z
2023-01-12T01:45:13Z
TEST: added test case for issue 41800
diff --git a/pandas/tests/series/methods/test_combine_first.py b/pandas/tests/series/methods/test_combine_first.py index 1d104b12ce7d2..bd8f9df026e19 100644 --- a/pandas/tests/series/methods/test_combine_first.py +++ b/pandas/tests/series/methods/test_combine_first.py @@ -100,3 +100,16 @@ def test_combine_first_dt_tz_v...
- [x] Addresses #41800 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/50677
2023-01-11T16:45:49Z
2023-01-12T18:50:52Z
2023-01-12T18:50:52Z
2023-01-12T18:50:59Z
DEPR: ADD FutureWarning for pandas.io.execute
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 9a99dbad30708..39a93304bfe5a 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -556,9 +556,10 @@ Other API changes Deprecations ~~~~~~~~~~~~ - Deprecated argument ``infer_datetime_format`` in :func:`t...
reopen for [DEPR: Add FutureWarning for pandas.io.sql.execute Pull Request #50638](https://github.com/pandas-dev/pandas/pull/50638) - [x] closes #50185 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature...
https://api.github.com/repos/pandas-dev/pandas/pulls/50676
2023-01-11T15:29:58Z
2023-01-12T16:02:53Z
2023-01-12T16:02:53Z
2023-01-12T16:41:25Z
CLN: fix and move using_copy_on_write() helper out of internals
diff --git a/pandas/_config/__init__.py b/pandas/_config/__init__.py index 929f8a5af6b3f..5219abc697dbd 100644 --- a/pandas/_config/__init__.py +++ b/pandas/_config/__init__.py @@ -14,10 +14,12 @@ "describe_option", "option_context", "options", + "using_copy_on_write", ] from pandas._config import c...
I initially added this helper function just to the BlockManager internals in https://github.com/pandas-dev/pandas/pull/49771, but since then it seems we also started to use it outside of the internals. Which I think is a good change for a check that we will have to do often on the short term (it makes it more convenien...
https://api.github.com/repos/pandas-dev/pandas/pulls/50675
2023-01-11T10:52:21Z
2023-01-11T13:44:28Z
2023-01-11T13:44:28Z
2023-01-11T14:18:35Z
CLN: Remove 3rd party warning filters
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 67e00dde5498b..cb66d1a422811 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -285,9 +285,6 @@ def write( **kwargs, ) -> None: self.validate_dataframe(df) - # thriftpy/protocol/compact.py:339: - # Deprecat...
Checking if any of these are still needed and if so probably moving them to pyproject.toml
https://api.github.com/repos/pandas-dev/pandas/pulls/50674
2023-01-11T02:46:34Z
2023-01-13T00:25:44Z
2023-01-13T00:25:44Z
2023-01-13T00:25:48Z
BUG: is_[int|float]_dtypes functions not recognizing ArrowDtype
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3ac004ef335ac..530d5dd00d1b2 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1049,6 +1049,7 @@ ExtensionArray - Bug when concatenating an empty DataFrame with an ExtensionDtype to another DataFrame w...
- [ ] closes #50667 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/50672
2023-01-10T23:59:21Z
2023-01-11T12:53:03Z
2023-01-11T12:53:03Z
2023-01-11T16:27:40Z
TST: Add a test for fillna in PeriodArray
diff --git a/pandas/tests/series/methods/test_fillna.py b/pandas/tests/series/methods/test_fillna.py index 47703b294c2b1..9fded26c37caf 100644 --- a/pandas/tests/series/methods/test_fillna.py +++ b/pandas/tests/series/methods/test_fillna.py @@ -21,6 +21,7 @@ isna, ) import pandas._testing as tm +from pandas.core...
- [x] closes #24537
https://api.github.com/repos/pandas-dev/pandas/pulls/50671
2023-01-10T23:01:43Z
2023-01-15T21:13:57Z
2023-01-15T21:13:57Z
2023-01-15T21:17:49Z