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 |
|---|---|---|---|---|---|---|---|
Drop Python 3.6 support | diff --git a/.travis.yml b/.travis.yml
index b016cf386098e..2e98cf47aea3e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -45,7 +45,7 @@ matrix:
- JOB="3.7, arm64" PYTEST_WORKERS=8 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)"
- env:
- - JOB="3.6, lo... | - [x] closes #34472
- [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/35214 | 2020-07-10T15:04:33Z | 2020-08-11T01:17:48Z | 2020-08-11T01:17:47Z | 2020-08-11T16:10:21Z |
Add xarray copyright notice to comply with reuse under Apache License | diff --git a/LICENSES/XARRAY_LICENSE b/LICENSES/XARRAY_LICENSE
index 37ec93a14fdcd..6bafeb9d3d80e 100644
--- a/LICENSES/XARRAY_LICENSE
+++ b/LICENSES/XARRAY_LICENSE
@@ -1,3 +1,7 @@
+Copyright 2014-2019, xarray Developers
+
+--------------------------------------------------------------------------------
+
Apache Licen... | In https://github.com/xarray-contrib/pint-xarray/pull/11, @keewis and I noticed that pandas's (pandas'?...possessive forms are weird) reuse with modification of xarray code added in https://github.com/pandas-dev/pandas/commit/eee83e23ba0c5b32e27db3faca931ddb4c9619aa did not include xarray's copyright notice as required... | https://api.github.com/repos/pandas-dev/pandas/pulls/35213 | 2020-07-10T14:24:58Z | 2020-07-10T14:55:39Z | 2020-07-10T14:55:39Z | 2020-07-10T14:55:40Z |
Fix strange behavior when precision display option is zero (#20359) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5dff6d729479a..bff3e2fcdb267 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1018,6 +1018,7 @@ MultiIndex
I/O
^^^
+- Bug in print-out when ``display.precision`` is zero. (:issue:`20359`)
- Bug in... | - [x] closes #20359
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Notes:
- [x] I added a unit test for the example given in #20359
- [x] As far as the context of this code is concerned, I replacde '.' with decima... | https://api.github.com/repos/pandas-dev/pandas/pulls/35212 | 2020-07-10T13:15:20Z | 2020-07-10T19:33:14Z | 2020-07-10T19:33:13Z | 2020-07-17T09:29:04Z |
Tst return none inplace series | diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py
index 737e21af9242f..3ed25b8bca566 100644
--- a/pandas/tests/series/indexing/test_indexing.py
+++ b/pandas/tests/series/indexing/test_indexing.py
@@ -736,14 +736,16 @@ def test_append_timedelta_does_not_cast(td):
... | verify we return None for all inplace calls in /series
related: https://github.com/pandas-dev/pandas/pull/35181#event-3531612625
| https://api.github.com/repos/pandas-dev/pandas/pulls/35210 | 2020-07-10T10:13:39Z | 2020-07-10T19:32:34Z | 2020-07-10T19:32:34Z | 2020-07-10T19:32:38Z |
ROADMAP: add consistent missing values for all dtypes to the roadmap | diff --git a/doc/source/development/roadmap.rst b/doc/source/development/roadmap.rst
index d331491d02883..efee21b5889ed 100644
--- a/doc/source/development/roadmap.rst
+++ b/doc/source/development/roadmap.rst
@@ -53,6 +53,32 @@ need to implement certain operations expected by pandas users (for example
the algorithm us... | The more detailed motivation is described in https://hackmd.io/@jorisvandenbossche/Sk0wMeAmB, and many aspects have already been discussed in https://github.com/pandas-dev/pandas/issues/28095 and linked issues.
(and there are probably still other details / practical aspects that can be further discussed in dedicated... | https://api.github.com/repos/pandas-dev/pandas/pulls/35208 | 2020-07-10T09:34:16Z | 2020-08-20T14:52:53Z | 2020-08-20T14:52:53Z | 2020-08-20T15:50:22Z |
ENH: raise limit for completion number of columns and warn beyond | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 571fcc67f3bb5..69ff4006f34f3 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5175,10 +5175,16 @@ def _dir_additions(self):
add the string-like attributes from the info_axis.
If info_axis is a MultiIndex, it's first... | Hi,
Currently the user-completion (ipython "\<tab\>") on a dataframe with more than 100 columns will silently ignore some columns, letting an unaware user confused on whether data disapeared.
This is actually documented, and due to an arbitrary limit set to workaround a performance issue ( See #18587 )
Datafra... | https://api.github.com/repos/pandas-dev/pandas/pulls/35207 | 2020-07-10T07:41:05Z | 2020-11-22T04:57:46Z | null | 2020-11-22T04:57:46Z |
CLN: tighten types to get_rule_month | diff --git a/pandas/_libs/tslibs/parsing.pxd b/pandas/_libs/tslibs/parsing.pxd
index 6e826cd4c6602..9c9262beaafad 100644
--- a/pandas/_libs/tslibs/parsing.pxd
+++ b/pandas/_libs/tslibs/parsing.pxd
@@ -1,2 +1,2 @@
-cpdef str get_rule_month(object source, str default=*)
+cpdef str get_rule_month(str source)
diff --git ... | We're a bit inconsistent about whether we are extracting freq.freqstr vs freq.rule_code; I'd like to get DateOffsets out of libparsing altogether before long. | https://api.github.com/repos/pandas-dev/pandas/pulls/35205 | 2020-07-10T04:11:10Z | 2020-07-10T12:15:22Z | 2020-07-10T12:15:22Z | 2020-07-10T14:12:09Z |
BUG: GroupBy.count() and GroupBy.sum() incorreclty return NaN instead of 0 for missing categories | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 986ee371566cd..eabb02d885762 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1085,6 +1085,8 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.groupby` lost index, when one of the ``agg`` keys ref... | - [x] closes #31422
- [x] closes #35028
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
*Behavioural Changes*
Fixing two related bugs: when grouping on multiple categoricals, `.sum()` and `.count()` would return ... | https://api.github.com/repos/pandas-dev/pandas/pulls/35201 | 2020-07-09T23:23:32Z | 2020-07-15T01:33:41Z | null | 2020-07-15T01:33:42Z |
REF: re-use get_firstbday, get_lastbday in fields.pyx | diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd
index 41cc477413607..4eb5188b8a04b 100644
--- a/pandas/_libs/tslibs/ccalendar.pxd
+++ b/pandas/_libs/tslibs/ccalendar.pxd
@@ -10,6 +10,8 @@ cpdef int32_t get_days_in_month(int year, Py_ssize_t month) nogil
cpdef int32_t get_week_of_year... | https://api.github.com/repos/pandas-dev/pandas/pulls/35199 | 2020-07-09T22:27:50Z | 2020-07-09T23:40:15Z | 2020-07-09T23:40:15Z | 2020-07-09T23:46:48Z | |
REF: remove libresolution | diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py
index 6fe6fa0a13c34..0ae4cc97d07e3 100644
--- a/pandas/_libs/tslibs/__init__.py
+++ b/pandas/_libs/tslibs/__init__.py
@@ -27,11 +27,11 @@
from . import dtypes
from .conversion import localize_pydatetime
+from .dtypes import Resolution
f... | It only has one function left, and that fits fine in fields.pyx | https://api.github.com/repos/pandas-dev/pandas/pulls/35198 | 2020-07-09T22:25:16Z | 2020-07-10T12:16:28Z | 2020-07-10T12:16:28Z | 2020-07-10T14:15:20Z |
PERF: lookups on Timestamp attributes | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index a2dacd9d36b14..f1051d0210f96 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -25,6 +25,13 @@ from cpython.datetime cimport (
PyDelta_Check,
PyTZInfo_Check,
PyDateTime_IMP... | This is pretty ugly, but it avoids python-space attribute lookups e.g. `__Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_microsecond)`
cc @scoder is there a way to make this unnecessary? I'm imagining a cdef property that aliased these attributes appropriately. | https://api.github.com/repos/pandas-dev/pandas/pulls/35196 | 2020-07-09T20:23:12Z | 2020-07-09T21:35:29Z | null | 2020-07-09T21:37:32Z |
PERF: MonthOffset.apply_index | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index fb07e3fe7547e..fa5ef0e7adf59 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -598,7 +598,7 @@ cdef class BaseOffset:
def _get_offset_day(self, other: datetime) -> int:
# subclass mu... | - [x] closes #35048
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
import pandas as pd
import numpy as np
N = 10000
rng = pd.date_range(start="1/1/2000", periods=N, freq="T")
offset = pd.offsets.MonthBegi... | https://api.github.com/repos/pandas-dev/pandas/pulls/35195 | 2020-07-09T20:10:39Z | 2020-07-10T12:13:21Z | 2020-07-10T12:13:20Z | 2020-07-10T14:12:55Z |
Create sayan2 | diff --git a/sayan2 b/sayan2
new file mode 100644
index 0000000000000..63e1645b576f9
--- /dev/null
+++ b/sayan2
@@ -0,0 +1,15 @@
+def row_replace(array,x,y):
+ for i in range(len(array)):
+ if array[i] == x:
+ array[i] = y
+ return array
+
+def rows(DataFrame,row, x ='0', y='0'):
+ df = [... | code to extract row from database and replace values within row
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35192 | 2020-07-09T14:05:02Z | 2020-07-09T22:03:11Z | null | 2020-07-09T22:03:18Z |
Be specific about more indexes or values | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 5f93e08d51baa..d721897da540f 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1169,6 +1169,7 @@ Other
- Bug in :class:`Tick` comparisons raising ``TypeError`` when comparing against timedelta-like obj... | The generic "are not equal" really frustrated me just now when someone was conveying their issue.
This specific two errors lets me know which way around, although I believe having more indexes than data shows a place in the api for a default value (possibly per-index) which would allow this to later be reduced to th... | https://api.github.com/repos/pandas-dev/pandas/pulls/35190 | 2020-07-09T10:04:56Z | 2020-07-14T17:05:59Z | 2020-07-14T17:05:59Z | 2020-07-14T17:21:47Z |
Add date overflow message to tz_localize (#32967) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index ce0668917f800..49b23e3c78a33 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -897,6 +897,7 @@ Datetimelike
resolution which converted to object dtype instead of coercing to ``datetime64[ns]``
dty... | - [x] closes #32967
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Added an error message to tz_localize when the timestamp overflows. I got a little confused by the history in #32979 as some changes were lost on th... | https://api.github.com/repos/pandas-dev/pandas/pulls/35187 | 2020-07-09T02:25:32Z | 2020-07-16T01:51:19Z | 2020-07-16T01:51:19Z | 2020-07-16T01:51:29Z |
Performance regression in stat_ops.FrameMultiIndexOps.time_op | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index d039b715b3c08..93ee65b6ddd57 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1434,16 +1434,18 @@ def std(self, ddof: int = 1):
Series or DataFrame
Standard deviation of values wi... | - [ ] closes #35050
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
import pandas as pd
import numpy as np
levels = [np.arange(10), np.arange(100), np.arange(100)]
codes = [
np.arange(10).repeat(10000)... | https://api.github.com/repos/pandas-dev/pandas/pulls/35186 | 2020-07-08T19:15:05Z | 2020-07-09T09:26:01Z | null | 2020-07-25T15:02:04Z |
CI: MacPython failing TestPandasContainer.test_to_json_large_numbers | diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py
index 10f49b9b81528..97b53a6e66575 100644
--- a/pandas/tests/io/json/test_pandas.py
+++ b/pandas/tests/io/json/test_pandas.py
@@ -1250,23 +1250,32 @@ def test_to_json_large_numbers(self, bigNum):
json = series.to_json()
... | - [x] closes #35147
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/35184 | 2020-07-08T17:59:53Z | 2020-07-15T13:43:45Z | 2020-07-15T13:43:45Z | 2020-07-16T18:55:14Z |
Json Visual Clutter cleanup | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index e841f00489887..59298522d86d1 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -143,8 +143,6 @@ typedef struct __PyObjectEncoder {
enum PANDAS_FORMAT { SPLI... | Removed PRINTMARK symbols and ran `clang-format -sort-includes=0 -i -style="{IndentWidth: 4}" pandas/_libs/src/ujson/python/objToJSON.c` | https://api.github.com/repos/pandas-dev/pandas/pulls/35183 | 2020-07-08T17:50:58Z | 2020-07-09T21:57:05Z | 2020-07-09T21:57:05Z | 2020-07-22T18:56:47Z |
ENH: Add compute.use_numba configuration for automatically using numba | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 85b29a58a1f15..9dd6dceac6da3 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -333,6 +333,7 @@ Other enhancements
- :meth:`read_csv` now accepts string values like "0", "0.0", "1", "1.0" as convertible... | - [x] closes #33966
- [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/35182 | 2020-07-08T17:25:12Z | 2020-07-15T12:28:04Z | 2020-07-15T12:28:04Z | 2020-07-15T16:32:26Z |
TST Verifiy that dropna returns none when called inplace (#35179) | diff --git a/pandas/tests/frame/test_missing.py b/pandas/tests/frame/test_missing.py
index 7cb7115276f71..9bf5d24085697 100644
--- a/pandas/tests/frame/test_missing.py
+++ b/pandas/tests/frame/test_missing.py
@@ -24,14 +24,16 @@ def test_dropEmptyRows(self, float_frame):
smaller_frame = frame.dropna(how="all")... | Closes https://github.com/pandas-dev/pandas/issues/35179
| https://api.github.com/repos/pandas-dev/pandas/pulls/35181 | 2020-07-08T17:09:01Z | 2020-07-09T22:05:35Z | 2020-07-09T22:05:34Z | 2020-07-10T10:20:35Z |
Tst verify dropna returns None inplace (#35179) | diff --git a/pandas/tests/frame/test_missing.py b/pandas/tests/frame/test_missing.py
index 7cb7115276f71..9bf5d24085697 100644
--- a/pandas/tests/frame/test_missing.py
+++ b/pandas/tests/frame/test_missing.py
@@ -24,14 +24,16 @@ def test_dropEmptyRows(self, float_frame):
smaller_frame = frame.dropna(how="all")... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35180 | 2020-07-08T15:37:01Z | 2020-07-08T16:44:21Z | null | 2020-07-08T16:44:21Z |
DOC: fix code snippets for generic indexing | diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst
index 50b946999092a..49487ac327e73 100644
--- a/doc/source/user_guide/cookbook.rst
+++ b/doc/source/user_guide/cookbook.rst
@@ -219,8 +219,8 @@ There are 2 explicit slicing methods, with a third general case
df.loc['bar':'kar'] # ... | The code example for generic indexing is the same as positional/label indexing above.
I think generic indexing here intended to be referred to something like `df[0:3]` and `df['bar':'kar']` | https://api.github.com/repos/pandas-dev/pandas/pulls/35175 | 2020-07-08T09:24:03Z | 2020-07-09T22:06:36Z | 2020-07-09T22:06:36Z | 2020-07-09T22:06:43Z |
PERF: periodarr_to_dt64arr | diff --git a/asv_bench/benchmarks/tslibs/period.py b/asv_bench/benchmarks/tslibs/period.py
index 9156c4aa90ea0..1a2c89b48c665 100644
--- a/asv_bench/benchmarks/tslibs/period.py
+++ b/asv_bench/benchmarks/tslibs/period.py
@@ -2,10 +2,15 @@
Period benchmarks that rely only on tslibs. See benchmarks.period for
Period b... | - [x] closes #33919
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Re-use `ensure_datetime64ns` for the subset of cases where that is applicable. I'm at a loss for why we get such a slowdown for the other cases.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/35171 | 2020-07-08T02:17:05Z | 2020-07-09T22:08:17Z | 2020-07-09T22:08:17Z | 2020-07-09T23:21:34Z |
DOC: Add pint pandas ecosystem docs | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 72e24e34bc5c1..b02d4abd3ddf8 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -421,6 +421,14 @@ found in NumPy or pandas, which work well with pandas' data containers.
Cyberpandas provides an extension type for storing arrays... | - [ ] closes #xxxx (N/A)
- [ ] tests added / passed (N/A)
- [ ] passes `black pandas` (N/A)
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` (N/A)
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35170 | 2020-07-07T22:41:48Z | 2020-07-10T20:33:18Z | 2020-07-10T20:33:18Z | 2020-07-10T20:33:25Z |
REF: collect get_dst_info-using functions in tslibs.vectorized | diff --git a/asv_bench/benchmarks/tslibs/resolution.py b/asv_bench/benchmarks/tslibs/resolution.py
index 274aa1ad6d4a9..280be7932d4db 100644
--- a/asv_bench/benchmarks/tslibs/resolution.py
+++ b/asv_bench/benchmarks/tslibs/resolution.py
@@ -23,7 +23,10 @@
import numpy as np
import pytz
-from pandas._libs.tslibs.res... | I'm open to better names for the new module.
With these all in the same place, we can separate out helper functions and de-duplicate a whole bunch of verbose code. | https://api.github.com/repos/pandas-dev/pandas/pulls/35168 | 2020-07-07T20:22:31Z | 2020-07-08T21:50:17Z | 2020-07-08T21:50:17Z | 2020-07-08T22:06:58Z |
CLN: remove unused freq kwarg in libparsing | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index 92654f3b587e5..c4f369d0d3b3f 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -197,7 +197,6 @@ cdef inline bint does_string_look_like_time(str parse_string):
def parse_datetime_string(
str d... | https://api.github.com/repos/pandas-dev/pandas/pulls/35167 | 2020-07-07T20:02:15Z | 2020-07-10T22:20:52Z | 2020-07-10T22:20:52Z | 2020-07-10T23:37:58Z | |
Fixed Series.apply performance regression | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 9c223d66b727b..d4be660939773 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -291,16 +291,14 @@ def apply_series_generator(self, partial_result=None) -> Tuple[ResType, "Index"]
res_index = res_index.take(successes)
... | Set the option once, rather than in the loop.
Closes https://github.com/pandas-dev/pandas/issues/35047
```python
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.randn(1000, 3), columns=list("ABC"))
%timeit df.apply(lambda x: x["A"] + x["B"], axis=1)
```
```
# 1.0.4
22.5 ms ± 4.73 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/35166 | 2020-07-07T19:38:58Z | 2020-07-08T12:40:46Z | 2020-07-08T12:40:46Z | 2020-07-08T12:40:56Z |
Fixed apply_index | diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst
index 1b63253cde2c5..e6271a7806706 100644
--- a/doc/source/reference/offset_frequency.rst
+++ b/doc/source/reference/offset_frequency.rst
@@ -33,6 +33,7 @@ Methods
:toctree: api/
DateOffset.apply
+ DateOffse... | Closes https://github.com/pandas-dev/pandas/issues/34580 | https://api.github.com/repos/pandas-dev/pandas/pulls/35165 | 2020-07-07T19:00:14Z | 2020-07-15T12:25:34Z | 2020-07-15T12:25:34Z | 2020-07-15T12:25:37Z |
Infer compression if file extension is uppercase | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 798a3d838ef7e..3976696ecdd06 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1053,6 +1053,7 @@ I/O
- Bug in :meth:`~HDFStore.create_table` now raises an error when `column` argument was not specified... | Inferring compression fails for files with uppercase extensions (e.g. `x.zip` works but `y.ZIP` does not)
- [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/35164 | 2020-07-07T18:06:02Z | 2020-07-17T10:58:30Z | 2020-07-17T10:58:30Z | 2020-07-17T10:58:39Z |
CI: update to isort 5 (#35134) | diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py
index 3ef6ab6209ea7..708f9be5846b4 100644
--- a/asv_bench/benchmarks/arithmetic.py
+++ b/asv_bench/benchmarks/arithmetic.py
@@ -4,16 +4,22 @@
import numpy as np
import pandas as pd
-from pandas import DataFrame, Series, Timestamp, ... | - [x] closes #35134
- [x] 0 tests added / 0 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/35163 | 2020-07-07T17:46:29Z | 2020-07-22T14:52:22Z | null | 2020-07-22T14:52:48Z |
REF: remove always-UTC arg from tz_convert, tz_convert_single | diff --git a/asv_bench/benchmarks/tslibs/tz_convert.py b/asv_bench/benchmarks/tslibs/tz_convert.py
index 2a1f559bdf6d4..c2c90024ca5bd 100644
--- a/asv_bench/benchmarks/tslibs/tz_convert.py
+++ b/asv_bench/benchmarks/tslibs/tz_convert.py
@@ -1,16 +1,23 @@
import numpy as np
from pytz import UTC
-from pandas._libs.ts... | https://api.github.com/repos/pandas-dev/pandas/pulls/35154 | 2020-07-07T01:53:44Z | 2020-07-09T22:00:14Z | 2020-07-09T22:00:14Z | 2020-07-09T22:04:13Z | |
BUG: transform with nunique should have dtype int64 | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 9bd4ddbb624d9..0e929ff062cff 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1080,6 +1080,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.groupby` lost index, when one of the ``agg`` keys ref... | - [x] closes #35109
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
cc @WillAyd
Removes casting on transformations which go through `_transform_fast`. The result is a reduction that is broadcast to the original i... | https://api.github.com/repos/pandas-dev/pandas/pulls/35152 | 2020-07-06T22:40:18Z | 2020-07-10T22:46:42Z | 2020-07-10T22:46:42Z | 2020-07-10T22:47:43Z |
CI: move py36 slow to azure (#34776) | diff --git a/.travis.yml b/.travis.yml
index fdea9876d5d89..b016cf386098e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -58,12 +58,6 @@ matrix:
services:
- mysql
- postgresql
-
- - env:
- - JOB="3.6, slow" ENV_FILE="ci/deps/travis-36-slow.yaml" PATTERN="slow" SQL="1"
- services:
... | - [x] closes #34776
- [x] 0 tests added / 0 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/35151 | 2020-07-06T22:18:18Z | 2020-07-07T13:10:07Z | 2020-07-07T13:10:07Z | 2020-07-07T22:27:19Z |
BUG: pd.crosstab fails when passed multiple columns, margins True and normalize True | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 42f95d88d74ac..f27c83fafef55 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -258,6 +258,7 @@ Reshaping
- Bug in :meth:`DataFrame.pivot_table` with ``aggfunc='count'`` or ``aggfunc='sum'`` returning... | - [x] closes #35144
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35150 | 2020-07-06T20:09:58Z | 2020-08-19T17:59:04Z | 2020-08-19T17:59:03Z | 2020-08-20T00:09:02Z |
ASV: tslibs.fields | diff --git a/asv_bench/benchmarks/tslibs/fields.py b/asv_bench/benchmarks/tslibs/fields.py
new file mode 100644
index 0000000000000..0607a799ec707
--- /dev/null
+++ b/asv_bench/benchmarks/tslibs/fields.py
@@ -0,0 +1,74 @@
+import numpy as np
+
+from pandas._libs.tslibs.fields import (
+ get_date_field,
+ get_star... | https://api.github.com/repos/pandas-dev/pandas/pulls/35149 | 2020-07-06T19:41:32Z | 2020-07-08T21:51:13Z | 2020-07-08T21:51:13Z | 2020-07-08T21:57:08Z | |
Move mark registration | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 5fe4cc45b0006..e0adb37e7d2f5 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -44,6 +44,19 @@
# Configuration / Settings
# ----------------------------------------------------------------
# pytest
+def pytest_configure(config):
+ # Register mar... | Should avoid warnings like
```
D:\a\1\s\test_venv\lib\site-packages\pandas\tests\plotting\test_series.py:655: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.s... | https://api.github.com/repos/pandas-dev/pandas/pulls/35146 | 2020-07-06T18:06:03Z | 2020-07-06T23:28:06Z | 2020-07-06T23:28:06Z | 2020-10-05T11:22:40Z |
improved exception message | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index b12a556a8291d..01f785076cd15 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3270,7 +3270,13 @@ def _can_reindex(self, indexer):
"""
# trying to reindex on an axis with duplicates
if no... | for ValueError: cannot reindex from a duplicate axis
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35142 | 2020-07-06T16:32:20Z | 2020-11-04T08:29:21Z | null | 2020-11-04T08:29:21Z |
DEPR: Deprecate n-dim indexing for Series | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 9bd4ddbb624d9..926aaaaabf3a9 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -788,6 +788,7 @@ Deprecations
- :meth:`Categorical.to_dense` is deprecated and will be removed in a future version, use ``n... | Closes https://github.com/pandas-dev/pandas/issues/27837
| https://api.github.com/repos/pandas-dev/pandas/pulls/35141 | 2020-07-06T15:14:46Z | 2020-07-06T23:25:28Z | 2020-07-06T23:25:28Z | 2020-07-06T23:25:32Z |
Fix regression on datetime in MultiIndex | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 708b687434327..04d1dbceb3342 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1165,6 +1165,10 @@ def _convert_to_indexer(self, key, axis: int, is_setter: bool = False):
if len(key) == labels.nlevels:
... | - [x] closes #35015
- [x] tests added / passed
- `tests.indexing.multiindex.test_datetime:test_multiindex_datetime_columns`
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
- Not needed - this was a regression
| https://api.github.com/repos/pandas-dev/pandas/pulls/35140 | 2020-07-06T14:27:12Z | 2020-07-08T12:43:19Z | 2020-07-08T12:43:18Z | 2020-07-08T15:40:22Z |
CI: pin sphinx <= 3.1.1 for autodoc failure | diff --git a/environment.yml b/environment.yml
index 2429f4ab3d699..87f3f4b13b5c5 100644
--- a/environment.yml
+++ b/environment.yml
@@ -27,7 +27,7 @@ dependencies:
# documentation
- gitpython # obtain contributors from git for whatsnew
- gitdb2=2.0.6 # GH-32060
- - sphinx
+ - sphinx<=3.1.1
# document... | xref https://github.com/pandas-dev/pandas/issues/35138 | https://api.github.com/repos/pandas-dev/pandas/pulls/35139 | 2020-07-06T14:03:02Z | 2020-07-06T14:30:36Z | 2020-07-06T14:30:36Z | 2020-07-06T14:35:16Z |
CI: pin isort version | diff --git a/environment.yml b/environment.yml
index 2429f4ab3d699..24c0832b6fb4c 100644
--- a/environment.yml
+++ b/environment.yml
@@ -20,7 +20,7 @@ dependencies:
- flake8<3.8.0 # temporary pin, GH#34150
- flake8-comprehensions>=3.1.0 # used by flake8, linting of unnecessary comprehensions
- flake8-rst>=0.... | - [X] xref #35134
- [X] 0 tests added / 0 passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry. __this is a CI PR. I don't think we touch whatsnew for those.__
### Scope
<s>Remove the `--recursive` keyword from `code_checks.sh`, so that the... | https://api.github.com/repos/pandas-dev/pandas/pulls/35136 | 2020-07-06T13:04:58Z | 2020-07-06T14:19:44Z | 2020-07-06T14:19:44Z | 2020-07-09T15:12:19Z |
CLN: unused imports in tslibs | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index df43ebcfd9df2..e4d05e0d70e2f 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -51,7 +51,6 @@ from pandas._libs.tslibs.timezones cimport utc_pytz as UTC
from pandas._libs.tslibs.tzconversion cimport... | https://api.github.com/repos/pandas-dev/pandas/pulls/35133 | 2020-07-06T02:15:29Z | 2020-07-06T23:00:01Z | 2020-07-06T23:00:01Z | 2020-07-06T23:15:31Z | |
BUG: transform with nunique should have dtype int64 | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 9bd4ddbb624d9..0e929ff062cff 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1080,6 +1080,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.groupby` lost index, when one of the ``agg`` keys ref... | - [x] closes #35109
- [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/35130 | 2020-07-05T21:11:37Z | 2020-07-10T22:27:22Z | null | 2020-07-11T16:00:46Z |
support binary file handles in to_csv | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index cc42f952b1733..ab233f653061a 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -1064,6 +1064,23 @@ DD/MM/YYYY instead. For convenience, a ``dayfirst`` keyword is provided:
pd.read_csv('tmp.csv', parse_dates=... | - [x] fixes #19827, fixes #35058, fixes #23854 *, fixes #13068 *, and fixes #22555
- [x] 3 tests added
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The first commit addresses https://github.com/pandas-dev/pandas/issues/35058#issuecomment-65... | https://api.github.com/repos/pandas-dev/pandas/pulls/35129 | 2020-07-05T20:07:33Z | 2020-08-07T11:53:10Z | 2020-08-07T11:53:09Z | 2020-08-07T22:45:53Z |
CLN: remove the circular import in NDFrame.dtypes | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index d892e2487b31c..9da9a9530480d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5366,9 +5366,8 @@ def dtypes(self):
string object
dtype: object
"""
- from pandas import Series # noqa: F81... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/35128 | 2020-07-05T13:04:40Z | 2020-07-07T00:39:26Z | 2020-07-07T00:39:26Z | 2020-07-07T07:24:17Z |
ENH: make is_list_like handle non iterable numpy-like arrays correctly | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 3a11e7fbbdf33..a78ae49b3b18f 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -1045,10 +1045,10 @@ def is_list_like(obj: object, allow_sets: bool = True) -> bool:
cdef inline bint c_is_list_like(object obj, bint allow_sets) except -1:
r... | - [x] closes #35131
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35127 | 2020-07-05T05:27:10Z | 2021-07-11T23:27:17Z | null | 2021-11-26T00:54:47Z |
TST: Add test for category equalness on applies (#21239) | diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py
index 114b3c0d0a3fc..3a32278e2a4b1 100644
--- a/pandas/tests/frame/test_apply.py
+++ b/pandas/tests/frame/test_apply.py
@@ -793,6 +793,18 @@ def test_apply_with_byte_string(self):
result = df.apply(lambda x: x.astype("object"))
... | - [x] closes #21239
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The test checks if equalness comparisons through `df.apply()` works correctly for the categorical `dtype`, especially with `np.NaN` and `None` value... | https://api.github.com/repos/pandas-dev/pandas/pulls/35125 | 2020-07-04T20:51:02Z | 2020-07-06T21:28:08Z | 2020-07-06T21:28:08Z | 2020-07-06T21:28:17Z |
CLN: remove kwargs in Index.format | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 2f12a2e4c27ea..3dbee7d0929cb 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -902,7 +902,12 @@ def _mpl_repr(self):
# how to represent ourselves to matplotlib
return self.values
- def format... | Removes kwargs in ``Index.format`` and subclasses. Also changes ``Index._format_with_header`` to have parameter ``na_rep`` not have a default value (in order to not have default value set in two locations).
Related to #35118. | https://api.github.com/repos/pandas-dev/pandas/pulls/35122 | 2020-07-04T13:06:52Z | 2020-07-14T22:32:48Z | 2020-07-14T22:32:48Z | 2020-08-08T08:30:27Z |
TST add test case for drop_duplicates | diff --git a/pandas/tests/frame/methods/test_drop_duplicates.py b/pandas/tests/frame/methods/test_drop_duplicates.py
index 7c6391140e2bb..cebec215a0d9d 100644
--- a/pandas/tests/frame/methods/test_drop_duplicates.py
+++ b/pandas/tests/frame/methods/test_drop_duplicates.py
@@ -333,64 +333,73 @@ def test_drop_duplicates_... | Add a test case to drop_duplicates for inplace=True. | https://api.github.com/repos/pandas-dev/pandas/pulls/35121 | 2020-07-04T12:13:06Z | 2020-07-08T12:52:26Z | 2020-07-08T12:52:25Z | 2020-07-08T15:40:09Z |
TYP, DOC, CLN:SeriesGroupBy._wrap_applied_output | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 6f956a3dcc9b6..ebb9d82766c1b 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -19,6 +19,7 @@
Iterable,
List,
Mapping,
+ Optional,
Sequence,
Tuple,
Type,
@@ -30,7 +31,7 @... | - [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/35120 | 2020-07-04T11:14:26Z | 2020-07-07T19:19:27Z | 2020-07-07T19:19:27Z | 2020-07-07T20:18:13Z |
REF: make ccalendar self-contained | diff --git a/pandas/_libs/tslibs/ccalendar.pyx b/pandas/_libs/tslibs/ccalendar.pyx
index 9f8cf6c28adab..de8fd3911e946 100644
--- a/pandas/_libs/tslibs/ccalendar.pyx
+++ b/pandas/_libs/tslibs/ccalendar.pyx
@@ -7,11 +7,6 @@ import cython
from numpy cimport int64_t, int32_t
-from locale import LC_TIME
-
-from pandas.... | https://api.github.com/repos/pandas-dev/pandas/pulls/35119 | 2020-07-04T03:03:43Z | 2020-07-07T00:44:21Z | 2020-07-07T00:44:21Z | 2020-07-07T01:04:23Z | |
CLN: Index._format_with_header (remove kwargs etc.) | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index b12a556a8291d..2f12a2e4c27ea 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2,7 +2,16 @@
from datetime import datetime
import operator
from textwrap import dedent
-from typing import TYPE_CHECKING, Any, Calla... | Refactor of ``Index._format_with_header`` and subclass methods:
* remove ``kwargs`` for cleaner signature.
* Add return type
* Move functionality specific to ``CategoricalIndex`` to that class.
| https://api.github.com/repos/pandas-dev/pandas/pulls/35118 | 2020-07-03T22:10:37Z | 2020-07-07T13:20:00Z | 2020-07-07T13:20:00Z | 2020-08-08T08:30:29Z |
CLN: convert lambda to function | diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py
index 36e774305b577..1cf79dc105901 100644
--- a/pandas/io/formats/printing.py
+++ b/pandas/io/formats/printing.py
@@ -276,9 +276,13 @@ class TableSchemaFormatter(BaseFormatter):
formatters[mimetype].enabled = False
-default_ppri... | Minor cleanup: conversion to proper function. | https://api.github.com/repos/pandas-dev/pandas/pulls/35117 | 2020-07-03T21:34:26Z | 2020-07-04T15:30:16Z | 2020-07-04T15:30:16Z | 2020-07-04T15:30:21Z |
TST: base test for ExtensionArray.astype to its own type + copy keyword | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 5882b74aa8b05..af63d49a24d7a 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -361,6 +361,7 @@ ExtensionArray
^^^^^^^^^^^^^^
- Fixed Bug where :class:`DataFrame` column set to scalar extension type ... | - [] closes #28488
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
n.b. I'm not certain. I get no output on the command line when I run this command.
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35116 | 2020-07-03T19:58:22Z | 2020-09-22T13:41:25Z | 2020-09-22T13:41:25Z | 2020-09-22T13:41:46Z |
CI: suppress external warning | diff --git a/pandas/tests/util/test_show_versions.py b/pandas/tests/util/test_show_versions.py
index e36ea662fac8b..6b52a6d3613d3 100644
--- a/pandas/tests/util/test_show_versions.py
+++ b/pandas/tests/util/test_show_versions.py
@@ -5,6 +5,7 @@
import pandas as pd
+@pytest.mark.filterwarnings("ignore:Setuptools is... | https://api.github.com/repos/pandas-dev/pandas/pulls/35115 | 2020-07-03T19:40:30Z | 2020-07-04T17:06:36Z | null | 2020-07-04T17:06:43Z | |
BUG: get_loc with time object matching NaT micros | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 9bd4ddbb624d9..95a9a331e7f6b 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -976,6 +976,7 @@ Indexing
- Bug in :meth:`DataFrame.loc` with dictionary of values changes columns with dtype of ``int`` to... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35114 | 2020-07-03T18:37:22Z | 2020-07-07T13:14:29Z | 2020-07-07T13:14:29Z | 2020-07-07T14:30:16Z |
PERF: ints_to_pydatetime | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index f494e74bde55f..cf9dfe4a39b8f 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -15,7 +15,7 @@ PyDateTime_IMPORT
cimport numpy as cnp
-from numpy cimport float64_t, int64_t, ndarray, uint8_t
+from numpy cimport float64_t, int64_t, ... | This refactors ints_to_pydatetime to use a much more concise pattern (similar to #35077 but without the helper function refactored out) that I intend to move all of the ~7 functions using get_dst_info to use. In the process, we are slower on very small arrays and faster on bigger arrays, which I think is a good trade:... | https://api.github.com/repos/pandas-dev/pandas/pulls/35113 | 2020-07-03T17:18:38Z | 2020-07-06T22:59:08Z | 2020-07-06T22:59:08Z | 2020-07-07T00:15:07Z |
BUG: Mixed DataFrame with Extension Array incorrect aggregation | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index 8f3a599bf107c..9c58c01f833a3 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -547,7 +547,9 @@ def _binary_op_method_timedeltalike(op, name):
try:
other = Timedel... | - [ ] closes #34520 by reverting #32950
| https://api.github.com/repos/pandas-dev/pandas/pulls/35112 | 2020-07-03T14:51:57Z | 2020-07-10T09:14:03Z | null | 2020-07-10T09:14:03Z |
BUG: reset_index is passing a bad dtype to NumPy | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b6993e9ed851a..87041341ac3a6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -75,6 +75,7 @@
from pandas.core.dtypes.cast import (
cast_scalar_to_array,
coerce_to_dtypes,
+ construct_1d_arraylike_from_scalar,
find_common_ty... | - [ ] closes #35095
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35111 | 2020-07-03T13:16:44Z | 2020-07-06T20:55:03Z | 2020-07-06T20:55:03Z | 2020-07-07T08:26:07Z |
DOC: Fix code formatting and typos in Series.tz_localize | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a66cade3b81b0..d892e2487b31c 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9580,8 +9580,9 @@ def tz_localize(
dtype: int64
If the DST transition causes nonexistent times, you can shift these
- dates forw... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The missing line feed prevented the example from being formatted as code sample. | https://api.github.com/repos/pandas-dev/pandas/pulls/35110 | 2020-07-03T11:41:52Z | 2020-07-03T14:14:19Z | 2020-07-03T14:14:19Z | 2020-07-03T16:21:10Z |
REF: implement tz_localize_to_utc_single | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index f494e74bde55f..e02ad6017efff 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -46,7 +46,6 @@ from pandas._libs.tslibs.timezones cimport (
get_dst_info,
is_utc,
is_tzlocal,
- utc_pytz as UTC,
)
from pandas._libs.tsl... | In addition to implementing `tz_localize_to_utc_single`, this replaces all (but one, xref #35102) usages of tz_convert_single that have UTC as the target timezone. In conjunction with 35102, this will allow us to remove the second kwarg altogether, similar to #35104. | https://api.github.com/repos/pandas-dev/pandas/pulls/35108 | 2020-07-03T03:59:31Z | 2020-07-07T00:14:26Z | 2020-07-07T00:14:26Z | 2020-07-07T01:08:21Z |
TYP: get_utcoffset | diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd
index 0784b090b3edb..f51ee41cb99a6 100644
--- a/pandas/_libs/tslibs/timezones.pxd
+++ b/pandas/_libs/tslibs/timezones.pxd
@@ -1,4 +1,4 @@
-from cpython.datetime cimport tzinfo
+from cpython.datetime cimport datetime, timedelta, tzinfo
... | https://api.github.com/repos/pandas-dev/pandas/pulls/35107 | 2020-07-03T00:15:24Z | 2020-07-06T22:51:44Z | 2020-07-06T22:51:44Z | 2020-07-06T23:20:04Z | |
PERF: tz_localize(None) from dst, asvs | diff --git a/asv_bench/benchmarks/tslibs/tz_convert.py b/asv_bench/benchmarks/tslibs/tz_convert.py
new file mode 100644
index 0000000000000..2a1f559bdf6d4
--- /dev/null
+++ b/asv_bench/benchmarks/tslibs/tz_convert.py
@@ -0,0 +1,30 @@
+import numpy as np
+from pytz import UTC
+
+from pandas._libs.tslibs.tzconversion imp... | This makes tz_convert_dst follow the same pattern we use elsewhere, and brings a perf improvement along with it.
```
In [2]: dti = pd.date_range("2016-01-01", periods=10000, freq="S", tz="US/Pacific") ... | https://api.github.com/repos/pandas-dev/pandas/pulls/35106 | 2020-07-03T00:12:40Z | 2020-07-07T00:13:27Z | 2020-07-07T00:13:27Z | 2020-07-07T01:06:58Z |
Extension base test | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index dbce71b77a425..398d4ae56311e 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -376,7 +376,10 @@ def astype(self, dtype, copy: bool = True) -> ArrayLike:
if isinstance(dtype, BooleanDtype):
... | - [x] closes #28488
- [x] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The style is not consistent with guidelines etc, and not at all ready to be merged.
| https://api.github.com/repos/pandas-dev/pandas/pulls/35105 | 2020-07-02T23:40:19Z | 2020-07-02T23:42:47Z | null | 2020-07-02T23:43:04Z |
CLN: tz_convert is always from UTC | diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx
index d1d6bc40ef288..dc01210f2789f 100644
--- a/pandas/_libs/tslibs/tzconversion.pyx
+++ b/pandas/_libs/tslibs/tzconversion.pyx
@@ -388,8 +388,9 @@ def tz_convert(int64_t[:] vals, tzinfo tz1, tzinfo tz2):
bint to_utc = is_... | Follow-up can remove the unnecessary arg from tz_convert, possibly rename.
| https://api.github.com/repos/pandas-dev/pandas/pulls/35104 | 2020-07-02T22:42:52Z | 2020-07-07T00:12:00Z | 2020-07-07T00:11:59Z | 2020-07-07T01:05:26Z |
TYP: maybe_get_tz | diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd
index f51ee41cb99a6..136710003d32a 100644
--- a/pandas/_libs/tslibs/timezones.pxd
+++ b/pandas/_libs/tslibs/timezones.pxd
@@ -9,7 +9,7 @@ cdef bint treat_tz_as_pytz(tzinfo tz)
cpdef bint tz_compare(tzinfo start, tzinfo end)
cpdef obj... | https://api.github.com/repos/pandas-dev/pandas/pulls/35103 | 2020-07-02T22:27:09Z | 2020-07-08T21:52:29Z | 2020-07-08T21:52:29Z | 2020-07-08T22:07:15Z | |
REF: standardize tz_convert_single usage | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index e104b722ea119..426e6e0104f89 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -1379,7 +1379,7 @@ default 'raise'
cdef:
npy_datetimestruct dts
- int64_t... | I'm increasingly convinced that we can get all tz_convert/tz_convert_single usages to have tz1=UTC, and everything else should go through tz_localize_to_utc. | https://api.github.com/repos/pandas-dev/pandas/pulls/35102 | 2020-07-02T21:19:33Z | 2020-07-07T00:07:34Z | 2020-07-07T00:07:34Z | 2020-07-07T01:06:17Z |
PERF: Fix quantile perf regression | diff --git a/pandas/util/_validators.py b/pandas/util/_validators.py
index bb6c6de441558..fa7201a5188a5 100644
--- a/pandas/util/_validators.py
+++ b/pandas/util/_validators.py
@@ -371,14 +371,13 @@ def validate_percentile(q: Union[float, Iterable[float]]) -> np.ndarray:
ValueError if percentiles are not in given ... | Closes https://github.com/pandas-dev/pandas/issues/35049
```pyhon
591 µs ± 29.5 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
440 µs ± 22.8 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/35101 | 2020-07-02T20:44:16Z | 2020-07-03T15:07:32Z | 2020-07-03T15:07:32Z | 2020-07-03T15:07:43Z |
Document Tips for Debugging C Extensions | diff --git a/doc/source/development/debugging_extensions.rst b/doc/source/development/debugging_extensions.rst
new file mode 100644
index 0000000000000..358c4036df961
--- /dev/null
+++ b/doc/source/development/debugging_extensions.rst
@@ -0,0 +1,93 @@
+.. _debugging_c_extensions:
+
+{{ header }}
+
+====================... | Quick notes in case they are helpful to others. Can move to the Wiki as well if we don't want in the standard docs | https://api.github.com/repos/pandas-dev/pandas/pulls/35100 | 2020-07-02T19:20:06Z | 2020-12-10T00:19:42Z | 2020-12-10T00:19:42Z | 2023-04-12T20:17:09Z |
TYP: type unit as str | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index f494e74bde55f..8d8a62a58f25f 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -363,8 +363,8 @@ def format_array_from_datetime(
def array_with_unit_to_datetime(
ndarray values,
- object unit,
- str errors='coerce'
+ st... | https://api.github.com/repos/pandas-dev/pandas/pulls/35099 | 2020-07-02T18:10:29Z | 2020-07-06T18:01:30Z | 2020-07-06T18:01:30Z | 2020-07-06T18:33:03Z | |
BUG: fix union_indexes not supporting sort=False for Index subclasses | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 9bd4ddbb624d9..0b2493cfaf7ff 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -1112,6 +1112,7 @@ Reshaping
- Fixed bug in :func:`melt` where melting MultiIndex columns with ``col_level`` > 0 would rais... | - [X] closes #35092
- [X] 1 tests added / 1 passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
# Scope of PR
The reason for `DataFrame.append` unnecessarily sorting columns turned out to be that when merging indexes we were not passing th... | https://api.github.com/repos/pandas-dev/pandas/pulls/35098 | 2020-07-02T18:05:31Z | 2020-07-09T13:02:33Z | 2020-07-09T13:02:32Z | 2020-07-09T15:11:45Z |
TYP: type for get_timezone | diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd
index 0179be3cdd8e6..0784b090b3edb 100644
--- a/pandas/_libs/tslibs/timezones.pxd
+++ b/pandas/_libs/tslibs/timezones.pxd
@@ -8,7 +8,7 @@ cdef bint is_tzlocal(tzinfo tz)
cdef bint treat_tz_as_pytz(tzinfo tz)
cpdef bint tz_compare(tzi... | Nearly done with these | https://api.github.com/repos/pandas-dev/pandas/pulls/35096 | 2020-07-02T16:55:11Z | 2020-07-02T17:34:52Z | 2020-07-02T17:34:52Z | 2020-07-02T17:41:02Z |
TYP: types for tz_compare | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index ea97bab2198eb..37d83a73c6597 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -73,7 +73,7 @@ from pandas._libs.tslibs.nattype cimport (
)
from pandas._libs.tslibs.conversion cimport convert_to_tsobject
from pandas._libs.tslibs.timedeltas c... | https://api.github.com/repos/pandas-dev/pandas/pulls/35093 | 2020-07-02T02:54:43Z | 2020-07-02T14:42:06Z | 2020-07-02T14:42:06Z | 2020-07-02T16:25:05Z | |
BENCH: implement asvs for ints_to_pydatetime | diff --git a/asv_bench/benchmarks/tslibs/tslib.py b/asv_bench/benchmarks/tslibs/tslib.py
new file mode 100644
index 0000000000000..eacf5a5731dc2
--- /dev/null
+++ b/asv_bench/benchmarks/tslibs/tslib.py
@@ -0,0 +1,55 @@
+"""
+ipython analogue:
+
+tr = TimeIntsToPydatetime()
+mi = pd.MultiIndex.from_product(
+ tr.para... | https://api.github.com/repos/pandas-dev/pandas/pulls/35091 | 2020-07-01T21:37:44Z | 2020-07-02T14:42:55Z | 2020-07-02T14:42:55Z | 2020-07-02T16:28:10Z | |
TST: update gbq service account key | diff --git a/ci/travis_encrypt_gbq.sh b/ci/travis_encrypt_gbq.sh
index e404ca73a405e..7d5692d9520af 100755
--- a/ci/travis_encrypt_gbq.sh
+++ b/ci/travis_encrypt_gbq.sh
@@ -19,7 +19,7 @@ if [[ ! -f $GBQ_JSON_FILE ]]; then
fi
echo "Encrypting $GBQ_JSON_FILE..."
-read -d "\n" TRAVIS_KEY TRAVIS_IV <<<$(travis encrypt-... | Re-enable gbq integration tests.
- [ ] closes #34779
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35090 | 2020-07-01T20:06:54Z | 2020-07-09T23:41:00Z | 2020-07-09T23:41:00Z | 2020-07-09T23:41:00Z |
CLN: tighter typing in libconversion | diff --git a/pandas/_libs/tslibs/conversion.pxd b/pandas/_libs/tslibs/conversion.pxd
index 623d9f14d646b..2cf75944a8196 100644
--- a/pandas/_libs/tslibs/conversion.pxd
+++ b/pandas/_libs/tslibs/conversion.pxd
@@ -13,11 +13,11 @@ cdef class _TSObject:
bint fold
-cdef convert_to_tsobject(object ts, object tz... | https://api.github.com/repos/pandas-dev/pandas/pulls/35088 | 2020-07-01T18:42:24Z | 2020-07-02T14:44:10Z | 2020-07-02T14:44:10Z | 2020-07-02T16:27:03Z | |
PERF: tz_convert/tz_convert_single | diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx
index a096b2807c640..d1d6bc40ef288 100644
--- a/pandas/_libs/tslibs/tzconversion.pyx
+++ b/pandas/_libs/tslibs/tzconversion.pyx
@@ -345,36 +345,28 @@ cpdef int64_t tz_convert_single(int64_t val, tzinfo tz1, tzinfo tz2):
conver... | Making these follow the same pattern we use elsewhere, we get a perf bump:
```
In [2]: dti = pd.date_range("2016-01-01", periods=10000, tz="US/Pacific")
In [3]: %timeit dti.tz_localize(None) ... | https://api.github.com/repos/pandas-dev/pandas/pulls/35087 | 2020-07-01T17:04:08Z | 2020-07-02T16:59:10Z | 2020-07-02T16:59:10Z | 2020-07-02T17:17:01Z |
CLN: Removed unreached else block GH33478 | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index dab8475d9580c..6f956a3dcc9b6 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1218,7 +1218,7 @@ def _wrap_applied_output(self, keys, values, not_indexed_same=False):
return self.obj._const... | Unreached else block in method _wrap_applied_output was removed.
Local tests passed before and after change
- [ ] xref #33478 (Not fully closed, this addresses 1 part)
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew ent... | https://api.github.com/repos/pandas-dev/pandas/pulls/35086 | 2020-07-01T17:01:14Z | 2020-07-02T14:51:28Z | 2020-07-02T14:51:28Z | 2020-07-05T06:46:06Z |
Fix numpy warning | diff --git a/pandas/conftest.py b/pandas/conftest.py
index d74c43069574f..5fe4cc45b0006 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -256,9 +256,7 @@ def nselect_method(request):
# ----------------------------------------------------------------
# Missing values & co.
# -------------------------------... | https://api.github.com/repos/pandas-dev/pandas/pulls/35085 | 2020-07-01T16:31:59Z | 2020-07-06T15:19:37Z | 2020-07-06T15:19:37Z | 2020-07-06T15:19:43Z | |
TYP: annotations, typing for infer_tzinfo | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index ac24dd546d9d3..9ee76a8c291a8 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -246,11 +246,12 @@ def datetime_to_datetime64(ndarray[object] values):
"""
cdef:
Py_ssize... | Keeping these orthogonal | https://api.github.com/repos/pandas-dev/pandas/pulls/35084 | 2020-07-01T15:54:22Z | 2020-07-02T00:16:06Z | 2020-07-02T00:16:06Z | 2020-07-02T00:43:11Z |
No fastcall attribute in POWER platform | diff --git a/pandas/_libs/src/ujson/lib/ultrajson.h b/pandas/_libs/src/ujson/lib/ultrajson.h
index 69284e1c3f2ab..757cabdbbc730 100644
--- a/pandas/_libs/src/ujson/lib/ultrajson.h
+++ b/pandas/_libs/src/ujson/lib/ultrajson.h
@@ -94,7 +94,7 @@ typedef __int64 JSLONG;
#define EXPORTFUNCTION __declspec(dllexport)
#def... | Compiling the development branch of pandas fail in AIX.
pandas/_libs/src/ujson/lib/ultrajsonenc.c:397:1: error: ‘fastcall’ attribute directive ignored [-Werror=attributes]
Buffer_AppendShortHexUnchecked(char *outputOffset, unsigned short value) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/src/ujson/lib/ultraj... | https://api.github.com/repos/pandas-dev/pandas/pulls/35083 | 2020-07-01T14:45:30Z | 2020-07-09T23:54:09Z | 2020-07-09T23:54:09Z | 2020-07-15T18:05:17Z |
CLN: stronger typing in libtimezones | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index ba6cee3d7ad8e..1328bc8a5175f 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -991,7 +991,7 @@ class Timestamp(_Timestamp):
"Timestamp from components."
... | https://api.github.com/repos/pandas-dev/pandas/pulls/35082 | 2020-07-01T14:41:49Z | 2020-07-01T17:07:40Z | 2020-07-01T17:07:40Z | 2020-07-01T17:14:03Z | |
TYP: stronger typing in libtimezones | diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd
index 14c0523787422..2428993c45f56 100644
--- a/pandas/_libs/tslibs/timezones.pxd
+++ b/pandas/_libs/tslibs/timezones.pxd
@@ -14,4 +14,4 @@ cpdef object maybe_get_tz(object tz)
cdef get_utcoffset(tzinfo tz, obj)
cdef bint is_fixed_offs... | https://api.github.com/repos/pandas-dev/pandas/pulls/35079 | 2020-07-01T03:26:34Z | 2020-07-01T15:28:46Z | 2020-07-01T15:28:46Z | 2020-07-01T15:42:29Z | |
BUG: DataFrameGroupBy.__getitem__ fails to propagate dropna | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 260b92b5989c1..df010c3776f7c 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -128,7 +128,7 @@ Indexing
Missing
^^^^^^^
--
+- Bug in :meth:`SeriesGroupBy.transform` now correctly handles missing val... | - [x] closes #35014
- [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/35078 | 2020-07-01T02:50:08Z | 2020-08-07T21:33:06Z | 2020-08-07T21:33:06Z | 2020-08-07T21:53:39Z |
REF: de-duplicate DST tzconversion code | diff --git a/pandas/_libs/tslibs/resolution.pyx b/pandas/_libs/tslibs/resolution.pyx
index d5f10374d2860..d6c78cfe27ea0 100644
--- a/pandas/_libs/tslibs/resolution.pyx
+++ b/pandas/_libs/tslibs/resolution.pyx
@@ -1,17 +1,15 @@
from cpython.datetime cimport tzinfo
import numpy as np
-from numpy cimport ndarray, int6... | This implements TZConvertInfo to de-duplicate a bunch of tzconversion code. This uses the new pattern on get_resolution. The other usages I intend to update in individual follow-ups in which I'll check that we have good asv coverage the affected functions.
Sits on top of #35075 (actually, that was broken off of th... | https://api.github.com/repos/pandas-dev/pandas/pulls/35077 | 2020-07-01T02:18:50Z | 2020-07-08T17:36:47Z | null | 2021-11-20T23:22:38Z |
BENCH: implement asvs for get_resolution | diff --git a/asv_bench/benchmarks/tslibs/resolution.py b/asv_bench/benchmarks/tslibs/resolution.py
new file mode 100644
index 0000000000000..274aa1ad6d4a9
--- /dev/null
+++ b/asv_bench/benchmarks/tslibs/resolution.py
@@ -0,0 +1,50 @@
+"""
+ipython analogue:
+
+tr = TimeResolution()
+mi = pd.MultiIndex.from_product(tr.p... | https://api.github.com/repos/pandas-dev/pandas/pulls/35075 | 2020-06-30T22:34:26Z | 2020-07-02T14:57:19Z | 2020-07-02T14:57:19Z | 2020-07-02T16:22:48Z | |
TST: Test for groupby transform on categorical column | diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py
index 60c82bf1fb71c..4de61f719dfbb 100644
--- a/pandas/tests/groupby/test_categorical.py
+++ b/pandas/tests/groupby/test_categorical.py
@@ -1509,3 +1509,53 @@ def test_aggregate_categorical_with_isnan():
index=inde... | Added test for groupby transform on categorical column
- [x] closes #29037
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/35074 | 2020-06-30T22:31:58Z | 2020-07-01T18:25:40Z | 2020-07-01T18:25:40Z | 2020-07-01T18:25:49Z |
REF: de-duplicate month_offset in tslibs.fields | diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd
index b55780fe7d5b9..41cc477413607 100644
--- a/pandas/_libs/tslibs/ccalendar.pxd
+++ b/pandas/_libs/tslibs/ccalendar.pxd
@@ -14,3 +14,5 @@ cpdef int32_t get_day_of_year(int year, int month, int day) nogil
cdef int64_t DAY_NANOS
cdef i... | https://api.github.com/repos/pandas-dev/pandas/pulls/35073 | 2020-06-30T22:27:50Z | 2020-07-01T00:13:59Z | 2020-07-01T00:13:59Z | 2020-07-01T00:51:43Z | |
Add test apply dtype | diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py
index 8f0d3d9fbc734..114b3c0d0a3fc 100644
--- a/pandas/tests/frame/test_apply.py
+++ b/pandas/tests/frame/test_apply.py
@@ -1501,3 +1501,12 @@ def test_consistency_of_aggregates_of_columns_with_missing_values(self, df, meth
tm.ass... | - [x] closes #31466
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35072 | 2020-06-30T22:19:14Z | 2020-07-01T16:53:35Z | 2020-07-01T16:53:34Z | 2020-07-01T21:11:57Z |
CLN: remove unnecessary get_timezone calls | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 884715f482cad..c1162ed482048 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -27,7 +27,7 @@ from pandas._libs.tslibs.util cimport (
from pandas._libs.tslibs.timezones cimport (
... | https://api.github.com/repos/pandas-dev/pandas/pulls/35071 | 2020-06-30T22:10:02Z | 2020-07-01T00:12:55Z | 2020-07-01T00:12:55Z | 2020-07-01T00:50:32Z | |
PERF: _maybe_convert_value_to_local | diff --git a/asv_bench/benchmarks/tslibs/timestamp.py b/asv_bench/benchmarks/tslibs/timestamp.py
index 3ef9b814dd79e..b7e11089535d7 100644
--- a/asv_bench/benchmarks/tslibs/timestamp.py
+++ b/asv_bench/benchmarks/tslibs/timestamp.py
@@ -63,9 +63,6 @@ def time_tz(self, tz, freq):
def time_dayofweek(self, tz, freq):... | Also fixes an incorrect asv.
```
In [2]: ts = pd.Timestamp.now("US/Pacific")
In [3]: %timeit ts.day_name() ... | https://api.github.com/repos/pandas-dev/pandas/pulls/35070 | 2020-06-30T21:34:39Z | 2020-06-30T23:26:29Z | 2020-06-30T23:26:29Z | 2020-07-01T00:52:20Z |
PERF: Timestamp.normalize | diff --git a/asv_bench/benchmarks/tslibs/timestamp.py b/asv_bench/benchmarks/tslibs/timestamp.py
index b7e11089535d7..40f8e561f5238 100644
--- a/asv_bench/benchmarks/tslibs/timestamp.py
+++ b/asv_bench/benchmarks/tslibs/timestamp.py
@@ -1,17 +1,29 @@
-import datetime
+from datetime import datetime, timedelta, timezone
... | The perf is actually a wash here, verging on slightly negative. The really worthwhile thing is the improved asvs.
The big perf gain is being split into a separate PR that optimizes _maybe_convert_value_to_local to the tune of 40%. | https://api.github.com/repos/pandas-dev/pandas/pulls/35068 | 2020-06-30T20:24:44Z | 2020-07-01T01:40:42Z | 2020-07-01T01:40:42Z | 2020-07-01T01:47:16Z |
CLN: type tz kwarg in create_timestamp_from_ts | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 44693d60486a9..f494e74bde55f 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -8,6 +8,7 @@ from cpython.datetime cimport (
datetime,
time,
timedelta,
+ tzinfo,
)
# import datetime C API
PyDateTime_IMPORT
@@ -77,9 ... | Perf is indistinguishable | https://api.github.com/repos/pandas-dev/pandas/pulls/35067 | 2020-06-30T20:17:05Z | 2020-06-30T21:58:44Z | 2020-06-30T21:58:44Z | 2020-06-30T22:09:05Z |
DOC: Remove mypy from pre commit | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b7fd797fb7230..fcd0ecdc9fcd2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -30,15 +30,3 @@ repos:
- id: isort
language: python_venv
exclude: ^pandas/__init__\.py$|^pandas/core/api\.py$
-- repo: https:... | - [x] closes #34902
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/35066 | 2020-06-30T19:08:56Z | 2020-09-01T11:42:05Z | 2020-09-01T11:42:04Z | 2020-09-01T11:42:05Z |
CLN: type get_resolution tz as tzinfo | diff --git a/pandas/_libs/tslibs/resolution.pyx b/pandas/_libs/tslibs/resolution.pyx
index 4dbecc76ad986..d5f10374d2860 100644
--- a/pandas/_libs/tslibs/resolution.pyx
+++ b/pandas/_libs/tslibs/resolution.pyx
@@ -1,3 +1,4 @@
+from cpython.datetime cimport tzinfo
import numpy as np
from numpy cimport ndarray, int64_... | https://api.github.com/repos/pandas-dev/pandas/pulls/35065 | 2020-06-30T19:07:11Z | 2020-06-30T21:05:52Z | 2020-06-30T21:05:52Z | 2020-06-30T21:23:41Z | |
Assorted ujson Cleanups | diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c
index 1de9642761961..e841f00489887 100644
--- a/pandas/_libs/src/ujson/python/objToJSON.c
+++ b/pandas/_libs/src/ujson/python/objToJSON.c
@@ -324,19 +324,6 @@ static npy_float64 total_seconds(PyObject *td) {
return d... | I think it would be great if we could move the block iteration out of JSON as it has generic functionality that we could use down in C. This isn't it, but a small set of cleanups I noticed while looking at that | https://api.github.com/repos/pandas-dev/pandas/pulls/35064 | 2020-06-30T18:05:02Z | 2020-07-01T15:22:49Z | 2020-07-01T15:22:49Z | 2020-07-01T15:23:26Z |
ENH: support index=True/False keyword for io.sql.get_schema | diff --git a/doc/source/reference/io.rst b/doc/source/reference/io.rst
index 0037d4a4410c3..9502d319075ce 100644
--- a/doc/source/reference/io.rst
+++ b/doc/source/reference/io.rst
@@ -126,6 +126,7 @@ SQL
read_sql_table
read_sql_query
read_sql
+ io.sql.get_schema
Google BigQuery
~~~~~~~~~~~~~~~
diff -... | - [x] closes #9084
- [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/35063 | 2020-06-30T18:04:42Z | 2021-02-11T01:33:00Z | null | 2022-11-18T02:21:00Z |
CLN: collect Timestamp methods | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index 15fcfc742ecf3..9af31c64658d6 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -265,37 +265,6 @@ cdef class _Timestamp(ABCTimestamp):
self._assert_tzawareness_compat(ots)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/35062 | 2020-06-30T14:17:22Z | 2020-06-30T22:49:53Z | 2020-06-30T22:49:53Z | 2020-07-01T00:57:22Z | |
Fixed #34859: Added support for '0' and '1' in BooleanArray._from_sequence_of_strings method | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 040253ebe7279..74dca91636577 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -328,6 +328,7 @@ Other enhancements
- :meth:`DataFrame.to_html` and :meth:`DataFrame.to_string`'s ``col_space`` parameter n... | - [ ] closes #34859
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/35061 | 2020-06-30T12:34:39Z | 2020-07-02T15:01:40Z | 2020-07-02T15:01:39Z | 2020-07-03T05:38:12Z |
Fix issue #31708 Series.astype(str, skipna=True) vanished in the 1.0 release | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a66cade3b81b0..42d9ddc0605bf 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5383,7 +5383,11 @@ def _to_dict_of_blocks(self, copy: bool_t = True):
}
def astype(
- self: FrameOrSeries, dtype, copy: bool_t = Tru... | - [ ] closes #31708
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/35060 | 2020-06-30T08:58:48Z | 2020-07-17T10:35:12Z | null | 2023-05-11T01:19:46Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.