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
Revert "TMP: pin openssl for doc build"
diff --git a/environment.yml b/environment.yml index ade0bb8f7fa3a..d72972ffc4da4 100644 --- a/environment.yml +++ b/environment.yml @@ -82,7 +82,3 @@ dependencies: - xlwt # pandas.read_excel, DataFrame.to_excel, pandas.ExcelWriter, pandas.ExcelFile - odfpy # pandas.read_excel - pyreadstat # pandas.read_sps...
Reverts pandas-dev/pandas#28404 Closes https://github.com/pandas-dev/pandas/issues/28402
https://api.github.com/repos/pandas-dev/pandas/pulls/28405
2019-09-12T09:55:18Z
2019-09-13T14:15:23Z
2019-09-13T14:15:23Z
2019-09-13T14:15:28Z
TMP: pin openssl for doc build
diff --git a/environment.yml b/environment.yml index d72972ffc4da4..ade0bb8f7fa3a 100644 --- a/environment.yml +++ b/environment.yml @@ -82,3 +82,7 @@ dependencies: - xlwt # pandas.read_excel, DataFrame.to_excel, pandas.ExcelWriter, pandas.ExcelFile - odfpy # pandas.read_excel - pyreadstat # pandas.read_sps...
Temporary solution for https://github.com/pandas-dev/pandas/issues/28402
https://api.github.com/repos/pandas-dev/pandas/pulls/28404
2019-09-12T08:34:58Z
2019-09-12T09:54:45Z
2019-09-12T09:54:45Z
2019-09-12T09:55:36Z
Fix a `np.random.np.random` typo in "computation.rst" in document.
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index cfce7c40c477f..4beac5e035efc 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -182,7 +182,7 @@ assigned the mean of the ranks (by default) for the group: .. ipython:: pyth...
There's `np.random.np.random` in /doc/source/user_guide/computation.rst, which I believe is a typo. But the weird thing is there's actually `np.random.np` in numpy (1.16.4), but not in numpy (1.17.2). That's maybe why the doc build passed before. While I'm trying to build the doc locally with numpy 1.17.2, it failed. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/28400
2019-09-12T06:24:43Z
2019-09-12T12:51:16Z
2019-09-12T12:51:16Z
2019-10-01T18:43:42Z
BUG: Fix Series(List[Interval]) to infer interval dtype
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 6c75b3d8cfa0b..5b1ce6140bb5a 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -884,6 +884,7 @@ Interval - Bug in :meth:`IntervalIndex.get_indexer` where a :class:`Categorical` or :class:`CategoricalI...
- [X] closes #23563 - [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/28399
2019-09-12T04:56:42Z
2020-01-06T13:29:36Z
2020-01-06T13:29:36Z
2020-01-06T15:41:43Z
CLN: Update cpython imports in Cython Code GH28382
diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx index b8df78e600a46..8179822b9e10c 100644 --- a/pandas/_libs/hashtable.pyx +++ b/pandas/_libs/hashtable.pyx @@ -1,7 +1,7 @@ cimport cython -from cpython cimport (PyObject, Py_INCREF, - PyMem_Malloc, PyMem_Realloc, PyMem_Free) +...
- [x] closes #28382 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Apologies if anything is not ideal, as this is my first pull request here. Any suggestions or comments are much appreciated!
https://api.github.com/repos/pandas-dev/pandas/pulls/28398
2019-09-12T03:23:28Z
2019-09-13T00:56:42Z
2019-09-13T00:56:41Z
2019-09-13T00:57:00Z
REF: prepare Series comparison op to be refactored to array op
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 90fb3b8685c93..3d4be809d6bff 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -663,27 +663,9 @@ def _comp_method_SERIES(cls, op, special): """ op_name = _get_op_name(op, special) - def na_op(x, y): -...
Companion to #28395 (independent)
https://api.github.com/repos/pandas-dev/pandas/pulls/28396
2019-09-11T22:19:43Z
2019-09-12T13:00:03Z
2019-09-12T13:00:03Z
2019-09-12T15:06:47Z
REF: prepare Series logical op to be refactored to array op
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 90fb3b8685c93..141aac51a624f 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -787,11 +787,17 @@ def na_op(x, y): return result - fill_int = lambda x: x.fillna(0) + fill_int = lambda x: x ...
With this, L823-849 is not-Series-specific, so the next step will be to refactor this out to array_ops and we'll be able to to share it between the Series op and the upcoming block-wise op. Change to `fill_bool` makes it work on `ndarray` instead of `Series`. `other = lib.item_from_zerodim` is added for consisten...
https://api.github.com/repos/pandas-dev/pandas/pulls/28395
2019-09-11T22:13:52Z
2019-09-12T12:52:48Z
2019-09-12T12:52:48Z
2019-09-12T15:05:15Z
Optionally disallow duplicate labels
diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst index 4d9d18e3d204e..9a1ebc8d670dc 100644 --- a/doc/source/reference/frame.rst +++ b/doc/source/reference/frame.rst @@ -37,6 +37,7 @@ Attributes and underlying data DataFrame.shape DataFrame.memory_usage DataFrame.empty + DataFra...
This adds a property to NDFrame to disallow duplicate labels. This fixes a vexing issue with using pandas for ETL pipelines, where accidentally introducing duplicate labels can lead to confusing downstream behavior (e.g. `NDFrame.__getitem__` not reducing dimensionality). When set (via the construction with `allow_d...
https://api.github.com/repos/pandas-dev/pandas/pulls/28394
2019-09-11T22:13:09Z
2020-09-03T03:00:00Z
2020-09-03T03:00:00Z
2020-09-08T16:44:37Z
DEP: Bump Cython to 0.29.13
diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml index 97c45b2be27d7..dd54001984ec7 100644 --- a/ci/deps/azure-35-compat.yaml +++ b/ci/deps/azure-35-compat.yaml @@ -18,13 +18,13 @@ dependencies: - xlsxwriter=0.9.8 - xlwt=1.2.0 # universal - - cython=0.28.2 - hypothesis>=3.58.0 - ...
In preperation for Python 3.8, we need to ensure we compile the sdist with new enough versions of Cython. This is the latest current release. xref https://github.com/pandas-dev/pandas/issues/28341
https://api.github.com/repos/pandas-dev/pandas/pulls/28391
2019-09-11T19:14:33Z
2019-09-12T12:49:22Z
2019-09-12T12:49:22Z
2019-09-12T12:54:05Z
CLN: Exception in core.dtypes
diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py index 201174b6b1995..24dafd11ae2b7 100644 --- a/pandas/core/arrays/sparse.py +++ b/pandas/core/arrays/sparse.py @@ -245,10 +245,10 @@ def construct_from_string(cls, string): if string.startswith("Sparse"): try: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/28387
2019-09-11T14:41:50Z
2019-09-13T20:13:45Z
2019-09-13T20:13:45Z
2019-09-13T22:28:15Z
TST: add test for #9107
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 9840e4e94d28c..f36f312b1299e 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -118,7 +118,6 @@ Datetimelike - Bug in :meth:`pandas.core.groupby.SeriesGroupBy.nunique` where ``NaT`` values were interfer...
test to ensure OutOfBoundsDatetime exception is raised when calling pd.to_datetime with out-of-bounds date strings As discussed briefly in #28367 - [x] closes #9107 ? the issue is no longer truly reproducible, this PR adds a test around the new behaviour - [x] tests added / passed - [x] passes `black pandas`...
https://api.github.com/repos/pandas-dev/pandas/pulls/28386
2019-09-11T13:40:25Z
2019-09-12T12:50:30Z
2019-09-12T12:50:29Z
2019-09-12T12:50:33Z
CLN: small ops cleanup
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 0b85c94f4b90c..90fb3b8685c93 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -18,7 +18,6 @@ ensure_object, is_bool_dtype, is_datetime64_dtype, - is_datetimelike_v_numeric, is_extension_array...
https://api.github.com/repos/pandas-dev/pandas/pulls/28379
2019-09-10T21:40:25Z
2019-09-11T12:21:43Z
2019-09-11T12:21:43Z
2019-09-11T14:27:11Z
BLD: Add pyproject.toml
diff --git a/.gitignore b/.gitignore index e85da9c9b976b..6c3c275c48fb7 100644 --- a/.gitignore +++ b/.gitignore @@ -57,6 +57,7 @@ dist # wheel files *.whl **/wheelhouse/* +pip-wheel-metadata # coverage .coverage coverage.xml diff --git a/MANIFEST.in b/MANIFEST.in index b417b8890fa24..d82e64d0a68b8 100644 --- a/M...
* Adds pyproject.toml to support this. * Bumps minimum Cython version to the version supporting Python 3.8. Closes https://github.com/pandas-dev/pandas/issues/20775 xref https://github.com/pandas-dev/pandas/issues/27435 (check if closes) xref https://github.com/pandas-dev/pandas/pull/25227, https://github.com/p...
https://api.github.com/repos/pandas-dev/pandas/pulls/28374
2019-09-10T18:43:58Z
2019-09-13T16:11:48Z
2019-09-13T16:11:47Z
2019-09-14T08:24:49Z
ENH: Fix `by` in DataFrame.plot.hist and DataFrame.plot.box
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index d114f26788f00..26dac44f0d15f 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -29,6 +29,7 @@ enhancement2 Other enhancements ^^^^^^^^^^^^^^^^^^ +- Add support for assigning values to ``by`` argument...
- [x] closes #15079 - [x] xref: #11053, #28177 - [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/28373
2019-09-10T16:41:14Z
2021-07-12T13:10:45Z
2021-07-12T13:10:44Z
2021-07-12T18:32:51Z
ENH: add and register Arrow extension types for Period and Interval
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index f6315ea894e62..fcf68522bd338 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -4648,10 +4648,10 @@ Several caveats. * Index level names, if specified, must be strings. * In the ``pyarrow`` engine, categorical...
Related to https://github.com/pandas-dev/pandas/pull/28368, but now for Period and Interval for which we define extension types to store them with metadata in arrow. Still needs some more tests and fixing corner cases. We probably also want to consolidate the pyarrow import checking somewhat. I think a main que...
https://api.github.com/repos/pandas-dev/pandas/pulls/28371
2019-09-10T15:33:31Z
2020-01-09T08:34:23Z
2020-01-09T08:34:23Z
2020-01-09T08:34:28Z
CLN: avoid catching Exception in generic
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 831543ee66039..68308b2f83b60 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -44,6 +44,7 @@ is_datetime64tz_dtype, is_dict_like, is_extension_array_dtype, + is_float, is_integer, is_list_like, is_numb...
https://api.github.com/repos/pandas-dev/pandas/pulls/28370
2019-09-10T15:16:44Z
2019-09-11T01:10:56Z
2019-09-11T01:10:56Z
2019-09-11T01:24:04Z
ENH: Add IntegerArray.__arrow_array__ for custom conversion to Arrow
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 2d15a7e5ccadd..1e03d9df82dd7 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -20,15 +20,19 @@ including other versions of pandas. Enhancements ~~~~~~~~~~~~ -- :meth:`DataFrame.to_latex` now accepts...
Adding custom conversion of IntegerArray to an Arrow array, which makes that this can also be written to parquet. Currently it is only one way, for read_parquet it will come back as int or float (depending on presence of missing values), but fixing this is also being discussed (https://issues.apache.org/jira/browse/A...
https://api.github.com/repos/pandas-dev/pandas/pulls/28368
2019-09-10T14:29:25Z
2019-09-12T20:57:00Z
2019-09-12T20:57:00Z
2019-10-23T13:51:01Z
BUG: Fix to_datetime(errors='coerce') not swallowing all parser exceptions...
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 9840e4e94d28c..bff0eaee96ff5 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -115,10 +115,10 @@ Datetimelike - Bug in :meth:`Series.__setitem__` incorrectly casting ``np.timedelta64("NaT")`` to ``np.d...
… (#28299) - [x] closes #28299 - [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/28367
2019-09-10T09:44:53Z
2019-09-12T12:45:22Z
2019-09-12T12:45:21Z
2019-09-12T17:44:56Z
BUG: same behavior for Series/Index vs ndarray/list in Series logical ops
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index f1f4777cedbc5..0b85c94f4b90c 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -829,15 +829,19 @@ def wrapper(self, other): is_other_int_dtype = is_integer_dtype(other.dtype) other = other ...
https://api.github.com/repos/pandas-dev/pandas/pulls/28364
2019-09-09T21:49:04Z
2019-09-10T11:42:07Z
2019-09-10T11:42:07Z
2019-09-10T15:01:12Z
BUG: DataFrame[int] +/- datetime64
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 71374a3bff692..9998a9a847643 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -119,6 +119,8 @@ Datetimelike - Bug in :meth:`pandas.core.groupby.SeriesGroupBy.nunique` where ``NaT`` values were interfer...
- [x] closes #28080 - [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/28362
2019-09-09T18:12:46Z
2019-09-12T17:00:26Z
2019-09-12T17:00:26Z
2019-09-12T17:05:05Z
CLN: Exception catching
diff --git a/pandas/_libs/testing.pyx b/pandas/_libs/testing.pyx index ae0d3ac1a61ca..c407de4cf7465 100644 --- a/pandas/_libs/testing.pyx +++ b/pandas/_libs/testing.pyx @@ -139,7 +139,7 @@ cpdef assert_almost_equal(a, b, obj, '{0} shapes are different'.format(obj), a.shape, b.s...
https://api.github.com/repos/pandas-dev/pandas/pulls/28361
2019-09-09T15:31:56Z
2019-09-10T11:41:06Z
2019-09-10T11:41:06Z
2019-09-10T14:59:48Z
Change conda channel order for Windows builds
diff --git a/ci/deps/azure-windows-36.yaml b/ci/deps/azure-windows-36.yaml index ff9264a36cb12..6f4467b2880ba 100644 --- a/ci/deps/azure-windows-36.yaml +++ b/ci/deps/azure-windows-36.yaml @@ -1,17 +1,15 @@ name: pandas-dev channels: - - defaults - conda-forge + - defaults dependencies: - blosc - bottlene...
- [x] closes #28356 - [ ] 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/28357
2019-09-09T05:20:01Z
2019-09-11T18:57:08Z
2019-09-11T18:57:07Z
2019-09-26T06:40:45Z
GH28337: Period index doesn't handle reindexing with a non-period index
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index e1fe2f7fe77e2..e6272b2a97dc1 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -145,7 +145,7 @@ Indexing ^^^^^^^^ - Bug in assignment using a reverse slicer (:issue:`26939`) -- +- Bug in reindexing a...
closes #28323 closes #28337 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Adds a workaround to allow period indexes to be reindexed with non-period indexes.
https://api.github.com/repos/pandas-dev/pandas/pulls/28354
2019-09-09T03:29:36Z
2019-09-10T12:06:25Z
2019-09-10T12:06:25Z
2019-09-10T14:15:48Z
CLN: raise ValueError instead of Exception
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index e514162f84c37..e731cffea0671 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -324,7 +324,11 @@ def _aggregate_item_by_item(self, func, *args, **kwargs): if cast: r...
This is necessary for tightening up a bunch of Exception catching in groupby/apply/resample. Doing this as a separate step because I find the isolation clearer.
https://api.github.com/repos/pandas-dev/pandas/pulls/28352
2019-09-08T23:48:01Z
2019-09-09T11:57:21Z
2019-09-09T11:57:21Z
2019-09-09T14:24:00Z
CLN: catch stricter in json
diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py index 4af362d8343f2..b04e540ef81eb 100644 --- a/pandas/io/json/_json.py +++ b/pandas/io/json/_json.py @@ -972,10 +972,8 @@ def _try_convert_to_date(self, data): for date_unit in date_units: try: new_data = to_datetime(...
@WillAyd think there is a compelling reason to keep this as `break` instead of lumping it into the `continue` clause above? (obviously the TODO comment will be removed/resolved before merge)
https://api.github.com/repos/pandas-dev/pandas/pulls/28351
2019-09-08T23:29:01Z
2019-09-10T20:19:27Z
2019-09-10T20:19:27Z
2019-09-10T20:52:01Z
CLN: Exception catching in io
diff --git a/pandas/core/indexes/accessors.py b/pandas/core/indexes/accessors.py index 11b6cb2ca3ed4..cc8ecc0e64684 100644 --- a/pandas/core/indexes/accessors.py +++ b/pandas/core/indexes/accessors.py @@ -326,18 +326,15 @@ def __new__(cls, data): if orig is not None: data = Series(orig.values.cate...
https://api.github.com/repos/pandas-dev/pandas/pulls/28349
2019-09-08T23:11:15Z
2019-09-09T11:56:16Z
2019-09-09T11:56:16Z
2019-09-09T14:26:05Z
CLN/BUG: array_equivalent on nested objects
diff --git a/pandas/_libs/testing.pyx b/pandas/_libs/testing.pyx index c407de4cf7465..7ad5ea189763c 100644 --- a/pandas/_libs/testing.pyx +++ b/pandas/_libs/testing.pyx @@ -143,11 +143,9 @@ cpdef assert_almost_equal(a, b, from pandas.util.testing import assert_attr_equal assert_attr_eq...
5/5 The included code check won't pass until the others in this sequence are merged.
https://api.github.com/repos/pandas-dev/pandas/pulls/28347
2019-09-08T18:17:34Z
2019-09-17T22:09:47Z
2019-09-17T22:09:47Z
2019-09-17T22:10:39Z
CLN: handle bare exceptions im timedeltas, timestamps, reduction
diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index c892c1cf1b8a3..bf940eb03e06f 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -528,7 +528,8 @@ def apply_frame_axis0(object frame, object f, object names, try: piece = f(chunk) - ...
4/n, I think just one more after this
https://api.github.com/repos/pandas-dev/pandas/pulls/28346
2019-09-08T17:51:16Z
2019-09-08T19:36:56Z
2019-09-08T19:36:56Z
2019-09-08T20:03:44Z
CLN: avoid bare except in tslib and tslibs.parsing
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 01e500a80dcc4..dc06a30004d19 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -344,14 +344,13 @@ def array_with_unit_to_datetime(ndarray values, object unit, # try a quick conversion to i8 # if we have nulls that are...
3/n
https://api.github.com/repos/pandas-dev/pandas/pulls/28345
2019-09-08T17:44:49Z
2019-09-09T11:55:06Z
2019-09-09T11:55:06Z
2019-09-09T14:21:48Z
CLN: avoid bare except in libfrequencies
diff --git a/pandas/_libs/tslibs/frequencies.pyx b/pandas/_libs/tslibs/frequencies.pyx index f2dcd37b191ed..b29c841896072 100644 --- a/pandas/_libs/tslibs/frequencies.pyx +++ b/pandas/_libs/tslibs/frequencies.pyx @@ -138,6 +138,10 @@ cpdef get_freq_code(freqstr): ------- return : tuple of base frequency code ...
2/n
https://api.github.com/repos/pandas-dev/pandas/pulls/28344
2019-09-08T17:38:34Z
2019-09-09T11:54:42Z
2019-09-09T11:54:41Z
2019-09-09T14:25:09Z
CLN: fix bare excepts on close
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 62a3568932def..0aab4fdc8c537 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -567,10 +567,8 @@ cdef class TextReader: # we need to properly close an open derived # filehandle here, e.g. and UTFRecoder ...
We're down to only a handful of bare `except`s. This is the first of ~4 PRs to handle them all more carefully.
https://api.github.com/repos/pandas-dev/pandas/pulls/28343
2019-09-08T17:33:06Z
2019-09-10T11:43:53Z
2019-09-10T11:43:53Z
2019-09-10T14:59:14Z
PERF: lazify type-check import
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index f8db1b19dadfa..4a66ad48d1318 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -5,6 +5,7 @@ import codecs from contextlib import contextmanager +from datetime import tzinfo import decimal from functools import...
These imports in io.formats.format take about 1.6ms, out of a total of about 470ms and (7.8ms total for formats.format). So its not massive, but it is easy to avoid and we are running out of lower-hanging fruit.
https://api.github.com/repos/pandas-dev/pandas/pulls/28342
2019-09-08T16:59:00Z
2019-09-09T11:53:38Z
2019-09-09T11:53:38Z
2019-09-09T14:21:23Z
Pandas.series.astype docstring PR02
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b427b1f0ac858..831543ee66039 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5780,11 +5780,11 @@ def astype(self, dtype, copy=True, errors="raise", **kwargs): Control raising of exceptions on invalid data for provided d...
Solves: - Unknown parameters {kwargs} - Parameter "errors" description should finish with "." - flake8 error: E126 continuation line over-indented for hanging indent - flake8 error: E231 missing whitespace after ',' pandas.Series.astype: Unknown parameters {kwargs} in #27976
https://api.github.com/repos/pandas-dev/pandas/pulls/28340
2019-09-08T13:39:20Z
2019-09-08T17:08:19Z
2019-09-08T17:08:19Z
2019-09-08T17:08:23Z
DOC: Add pyjanitor to ecosystem.rst
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index b1e3d8dc8a1ad..aaf2040156a45 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -23,6 +23,21 @@ or `search pypi for pandas <https://pypi.org/search/?q=pandas>`_. We'd like to make it easier for users to find these projects, if ...
[pyjanitor](https://github.com/ericmjl/pyjanitor) is a quite nice pandas data cleaning library and gives its users some useful method on data frames. It's pipe oriented, so it can be helpful in data cleaning/transformation work. Adding pyjanitor to the ecosystem page gives it visibility to our users and makes it eas...
https://api.github.com/repos/pandas-dev/pandas/pulls/28338
2019-09-08T11:26:51Z
2019-09-11T15:51:34Z
2019-09-11T15:51:34Z
2019-09-11T17:17:09Z
GH28301 check for non-unique index in stack_multi_columns
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 58892b316c940..e3db8edee8521 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -184,7 +184,7 @@ Groupby/resample/rolling Reshaping ^^^^^^^^^ -- +- Bug in :meth:`DataFrame.stack` not handling non-uniq...
- [x] closes #28301 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The old implementation used `arange` to generate codes for a non-multiindex, which ended up creating bad codes if the index was not unique. The fix...
https://api.github.com/repos/pandas-dev/pandas/pulls/28336
2019-09-07T21:07:02Z
2019-09-10T12:05:09Z
2019-09-10T12:05:08Z
2019-09-10T14:16:01Z
CLN: eval_kwargs
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 29c8239fa518f..90bb12b4cd727 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -62,8 +62,9 @@ def set_numexpr_threads(n=None): ne.set_num_threads(n) -def _eva...
A bunch of what we do in _gen_eval_kwargs is no longer necessary.
https://api.github.com/repos/pandas-dev/pandas/pulls/28328
2019-09-06T23:48:38Z
2019-09-07T17:17:48Z
2019-09-07T17:17:48Z
2019-09-07T17:30:41Z
CLN: split_and_operate
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 33698d245e9ff..2a44177d445df 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -416,15 +416,16 @@ def fillna(self, value, limit=None, inplace=False, downcast=None): return self if inplac...
In the branch I've got going that implements block-wise ops I found a bug in Block.split_and_operate. This doesn't fix that bug (since I don't have a test case that is independent of the rest of ops branch), just upstreams the cleanups that go along along with it. Small optimizations.
https://api.github.com/repos/pandas-dev/pandas/pulls/28327
2019-09-06T22:39:05Z
2019-09-07T17:17:32Z
2019-09-07T17:17:32Z
2019-09-07T17:28:23Z
BUG: Fix FastParquetImpl.write for non-existent file
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index a5af4e727391a..75b705372c747 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -218,6 +218,7 @@ I/O - Bug in :meth:`DataFrame.to_csv` where values were truncated when the length of ``na_rep`` was shorte...
`PyArrowImpl` already correctly opens a non-existent file for writing (https://github.com/pandas-dev/pandas/blob/master/pandas/io/parquet.py#L95), with `engine='fastparquet'` this fails for e.g. a GCS URL (though it looks like S3 is already correct): ``` [nav] In [1]: pd.DataFrame().to_parquet('gs://city_data/test/bl...
https://api.github.com/repos/pandas-dev/pandas/pulls/28326
2019-09-06T22:32:14Z
2019-09-19T15:46:14Z
2019-09-19T15:46:13Z
2019-10-09T21:24:02Z
Clean groupby error message
diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py index bcda25bf3ce39..1a3f0da3cf92b 100644 --- a/pandas/core/groupby/ops.py +++ b/pandas/core/groupby/ops.py @@ -463,9 +463,7 @@ def _cython_operation(self, kind, values, how, axis, min_count=-1, **kwargs): # categoricals are only 1d, so we ...
Cleans an error message from `groupby.ops`.
https://api.github.com/repos/pandas-dev/pandas/pulls/28324
2019-09-06T22:01:37Z
2019-09-07T17:18:54Z
2019-09-07T17:18:54Z
2019-09-12T01:10:16Z
Removed PyString refs from extension modules
diff --git a/pandas/_libs/src/parse_helper.h b/pandas/_libs/src/parse_helper.h index 1db4c813bb493..0a767dd27b658 100644 --- a/pandas/_libs/src/parse_helper.h +++ b/pandas/_libs/src/parse_helper.h @@ -25,11 +25,6 @@ int to_double(char *item, double *p_value, char sci, char decimal, return (error == 0) && (!*p_end)...
We have some old PyString references hanging around in our extension modules. These are a relic of the old Py2 string handling and will be removed in Python 4 I think, so figured worth modernizing https://docs.python.org/3/howto/cporting.html
https://api.github.com/repos/pandas-dev/pandas/pulls/28322
2019-09-06T17:01:05Z
2019-09-07T17:20:03Z
2019-09-07T17:20:03Z
2020-01-16T00:33:53Z
Added cpp files to build clean
diff --git a/setup.py b/setup.py index a86527ace092b..c5cd9afe3f9bb 100755 --- a/setup.py +++ b/setup.py @@ -277,6 +277,7 @@ def initialize_options(self): ".pyo", ".pyd", ".c", + ".cpp", ".orig", ): ...
Looks like the Cython-compiled `window.cpp` hangs around after running `python setup.py clean --all` - this should take care of that
https://api.github.com/repos/pandas-dev/pandas/pulls/28320
2019-09-06T16:16:58Z
2019-09-07T17:43:02Z
2019-09-07T17:43:02Z
2020-01-16T00:33:53Z
DOC: Improve compiler installation instructions
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index be6555b2ab936..21fb1baf7db34 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -135,9 +135,44 @@ operations. To install pandas from source, you need to compile these C...
- [x] further improves #27717 - Currently the 'Contributing to pandas', 'Installing a C compiler' section provides links to pages that DO NOT give information about how to install a C compiler. Note: - For Linux, we have recommended to install a group of packages, along with GCC: ``sudo apt-get install build-esse...
https://api.github.com/repos/pandas-dev/pandas/pulls/28316
2019-09-06T14:26:12Z
2019-09-11T06:34:15Z
2019-09-11T06:34:14Z
2019-09-11T06:34:15Z
CLN: catch specific Exceptions in _config
diff --git a/pandas/_config/display.py b/pandas/_config/display.py index 6e5fabe2706e5..067b7c503baab 100644 --- a/pandas/_config/display.py +++ b/pandas/_config/display.py @@ -28,7 +28,10 @@ def detect_console_encoding(): if not encoding or "ascii" in encoding.lower(): try: encoding = locale...
https://api.github.com/repos/pandas-dev/pandas/pulls/28310
2019-09-06T01:57:49Z
2019-09-07T19:39:08Z
2019-09-07T19:39:08Z
2019-09-07T21:25:03Z
CLN: catch Exception less
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index b96b3c7572031..e6766a33a613b 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -199,20 +199,21 @@ def apply_empty_result(self): return self.obj.copy() # we may need to infer - reduce = self.result_type == "reduce...
https://api.github.com/repos/pandas-dev/pandas/pulls/28309
2019-09-06T01:35:34Z
2019-09-07T17:23:08Z
2019-09-07T17:23:08Z
2019-09-07T17:29:26Z
REF: remove dtstruct_to_dt64
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index fb77e2b5f3a0c..00e2c8b8b6be6 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -40,7 +40,6 @@ from pandas._libs.tslibs.np_datetime cimport ( NPY_FR_ns, astype_overflowsafe, ...
Broken off from a less-easy branch.
https://api.github.com/repos/pandas-dev/pandas/pulls/47492
2022-06-23T22:07:49Z
2022-06-24T21:12:47Z
2022-06-24T21:12:47Z
2022-06-25T04:06:35Z
ENH: Move PyperclipException and PyperclipWindowsException to error/_…
diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst index 2c419e8df9517..c3ce267ff9dc7 100644 --- a/doc/source/reference/testing.rst +++ b/doc/source/reference/testing.rst @@ -43,6 +43,8 @@ Exceptions and warnings errors.ParserError errors.ParserWarning errors.PerformanceWarning...
- [x] xref #27656. this GitHub issue is being done in multiple parts - [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/developme...
https://api.github.com/repos/pandas-dev/pandas/pulls/47491
2022-06-23T19:37:34Z
2022-06-25T17:13:18Z
2022-06-25T17:13:18Z
2022-06-25T17:13:32Z
Backport PR #47473 on branch 1.4.x (DOC: Start v1.4.4 release notes)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 47a46c86c3a44..817edd82ccada 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,7 @@ Version 1.4 .. toctree:: :maxdepth: 2 + v1.4.4 v1.4.3 v1.4.2 v1.4.1 diff --git a/doc/source/...
Backport PR #47473: DOC: Start v1.4.4 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/47486
2022-06-23T12:56:12Z
2022-06-23T18:13:19Z
2022-06-23T18:13:19Z
2022-06-23T18:13:20Z
CI: Run all code checks even if one fails
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index e8f54b33a92c0..a7bacad1f3152 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -65,37 +65,39 @@ jobs: id: build uses: ./.github/actions/build_pandas + # The following check...
xref https://github.com/pandas-dev/pandas/pull/47469#issuecomment-1163790491= Solution gleaned from: https://stackoverflow.com/a/58859404 Want to `always()` run all these steps _If_ pandas was built correctly Note: Cannot use `continue-on-error` because if a check fails the build will still pass which we don't...
https://api.github.com/repos/pandas-dev/pandas/pulls/47482
2022-06-23T02:35:21Z
2022-06-23T16:51:34Z
2022-06-23T16:51:33Z
2022-07-06T14:09:19Z
BUG: Fix issues with numeric_only deprecation
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index b4aea4240e458..a4462a292f4f9 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1610,17 +1610,20 @@ def idxmax( numeric_only_arg = numeric_only def func(df): - res = df...
Part of #46560 - [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/47481
2022-06-23T02:08:20Z
2022-06-23T22:55:06Z
2022-06-23T22:55:06Z
2022-06-24T18:23:50Z
Backport PR #47476 on branch 1.4.x (DOC: v1.4.3 release date)
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index 2550a12ebbb9d..be5ac74201be8 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -1,7 +1,7 @@ .. _whatsnew_143: -What's new in 1.4.3 (April ??, 2022) ------------------------------------- +What's new in...
Backport PR #47476: DOC: v1.4.3 release date
https://api.github.com/repos/pandas-dev/pandas/pulls/47478
2022-06-23T00:19:17Z
2022-06-23T00:57:30Z
2022-06-23T00:57:30Z
2022-06-23T00:57:30Z
DOC: v1.4.3 release date
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index 2550a12ebbb9d..be5ac74201be8 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -1,7 +1,7 @@ .. _whatsnew_143: -What's new in 1.4.3 (April ??, 2022) ------------------------------------- +What's new in...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47476
2022-06-22T23:27:29Z
2022-06-23T00:18:51Z
2022-06-23T00:18:51Z
2022-06-23T00:18:54Z
REGR: maybe_convert_objects ignoring uints
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 7aa1c1e84aa09..f19cc88fa1690 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -857,6 +857,7 @@ Conversion - Bug in :meth:`DataFrame.to_records` returning inconsistent numpy types if the index was a :cl...
- [x] closes #47294 (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/47475
2022-06-22T23:19:59Z
2022-07-10T15:54:05Z
2022-07-10T15:54:04Z
2022-07-11T12:10:29Z
BUG: to_sql with method=callable not returning int raising TypeError
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index 0af25daf0468a..6ee140f59e096 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -24,7 +24,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - The :class:`errors.FutureWarning` raised when passing arguments (o...
- [x] closes #46891 (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/47474
2022-06-22T22:08:22Z
2022-07-03T15:13:05Z
2022-07-03T15:13:04Z
2022-07-05T16:45:18Z
DOC: Start v1.4.4 release notes
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index ccec4f90183bc..926b73d0f3fd9 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,6 +24,7 @@ Version 1.4 .. toctree:: :maxdepth: 2 + v1.4.4 v1.4.3 v1.4.2 v1.4.1 diff --git a/doc/source/...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47473
2022-06-22T21:32:24Z
2022-06-23T12:56:03Z
2022-06-23T12:56:03Z
2022-06-23T12:56:08Z
Backport PR #47372 on branch 1.4.x (REGR: revert behaviour change for concat with empty/all-NaN data)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 7340f2475e1f6..9f9bde65b482f 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -271,6 +271,9 @@ the given ``dayfirst`` value when the value is a delimited date string (e.g. Ignoring dtypes in concat wit...
Backport PR #47372
https://api.github.com/repos/pandas-dev/pandas/pulls/47472
2022-06-22T21:19:20Z
2022-06-22T22:52:53Z
2022-06-22T22:52:53Z
2022-06-22T22:52:57Z
TYP: Fix typing errors on main
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 72f6a7bce4d0e..7f9d77c4193ca 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1064,7 +1064,13 @@ def checked_add_with_arr( elif arr_mask is not None: not_nan = np.logical_not(arr_mask) elif b_mask is no...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
https://api.github.com/repos/pandas-dev/pandas/pulls/47469
2022-06-22T19:40:32Z
2022-06-23T00:37:56Z
2022-06-23T00:37:56Z
2022-06-23T02:09:05Z
ENH/TST: Add BaseInterfaceTests tests for ArrowExtensionArray PT2
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 27d74f2140434..18d965ff26e10 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -31,6 +31,7 @@ ) from pandas.core.dtypes.missing import isna +from pandas.core.arraylike import OpsMixin fr...
xref https://github.com/pandas-dev/pandas/pull/47377#issuecomment-1163230392= * Min pyarrow version with timezones type coerces to integer when setting (xfailing) * ArrayManger tests with duration types oddly checks for a ndim attribute (xfailing)
https://api.github.com/repos/pandas-dev/pandas/pulls/47468
2022-06-22T18:15:20Z
2022-06-24T18:27:51Z
2022-06-24T18:27:51Z
2022-06-24T18:29:24Z
DEPS/TST: tzdata is optional, not required
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index 65918005ad6f1..5f7beb24674e7 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -47,6 +47,7 @@ dependencies: - scipy - sqlalchemy - tabulate + - tzdata>=2022a - xarray - xlrd - xlsxwriter diff --git a/ci/deps/...
- [ ] closes #47332 (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/47467
2022-06-22T17:56:29Z
2022-08-12T00:44:10Z
2022-08-12T00:44:10Z
2022-08-12T00:45:22Z
Fix signature of initObjToJSON
diff --git a/pandas/_libs/src/ujson/python/ujson.c b/pandas/_libs/src/ujson/python/ujson.c index def06cdf2db84..5d4a5693c0ff6 100644 --- a/pandas/_libs/src/ujson/python/ujson.c +++ b/pandas/_libs/src/ujson/python/ujson.c @@ -43,7 +43,7 @@ Numeric decoder derived from TCL library /* objToJSON */ PyObject *objToJSON(...
This patch is required to make Pandas compile with `-Wl,--fatal-warnings`. It is also needed to prevent an "indirect call signature mismatch" error when using pandas in wasm. This is the only patch Pyodide currently applies to Pandas.
https://api.github.com/repos/pandas-dev/pandas/pulls/47466
2022-06-22T15:24:55Z
2022-06-23T20:20:20Z
2022-06-23T20:20:20Z
2022-06-23T20:20:27Z
Revert "ENH/TST: Add BaseInterfaceTests tests for ArrowExtensionArray"
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 043f682f7dfa8..c1380fcdbba06 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -31,7 +31,6 @@ ) from pandas.core.dtypes.missing import isna -from pandas.core.arraylike import OpsMixin fr...
Reverts pandas-dev/pandas#47377
https://api.github.com/repos/pandas-dev/pandas/pulls/47462
2022-06-22T13:39:49Z
2022-06-22T15:06:03Z
2022-06-22T15:06:03Z
2022-06-22T15:06:07Z
Backport PR #47393 on branch 1.4.x (CI/TST: Don't require length for construct_1d_arraylike_from_scalar cast to float64)
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 2595cff5c43c4..957fcf4ac10fc 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -533,7 +533,10 @@ def sanitize_array( if dtype is not None and is_float_dtype(data.dtype) and is_integer_dtype(dtype): ...
Backport PR #47393: CI/TST: Don't require length for construct_1d_arraylike_from_scalar cast to float64
https://api.github.com/repos/pandas-dev/pandas/pulls/47460
2022-06-22T12:07:21Z
2022-06-22T20:52:47Z
2022-06-22T20:52:47Z
2022-06-22T20:52:48Z
PERF improve performance of is_lexsorted
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 76f6e864a174f..373323649eacb 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -739,6 +739,7 @@ Performance improvements - Performance improvement in :func:`factorize` (:issue:`46109`) - Performance im...
If `result` is False, there's no need to keep the outer loop going, right? Timing result, with `failure` taken from `test_is_lexsorted`: ``` %load_ext cython %%cython -a cimport cython from cython cimport Py_ssize_t from numpy cimport int64_t, import_array, ndarray, PyArray_DATA import numpy as np fr...
https://api.github.com/repos/pandas-dev/pandas/pulls/47459
2022-06-22T10:13:39Z
2022-06-24T02:11:20Z
2022-06-24T02:11:20Z
2022-06-24T06:41:25Z
Backport PR #47431 on branch 1.4.x (Fix segmentation fault when JSON serializing a PeriodIndex)
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index a4d81533df23d..4034655ccd325 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -30,6 +30,7 @@ Fixed regressions - Fixed regression in :func:`assert_index_equal` when ``check_order=False`` and :class:`In...
Backport PR #47431: Fix segmentation fault when JSON serializing a PeriodIndex
https://api.github.com/repos/pandas-dev/pandas/pulls/47457
2022-06-22T09:18:45Z
2022-06-22T11:07:32Z
2022-06-22T11:07:32Z
2022-06-22T11:07:32Z
Cache Conda env
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index 39d5998b4ee74..23bb988ef4d73 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -6,8 +6,8 @@ runs: - name: Environment Detail run: | - conda info -...
- [ ] 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/47454
2022-06-22T07:02:08Z
2022-06-27T16:55:06Z
2022-06-27T16:55:06Z
2022-06-27T16:55:45Z
DOC: Remove unused/flaky statsmodels intersphinx_mapping
diff --git a/doc/source/conf.py b/doc/source/conf.py index 49025288f0449..2a6ec8947c8d7 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -447,7 +447,6 @@ "py": ("https://pylib.readthedocs.io/en/latest/", None), "python": ("https://docs.python.org/3/", None), "scipy": ("https://docs...
The doc build can occasionally fail with ``` 2022-06-21T19:46:59.4564919Z WARNING: failed to reach any of the inventories with the following issues: 2022-06-21T19:46:59.4567149Z intersphinx inventory 'https://www.statsmodels.org/devel/objects.inv' not fetchable due to <class 'requests.exceptions.ConnectionError'>...
https://api.github.com/repos/pandas-dev/pandas/pulls/47452
2022-06-21T20:50:05Z
2022-06-21T22:00:43Z
2022-06-21T22:00:43Z
2022-06-21T22:00:46Z
Improve error message for DataFrame.from_dict when wrong orient is provided
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index 39e9a55b5c384..70b451a231453 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -52,6 +52,7 @@ Bug fixes ~~~~~~~~~ - Bug in :func:`pandas.eval`, :meth:`DataFrame.eval` and :meth:`DataFrame.query` where ...
- [X] closes #47450 - [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/47451
2022-06-21T20:17:07Z
2022-06-24T10:24:57Z
2022-06-24T10:24:56Z
2022-06-25T04:55:40Z
Backport PR #47327 on branch 1.4.x (REGR: Fix fillna making a copy when dict was given as fill value and inplace is set)
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index a4d81533df23d..d031426a2abbf 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -18,6 +18,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.to_csv` raising error when :class:`DataFrame` conta...
Backport PR #47327
https://api.github.com/repos/pandas-dev/pandas/pulls/47448
2022-06-21T18:47:56Z
2022-06-22T23:31:10Z
2022-06-22T23:31:10Z
2022-06-22T23:31:14Z
Deprecate non-keyword arguments for rsplit
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a5cb716317689..4c23e5e5b1906 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -705,6 +705,7 @@ Other Deprecations - Deprecated the ``closed`` argument in :meth:`interval_range` in favor of ``inclusive`...
- [x] closes #47423 - [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/47446
2022-06-21T17:26:03Z
2022-06-23T20:49:58Z
2022-06-23T20:49:58Z
2022-06-23T20:49:58Z
Backport PR #47318 on branch 1.4.x (CI: Pin PYTEST_WORKERS=1 for Windows builds due to memory errors)
diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml index 560a421ec74ec..923ac8f2e0fd6 100644 --- a/.github/workflows/macos-windows.yml +++ b/.github/workflows/macos-windows.yml @@ -15,7 +15,6 @@ on: env: PANDAS_CI: 1 PYTEST_TARGET: pandas - PYTEST_WORKERS: auto PATTERN: "n...
Backport PR #47318: CI: Pin PYTEST_WORKERS=1 for Windows builds due to memory errors
https://api.github.com/repos/pandas-dev/pandas/pulls/47445
2022-06-21T17:01:53Z
2022-06-21T18:41:45Z
2022-06-21T18:41:45Z
2022-06-21T18:41:45Z
PDEP-1: Purpose and guidelines for pandas enhancement proposals
diff --git a/web/pandas/about/roadmap.md b/web/pandas/about/roadmap.md index 3c6c4d4fdf9a2..6e922d01518ba 100644 --- a/web/pandas/about/roadmap.md +++ b/web/pandas/about/roadmap.md @@ -15,10 +15,35 @@ fundamental changes to the project that are likely to take months or years of developer time. Smaller-scoped items wil...
Closes #28568 Initial PDEP to define purpose and guidelines for pandas enhancement proposals (equivalent to PEPs or NEPs). **Feedback very welcome**. This PR also makes the PDEPs public in the [roadmap page](https://pandas.pydata.org/about/roadmap.html) of our website.
https://api.github.com/repos/pandas-dev/pandas/pulls/47444
2022-06-21T08:40:26Z
2022-08-03T05:53:58Z
2022-08-03T05:53:58Z
2022-08-03T09:16:38Z
CI: start testing Python 3.11
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index d93b92a9662ec..580cafd6e4949 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -1,9 +1,21 @@ -# This file is purposely frozen(does not run). DO NOT DELETE IT -# Unfreeze(by commentingthe if: fals...
- [ ] xref #46680 (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/47442
2022-06-21T05:57:11Z
2022-08-17T22:33:04Z
2022-08-17T22:33:04Z
2022-08-17T23:01:36Z
CLN: some simple code cleanup
diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py index 4279a9707e692..f9b3145eab170 100644 --- a/pandas/io/formats/excel.py +++ b/pandas/io/formats/excel.py @@ -96,7 +96,7 @@ def __init__( unique_declarations = frozenset(declaration_dict.items()) style = css_converter(uniqu...
i've changed some inconsistencies on some magic methods's parameters and removed a return from a object initialization
https://api.github.com/repos/pandas-dev/pandas/pulls/47438
2022-06-21T00:21:23Z
2022-08-03T04:05:53Z
2022-08-03T04:05:52Z
2022-08-03T04:06:39Z
DOC: clarify to_csv float format docstring
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index f32b347de32c3..a9fe349d53e4d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3302,7 +3302,7 @@ def to_csv( path_or_buf: FilePath | WriteBuffer[bytes] | WriteBuffer[str] | None = None, sep: str = ",", na_re...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). I stumbled across this myself a few days ago. I think this would help
https://api.github.com/repos/pandas-dev/pandas/pulls/47436
2022-06-20T20:23:34Z
2022-06-21T21:58:44Z
2022-06-21T21:58:44Z
2022-06-21T22:01:46Z
REF: simplify Timestamp.replace
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 8a2810825fc1d..46a4308e8aafd 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -81,7 +81,6 @@ from pandas._libs.tslibs.nattype cimport ( from pandas._libs.tslibs.np_datetime cimport ( ...
- [ ] 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/47435
2022-06-20T19:09:51Z
2022-06-21T19:09:38Z
2022-06-21T19:09:38Z
2022-06-21T20:50:03Z
Fix `vertical-align: middle;` for `Styler.to_excel` with xlsxwriter engine
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a76b682f135db..56b09348189ee 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -967,8 +967,9 @@ Styler ^^^^^^ - Bug when attempting to apply styling functions to an empty DataFrame subset (:issue:`4531...
- [x] closes #30107 - [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/47434
2022-06-20T16:18:41Z
2022-06-27T16:17:07Z
2022-06-27T16:17:06Z
2022-06-27T16:17:14Z
DOC clarify inplace operation section in 1.5 whats_new
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a4fa31f7fc368..499e410cb81fd 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -572,31 +572,37 @@ As ``group_keys=True`` is the default value of :meth:`DataFrame.groupby` and raise a ``FutureWarning``. ...
xref https://github.com/pandas-dev/pandas/issues/47381 Coming from scikit-learn tests failing on scikit-learn with the pandas development version, I found the whats_new entry not very helpful at all. This does a few things: - use an example with different dtypes so that the behaviour is as advertised for old behavi...
https://api.github.com/repos/pandas-dev/pandas/pulls/47433
2022-06-20T15:39:46Z
2022-06-30T20:11:34Z
2022-06-30T20:11:34Z
2022-07-01T06:31:12Z
Fix segmentation fault when JSON serializing a PeriodIndex
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index a4d81533df23d..4034655ccd325 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -30,6 +30,7 @@ Fixed regressions - Fixed regression in :func:`assert_index_equal` when ``check_order=False`` and :class:`In...
Fixes #46683 - [x] closes #46683 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/47431
2022-06-20T15:16:16Z
2022-06-22T09:18:14Z
2022-06-22T09:18:14Z
2022-06-22T10:16:51Z
DOC: Add an interactive shell powered by JupyterLite to the website
diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index 5ffd4135802bd..f9a941b87387c 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -46,6 +46,11 @@ jobs: - name: Build documentation run: doc/make.py -...
This allows for easily trying `pandas` in a web browser without installing anything. Since the default kernel is based on Pyodide, it also includes a couple of other libraries by default such as `matplotlib`. ![image](https://user-images.githubusercontent.com/591645/174594931-abb9393c-1db1-49ab-ab6a-e777a5059200....
https://api.github.com/repos/pandas-dev/pandas/pulls/47428
2022-06-20T11:49:21Z
2022-06-23T21:15:23Z
2022-06-23T21:15:23Z
2022-06-24T07:25:23Z
TST: GH26650, added new test to validate numpy matmul function with dataframes
diff --git a/pandas/tests/series/test_ufunc.py b/pandas/tests/series/test_ufunc.py index 13af94feaf744..624496ea26a81 100644 --- a/pandas/tests/series/test_ufunc.py +++ b/pandas/tests/series/test_ufunc.py @@ -439,3 +439,14 @@ def test_outer(): with pytest.raises(NotImplementedError, match=tm.EMPTY_STRING_PATTERN...
- [X] closes #26650 - [X] [Tests added and passed] - [X] All [code checks passed]
https://api.github.com/repos/pandas-dev/pandas/pulls/47427
2022-06-20T10:09:27Z
2022-06-21T17:43:44Z
2022-06-21T17:43:44Z
2022-06-22T19:58:19Z
BUG: DataFrame.setitem raising when rhs is ea dtype Series
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 5a97e1d5a04ea..09fa08339bd43 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1977,7 +1977,11 @@ def _setitem_single_column(self, loc: int, value, plane_indexer): # We will not operate in-place, but will attempt to in th...
- [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). This is a regression on ...
https://api.github.com/repos/pandas-dev/pandas/pulls/47425
2022-06-19T19:53:00Z
2022-06-24T21:18:28Z
2022-06-24T21:18:28Z
2022-07-11T17:39:23Z
ENH: TDA.total_seconds support non-nano
diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py index 68452ce011f9d..599ddfec5a268 100644 --- a/pandas/_libs/tslibs/__init__.py +++ b/pandas/_libs/tslibs/__init__.py @@ -29,6 +29,7 @@ "astype_overflowsafe", "get_unit_from_dtype", "periods_per_day", + "periods_per_second"...
- [ ] 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/47421
2022-06-19T15:13:31Z
2022-06-27T22:00:19Z
2022-06-27T22:00:19Z
2022-06-27T23:00:55Z
Add tests
diff --git a/pandas/tests/indexes/multi/test_setops.py b/pandas/tests/indexes/multi/test_setops.py index 5d1efea657426..57c4af1a0fe1c 100644 --- a/pandas/tests/indexes/multi/test_setops.py +++ b/pandas/tests/indexes/multi/test_setops.py @@ -544,3 +544,24 @@ def test_union_duplicates(index, request): result = mi2...
- [x] closes #24091 - [x] closes #25169 - [ ] 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/47420
2022-06-19T14:05:20Z
2022-06-21T20:30:53Z
2022-06-21T20:30:52Z
2022-06-21T23:50:28Z
annotation, missing test case, perf DTA.mode
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index dffe02ef15148..2b7f9b9659354 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -519,7 +519,7 @@ cdef ndarray[int64_t] _get_dst_hours( trans_idx = mismatch.nonzero()[0] ...
- [ ] 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/47418
2022-06-19T03:08:17Z
2022-06-21T19:07:52Z
2022-06-21T19:07:52Z
2022-06-21T20:50:35Z
CI: remove comment-bot
diff --git a/.github/workflows/comment_bot.yml b/.github/workflows/comment_bot.yml deleted file mode 100644 index 3824e015e8336..0000000000000 --- a/.github/workflows/comment_bot.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Comment-bot - -on: - issue_comment: - types: - - created - - edited - -jobs: - autot...
as discussed
https://api.github.com/repos/pandas-dev/pandas/pulls/47416
2022-06-18T08:56:34Z
2022-06-21T17:45:51Z
2022-06-21T17:45:51Z
2022-06-21T17:45:58Z
BUG: iterparse of read_xml not parsing duplicate element and attribute names
diff --git a/pandas/io/xml.py b/pandas/io/xml.py index 181b0fe115f4c..78fbeaad09300 100644 --- a/pandas/io/xml.py +++ b/pandas/io/xml.py @@ -413,11 +413,21 @@ def _iterparse_nodes(self) -> list[dict[str, str | None]]: row = {} if row is not None: - for col in self.iter...
- [X] closes #47343 (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/47414
2022-06-18T04:29:50Z
2022-06-21T23:10:46Z
2022-06-21T23:10:45Z
2022-06-22T03:09:13Z
CLN: Remove .github markdown files
diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md deleted file mode 100644 index 87a5b7905fc6d..0000000000000 --- a/.github/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,62 +0,0 @@ -# Contributor Code of Conduct - -As contributors and maintainers of this project, and in the interest of -fostering an open an...
- [x] closes #27901 (Replace xxxx with the Github issue number) These files were moved in https://github.com/pandas-dev/.github/pull/1
https://api.github.com/repos/pandas-dev/pandas/pulls/47412
2022-06-18T01:40:05Z
2022-06-18T15:19:54Z
2022-06-18T15:19:54Z
2022-06-18T18:39:46Z
REF: Avoid ravel in DTA._format_native_types
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index f94314297dc62..dc7504b1073f5 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -105,7 +105,7 @@ def _test_parse_iso8601(ts: str): @cython.wraparound(False) @cython.boundscheck(False) def format_array_from_datetime( - ndarray[int6...
- [ ] 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/47411
2022-06-18T01:02:34Z
2022-06-18T04:12:47Z
2022-06-18T04:12:47Z
2022-06-18T17:34:04Z
TYP: read_sas
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index a5cb716317689..c35f01470763b 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -461,6 +461,7 @@ Other API changes October 2022. (:issue:`46312`) - :func:`read_json` now raises ``FileNotFoundError`` (...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47410
2022-06-18T00:52:06Z
2022-06-24T21:30:55Z
2022-06-24T21:30:55Z
2022-09-21T15:29:51Z
Revert "REF: remove JoinUnit.shape (#43651)"
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 228d57fe196a4..8ce98f3891ff4 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -212,8 +212,6 @@ def concatenate_managers( for placement, join_units in concat_plan: unit = join_units[0] ...
This reverts commit bb9a9852265915a4688f772dd062d3fcf4159a32. This is also included in https://github.com/pandas-dev/pandas/pull/47372/, but reverting this single commit separately will make it easier to backport the other PR, since this is the only commit that was not already included in 1.4, but was only done in 1...
https://api.github.com/repos/pandas-dev/pandas/pulls/47406
2022-06-17T14:56:44Z
2022-06-21T14:19:22Z
2022-06-21T14:19:22Z
2022-06-22T12:18:56Z
SAS7BDAT parser: Speed up RLE/RDC decompression
diff --git a/asv_bench/benchmarks/io/sas.py b/asv_bench/benchmarks/io/sas.py index 369b79641dbc4..411e5b6099f76 100644 --- a/asv_bench/benchmarks/io/sas.py +++ b/asv_bench/benchmarks/io/sas.py @@ -1,30 +1,23 @@ -import os +from pathlib import Path from pandas import read_sas +ROOT = Path(__file__).parents[3] / "pa...
Speed up RLE/RDC decompression. Brings a 30-50% performance improvement on SAS7BDAT files using compression. Works by avoiding calls into NumPy array creation and using a custom-built buffer instead. Also adds a bunch of `assert` statements to avoid illegal reads/writes. These slow the code down considerably; I w...
https://api.github.com/repos/pandas-dev/pandas/pulls/47405
2022-06-17T11:22:59Z
2022-10-03T21:03:13Z
2022-10-03T21:03:13Z
2022-10-13T16:59:53Z
SAS7BDAT parser: Faster string parsing
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 7aa1c1e84aa09..e63107a8eb243 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -799,6 +799,7 @@ Performance improvements - Performance improvement in :class:`BusinessHour` ``str`` and ``repr`` (:issue:`...
Speed up SAS7BDAT string reading. Today this brings a modest 10% performance improvement. But together with the other changes I will be proposing it will be a major bottleneck. - [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/...
https://api.github.com/repos/pandas-dev/pandas/pulls/47404
2022-06-17T11:17:00Z
2022-07-10T15:55:13Z
2022-07-10T15:55:13Z
2022-07-11T17:21:34Z
SAS7BDAT parser: Fast byteswap
diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v1.6.0.rst index 3c7a80f096844..dce505729b3ea 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v1.6.0.rst @@ -149,7 +149,7 @@ Performance improvements - Performance improvement in :meth:`DataFrame.join` when joining on a subset of a...
Speed up SAS7BDAT int/float reading. This is order of magnitude faster than using `struct.unpack(fmt, data)` or `precompiled_unpacker = struct.Struct(fmt).unpack; ...; precompiled_unpacker(data)`. Unfortunately Python does not expose a low-level interface to `struct` or a byteswapping interface. The byteswap impl...
https://api.github.com/repos/pandas-dev/pandas/pulls/47403
2022-06-17T11:15:19Z
2022-10-05T16:02:59Z
2022-10-05T16:02:59Z
2022-10-13T16:59:52Z
BUG: read_excel raising uncontrolled IndexError when header references non-existing rows
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 76f6e864a174f..fa95ad06bd7ca 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -863,6 +863,7 @@ I/O - Bug in :func:`read_csv` not respecting a specified converter to index columns in all cases (:issue:`...
- [x] closes #43143 (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/47399
2022-06-17T09:43:33Z
2022-06-21T21:57:20Z
2022-06-21T21:57:19Z
2022-06-21T21:58:16Z
BUG: read_csv may interpret second row as index names even if index_col is False
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 76f6e864a174f..2346a86ad21f8 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -861,6 +861,7 @@ I/O - Bug in :func:`read_csv` not recognizing line break for ``on_bad_lines="warn"`` for ``engine="c"`` (:...
- [x] closes #46569 (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/47397
2022-06-17T08:38:15Z
2022-06-21T18:45:42Z
2022-06-21T18:45:41Z
2022-06-21T19:50:19Z
REF: do masking in checked_add_with_arr
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 888e943488953..db76f5c51752f 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1017,10 +1017,10 @@ def rank( def checked_add_with_arr( arr: npt.NDArray[np.int64], - b, + b: int | npt.NDArray[np.int64], a...
- [ ] 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/47396
2022-06-17T02:33:50Z
2022-06-21T19:05:14Z
2022-06-21T19:05:14Z
2022-06-21T20:50:56Z
implement abbrev_to_npy_unit
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 6cbc06830471e..fb77e2b5f3a0c 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -31,7 +31,10 @@ from cpython.datetime cimport ( import_datetime() from pandas._libs.tslibs.base cimport ...
- [ ] 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/47395
2022-06-17T02:17:47Z
2022-06-21T19:02:14Z
2022-06-21T19:02:14Z
2022-06-21T20:52:25Z
ENH: consistent add/sub behavior for mixed resolutions
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index d75fa5c91a3df..5fd3e33808800 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -791,8 +791,19 @@ def _binary_op_method_timedeltalike(op, name): # e.g. if original other was t...
- [ ] 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/47394
2022-06-16T22:37:14Z
2022-06-23T21:30:50Z
2022-06-23T21:30:50Z
2022-06-23T22:10:17Z
CI/TST: Don't require length for construct_1d_arraylike_from_scalar cast to float64
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 8d26284a5ce45..4b63d492ec1dd 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -556,7 +556,10 @@ def sanitize_array( if dtype is not None and is_float_dtype(data.dtype) and is_integer_dtype(dtype): ...
- [x] closes #47391 (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/47393
2022-06-16T21:54:07Z
2022-06-22T12:07:12Z
2022-06-22T12:07:12Z
2022-06-22T16:47:37Z
Consistent handling of 0-dim in Timedelta arithmetic methods
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 1df5468869df5..d75fa5c91a3df 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -765,8 +765,12 @@ def _binary_op_method_timedeltalike(op, name): # defined by Timestamp methods...
- [ ] 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/47390
2022-06-16T14:43:20Z
2022-06-21T18:56:54Z
2022-06-21T18:56:54Z
2022-06-21T20:52:07Z
DOC: update tutorials.rst to include website for searchable Pandas recipes
diff --git a/doc/source/getting_started/tutorials.rst b/doc/source/getting_started/tutorials.rst index 8febc3adb9666..bff50bb1e4c2d 100644 --- a/doc/source/getting_started/tutorials.rst +++ b/doc/source/getting_started/tutorials.rst @@ -118,3 +118,4 @@ Various tutorials * `Pandas and Python: Top 10, by Manish Amde <ht...
- [x] 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/47389
2022-06-16T14:34:02Z
2022-06-30T18:16:45Z
2022-06-30T18:16:45Z
2022-06-30T18:16:52Z