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 |
|---|---|---|---|---|---|---|---|
Backport PR #46118 on branch 1.4.x (CI: Align MacOS dependencies with other builds) | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 2a911fd5b5a0c..a37ea3eb89167 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -22,7 +22,6 @@ variables:
PANDAS_CI: 1
jobs:
-# Mac and Linux use the same template
- template: ci/azure/posix.yml
parameters:
name: macOS
diff --git a/c... | Backport PR #46118: CI: Align MacOS dependencies with other builds | https://api.github.com/repos/pandas-dev/pandas/pulls/46158 | 2022-02-26T00:51:56Z | 2022-02-26T18:31:45Z | 2022-02-26T18:31:45Z | 2022-02-26T18:31:45Z |
Backport PR #46057 on branch 1.4.x (bug: styler latex longtable column count) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 68999b9bba50f..05bc7ff8c96d2 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Fixed "longtable" formatting in :meth:`.Styler.to_latex` when... | Backport PR #46057: bug: styler latex longtable column count | https://api.github.com/repos/pandas-dev/pandas/pulls/46157 | 2022-02-26T00:51:24Z | 2022-02-26T02:39:09Z | 2022-02-26T02:39:09Z | 2022-03-04T13:16:04Z |
BUG: MultiIndex slicing with negative step | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index dfa87e3cd4574..2e0c942806f72 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -408,6 +408,9 @@ Missing
MultiIndex
^^^^^^^^^^
+- Bug in :meth:`DataFrame.loc` returning empty result when slicing a :cl... | - [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] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46156 | 2022-02-25T22:06:34Z | 2022-03-11T23:57:11Z | 2022-03-11T23:57:11Z | 2022-03-20T23:18:56Z |
Adding tests for IntervalArray.unique() for DateTimeArrays with time zones | diff --git a/pandas/tests/series/methods/test_unique.py b/pandas/tests/series/methods/test_unique.py
index 856fe6e7c4f04..58a640837b10b 100644
--- a/pandas/tests/series/methods/test_unique.py
+++ b/pandas/tests/series/methods/test_unique.py
@@ -2,7 +2,9 @@
from pandas import (
Categorical,
+ IntervalIndex,
... | Ref suggestion here; https://github.com/pandas-dev/pandas/pull/46128/#issuecomment-1051138512
| https://api.github.com/repos/pandas-dev/pandas/pulls/46153 | 2022-02-25T20:25:29Z | 2022-02-26T20:49:06Z | 2022-02-26T20:49:06Z | 2023-02-13T20:56:22Z |
CLN/TYP: remove unused | diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi
index df8ac3f3b0696..2447d456b7478 100644
--- a/pandas/_libs/algos.pyi
+++ b/pandas/_libs/algos.pyi
@@ -61,52 +61,39 @@ def nancorr_spearman(
# ----------------------------------------------------------------------
-# ctypedef fused algos_t:
-# float6... | - [ ] 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/46151 | 2022-02-25T18:22:38Z | 2022-02-26T00:50:06Z | 2022-02-26T00:50:06Z | 2022-02-26T00:53:22Z |
CI/TST: Fix xfail(strict=False) condition | diff --git a/pandas/tests/indexes/test_setops.py b/pandas/tests/indexes/test_setops.py
index 8502c43feeab5..f38a6c89e1bcb 100644
--- a/pandas/tests/indexes/test_setops.py
+++ b/pandas/tests/indexes/test_setops.py
@@ -50,16 +50,20 @@ def test_union_different_types(index_flat, index_flat2, request):
if (
no... | - xref #46144
- [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).
cc @jbroc... | https://api.github.com/repos/pandas-dev/pandas/pulls/46150 | 2022-02-25T18:06:00Z | 2022-02-25T21:38:28Z | 2022-02-25T21:38:27Z | 2022-02-25T21:38:30Z |
CI: Merge datamanager job into posix | diff --git a/.github/workflows/datamanger.yml b/.github/workflows/datamanger.yml
deleted file mode 100644
index d355bdec82443..0000000000000
--- a/.github/workflows/datamanger.yml
+++ /dev/null
@@ -1,54 +0,0 @@
-name: Data Manager
-
-on:
- push:
- branches:
- - main
- - 1.4.x
- pull_request:
- branche... | - [ ] [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
Avoids an essentially duplicate config
| https://api.github.com/repos/pandas-dev/pandas/pulls/46143 | 2022-02-25T03:59:03Z | 2022-02-26T00:52:23Z | 2022-02-26T00:52:23Z | 2022-03-02T12:07:29Z |
REF: combine masked_cummin_max, cummin_max | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index c0d1405e92518..445352730bb3d 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1418,6 +1418,13 @@ cdef group_cummin_max(iu_64_floating_t[:, ::1] out,
"""
cdef:
iu_64_floating_t[:, ::1] accum
+ Py_ssiz... | more closely match pattern we use for other mask-supporting functions in this file | https://api.github.com/repos/pandas-dev/pandas/pulls/46142 | 2022-02-24T23:25:42Z | 2022-02-27T20:07:14Z | 2022-02-27T20:07:14Z | 2022-02-27T20:36:29Z |
ENH: Implement DataFrame interchange protocol | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index 9a1ebc8d670dc..ea27d1efbb235 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -391,3 +391,4 @@ Serialization / IO / conversion
DataFrame.to_clipboard
DataFrame.to_markdown
DataFrame.style
+ ... | Do note that this PR is currently work-in-progress, mostly to facilitate the discussion on how the implementation should be going.
It also vendors the [exchange spec](https://github.com/data-apis/dataframe-api/pull/74) and [exchange tests](https://github.com/data-apis/dataframe-api/pull/75), which aren't yet merged ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46141 | 2022-02-24T18:01:38Z | 2022-04-27T12:48:13Z | 2022-04-27T12:48:13Z | 2022-04-27T12:48:14Z |
Inconsistent handling of duplicate axes + mixed dtypes in DataFrame.where #25399 | diff --git a/pandas/tests/frame/indexing/test_where.py b/pandas/tests/frame/indexing/test_where.py
index ca050a7d7db4a..51013adc0b907 100644
--- a/pandas/tests/frame/indexing/test_where.py
+++ b/pandas/tests/frame/indexing/test_where.py
@@ -12,6 +12,7 @@
from pandas import (
DataFrame,
DatetimeIndex,
+ In... | - [x] closes #25399
- [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/46139 | 2022-02-24T12:59:36Z | 2022-02-26T00:57:56Z | 2022-02-26T00:57:55Z | 2022-02-26T00:57:59Z |
CLN: Remove Categorical.itemsize | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 1e147e6e14b61..bea99a741fd6f 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -43,7 +43,6 @@
)
from pandas.compat.numpy import function as nv
from pandas.util._decorators import (
- ca... | The method doesn't even work in main, it is useless and removal keeps the same error code as before, so I think it's OK to just remove and not do a deprecation cycle here:
```python
>>> cat = pd.Categorical([9, 6])
>>> cat.itemsize
AttributeError: 'Int64Index' object has no attribute 'itemsize' # main
Attribute... | https://api.github.com/repos/pandas-dev/pandas/pulls/46137 | 2022-02-23T23:59:54Z | 2022-02-27T17:57:48Z | 2022-02-27T17:57:48Z | 2022-02-27T18:23:24Z |
TST: misplaced array tests | diff --git a/pandas/tests/arrays/numpy_/__init__.py b/pandas/tests/arrays/numpy_/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/arrays/numpy_/test_indexing.py b/pandas/tests/arrays/numpy_/test_indexing.py
new file mode 100644
index 0000000000000..f92411efe774c
--- /dev/nul... | - [ ] 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/46136 | 2022-02-23T23:46:27Z | 2022-02-24T03:07:28Z | 2022-02-24T03:07:28Z | 2022-02-24T03:57:38Z |
DEPR: non-keyword args in EA.argsort | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 199a52f9d770f..ade1fbcba0c26 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -243,7 +243,8 @@ Other Deprecations
- Deprecated treating float-dtype data as wall-times when passed with a timezone to :cl... | - [ ] 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/46134 | 2022-02-23T22:17:26Z | 2022-02-26T19:04:47Z | 2022-02-26T19:04:47Z | 2022-02-26T20:17:07Z |
TYP: groupby, sorting | diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py
index e71e56574d766..3bffe59905a69 100644
--- a/pandas/core/groupby/grouper.py
+++ b/pandas/core/groupby/grouper.py
@@ -459,7 +459,7 @@ class Grouping:
* groups : dict of {group -> label_list}
"""
- _codes: np.ndarray | None =... | - [ ] 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/46133 | 2022-02-23T22:08:31Z | 2022-02-27T20:07:39Z | 2022-02-27T20:07:39Z | 2022-02-27T20:35:04Z |
REF: remove no-longer-needed _validate_numeric_casting | diff --git a/pandas/core/array_algos/putmask.py b/pandas/core/array_algos/putmask.py
index d0779b48ae094..d2e6b6e935ed5 100644
--- a/pandas/core/array_algos/putmask.py
+++ b/pandas/core/array_algos/putmask.py
@@ -14,10 +14,7 @@
)
from pandas.compat import np_version_under1p20
-from pandas.core.dtypes.cast import (
... | Most of its usages have been replaced with can_hold_element. | https://api.github.com/repos/pandas-dev/pandas/pulls/46131 | 2022-02-23T20:20:22Z | 2022-02-26T19:06:01Z | 2022-02-26T19:06:01Z | 2022-02-26T20:17:31Z |
DOC: Fixed issue 46125 | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index e41f938170417..a94681924d211 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -89,7 +89,7 @@ Getting values from an object with multi-axes selection uses the following
notation (using `... | https://github.com/pandas-dev/pandas/issues/46125
- [x] closes 46125 (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](http... | https://api.github.com/repos/pandas-dev/pandas/pulls/46130 | 2022-02-23T16:47:53Z | 2022-02-23T18:03:26Z | 2022-02-23T18:03:26Z | 2022-02-23T19:16:14Z |
DOC: Improve options.rst | diff --git a/doc/source/_static/option_unicode01.png b/doc/source/_static/option_unicode01.png
deleted file mode 100644
index d7168de126c5b..0000000000000
Binary files a/doc/source/_static/option_unicode01.png and /dev/null differ
diff --git a/doc/source/_static/option_unicode02.png b/doc/source/_static/option_unicode0... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
* Removed some images that now render in ipython in sphinx
* Referenced user guide section in option function docstrings
* Added more sphinx links to pandas functions and objects
* Clarifie... | https://api.github.com/repos/pandas-dev/pandas/pulls/46124 | 2022-02-23T05:53:53Z | 2022-02-26T01:10:40Z | 2022-02-26T01:10:40Z | 2022-02-26T03:29:37Z |
TYP: assorted | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 8c10b62d83f9e..f6bda51298622 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -534,7 +534,7 @@ def factorize_array(
na_sentinel: int = -1,
size_hint: int | None = None,
na_value=None,
- mask: np.ndarray |... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/46121 | 2022-02-22T21:47:38Z | 2022-02-26T19:28:19Z | 2022-02-26T19:28:19Z | 2022-02-26T20:16:30Z |
DOC: added "How to read these guides" section to User Guide page (#39130) | diff --git a/doc/source/user_guide/index.rst b/doc/source/user_guide/index.rst
index 6b6e212cde635..59c9a9afb7f95 100644
--- a/doc/source/user_guide/index.rst
+++ b/doc/source/user_guide/index.rst
@@ -17,6 +17,43 @@ For a high level summary of the pandas fundamentals, see :ref:`dsintro` and :ref
Further information on... | Based on changes by rhuille <raphael.huille@gmail.com> (#39207)
- [ ] closes #39130
- [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/pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/46120 | 2022-02-22T20:54:41Z | 2022-02-23T23:21:47Z | 2022-02-23T23:21:47Z | 2022-02-23T23:21:56Z |
REF: isinstance(x, int) -> is_integer(x) | diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py
index 2e90074a6bbd3..8a0b7f21ce023 100644
--- a/pandas/io/formats/style_render.py
+++ b/pandas/io/formats/style_render.py
@@ -25,6 +25,11 @@
from pandas._typing import Level
from pandas.compat._optional import import_optional_dependenc... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/46119 | 2022-02-22T20:21:40Z | 2022-02-26T01:09:49Z | 2022-02-26T01:09:49Z | 2022-03-25T11:40:33Z |
CI: Align MacOS dependencies with other builds | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 747be0654ac70..dc0714871503c 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -22,7 +22,6 @@ variables:
PANDAS_CI: 1
jobs:
-# Mac and Linux use the same template
- template: ci/azure/posix.yml
parameters:
name: macOS
diff --git a/c... | - [ ] [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
xref https://github.com/pandas-dev/pandas/issues/29685
MacOS/Windows/Linux will use the same dependency file after this change
| https://api.github.com/repos/pandas-dev/pandas/pulls/46118 | 2022-02-22T19:17:36Z | 2022-02-26T00:51:48Z | 2022-02-26T00:51:48Z | 2022-02-26T03:28:50Z |
BUG: PandasArray._quantile when empty | diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py
index 64cd43a3e77cb..6bfc2b63448ae 100644
--- a/pandas/core/array_algos/quantile.py
+++ b/pandas/core/array_algos/quantile.py
@@ -2,7 +2,6 @@
import numpy as np
-from pandas._libs import lib
from pandas._typing import (
Ar... | Not user-facing, but still good to have fixed.
Gets rid of our last non-idiomatic usage of _from_factorized, xref #33276 | https://api.github.com/repos/pandas-dev/pandas/pulls/46110 | 2022-02-22T04:28:26Z | 2022-02-26T00:59:34Z | 2022-02-26T00:59:33Z | 2022-02-26T02:01:12Z |
PERF: avoid unnecessary copies factorize | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 8c10b62d83f9e..b5abc5bed88bd 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -294,25 +294,6 @@ def _get_hashtable_algo(values: np.ndarray):
return htable, values
-def _get_values_for_rank(values: ArrayLike) -> np... | Reached via yak-shaving on #33276.
The core.algorithms change should only affect non-64bit cases. The Categorical change could help across the board.
```
import numpy as np
import pandas as pd
arr = np.arange(10**5, dtype="uint32")
%timeit pd.factorize(arr)
2.27 ms ± 67.8 µs per loop (mean ± std. dev. o... | https://api.github.com/repos/pandas-dev/pandas/pulls/46109 | 2022-02-22T04:12:29Z | 2022-02-26T19:38:05Z | 2022-02-26T19:38:05Z | 2022-02-26T20:19:46Z |
TST: Parameterize tests | diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py
index f92c779c85f03..6b53ef400e53d 100644
--- a/pandas/tests/frame/methods/test_replace.py
+++ b/pandas/tests/frame/methods/test_replace.py
@@ -891,6 +891,7 @@ def test_replace_input_formats_scalar(self):
tm.as... | - [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/46108 | 2022-02-22T00:04:28Z | 2022-02-22T16:06:50Z | 2022-02-22T16:06:50Z | 2022-02-22T17:39:07Z |
PERF: support mask in group_last | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index c0d1405e92518..db890763a9d4f 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -960,6 +960,8 @@ def group_last(iu_64_floating_obj_t[:, ::1] out,
int64_t[::1] counts,
ndarray[iu_64_floating_obj_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/46107 | 2022-02-21T21:35:50Z | 2022-02-26T19:38:36Z | 2022-02-26T19:38:35Z | 2022-02-26T21:52:01Z |
REF/TST: misplaced hashtable tests, rename HashTable.map map_keys_to_values | diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi
index f4b90648a8dc8..481ff0d36c460 100644
--- a/pandas/_libs/hashtable.pyi
+++ b/pandas/_libs/hashtable.pyi
@@ -120,12 +120,6 @@ class HashTable:
# TODO: `item` type is subclass-specific
def get_item(self, item): ... # TODO: return 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/46106 | 2022-02-21T21:29:07Z | 2022-02-26T19:42:39Z | 2022-02-26T19:42:39Z | 2022-02-27T20:31:01Z |
ENH: allow concat of Styler objects | diff --git a/doc/source/_static/style/footer_extended.png b/doc/source/_static/style/footer_extended.png
new file mode 100644
index 0000000000000..3699d61ad4346
Binary files /dev/null and b/doc/source/_static/style/footer_extended.png differ
diff --git a/doc/source/_static/style/footer_simple.png b/doc/source/_static/s... | - [x] closes #43875
- [x] closes #43894


- [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/46104 | 2022-02-21T20:35:38Z | 2022-02-27T20:01:15Z | 2022-02-27T20:01:14Z | 2022-02-27T20:50:00Z |
DOC: Remove old note about default unit | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 33ed64c7ae364..cdb2ea37d948c 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -765,8 +765,8 @@ def to_datetime(
unit : str, default 'ns'
The unit of the arg (D,s,ms,us,ns) denote the unit,... | `to_datetime` docstring indicates that the default unit is 'ms', but it is 'ns'. This PR simply removes that comment so that there is no need to keep it in sync with the implementation.
- [ ] ~closes #xxxx (Replace xxxx with the Github issue number)~ NA
- [ ] ~[Tests added and passed](https://pandas.pydata.org/pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/46103 | 2022-02-21T20:00:38Z | 2022-02-26T01:02:44Z | 2022-02-26T01:02:44Z | 2022-02-26T01:02:47Z |
REF: implement ArrowExtensionArray base class | diff --git a/pandas/core/arrays/_arrow_utils.py b/pandas/core/arrays/_arrow_utils.py
index 6214693f22975..3c0614a9f69d6 100644
--- a/pandas/core/arrays/_arrow_utils.py
+++ b/pandas/core/arrays/_arrow_utils.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import json
import numpy as np
diff --git a/pandas/co... | xref #46008 | https://api.github.com/repos/pandas-dev/pandas/pulls/46102 | 2022-02-21T19:22:46Z | 2022-02-26T21:55:21Z | 2022-02-26T21:55:21Z | 2022-07-14T16:26:47Z |
Add missing __finalize__ calls in indexers/iterators | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e4879a6c41515..23d88b2626ad7 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -542,6 +542,7 @@ Indexing
- Bug in :meth:`CategoricalIndex.get_indexer` when index contains ``NaN`` values, resulting in el... | - [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).
- [ ] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46101 | 2022-02-21T18:47:50Z | 2022-04-26T22:10:05Z | 2022-04-26T22:10:05Z | 2022-04-26T22:10:15Z |
Typeinterval part2 | diff --git a/pandas/_libs/interval.pyi b/pandas/_libs/interval.pyi
new file mode 100644
index 0000000000000..67cb604083c6b
--- /dev/null
+++ b/pandas/_libs/interval.pyi
@@ -0,0 +1,174 @@
+from __future__ import annotations
+
+from typing import (
+ Any,
+ Generic,
+ TypeVar,
+ Union,
+ overload,
+)
+
+im... | Is on top of https://github.com/pandas-dev/pandas/pull/46080
I believe the typing for `Interval` here is correct as it passes the tests created here:
https://github.com/microsoft/python-type-stubs/pull/167/
Leaving this as draft status as it requires #46080 to be approved.
Or a decision to go with #44922, in ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46098 | 2022-02-21T17:39:36Z | 2022-02-27T20:08:14Z | 2022-02-27T20:08:13Z | 2023-02-13T20:56:24Z |
Manual Backport PR #46059 on branch 1.4.x (CI: Test various Pyarrow version on Linux) | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 35196ad2840c6..565c1008d42b3 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -26,6 +26,9 @@ jobs:
matrix:
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml]
pattern: ["not sing... | Backport PR #46059 | https://api.github.com/repos/pandas-dev/pandas/pulls/46097 | 2022-02-21T17:23:01Z | 2022-02-23T13:13:58Z | 2022-02-23T13:13:58Z | 2022-02-23T16:29:48Z |
BUG: Change numeric_only default to True | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 584375512e76c..6a8fa0e6963a4 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -297,6 +297,7 @@ Other Deprecations
- Deprecated the ``warn`` parameter in :func:`infer_freq` (:issue:`45947`)
- Deprecate... | I know I have to correct the other tests that fail due to this change. But I want confirmation that this PR is headed in the right direction before doing so.
- [X] closes #7308
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46096 | 2022-02-21T16:28:03Z | 2022-03-18T00:49:04Z | 2022-03-18T00:49:03Z | 2022-03-18T00:49:07Z |
TST: Split & parameterize | diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py
index 3e9860d157e5f..9ab14e2a55662 100644
--- a/pandas/tests/frame/test_arithmetic.py
+++ b/pandas/tests/frame/test_arithmetic.py
@@ -181,7 +181,18 @@ def test_comparison_invalid(self, arg, arg2):
with pytest.raises(Type... | - [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/46091 | 2022-02-21T04:42:32Z | 2022-02-27T15:21:47Z | 2022-02-27T15:21:47Z | 2022-02-27T18:00:58Z |
REF: share hashtable_func_helper code | diff --git a/pandas/_libs/hashtable_func_helper.pxi.in b/pandas/_libs/hashtable_func_helper.pxi.in
index e5e64f8dc7b5f..be57d2cd5f844 100644
--- a/pandas/_libs/hashtable_func_helper.pxi.in
+++ b/pandas/_libs/hashtable_func_helper.pxi.in
@@ -17,7 +17,7 @@ dtypes = [('Complex128', 'complex128', 'complex128',
(... | - [ ] 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/46090 | 2022-02-21T03:34:53Z | 2022-02-24T23:18:09Z | 2022-02-24T23:18:09Z | 2022-02-24T23:19:14Z |
REF: use fused types for mode | diff --git a/pandas/_libs/hashtable_func_helper.pxi.in b/pandas/_libs/hashtable_func_helper.pxi.in
index e5e64f8dc7b5f..d9abed75184f6 100644
--- a/pandas/_libs/hashtable_func_helper.pxi.in
+++ b/pandas/_libs/hashtable_func_helper.pxi.in
@@ -247,63 +247,6 @@ cdef ismember_{{dtype}}(const {{dtype}}_t[:] arr, const {{dtyp... | - [ ] 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/46089 | 2022-02-21T02:27:29Z | 2022-02-26T19:37:41Z | 2022-02-26T19:37:41Z | 2022-02-26T20:17:58Z |
ENH: Improve error message when rolling over NaT value | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 527c4215d22ca..8e7b26c9a6c03 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -40,6 +40,7 @@ Other enhancements
- :meth:`.GroupBy.min` and :meth:`.GroupBy.max` now supports `Numba <https://numba.pydata... | - [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] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46087 | 2022-02-20T20:09:44Z | 2022-02-28T00:39:54Z | 2022-02-28T00:39:54Z | 2022-04-01T20:03:47Z |
BUG/REF: Use lru_cache instead of NUMBA_FUNC_CACHE | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 7e470a51858ce..10633f350dfc7 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -382,6 +382,8 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.resample` ignoring ``closed="right"`` on :class:`Timede... | - [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] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46086 | 2022-02-20T19:23:09Z | 2022-02-27T20:09:22Z | 2022-02-27T20:09:22Z | 2022-02-28T00:12:58Z |
Typeinterval part1 | diff --git a/pandas/_typing.py b/pandas/_typing.py
index c0383fe50a7e7..b897a4e8fe199 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -83,7 +83,7 @@
PythonScalar = Union[str, int, float, bool]
DatetimeLikeScalar = Union["Period", "Timestamp", "Timedelta"]
PandasScalar = Union["Period", "Timestamp", "Timede... | I would like to add `pandas/_libs/interval.pyi`, and I have a tentative file for that, but when I started to do that, it uncovered issues in our existing typing, because currently, `mypy` sees `Interval` as `Unknown`, which allows a bunch of things to pass.
So this PR addresses that issue. The way to see the probl... | https://api.github.com/repos/pandas-dev/pandas/pulls/46080 | 2022-02-20T02:42:44Z | 2022-02-26T19:26:16Z | 2022-02-26T19:26:16Z | 2023-02-13T20:56:21Z |
Revert "BUG: groupby().rolling(freq) with monotonic dates within groups (#46065)" | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 59f6319de127d..68999b9bba50f 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
-- Bug in :meth:`Groupby.rolling` with a frequency window would rai... | This reverts commit ad0f1bf44ed7a974ce8d009e28aebde01bc7c42c. #46065
| https://api.github.com/repos/pandas-dev/pandas/pulls/46078 | 2022-02-19T23:17:10Z | 2022-02-20T09:49:26Z | 2022-02-20T09:49:26Z | 2022-02-20T18:49:33Z |
BUG: .transform(...) with "first" and "last" fail when axis=1 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e3f772ac026ab..039642dc390e7 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -379,6 +379,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.resample` ignoring ``closed="right"`` on :class:`Timede... | Part of #45986 (first/last)
- [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-commi... | https://api.github.com/repos/pandas-dev/pandas/pulls/46074 | 2022-02-19T18:43:50Z | 2022-02-26T21:58:57Z | 2022-02-26T21:58:57Z | 2022-02-27T15:30:33Z |
Backport PR #46069 on branch 1.4.x (DOC: fix ref in 1.4.2 release notes) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index fdac1c385499a..68999b9bba50f 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-- Fixed regression in :meth:`Dat... | Backport PR #46069: DOC: fix ref in 1.4.2 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/46073 | 2022-02-19T18:23:57Z | 2022-02-19T20:25:57Z | 2022-02-19T20:25:57Z | 2022-02-19T20:25:57Z |
DOC: fix ref in 1.4.2 release notes | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index fdac1c385499a..68999b9bba50f 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-- Fixed regression in :meth:`Dat... | follow-up to #45983 | https://api.github.com/repos/pandas-dev/pandas/pulls/46069 | 2022-02-19T13:31:08Z | 2022-02-19T18:23:03Z | 2022-02-19T18:23:03Z | 2022-02-19T18:35:35Z |
BUG: groupby().rolling(freq) with monotonic dates within groups | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index fdac1c385499a..243fffcc7cce8 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Bug in :meth:`Groupby.rolling` with a frequency window would ... | - [x] closes #46061
- [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/46065 | 2022-02-18T23:56:21Z | 2022-02-19T20:53:29Z | 2022-02-19T20:53:29Z | 2022-03-30T02:28:06Z |
BUG: BooleanArray match non-masked behavior div/pow/mod | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 5d656cde08610..e5d76e34e58e0 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -294,6 +294,7 @@ Time Zones
Numeric
^^^^^^^
- Bug in operations with array-likes with ``dtype="boolean"`` and :attr:`NA` ... | - [ ] 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/46063 | 2022-02-18T21:28:21Z | 2022-02-27T20:52:33Z | 2022-02-27T20:52:33Z | 2022-02-27T20:55:21Z |
Backport PR #46054 on branch 1.4.x (CI: pin markupsafe to avoid import error) | diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml
index 467402bb6ef7f..2e782817f3f14 100644
--- a/ci/deps/actions-38-minimum_versions.yaml
+++ b/ci/deps/actions-38-minimum_versions.yaml
@@ -19,7 +19,7 @@ dependencies:
- numpy=1.18.5
- pytz=2020.1
- # optional depe... | Backport PR #46054: CI: pin markupsafe to avoid import error | https://api.github.com/repos/pandas-dev/pandas/pulls/46062 | 2022-02-18T21:00:55Z | 2022-02-19T02:03:39Z | 2022-02-19T02:03:38Z | 2022-02-19T02:03:39Z |
DOC: Add details to DataFrame.combine_first docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 082a5814c2fc7..b5ce0490ff432 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7448,7 +7448,11 @@ def combine_first(self, other: DataFrame) -> DataFrame:
Combine two DataFrame objects by filling null values in one DataFrame
... | - [x] closes #41704
- [ ] [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/46060 | 2022-02-18T19:29:12Z | 2022-02-22T04:11:21Z | 2022-02-22T04:11:20Z | 2022-02-22T13:36:37Z |
CI: Test various Pyarrow version on Linux | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 118a37e191673..97683e56915c6 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -26,6 +26,9 @@ jobs:
matrix:
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml]
pattern: ["not sing... | - [x] closes #45705 (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
As discovered in https://github.com/pandas-dev/pandas/pull/46014, pyarrow v2 seems to... | https://api.github.com/repos/pandas-dev/pandas/pulls/46059 | 2022-02-18T19:09:47Z | 2022-02-21T17:18:08Z | 2022-02-21T17:18:08Z | 2022-02-21T20:10:11Z |
BUG: Fix aligning a DataFrame with a Series with MultiIndex #46001 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 18fd1057c9b65..5e7c75282bf84 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -440,6 +440,7 @@ Reshaping
^^^^^^^^^
- Bug in :func:`concat` between a :class:`Series` with integer dtype and another with... | When aligning a DataFrame to a Series we are using Series.reindex() to
broadcast the Series data to the new index. That introduces NaNs when the new
index rows are not identical to the existing ones, which is not the case when
we introduce a new MultiIndex level.
In this patch we use the same approach as for ali... | https://api.github.com/repos/pandas-dev/pandas/pulls/46058 | 2022-02-18T17:56:51Z | 2022-03-07T23:52:24Z | 2022-03-07T23:52:23Z | 2022-03-08T00:38:52Z |
bug: styler latex longtable column count | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 68999b9bba50f..05bc7ff8c96d2 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Fixed "longtable" formatting in :meth:`.Styler.to_latex` when... | - [x] closes #46037
- [x] tests
- [x] whats new
| https://api.github.com/repos/pandas-dev/pandas/pulls/46057 | 2022-02-18T17:43:23Z | 2022-02-26T00:50:55Z | 2022-02-26T00:50:55Z | 2022-03-06T07:28:50Z |
DOC: Add "build C extensions" note | diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst
index b28f7c833d7ad..fb27d07cfb18f 100644
--- a/doc/source/development/contributing_environment.rst
+++ b/doc/source/development/contributing_environment.rst
@@ -26,14 +26,28 @@ with a full pandas deve... | - [x] closes #45914
This PR adds the missing information that the C extensions must be built when a local pandas repo was bind for the first time.
I also adjusted the docker commands to:
- show how you can use your forked repo (`--build-arg gh_username=yourname` was missing)
- specify the workdir `-w /home/pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/46055 | 2022-02-18T17:14:16Z | 2022-02-27T15:57:59Z | 2022-02-27T15:57:58Z | 2022-03-02T20:23:10Z |
CI: pin markupsafe to avoid import error | diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml
index 467402bb6ef7f..2e782817f3f14 100644
--- a/ci/deps/actions-38-minimum_versions.yaml
+++ b/ci/deps/actions-38-minimum_versions.yaml
@@ -19,7 +19,7 @@ dependencies:
- numpy=1.18.5
- pytz=2020.1
- # optional depe... | Lets see if this fixes the ci
| https://api.github.com/repos/pandas-dev/pandas/pulls/46054 | 2022-02-18T17:08:15Z | 2022-02-18T21:00:14Z | 2022-02-18T21:00:14Z | 2022-02-18T21:01:01Z |
BUG: read_csv not respecting converter in all cases for index col | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 199a52f9d770f..bdb276fd17e04 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -359,6 +359,7 @@ I/O
- Bug in :meth:`DataFrame.info` where a new line at the end of the output is omitted when called on an... | - [x] closes #40589 (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/46053 | 2022-02-18T16:52:15Z | 2022-02-26T19:24:42Z | 2022-02-26T19:24:41Z | 2022-06-06T20:52:32Z |
ENH: Add defaultdict support for dtype in read_csv | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index a9219cd811b6f..3a8583d395cc4 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -186,6 +186,11 @@ dtype : Type name or dict of column -> type, default ``None``
(unsupported with ``engine='python'``). Use ``str... | - [x] closes #41574 (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/46051 | 2022-02-18T15:42:49Z | 2022-03-22T23:26:05Z | 2022-03-22T23:26:05Z | 2022-06-06T20:52:47Z |
BUG: error in read_excel with some ods files #45598 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 3bc9a1ef1ca48..f2390f2305d72 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -406,6 +406,7 @@ I/O
- Bug in :func:`read_parquet` when ``engine="pyarrow"`` which caused partial write to disk when column... | - [x] closes #45598
- [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/46050 | 2022-02-18T13:27:02Z | 2022-03-03T17:37:21Z | 2022-03-03T17:37:20Z | 2022-03-03T17:37:35Z |
BUG: Multiindex.equals not commutative for ea dtype | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 199a52f9d770f..40e4ad2a436c1 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -349,7 +349,7 @@ Missing
MultiIndex
^^^^^^^^^^
--
+- Bug in :class:`MultiIndex.equals` not commutative when only one sid... | - [x] closes #46026 (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/46047 | 2022-02-18T09:36:03Z | 2022-02-26T19:28:49Z | 2022-02-26T19:28:48Z | 2022-06-06T20:53:05Z |
FIX: clarify warning in read_sql_query() | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index ba18412856d6c..e004e9c1ecbcc 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -748,9 +748,9 @@ def pandasSQL_builder(con, schema: str | None = None):
return SQLDatabase(con, schema=schema)
warnings.warn(
- "pandas only support SQLAlche... | - [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/46045 | 2022-02-18T04:12:48Z | 2022-02-22T04:53:44Z | 2022-02-22T04:53:44Z | 2022-02-22T04:59:48Z |
PERF: MultiIndex slicing | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index 1135e1ada1b78..40eaab524a399 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -13,7 +13,6 @@
CategoricalIndex,
DataFrame,
Float64Index,
- IndexSlice,
Int64Index,
Inte... | - [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] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46040 | 2022-02-17T16:55:30Z | 2022-02-27T00:11:13Z | 2022-02-27T00:11:13Z | 2022-03-02T01:13:42Z |
BUG: fix parquet roundtrip for Interval dtype with datetime64[ns] subtype | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e73a4348eece1..0d3b972f09862 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -357,6 +357,7 @@ I/O
- Bug in :meth:`DataFrame.to_csv` not respecting ``float_format`` for ``Float64`` dtype (:issue:`45991... | Closes #45881 | https://api.github.com/repos/pandas-dev/pandas/pulls/46034 | 2022-02-17T13:27:51Z | 2022-02-27T20:10:27Z | 2022-02-27T20:10:26Z | 2022-08-01T12:05:18Z |
CI: Test on Cython 3.0 on numpydev | diff --git a/ci/deps/actions-310-numpydev.yaml b/ci/deps/actions-310-numpydev.yaml
index 401be14aaca02..c2cdd38e8599f 100644
--- a/ci/deps/actions-310-numpydev.yaml
+++ b/ci/deps/actions-310-numpydev.yaml
@@ -16,7 +16,8 @@ dependencies:
- pytz
- pip
- pip:
- - cython==0.29.24 # GH#34014
+ #- cython # TOD... | - [ ] 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/46029 | 2022-02-17T02:02:31Z | 2022-03-28T23:12:23Z | 2022-03-28T23:12:23Z | 2022-03-29T00:19:23Z |
DOC: Fixed broken link to the build from source docs in the README. | diff --git a/README.md b/README.md
index 26aed081de4af..2216f59965354 100644
--- a/README.md
+++ b/README.md
@@ -136,7 +136,7 @@ or alternatively
python setup.py develop
```
-See the full instructions for [installing from source](https://pandas.pydata.org/pandas-docs/stable/install.html#installing-from-source).
+Se... | I just noticed a broken link in the README. Submitting a quick PR to fix it. | https://api.github.com/repos/pandas-dev/pandas/pulls/46028 | 2022-02-17T01:26:02Z | 2022-02-17T16:01:17Z | 2022-02-17T16:01:17Z | 2022-02-17T16:14:25Z |
DOC: Minor addition to str.split | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index b7ccc087ff1f1..f9dd17df6a47b 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -1880,6 +1880,7 @@ def encode(self, encoding, errors="strict"):
Strip whitespaces (including newlines) or a set o... | - [x] Closes #44867
- [ ] Added an entry in whatsnew
| https://api.github.com/repos/pandas-dev/pandas/pulls/46027 | 2022-02-16T20:42:17Z | 2022-02-22T05:03:15Z | 2022-02-22T05:03:14Z | 2022-02-22T05:03:25Z |
CI: Fix line sep issue in to_csv test | diff --git a/pandas/tests/io/formats/test_to_csv.py b/pandas/tests/io/formats/test_to_csv.py
index bee17e4e8e162..70fa071fe8fb6 100644
--- a/pandas/tests/io/formats/test_to_csv.py
+++ b/pandas/tests/io/formats/test_to_csv.py
@@ -320,12 +320,9 @@ def test_to_csv_float_ea_float_format(self):
df = DataFrame({"a":... | Should fix ci | https://api.github.com/repos/pandas-dev/pandas/pulls/46024 | 2022-02-16T18:45:55Z | 2022-02-16T20:04:25Z | 2022-02-16T20:04:25Z | 2022-02-16T20:04:29Z |
DOC: add note for ExtensionArray authors on relation between argmax/min and _values_for_argsort | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 834c2db9ecb21..7c0daeecafaf7 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -180,7 +180,7 @@ class ExtensionArray:
* dropna
* unique
* factorize / _values_for_factorize
- * argsort / _values_for_arg... | See discussion / conclusion in https://github.com/pandas-dev/pandas/issues/33276#issuecomment-1027853573 | https://api.github.com/repos/pandas-dev/pandas/pulls/46022 | 2022-02-16T15:08:03Z | 2022-02-16T18:43:42Z | 2022-02-16T18:43:42Z | 2022-02-16T21:06:19Z |
Backport PR #45983 on branch 1.4.x (REGR: drop raising with ea index and duplicates) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 9ba7461b830da..fdac1c385499a 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in :meth:`... | Backport PR #45983: REGR: drop raising with ea index and duplicates | https://api.github.com/repos/pandas-dev/pandas/pulls/46020 | 2022-02-16T13:07:07Z | 2022-02-16T18:48:03Z | 2022-02-16T18:48:03Z | 2022-02-16T18:48:03Z |
BUG: remove usage of _constructor._get_axis_number (fix when _constructor properties return callables) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 05bc7ff8c96d2..43b911cd24e1d 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,6 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Fix some cases for subclasses that define their ``_constructor``... | See report at https://github.com/pandas-dev/pandas/issues/32860#issuecomment-697993089 (and we also run into this one case in geopandas). Also related to https://github.com/pandas-dev/pandas/issues/32638
As far as I know this is the only remaining case where we rely on `_constructor`/`_constructor_sliced`/`_construc... | https://api.github.com/repos/pandas-dev/pandas/pulls/46018 | 2022-02-16T09:50:22Z | 2022-02-26T19:46:10Z | 2022-02-26T19:46:10Z | 2022-07-17T09:09:23Z |
CI: Unpin Cython on PyPy testing | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 35196ad2840c6..118a37e191673 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -143,8 +143,7 @@ jobs:
shell: bash
run: |
# TODO: re-enable cov, its slowing the tests down though
- # TOD... | - [ ] 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/46016 | 2022-02-16T04:08:50Z | 2022-02-16T13:13:33Z | 2022-02-16T13:13:33Z | 2022-03-30T10:49:57Z |
PERF: join empty frame | diff --git a/asv_bench/benchmarks/join_merge.py b/asv_bench/benchmarks/join_merge.py
index 6e27d9355997f..e3c6bf9bd4e07 100644
--- a/asv_bench/benchmarks/join_merge.py
+++ b/asv_bench/benchmarks/join_merge.py
@@ -158,6 +158,19 @@ def time_left_outer_join_index(self):
self.left.join(self.right, on="jim")
+c... | - [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] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46015 | 2022-02-16T03:39:47Z | 2022-02-22T17:40:00Z | 2022-02-22T17:40:00Z | 2022-03-02T01:13:19Z |
TST: parameterize tests/dtypes | diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py
index 87dfdfec1162f..99037226782db 100644
--- a/pandas/tests/dtypes/test_inference.py
+++ b/pandas/tests/dtypes/test_inference.py
@@ -1826,12 +1826,13 @@ def test_is_datetime_dtypes(self):
assert not is_datetime64tz_dtyp... | - [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/46012 | 2022-02-15T23:01:15Z | 2022-02-16T13:14:54Z | 2022-02-16T13:14:54Z | 2022-02-16T16:24:32Z |
TST/BLD: test 3.6 on appveyor | diff --git a/appveyor.yml b/appveyor.yml
index a8e5218ab2c9f..33b8be57eba62 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -17,20 +17,19 @@ environment:
matrix:
- # disable python 3.4 ATM
- #- PYTHON: "C:\\Python34_64"
- # PYTHON_VERSION: "3.4"
- # PYTHON_ARCH: "64"
- # CONDA_PY: "34"
- # ... | CLN: clean up appveyor.yml a bit
| https://api.github.com/repos/pandas-dev/pandas/pulls/15088 | 2017-01-09T17:52:17Z | 2017-01-09T17:52:23Z | 2017-01-09T17:52:23Z | 2017-01-09T19:52:50Z |
Allow indices to be mapped through through dictionaries or series | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 3c0e2869357ae..5e8cf3a0350bb 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -123,6 +123,30 @@ def time_series_dropna_datetime(self):
self.s.dropna()
+class... | - [X] closes #12756
- [X] tests added / passed
- [X] passes ``git diff upstream/master | flake8 --diff``
- [X] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15081 | 2017-01-08T00:17:29Z | 2017-11-25T14:24:16Z | 2017-11-25T14:24:15Z | 2017-11-25T18:22:47Z |
PERF: improve perf of float-based timeseries plotting | diff --git a/asv_bench/benchmarks/plotting.py b/asv_bench/benchmarks/plotting.py
index 3350ddaccc496..757c3e27dd333 100644
--- a/asv_bench/benchmarks/plotting.py
+++ b/asv_bench/benchmarks/plotting.py
@@ -20,6 +20,9 @@ def setup(self):
def time_plot_regular(self):
self.df.plot()
+ def time_plot_regul... | xref #15071
`_dt_to_float_ordinal` was already vectorized, so no need to map it on the index.
So now is 'irregular' plotting even faster as period-based plotting:
```
$ asv continuous upstream/master HEAD -b TimeseriesPlotting
...
· Running 4 total benchmarks (2 commits * 1 environments * 2 benchmarks)
[ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15073 | 2017-01-06T11:45:05Z | 2017-01-09T19:03:48Z | 2017-01-09T19:03:48Z | 2017-01-10T00:35:45Z |
BUG: Patch missing data handling with usecols | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 9683fedb78303..dae97f7bc7f34 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -1215,6 +1215,19 @@ You can elect to skip bad lines:
0 1 2 3
1 8 9 10
+You can also use the ``usecols`` parameter to eliminate extraneous column
+data that a... | Patch handling of cases when the first row of a CSV is incomplete and `usecols` is specified.
Closes #6710.
Closes #8985.
xref #14782. | https://api.github.com/repos/pandas-dev/pandas/pulls/15066 | 2017-01-05T05:05:57Z | 2017-01-11T07:57:21Z | 2017-01-11T07:57:21Z | 2017-01-11T08:02:49Z |
DOC: Small corrections to describe docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5f8be9632cbe1..1680c061ad7d3 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5287,7 +5287,6 @@ def describe(self, percentiles=None, include=None, exclude=None):
--------
Describing a numeric ``Series``.
- ... | I've made a number of small changes to an earlier pull request revising the describe documentation to bring it closer to pandas official style. I learned this rules as part of a subsequent request expanding the concat documentation and it seemed right to loop back here.
| https://api.github.com/repos/pandas-dev/pandas/pulls/15057 | 2017-01-04T16:31:18Z | 2017-01-05T09:44:24Z | 2017-01-05T09:44:24Z | 2017-01-05T18:20:52Z |
DOC: Add example of skipcols in read_csv | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 66296804cba5f..9683fedb78303 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -644,6 +644,15 @@ file, either using the column names, position numbers or a callable:
pd.read_csv(StringIO(data), usecols=[0, 2, 3])
pd.read_csv(StringIO(data), usec... | Illustrate how we can use the `usecols` argument to skip particular columns.
Closes #10882. | https://api.github.com/repos/pandas-dev/pandas/pulls/15052 | 2017-01-04T07:01:45Z | 2017-01-04T22:28:13Z | 2017-01-04T22:28:13Z | 2017-01-04T22:29:42Z |
TST: Add new test for flaky usecols | diff --git a/pandas/io/tests/parser/usecols.py b/pandas/io/tests/parser/usecols.py
index 4fb6ff00e2d7b..c654859f8dc7d 100644
--- a/pandas/io/tests/parser/usecols.py
+++ b/pandas/io/tests/parser/usecols.py
@@ -200,6 +200,26 @@ def test_usecols_with_parse_dates(self):
parse_dates=parse_dates)
... | Title is self-explanatory.
xref #14984.
Closes #13604. | https://api.github.com/repos/pandas-dev/pandas/pulls/15051 | 2017-01-04T06:51:20Z | 2017-01-04T08:24:51Z | 2017-01-04T08:24:51Z | 2017-01-04T08:34:46Z |
ERR: Disallow multi-char quotechar for C engine | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 2db03724e564d..23f2589adde89 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -246,6 +246,7 @@ Other API Changes
- ``DataFrame.applymap()`` with an empty ``DataFrame`` will return a copy of the emp... | Raise `ValueError` or issue `ParserWarning` (as we do with other unsupported features) when a multi-char `quotechar` is passed in, and the C engine is used.
Closes #11592. | https://api.github.com/repos/pandas-dev/pandas/pulls/15050 | 2017-01-04T06:22:54Z | 2017-01-05T22:20:25Z | 2017-01-05T22:20:24Z | 2017-01-05T23:34:46Z |
TST: Test empty method and simplify logic | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 96a13b0cb8aca..5f8be9632cbe1 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -909,7 +909,7 @@ def empty(self):
pandas.Series.dropna
pandas.DataFrame.dropna
"""
- return not all(len(self._get_axis(a))... | - [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
Since the docstring of `.empty` states
> True if NDFrame is entirely empty [no items], meaning any of the axes are of length 0.
I was wondering if the logic could be changed accordingly for code clarity. Unless it was set ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15043 | 2017-01-03T07:59:46Z | 2017-01-04T14:36:58Z | 2017-01-04T14:36:58Z | 2017-12-20T02:04:03Z |
DOC: Typing error in ExcelFile class example | diff --git a/doc/source/io.rst b/doc/source/io.rst
index af05a89a54a62..3b8a97e3d189a 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -2372,7 +2372,7 @@ read into memory only once.
.. code-block:: python
- xlsx = pd.ExcelFile('path_to_file.xls)
+ xlsx = pd.ExcelFile('path_to_file.xls')
df = pd.re... | - [x] closes #15037
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
- Tests with local build of documentation passed
- Flake8 seems to be relevant for source code changes, only
- Thought that a whatsnew entry is not relevant in this case | https://api.github.com/repos/pandas-dev/pandas/pulls/15040 | 2017-01-02T19:32:57Z | 2017-01-02T19:42:06Z | 2017-01-02T19:42:06Z | 2017-01-02T19:42:11Z |
COMPAT: py2.7 compat for Timestamp.replace | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index a947b4f3ca0ac..bbf528a50e1bb 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -305,7 +305,7 @@ Bug Fixes
- Bug in ``Series`` construction with a datetimetz (:issue:`14928`)
-
+- Bug in compat f... | compat in Timestamp.replace when passing longs (and not ints)
xref https://github.com/statsmodels/statsmodels/issues/3349 | https://api.github.com/repos/pandas-dev/pandas/pulls/15030 | 2017-01-01T17:53:14Z | 2017-01-01T18:51:24Z | 2017-01-01T18:51:24Z | 2017-01-01T18:51:24Z |
DOC: Added examples to pandas.concat documentation | diff --git a/pandas/tools/merge.py b/pandas/tools/merge.py
index efae7c63a9d0e..4012629aa3c90 100644
--- a/pandas/tools/merge.py
+++ b/pandas/tools/merge.py
@@ -1398,9 +1398,11 @@ def concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False,
copy=True):
"""
Concatenate pandas objects ... | I've added two simple examples to the ``pd.concat`` documentation. I've also done a very small amount of clean up on the rest of the docstring.
- [x] passes ``git diff upstream/master | flake8 --diff`` | https://api.github.com/repos/pandas-dev/pandas/pulls/15028 | 2017-01-01T02:20:26Z | 2017-01-04T13:51:35Z | 2017-01-04T13:51:35Z | 2017-01-04T13:51:46Z |
docs cheat sheet pandas Pd to pd | diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet.pdf b/doc/cheatsheet/Pandas_Cheat_Sheet.pdf
index a2b222c683564..d504926d22580 100644
Binary files a/doc/cheatsheet/Pandas_Cheat_Sheet.pdf and b/doc/cheatsheet/Pandas_Cheat_Sheet.pdf differ
diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet.pptx b/doc/cheatsheet/Pandas_Cheat_S... | Change pandas syntax from Pd to pd
Closes [issue 15017](https://github.com/pandas-dev/pandas/issues/15017#issuecomment-269871137) | https://api.github.com/repos/pandas-dev/pandas/pulls/15026 | 2016-12-31T23:13:06Z | 2017-01-01T18:50:48Z | 2017-01-01T18:50:48Z | 2017-01-01T18:50:55Z |
BUG: Parse uint64 in read_csv | diff --git a/asv_bench/benchmarks/io_bench.py b/asv_bench/benchmarks/io_bench.py
index 2ce3c4726b783..52064d2cdb8a2 100644
--- a/asv_bench/benchmarks/io_bench.py
+++ b/asv_bench/benchmarks/io_bench.py
@@ -128,6 +128,29 @@ def time_read_parse_dates_iso8601(self):
read_csv(StringIO(self.data), header=None, names... | Adds behavior to allow for parsing of `uint64` data in `read_csv`. Also ensures
that they are properly handled along with `NaN` and negative values.
Closes #14983. | https://api.github.com/repos/pandas-dev/pandas/pulls/15020 | 2016-12-31T10:11:45Z | 2017-01-02T19:50:02Z | 2017-01-02T19:50:02Z | 2017-01-02T19:56:19Z |
TST: Series Division with zeros numpy array (#8674) | diff --git a/pandas/tests/series/test_operators.py b/pandas/tests/series/test_operators.py
index 086946d05d7a6..6650a171b818b 100644
--- a/pandas/tests/series/test_operators.py
+++ b/pandas/tests/series/test_operators.py
@@ -143,6 +143,19 @@ def test_div(self):
expected = Series([-inf, nan, inf])
... | - [x] closes #8674
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
This issue operates normally on master and relates to Python's 2.x division. Doesn't appear that any PRs in 0.20 addressed this issue. | https://api.github.com/repos/pandas-dev/pandas/pulls/15013 | 2016-12-30T07:35:45Z | 2016-12-30T09:39:39Z | 2016-12-30T09:39:39Z | 2017-12-20T02:04:02Z |
DOC/BLD: doc building with python 3 | diff --git a/.travis.yml b/.travis.yml
index becb347c3700f..b2a1a8a63cfe6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -182,9 +182,9 @@ matrix:
- CACHE_NAME="35_ascii"
- USE_CACHE=true
# In allow_failures
- - python: 2.7
+ - python: 3.5
env:
- - PYTHON_VERSION=2.7
+ - P... | Makes our doc building machinery (specific accessor stuff) python 3 compat + switches travis doc building to python 3.5 + preventing some other warnings (see individual commits) | https://api.github.com/repos/pandas-dev/pandas/pulls/15012 | 2016-12-29T22:23:39Z | 2016-12-30T14:46:18Z | 2016-12-30T14:46:18Z | 2017-03-05T11:48:08Z |
DOC: python 3 compatibility in code examples | diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst
index 090998570a358..86d0c61398be1 100644
--- a/doc/source/categorical.rst
+++ b/doc/source/categorical.rst
@@ -129,8 +129,7 @@ To get back to the original Series or `numpy` array, use ``Series.astype(origina
s
s2 = s.astype('category')
... | Some changes to our code examples needed to make them all run with python 3.
(there are still problems with our accessor extensions to have doc building on py3 fully working) | https://api.github.com/repos/pandas-dev/pandas/pulls/15011 | 2016-12-29T15:01:28Z | 2016-12-29T21:57:16Z | 2016-12-29T21:57:16Z | 2016-12-29T21:57:16Z |
Fix gbq integration tests so that unique datasets/table names are used | diff --git a/pandas/io/tests/test_gbq.py b/pandas/io/tests/test_gbq.py
index 28820fd71af27..78891cae38bc0 100644
--- a/pandas/io/tests/test_gbq.py
+++ b/pandas/io/tests/test_gbq.py
@@ -1065,7 +1065,7 @@ def tearDown(self):
pass
def test_upload_data_as_service_account_with_key_path(self):
- destin... | This PR will resolve an issue where a gbq integration test was failing. The same dataset/table name was used twice in `test_gbq.py` which could result in a schema conflict if the previous table schema is cached and the new schema has not successfully propagated through Google's backend.
See https://github.com/panda... | https://api.github.com/repos/pandas-dev/pandas/pulls/15009 | 2016-12-29T14:28:40Z | 2016-12-30T18:45:21Z | 2016-12-30T18:45:21Z | 2016-12-30T18:46:50Z |
TST: fix tests catching unorderable errors for python 3.6 | diff --git a/pandas/tests/indexes/test_base.py b/pandas/tests/indexes/test_base.py
index 3536a52432b8c..0e6773fd83404 100644
--- a/pandas/tests/indexes/test_base.py
+++ b/pandas/tests/indexes/test_base.py
@@ -1807,8 +1807,7 @@ def test_order(self):
idx = self.create_index()
# 9816 deprecated
... | See also https://github.com/MacPython/pandas-wheels/pull/8, seems that the order of int and str is switched in some cases (eg https://travis-ci.org/MacPython/pandas-wheels/jobs/187223139). Therefore making the test here more robust.
Related to https://github.com/pandas-dev/pandas/pull/14684
| https://api.github.com/repos/pandas-dev/pandas/pulls/15007 | 2016-12-29T13:33:22Z | 2016-12-30T18:46:02Z | 2016-12-30T18:46:02Z | 2016-12-30T18:46:02Z |
DOC: Fix df.resample docstring example | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 77c2699f5a432..8ce4c4b00454b 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -4229,11 +4229,11 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
Upsample the series into 30 second bins.
... | - [x] passes ``git diff upstream/master | flake8 --diff``
| https://api.github.com/repos/pandas-dev/pandas/pulls/15004 | 2016-12-28T16:56:10Z | 2016-12-28T23:43:47Z | 2016-12-28T23:43:47Z | 2016-12-28T23:43:59Z |
DOC: consistent import timedeltas docs | diff --git a/doc/source/timedeltas.rst b/doc/source/timedeltas.rst
index 7d0fa61b1bdac..f7aa879fa7216 100644
--- a/doc/source/timedeltas.rst
+++ b/doc/source/timedeltas.rst
@@ -4,18 +4,17 @@
.. ipython:: python
:suppress:
- from datetime import datetime, timedelta
+ import datetime
import numpy as np
+ ... | Added consistent import for timedeltas docs, i.e.: `import pandas as pd`, `import datetime`.
See: https://github.com/pandas-dev/pandas/issues/9886
Didn't touch the `pandas.tseries.offsets` since no consensus has been made how to import those. | https://api.github.com/repos/pandas-dev/pandas/pulls/14997 | 2016-12-27T15:17:38Z | 2016-12-27T16:24:52Z | 2016-12-27T16:24:52Z | 2016-12-27T16:25:23Z |
DOC: Clarified and expanded describe documentation | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 77c2699f5a432..bdb369810e5b3 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5201,60 +5201,222 @@ def abs(self):
"""
return np.abs(self)
- _shared_docs['describe'] = """
- Generate various summary stati... | - [x] passes ``git diff upstream/master | flake8 --diff``
As discussed in #14483. | https://api.github.com/repos/pandas-dev/pandas/pulls/14995 | 2016-12-27T04:49:17Z | 2017-01-02T09:05:47Z | 2017-01-02T09:05:47Z | 2017-01-02T09:05:55Z |
BLD: move + update build script | diff --git a/build_dist.sh b/scripts/build_dist.sh
similarity index 89%
rename from build_dist.sh
rename to scripts/build_dist.sh
index 9bd007e3e1c9f..c9c36c18bed9c 100755
--- a/build_dist.sh
+++ b/scripts/build_dist.sh
@@ -12,7 +12,7 @@ case ${answer:0:1} in
echo "Building distribution"
python setup.... | Only one source dist format to upload since https://www.python.org/dev/peps/pep-0527/ | https://api.github.com/repos/pandas-dev/pandas/pulls/14991 | 2016-12-26T13:47:02Z | 2016-12-26T13:47:45Z | 2016-12-26T13:47:45Z | 2016-12-26T14:34:35Z |
MAINT: Abstract index helpers in pxi.in file | diff --git a/pandas/index.pyx b/pandas/index.pyx
index a245e85d80f96..d575defe17422 100644
--- a/pandas/index.pyx
+++ b/pandas/index.pyx
@@ -363,115 +363,6 @@ cdef class IndexEngine:
return result[0:count], missing[0:count_missing]
-cdef class Int64Engine(IndexEngine):
-
- cdef _get_index_values(self):
... | Title is self-explanatory. xref #14937. | https://api.github.com/repos/pandas-dev/pandas/pulls/14989 | 2016-12-26T10:24:53Z | 2016-12-26T17:17:57Z | 2016-12-26T17:17:57Z | 2016-12-26T18:33:44Z |
CLN: used np.__version__ and removed instantiation | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index f2d837a4c9908..358ac3c30b8e7 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -7,7 +7,7 @@
# numpy versioning
-_np_version = np.version.short_version
+_np_version = np.__version__
_nlv = Loose... | @rkern and others [recommend](http://stackoverflow.com/questions/1520234/how-to-check-which-version-of-numpy-im-using) using `np.__version__` instead of `np.version`. However I realize this is pandas "internals" so there may be some reason for using `np.version` over `np.__version__`. I could not find any such reason. ... | https://api.github.com/repos/pandas-dev/pandas/pulls/14988 | 2016-12-26T03:42:19Z | 2016-12-26T17:16:23Z | 2016-12-26T17:16:23Z | 2016-12-26T17:16:23Z |
DOC: Adding repository pandas_exercises to tutorials.rst | diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst
index c25e734a046b2..5ff4e955a9ed2 100644
--- a/doc/source/tutorials.rst
+++ b/doc/source/tutorials.rst
@@ -123,6 +123,33 @@ There are four sections covering selected topics as follows:
- `Time Series <http://wavedatalab.github.io/datawithpython/times... | https://api.github.com/repos/pandas-dev/pandas/pulls/14980 | 2016-12-24T19:26:05Z | 2017-01-02T10:12:44Z | 2017-01-02T10:12:44Z | 2017-01-02T10:14:11Z | |
BUG: applymap on empty DataFrame returns Series (#8222) | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 4799d2711231b..40bd8bc4154a6 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -237,6 +237,7 @@ Other API Changes
- ``CParserError`` has been renamed to ``ParserError`` in ``pd.read_csv`` and will... | - [x] closes #8222
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry for 0.20.0
Within `applymap`, the data is converted into a numpy array with `asobject` [here](https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L4291) and evaluated ... | https://api.github.com/repos/pandas-dev/pandas/pulls/14977 | 2016-12-24T04:18:10Z | 2016-12-24T20:53:51Z | 2016-12-24T20:53:51Z | 2017-12-20T02:03:40Z |
DOC: Fix typo in docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 3678168890444..77c2699f5a432 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -690,7 +690,7 @@ def f(x):
def rename_axis(self, mapper, axis=0, copy=True, inplace=False):
"""
Alter index and / or columns using in... | scaler->scalar | https://api.github.com/repos/pandas-dev/pandas/pulls/14970 | 2016-12-23T00:35:04Z | 2016-12-23T01:13:26Z | 2016-12-23T01:13:26Z | 2017-04-22T21:40:05Z |
[Depr] raise_on_error kwarg with errors kwarg in astype#14878 | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index e7b2fc5a6505d..4027edd6eb9eb 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -247,7 +247,7 @@ Deprecations
- ``Index.repeat()`` and ``MultiIndex.repeat()`` have deprecated the ``n`` parameter in f... | - [x] closes #14878
- [x] tests passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Please check that the entry in `whatsnew/v0.20.0.txt`. Unsure that the update was in the
`_whatsnew_0200.deprecations` or `_whatsnew_0200.prior_deprecations` so put it in the
former. | https://api.github.com/repos/pandas-dev/pandas/pulls/14967 | 2016-12-22T20:43:29Z | 2017-01-03T20:53:59Z | 2017-01-03T20:53:59Z | 2017-01-04T10:13:23Z |
[DOC] typo correction | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index 6de6abed9a681..e09d240ed91b7 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -494,13 +494,13 @@ For example, let us consider ``Series`` object which index has minute resolution
... | Follow-up to #14856. I believe that the word *timestamp* here should be de-capitalized at is not a name of object (like `Timestamp`), just a common noun. | https://api.github.com/repos/pandas-dev/pandas/pulls/14966 | 2016-12-22T20:21:10Z | 2016-12-23T00:18:02Z | 2016-12-23T00:18:02Z | 2016-12-23T18:02:00Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.