url
stringlengths 55
59
| repository_url
stringclasses 1
value | labels_url
stringlengths 69
73
| comments_url
stringlengths 64
68
| events_url
stringlengths 62
66
| html_url
stringlengths 44
49
| id
int64 338k
1.06B
| node_id
stringlengths 18
32
| number
int64 1
44.6k
| title
stringlengths 1
590
| user
dict | labels
listlengths 0
9
| state
stringclasses 2
values | locked
bool 2
classes | assignee
dict | assignees
listlengths 0
5
| milestone
dict | comments
int64 0
477
| created_at
timestamp[us, tz=UTC] | updated_at
timestamp[us, tz=UTC] | closed_at
timestamp[us, tz=UTC] | author_association
stringclasses 3
values | active_lock_reason
stringclasses 4
values | body
stringlengths 0
251k
⌀ | reactions
dict | timeline_url
stringlengths 64
68
| performed_via_github_app
float64 | draft
float64 0
1
⌀ | pull_request
dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/pandas-dev/pandas/issues/33517
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33517/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33517/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33517/events
|
https://github.com/pandas-dev/pandas/issues/33517
| 598,801,766
|
MDU6SXNzdWU1OTg4MDE3NjY=
| 33,517
|
BUG: Fails and or weird aggregation results when using agg with custom functions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12527?v=4",
"events_url": "https://api.github.com/users/mfcabrera/events{/privacy}",
"followers_url": "https://api.github.com/users/mfcabrera/followers",
"following_url": "https://api.github.com/users/mfcabrera/following{/other_user}",
"gists_url": "https://api.github.com/users/mfcabrera/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mfcabrera",
"id": 12527,
"login": "mfcabrera",
"node_id": "MDQ6VXNlcjEyNTI3",
"organizations_url": "https://api.github.com/users/mfcabrera/orgs",
"received_events_url": "https://api.github.com/users/mfcabrera/received_events",
"repos_url": "https://api.github.com/users/mfcabrera/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mfcabrera/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mfcabrera/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mfcabrera"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-04-13T10:10:38Z
| 2021-01-17T13:41:03Z
| 2021-01-17T13:41:03Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
df = pd.DataFrame(
[
(1, "a", "f"),
(2, "b", "d"),
(3, None, "f"),
(4, "a", None),
(5, "a", "f"),
(6, None, "d"),
(7, None, "d"),
(8, "b", None),
(9, "a", "f"),
(10, None, None),
(11, None, "f"),
(12, None, "d"),
],
columns=["item", "att1", "att2"],
)
df2 = pd.DataFrame(
[
(1, "a", "f"),
(2, "b", "d"),
(3, None, "f"),]
, columns=["item", "att1", "att2"]
)
def count_not_null(series: pd.Series) -> int:
return series.notnull().astype(int).sum()
def count_all(series: pd.Series) -> int:
""" count all the values (regardless if they are null or nan) """
return len(series)
df.agg("count")
# item 12
# att1 6
# att2 9
# dtype: int64
df.agg(["count", ])
# item att1 att2
# count 12 6 9
df.agg(count_all)
# item 12
# att1 12
# att2 12
# dtype: int64
df.agg([count_all,])
# item att1 att2
# count_all 12 12 12
df.query("item==1").agg(["count",]) # works fine
# item att1 att2
# count 1 1 1
# All seems to work well however same aggregation gives weird results on the other dataframe
df2.aggregate([count_all,])
# item att1 att2
# item att1 count_all
# count_all 3.0 3.0 NaN
# 0 NaN NaN 1.0
# 1 NaN NaN 1.0
# 2 NaN NaN 1.0
# I get the same issues on the other df when I filter some column for exampe
df.query("item==1").agg([count_all,]) # **weird result** ->
# item att1 att2
# item count_all count_all
# count_all 1.0 NaN NaN
# 0 NaN 1.0 1.0
# And it fails if I use more than one custom aggregations
df.query("item==1").agg(["sum", "count"]) # works with standard aggregations
# item att1 att2
# sum 1 a f
# count 1 1 1
# fails with custom aggregations
df.query("item==1").agg([count_all, count_not_null])
/usr/local/anaconda3/envs/hooqu/lib/python3.8/site-packages/pandas/core/base.py in _aggregate_multiple_funcs(self, arg, _axis)
553 result = Series(results, index=keys, name=self.name)
554 if is_nested_object(result):
--> 555 raise ValueError("cannot combine transform and aggregation operations")
556 return result
557
ValueError: cannot combine transform and aggregation operations
# df[df["item"]==1].agg([count_all, count_not_null]) also fails
# It works well if I don't use any filtering via query
df.agg([count_all, count_not_null])
# item att1 att2
# count_all 12 12 12
# count_not_null 12 6 9
# It also fails without filtering on the second dataframe
df2.agg([count_all, count_not_null])
---> 1 df2.agg([count_all, count_not_null])
/usr/local/anaconda3/envs/hooqu/lib/python3.8/site-packages/pandas/core/frame.py in aggregate(self, func, axis, *args, **kwargs)
6704 result = None
6705 try:
-> 6706 result, how = self._aggregate(func, axis=axis, *args, **kwargs)
6707 except TypeError:
6708 pass
/usr/local/anaconda3/envs/hooqu/lib/python3.8/site-packages/pandas/core/frame.py in _aggregate(self, arg, axis, *args, **kwargs)
6718 result = result.T if result is not None else result
6719 return result, how
-> 6720 return super()._aggregate(arg, *args, **kwargs)
6721
6722 agg = aggregate
/usr/local/anaconda3/envs/hooqu/lib/python3.8/site-packages/pandas/core/base.py in _aggregate(self, arg, *args, **kwargs)
475 elif is_list_like(arg):
476 # we require a list, but not an 'str'
--> 477 return self._aggregate_multiple_funcs(arg, _axis=_axis), None
478 else:
479 result = None
/usr/local/anaconda3/envs/hooqu/lib/python3.8/site-packages/pandas/core/base.py in _aggregate_multiple_funcs(self, arg, _axis)
521 colg = self._gotitem(col, ndim=1, subset=obj.iloc[:, index])
522 try:
--> 523 new_res = colg.aggregate(arg)
524 except (TypeError, DataError):
525 pass
/usr/local/anaconda3/envs/hooqu/lib/python3.8/site-packages/pandas/core/series.py in aggregate(self, func, axis, *args, **kwargs)
3686 # Validate the axis parameter
3687 self._get_axis_number(axis)
-> 3688 result, how = self._aggregate(func, *args, **kwargs)
3689 if result is None:
3690
/usr/local/anaconda3/envs/hooqu/lib/python3.8/site-packages/pandas/core/base.py in _aggregate(self, arg, *args, **kwargs)
475 elif is_list_like(arg):
476 # we require a list, but not an 'str'
--> 477 return self._aggregate_multiple_funcs(arg, _axis=_axis), None
478 else:
479 result = None
/usr/local/anaconda3/envs/hooqu/lib/python3.8/site-packages/pandas/core/base.py in _aggregate_multiple_funcs(self, arg, _axis)
553 result = Series(results, index=keys, name=self.name)
554 if is_nested_object(result):
--> 555 raise ValueError("cannot combine transform and aggregation operations")
556 return result
557
```
#### Problem description
I would have expected the output of a custom aggregation upon filtering to be very similar to the one standard ones. Furthermore there seems to be a small bug when passing a single custom aggregation into a collection to the `agg` DataFrame method.
I have narrow down the problem to the call to `_aggregate_multiple_funcs` that works differently based on the size of the dataframe and the number of functions.
In particular when executing the aggregation on the columns (series) different column behave differently. Example:
if I defined:
```python
def count_all(series):
print(type(series))
return len(series)
```
And then called `aggregate` on different columns the function is passed different set of paramters:
```python
df2['att1'].agg(count_all)
# <class 'str'>
# <class 'str'>
# <class 'NoneType'>
# <class 'pandas.core.series.Series'>
# and
df2['att2'].agg(count_all)
# <class 'str'>
# <class 'str'>
# <class 'str'>
```
I don't understand this behaviour. I would expect that both functions receive only the full series data.
#### Workaround
After reading the code I found this line (not sure if it has to do with the problem):
https://github.com/pandas-dev/pandas/blob/v1.0.3/pandas/core/series.py#L3706
So I reimplemented one of the custom aggregation like this:
```
def count_all(series):
if not isinstance(series, pd.Series):
raise TypeError
return len(series)
```
And then all aggregations worked. Was I using a bad implementation of a custom aggregation function? From the docs it was not obvious that the aggregation function is required to check the input type.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Darwin
OS-release : 19.0.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : de_DE.UTF-8
LOCALE : de_DE.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : None
pytest : 5.4.1
hypothesis : 5.8.0
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 4,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 4,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33517/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33517/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33518
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33518/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33518/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33518/events
|
https://github.com/pandas-dev/pandas/issues/33518
| 598,818,419
|
MDU6SXNzdWU1OTg4MTg0MTk=
| 33,518
|
BUG: Illegal instruction: 4 on mid2010 Mac
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/921372?v=4",
"events_url": "https://api.github.com/users/lc3t35/events{/privacy}",
"followers_url": "https://api.github.com/users/lc3t35/followers",
"following_url": "https://api.github.com/users/lc3t35/following{/other_user}",
"gists_url": "https://api.github.com/users/lc3t35/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lc3t35",
"id": 921372,
"login": "lc3t35",
"node_id": "MDQ6VXNlcjkyMTM3Mg==",
"organizations_url": "https://api.github.com/users/lc3t35/orgs",
"received_events_url": "https://api.github.com/users/lc3t35/received_events",
"repos_url": "https://api.github.com/users/lc3t35/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lc3t35/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lc3t35/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lc3t35"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] |
closed
| false
| null |
[] | null | 7
| 2020-04-13T10:46:14Z
| 2020-08-21T17:05:59Z
| 2020-04-13T12:58:48Z
|
NONE
| null |
#### Code Sample, a copy-pastable example
```python
Python 3.7.7 (default, Mar 26 2020, 10:32:53)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
Illegal instruction: 4
(Pandas) iMac:~ laurent$ sysctl -a | grep machdep.cpu.features
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 CX16 TPR PDCM SSE4.1 SSE4.2 POPCNT
(Pandas) iMac:~ laurent$ conda list numpy
# packages in environment at /Users/laurent/opt/anaconda3/envs/Pandas:
#
# Name Version Build Channel
numpy 1.18.1 py37h7241aed_0
numpy-base 1.18.1 py37h6575580_1
```
#### Problem description
With a mid 2010 Mac, OSX 10.13.6 (High Sierra)
```
Identifiant du modèle : iMac11,3
Nom du processeur : Intel Core i5
Vitesse du processeur : 2,8 GHz
Nombre de processeurs : 1
Nombre total de cœurs : 4
Cache de niveau 2 (par cœur) : 256 Ko
Cache de niveau 3 : 8 Mo
Mémoire : 16 Go
Version de la ROM de démarrage : 99.0.0.0.0
Version SMC (système) : 1.59f2
```
`import pandas as pd`, crashes with `Illegal instruction: 4`
Old Mac doesn't support VFX, as it is not displayed in sysctl -a | grep machdep.cpu.features output.
This problem is also mentioned here :
https://github.com/conda/conda/issues/9678
https://github.com/das-developers/condaCDF/issues/1
and as it was detected when trying to run inside Anaconda/jupyter, the work in progress to solve is described here :
https://discourse.jupyter.org/t/osx-10-13-6-kernelrestarter-restarting-kernel/3965/8
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33518/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33518/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33519
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33519/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33519/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33519/events
|
https://github.com/pandas-dev/pandas/pull/33519
| 598,831,290
|
MDExOlB1bGxSZXF1ZXN0NDAyNTk4NjEz
| 33,519
|
TYP: use overload to refine return type of reset_index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-04-13T11:15:45Z
| 2021-03-03T16:55:46Z
| 2020-05-01T14:57:30Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33519/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33519/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33519.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33519",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33519.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33519"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33520
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33520/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33520/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33520/events
|
https://github.com/pandas-dev/pandas/pull/33520
| 598,831,544
|
MDExOlB1bGxSZXF1ZXN0NDAyNTk4ODM0
| 33,520
|
TYP: remove assert mask is not None for mypy
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-13T11:16:19Z
| 2020-04-14T19:31:22Z
| 2020-04-14T17:28:46Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33520/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33520/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33520.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33520",
"merged_at": "2020-04-14T17:28:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33520.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33520"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33521
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33521/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33521/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33521/events
|
https://github.com/pandas-dev/pandas/pull/33521
| 598,832,866
|
MDExOlB1bGxSZXF1ZXN0NDAyNTk5ODUy
| 33,521
|
TYP: disallow decorator preserves function signature
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-04-13T11:19:21Z
| 2020-05-02T18:00:27Z
| 2020-05-02T16:30:23Z
|
MEMBER
| null |
xref #33455
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33521/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33521/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33521.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33521",
"merged_at": "2020-05-02T16:30:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33521.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33521"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33522
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33522/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33522/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33522/events
|
https://github.com/pandas-dev/pandas/pull/33522
| 598,840,503
|
MDExOlB1bGxSZXF1ZXN0NDAyNjA1ODY0
| 33,522
|
BUG: Fixed concat with reindex and extension types
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 10
| 2020-04-13T11:35:47Z
| 2020-07-02T08:12:21Z
| 2020-07-01T01:43:27Z
|
CONTRIBUTOR
| null |
Closes https://github.com/pandas-dev/pandas/issues/27692
Closes https://github.com/pandas-dev/pandas/issues/33027
I have a larger cleanup planned, but this fixes the linked issues for now.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33522/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33522/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33522.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33522",
"merged_at": "2020-07-01T01:43:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33522.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33522"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33523
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33523/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33523/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33523/events
|
https://github.com/pandas-dev/pandas/pull/33523
| 598,877,229
|
MDExOlB1bGxSZXF1ZXN0NDAyNjM0NTI0
| 33,523
|
CLN: redundant code in IntegerArray._reduce
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-13T13:03:07Z
| 2020-04-13T15:08:39Z
| 2020-04-13T14:55:20Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33523/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33523/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33523.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33523",
"merged_at": "2020-04-13T14:55:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33523.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33523"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33524
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33524/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33524/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33524/events
|
https://github.com/pandas-dev/pandas/issues/33524
| 598,897,368
|
MDU6SXNzdWU1OTg4OTczNjg=
| 33,524
|
ENH: Canonic SI frequency
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/38665102?v=4",
"events_url": "https://api.github.com/users/JoElfner/events{/privacy}",
"followers_url": "https://api.github.com/users/JoElfner/followers",
"following_url": "https://api.github.com/users/JoElfner/following{/other_user}",
"gists_url": "https://api.github.com/users/JoElfner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JoElfner",
"id": 38665102,
"login": "JoElfner",
"node_id": "MDQ6VXNlcjM4NjY1MTAy",
"organizations_url": "https://api.github.com/users/JoElfner/orgs",
"received_events_url": "https://api.github.com/users/JoElfner/received_events",
"repos_url": "https://api.github.com/users/JoElfner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JoElfner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JoElfner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JoElfner"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-04-13T13:43:44Z
| 2020-09-18T16:52:33Z
| 2020-09-18T16:52:32Z
|
CONTRIBUTOR
| null |
Since pandas is widely used for data science, including working with time series, a canonic representation of the frequency, as defined by SI standards, physics etc. would be a nice improvement.
To summarize differences between the general definition of frequency and the pandas definition of frequency:
- General definition: Frequency is in the unit of `1/time_period`, for SI unis more specifically `1/second=1Hz`.
- pandas definition: Frequency is the time period, so it is exactly the opposite of the physical/general definition.
Since many calculations require the actual frequency, for example summing up velocities to get the length, this would facilitate many calculations.
#### Proposed solution:
Additionally `pd.DatetimeIndex` etc. should get a new attribute, f.i. named `freq_canonic`, that represents the actual frequency of the index in Hertz.
To avoid breaking the API, I'd implement the frequency as a data attribute, which can be accessed by the user, but has no effect on time series calculations.
I could try making a pull request for this feature, if you are interested.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33524/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33524/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33525
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33525/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33525/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33525/events
|
https://github.com/pandas-dev/pandas/pull/33525
| 598,916,702
|
MDExOlB1bGxSZXF1ZXN0NDAyNjY2MTI2
| 33,525
|
TST: Add Categorical Series test
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-13T14:20:13Z
| 2020-04-21T18:32:12Z
| 2020-04-21T14:49:08Z
|
MEMBER
| null |
Follow up to https://github.com/pandas-dev/pandas/pull/33513
cc @jreback
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33525/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33525/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33525.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33525",
"merged_at": "2020-04-21T14:49:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33525.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33525"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33526
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33526/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33526/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33526/events
|
https://github.com/pandas-dev/pandas/pull/33526
| 598,920,881
|
MDExOlB1bGxSZXF1ZXN0NDAyNjY5NDQ2
| 33,526
|
REF: simplify concat_datetime
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-13T14:27:46Z
| 2020-04-15T01:36:43Z
| 2020-04-15T01:32:20Z
|
MEMBER
| null |
By wrapping dt64/td64 ndarrays in DTA/TDA, we can get rid of a bunch of .astype(object) logic
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33526/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33526/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33526.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33526",
"merged_at": "2020-04-15T01:32:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33526.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33526"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33527
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33527/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33527/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33527/events
|
https://github.com/pandas-dev/pandas/pull/33527
| 598,986,301
|
MDExOlB1bGxSZXF1ZXN0NDAyNzIxOTA5
| 33,527
|
CI: xfail rank tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-04-13T16:26:11Z
| 2020-04-13T16:54:59Z
| 2020-04-13T16:54:41Z
|
MEMBER
| null |
With npdev installed, the affected tests arent failing for me on OSX, so this is a shot int he dark.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33527/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33527/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33527.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33527",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33527.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33527"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33528
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33528/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33528/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33528/events
|
https://github.com/pandas-dev/pandas/pull/33528
| 598,993,626
|
MDExOlB1bGxSZXF1ZXN0NDAyNzI3ODA5
| 33,528
|
BUG: Grouped-by column loses name when empty list of aggregations is specified
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32339541?v=4",
"events_url": "https://api.github.com/users/echozzy629/events{/privacy}",
"followers_url": "https://api.github.com/users/echozzy629/followers",
"following_url": "https://api.github.com/users/echozzy629/following{/other_user}",
"gists_url": "https://api.github.com/users/echozzy629/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/echozzy629",
"id": 32339541,
"login": "echozzy629",
"node_id": "MDQ6VXNlcjMyMzM5NTQx",
"organizations_url": "https://api.github.com/users/echozzy629/orgs",
"received_events_url": "https://api.github.com/users/echozzy629/received_events",
"repos_url": "https://api.github.com/users/echozzy629/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/echozzy629/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/echozzy629/subscriptions",
"type": "User",
"url": "https://api.github.com/users/echozzy629"
}
|
[] |
closed
| false
| null |
[] | null | 3
| 2020-04-13T16:39:41Z
| 2020-05-22T10:22:12Z
| 2020-05-22T10:22:12Z
|
NONE
| null |
- [ ] closes #32580
- [ ] 0 tests added / 0 passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33528/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33528/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33528.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33528",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33528.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33528"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33529
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33529/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33529/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33529/events
|
https://github.com/pandas-dev/pandas/pull/33529
| 599,004,208
|
MDExOlB1bGxSZXF1ZXN0NDAyNzM2MjYx
| 33,529
|
CLN: .values->._values in hashing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-13T16:59:51Z
| 2020-04-15T01:35:22Z
| 2020-04-15T01:28:13Z
|
MEMBER
| null |
This sits on top of #33511 (at first thought it could be orthogonal, but this breaks a couple of hash_scalar tests if we dont rip those out first)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33529/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33529/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33529.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33529",
"merged_at": "2020-04-15T01:28:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33529.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33529"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33530
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33530/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33530/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33530/events
|
https://github.com/pandas-dev/pandas/pull/33530
| 599,013,211
|
MDExOlB1bGxSZXF1ZXN0NDAyNzQzNTk5
| 33,530
|
REF: matching-dtype case first in concat_compat
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-13T17:16:03Z
| 2020-04-17T02:55:53Z
| 2020-04-17T02:41:56Z
|
MEMBER
| null |
Moving towards clarifying the EA._concat_same_type behavior with unique vs non-unique dtypes
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33530/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33530/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33530.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33530",
"merged_at": "2020-04-17T02:41:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33530.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33530"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33531
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33531/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33531/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33531/events
|
https://github.com/pandas-dev/pandas/pull/33531
| 599,025,451
|
MDExOlB1bGxSZXF1ZXN0NDAyNzUzMzM1
| 33,531
|
BUG: Do not use string Index like Datetimelike Index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/49879400?v=4",
"events_url": "https://api.github.com/users/nrebena/events{/privacy}",
"followers_url": "https://api.github.com/users/nrebena/followers",
"following_url": "https://api.github.com/users/nrebena/following{/other_user}",
"gists_url": "https://api.github.com/users/nrebena/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nrebena",
"id": 49879400,
"login": "nrebena",
"node_id": "MDQ6VXNlcjQ5ODc5NDAw",
"organizations_url": "https://api.github.com/users/nrebena/orgs",
"received_events_url": "https://api.github.com/users/nrebena/received_events",
"repos_url": "https://api.github.com/users/nrebena/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nrebena/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nrebena/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nrebena"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] |
closed
| false
| null |
[] | null | 12
| 2020-04-13T17:37:31Z
| 2020-10-08T00:29:21Z
| 2020-10-08T00:29:21Z
|
CONTRIBUTOR
| null |
Follow up of conversation in https://github.com/pandas-dev/pandas/pull/32739#issuecomment-602271577.
The goal is to prevent index of string that look like datetimelike to be used as datetimelike.
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33531/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33531/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33531.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33531",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33531.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33531"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33532
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33532/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33532/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33532/events
|
https://github.com/pandas-dev/pandas/pull/33532
| 599,061,659
|
MDExOlB1bGxSZXF1ZXN0NDAyNzgwNTQ3
| 33,532
|
CLN: General cleanup in `_libs/lib.pyx`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-04-13T18:43:09Z
| 2021-05-03T12:28:31Z
| 2020-04-14T00:07:12Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33532/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33532/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33532.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33532",
"merged_at": "2020-04-14T00:07:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33532.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33532"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33533
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33533/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33533/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33533/events
|
https://github.com/pandas-dev/pandas/pull/33533
| 599,100,983
|
MDExOlB1bGxSZXF1ZXN0NDAyODEyMzkz
| 33,533
|
CLN: Change isocalendar to be a method
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/124705?v=4",
"events_url": "https://api.github.com/users/mgmarino/events{/privacy}",
"followers_url": "https://api.github.com/users/mgmarino/followers",
"following_url": "https://api.github.com/users/mgmarino/following{/other_user}",
"gists_url": "https://api.github.com/users/mgmarino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mgmarino",
"id": 124705,
"login": "mgmarino",
"node_id": "MDQ6VXNlcjEyNDcwNQ==",
"organizations_url": "https://api.github.com/users/mgmarino/orgs",
"received_events_url": "https://api.github.com/users/mgmarino/received_events",
"repos_url": "https://api.github.com/users/mgmarino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mgmarino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mgmarino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mgmarino"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-13T19:58:13Z
| 2020-05-27T08:23:27Z
| 2020-04-14T16:22:53Z
|
CONTRIBUTOR
| null |
For consistency with `Timestamp.isocalendar`, `Series.dt.isocalendar` and
`DatetimeIndex.isocalendar` should rather be methods and not attributes.
Followup of #33220, see the discussions following the merge of that PR
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33533/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33533/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33533.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33533",
"merged_at": "2020-04-14T16:22:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33533.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33533"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33534
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33534/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33534/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33534/events
|
https://github.com/pandas-dev/pandas/pull/33534
| 599,164,738
|
MDExOlB1bGxSZXF1ZXN0NDAyODY0NzI5
| 33,534
|
CI: pin cython==0.29.16 in npdev build
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-04-13T22:07:32Z
| 2020-04-13T22:42:28Z
| 2020-04-13T22:41:36Z
|
MEMBER
| null |
xref #33507
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33534/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33534/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33534.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33534",
"merged_at": "2020-04-13T22:41:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33534.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33534"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33535
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33535/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33535/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33535/events
|
https://github.com/pandas-dev/pandas/pull/33535
| 599,203,258
|
MDExOlB1bGxSZXF1ZXN0NDAyODk2NDg4
| 33,535
|
REF: put EA concat logic in _concat_arrays
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false
| null |
[] | null | 12
| 2020-04-13T23:54:23Z
| 2020-04-17T14:59:26Z
| 2020-04-17T14:59:08Z
|
MEMBER
| null |
cc @jorisvandenbossche @TomAugspurger per discussion in #32586 (among others) about `_concat_same_type`, this is a proof of concept for a 3-method solution:
- `EA._concat_same_dtype` --> require same type _and_ dtype; DTA/PA do this now
- `EA._concat_same_type` --> require same type but not necessarily same type; we could do without this, but since its already in the API...
- `EA._concat_arrays` --> any ndarray/EAs
For example, `dtypes.concat._concat_sparse` naturally becomes `SparseArray._concat_arrays`. The middle chunk of `union_categoricals` becomes `Categorical._concat_same_dtype`.
Everything described above is just a refactor, putting logic in more reasonable places. The benefit interface-wise is that the dispatching in `concat_compat` looks like
```
if we_have_any_categoricals:
return Categorical._concat_arrays(to_concat)
elif we_have_any_datetimelike:
return DatetimeLike._concat_arrays(to_concat)
elif we_have_any_sparse:
return SparseArray._concat_arrays(to_concat)
[...]
```
ATM the order Categorical -> DTA/TDA/PA -> Sparse is hard-coded, but we could generalize this either with a negotiation logic like Tom [described](https://github.com/pandas-dev/pandas/issues/22994#issuecomment-436279333) or with something simpler like defining `EA.__concat_priority__ = 1, Categorical.__concat_priority__ = 1000, [...]` and the dispatch becomes:
```
eas = {type(x) for x in to_concat if isinstance(x, ExtensionArray)}
eas = list(eas)
eas.sort(lambda x: x.__concat_priority__)
if eas:
return eas[-1]._concat_arrays(to_concat)
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33535/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33535/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33535.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33535",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33535.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33535"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33536
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33536/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33536/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33536/events
|
https://github.com/pandas-dev/pandas/pull/33536
| 599,214,168
|
MDExOlB1bGxSZXF1ZXN0NDAyOTA1MDI0
| 33,536
|
ENH: Clear index cache after reindex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/37855280?v=4",
"events_url": "https://api.github.com/users/BaiBaiHi/events{/privacy}",
"followers_url": "https://api.github.com/users/BaiBaiHi/followers",
"following_url": "https://api.github.com/users/BaiBaiHi/following{/other_user}",
"gists_url": "https://api.github.com/users/BaiBaiHi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BaiBaiHi",
"id": 37855280,
"login": "BaiBaiHi",
"node_id": "MDQ6VXNlcjM3ODU1Mjgw",
"organizations_url": "https://api.github.com/users/BaiBaiHi/orgs",
"received_events_url": "https://api.github.com/users/BaiBaiHi/received_events",
"repos_url": "https://api.github.com/users/BaiBaiHi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BaiBaiHi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BaiBaiHi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BaiBaiHi"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-04-14T00:26:37Z
| 2020-05-22T10:56:50Z
| 2020-05-22T10:56:05Z
|
NONE
| null |
Add flag to clear index cache after reindex.
By default, reindex causes index to cache values which potentially increases the memory consumption significantly in the case of multiindexes.
```
In [2]: idx = pd.MultiIndex.from_product([pd.date_range('2010-01-01', '2015-01-01'), range(1000)], names=['date', 'id'])
In [3]: idx2 = pd.MultiIndex.from_product([pd.date_range('2010-01-01', '2015-01-01'), range(500)], names=['date', 'id'])
In [4]: df = pd.DataFrame({'a': 1}, index=idx)
In [5]: df.memory_usage(deep=True, index=True) # Original Memory Usage
Out[5]:
Index 7453600
a 14616000
dtype: int64
In [6]: df.reindex(idx2) # df is still the same as original.
In [7]: df.memory_usage(deep=True, index=True) # Memory usage after reindex
Out[7]:
Index 91339680
a 14616000
dtype: int64
```
With clear_cache=True
```
In [20]: idx = pd.MultiIndex.from_product([pd.date_range('2010-01-01', '2015-01-01'), range(1000)], names=['date', 'id'])
In [21]: idx2 = pd.MultiIndex.from_product([pd.date_range('2010-01-01', '2015-01-01'), range(500)], names=['date', 'id'])
In [22]: df = pd.DataFrame({'a': 1}, index=idx)
In [23]: df.memory_usage(deep=True, index=True) # Original Memory Usage
Out[23]:
Index 7453600
a 14616000
dtype: int64
In [24]: df.reindex(idx2) # df is still the same as original.
In [25]: df.memory_usage(deep=True, index=True) # Memory usage after reindex
Out[25]:
Index 7453600
a 14616000
dtype: int64
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33536/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33536/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33536.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33536",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33536.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33536"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33537
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33537/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33537/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33537/events
|
https://github.com/pandas-dev/pandas/pull/33537
| 599,233,372
|
MDExOlB1bGxSZXF1ZXN0NDAyOTIwMzg3
| 33,537
|
REF: use cached inferred_type when calling lib.infer_dtype(index)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-14T01:30:47Z
| 2020-04-25T22:27:38Z
| 2020-04-25T22:22:08Z
|
MEMBER
| null |
Among other things, this will let us avoid a couple of ugly calls in Series
```
if isinstance(key, Index):
key_type = key.inferred_type
else:
key_type = lib.infer_dtype(key, skipna=False)
```
Cleanup of nearby EA-handling code
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33537/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33537/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33537.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33537",
"merged_at": "2020-04-25T22:22:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33537.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33537"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33538
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33538/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33538/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33538/events
|
https://github.com/pandas-dev/pandas/pull/33538
| 599,256,711
|
MDExOlB1bGxSZXF1ZXN0NDAyOTM4NTQy
| 33,538
|
ENH: Implement IntegerArray.sum
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 4
| 2020-04-14T02:46:14Z
| 2020-04-25T13:38:58Z
| 2020-04-25T08:05:18Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I think this is mostly interesting in that it allows normalize=True for value_counts on an IntegerArray backed Series, which currently doesn't work:
```python
[ins] In [1]: s = pd.Series([1, 2, 3], dtype="Int64")
[ins] In [2]: s.value_counts(normalize=True)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-2bf1a78353e5> in <module>
----> 1 s.value_counts(normalize=True)
~/pandas/pandas/core/base.py in value_counts(self, normalize, sort, ascending, bins, dropna)
1252 normalize=normalize,
1253 bins=bins,
-> 1254 dropna=dropna,
1255 )
1256 return result
~/pandas/pandas/core/algorithms.py in value_counts(values, sort, ascending, normalize, bins, dropna)
725
726 if normalize:
--> 727 result = result / float(counts.sum())
728
729 return result
AttributeError: 'IntegerArray' object has no attribute 'sum'
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33538/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33538/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33538.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33538",
"merged_at": "2020-04-25T08:05:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33538.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33538"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33539
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33539/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33539/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33539/events
|
https://github.com/pandas-dev/pandas/pull/33539
| 599,258,334
|
MDExOlB1bGxSZXF1ZXN0NDAyOTM5ODIw
| 33,539
|
BUG: Series[listlike_of_ints] incorrect on MultiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-14T02:51:16Z
| 2020-04-25T21:22:00Z
| 2020-04-25T21:02:28Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This is one of the cases that @jorisvandenbossche identified in #33355.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33539/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33539/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33539.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33539",
"merged_at": "2020-04-25T21:02:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33539.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33539"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33540
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33540/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33540/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33540/events
|
https://github.com/pandas-dev/pandas/pull/33540
| 599,269,656
|
MDExOlB1bGxSZXF1ZXN0NDAyOTQ4NTY4
| 33,540
|
PERF: Fix performance regression #33365
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19578629?v=4",
"events_url": "https://api.github.com/users/rtlee9/events{/privacy}",
"followers_url": "https://api.github.com/users/rtlee9/followers",
"following_url": "https://api.github.com/users/rtlee9/following{/other_user}",
"gists_url": "https://api.github.com/users/rtlee9/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rtlee9",
"id": 19578629,
"login": "rtlee9",
"node_id": "MDQ6VXNlcjE5NTc4NjI5",
"organizations_url": "https://api.github.com/users/rtlee9/orgs",
"received_events_url": "https://api.github.com/users/rtlee9/received_events",
"repos_url": "https://api.github.com/users/rtlee9/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rtlee9/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rtlee9/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rtlee9"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 7
| 2020-04-14T03:28:12Z
| 2020-04-16T05:28:55Z
| 2020-04-15T17:41:38Z
|
CONTRIBUTOR
| null |
Fix performance regression in Series.is_monotonic_increasing for categorical
by avoiding Categorical construction for categorical series
- [x] closes #33365
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry: perf regression was introduced after previous version
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33540/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33540/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33540.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33540",
"merged_at": "2020-04-15T17:41:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33540.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33540"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33541
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33541/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33541/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33541/events
|
https://github.com/pandas-dev/pandas/issues/33541
| 599,346,577
|
MDU6SXNzdWU1OTkzNDY1Nzc=
| 33,541
|
DownSampling Time Series Data using pandas
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/54314581?v=4",
"events_url": "https://api.github.com/users/Solly7/events{/privacy}",
"followers_url": "https://api.github.com/users/Solly7/followers",
"following_url": "https://api.github.com/users/Solly7/following{/other_user}",
"gists_url": "https://api.github.com/users/Solly7/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Solly7",
"id": 54314581,
"login": "Solly7",
"node_id": "MDQ6VXNlcjU0MzE0NTgx",
"organizations_url": "https://api.github.com/users/Solly7/orgs",
"received_events_url": "https://api.github.com/users/Solly7/received_events",
"repos_url": "https://api.github.com/users/Solly7/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Solly7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Solly7/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Solly7"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-04-14T07:08:21Z
| 2020-08-21T17:06:00Z
| 2020-04-14T16:25:39Z
|
NONE
| null |
Hi all, i am still new to machine learning , I have time series data as per below and i need tips/help on how to downsample it using scikit-learn. see my dummy data below ,Payment status is my label(0=missed, 1=paid), i need to downsample using time series strategy and keeping temporal order
```
Policy_no Deduction_date Payment_status
1 01-Jan-2019 1
2 01-Jan-2019 1
3 01-Jan-2019 1
4 01-Jan-2019 1
5 01-Jan-2019 1
1 01-feb-2019 1
2 01-feb-2019 1
3 01-feb-2019 0
4 01-feb-2019 0
5 01-feb-2019 0
1 01-mar-2019 1
2 01-mar-2019 1
3 01-mar-2019 1
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33541/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33541/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33542
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33542/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33542/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33542/events
|
https://github.com/pandas-dev/pandas/issues/33542
| 599,350,810
|
MDU6SXNzdWU1OTkzNTA4MTA=
| 33,542
|
ENH: Use self values in Series groupby
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/21088161?v=4",
"events_url": "https://api.github.com/users/vishnu-dev/events{/privacy}",
"followers_url": "https://api.github.com/users/vishnu-dev/followers",
"following_url": "https://api.github.com/users/vishnu-dev/following{/other_user}",
"gists_url": "https://api.github.com/users/vishnu-dev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vishnu-dev",
"id": 21088161,
"login": "vishnu-dev",
"node_id": "MDQ6VXNlcjIxMDg4MTYx",
"organizations_url": "https://api.github.com/users/vishnu-dev/orgs",
"received_events_url": "https://api.github.com/users/vishnu-dev/received_events",
"repos_url": "https://api.github.com/users/vishnu-dev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vishnu-dev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vishnu-dev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vishnu-dev"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
closed
| false
| null |
[] | null | 6
| 2020-04-14T07:16:53Z
| 2020-04-23T20:36:24Z
| 2020-04-23T20:36:24Z
|
NONE
| null |
#### Is your feature request related to a problem?
I wish I could use pandas to do
```
s = pd.Series([1,2,1,3,1,2])
s.groupby()
```
rather than
```
s.groupby(s)
```
#### Describe the solution you'd like
I would like pandas to interpret the series values as `grouper` when `by` or `level` is not provided.
#### API breaking implications
I can't think of any reason this will affect the API.
#### Describe alternatives you've considered
Grouping using series itself as `grouper`.
`s.groupby(s)`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33542/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33542/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33543
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33543/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33543/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33543/events
|
https://github.com/pandas-dev/pandas/pull/33543
| 599,405,546
|
MDExOlB1bGxSZXF1ZXN0NDAzMDU1MDAw
| 33,543
|
Preserving boolean dtype in Series.any/all function with level keyword #33449
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/25628466?v=4",
"events_url": "https://api.github.com/users/KenilMehta/events{/privacy}",
"followers_url": "https://api.github.com/users/KenilMehta/followers",
"following_url": "https://api.github.com/users/KenilMehta/following{/other_user}",
"gists_url": "https://api.github.com/users/KenilMehta/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/KenilMehta",
"id": 25628466,
"login": "KenilMehta",
"node_id": "MDQ6VXNlcjI1NjI4NDY2",
"organizations_url": "https://api.github.com/users/KenilMehta/orgs",
"received_events_url": "https://api.github.com/users/KenilMehta/received_events",
"repos_url": "https://api.github.com/users/KenilMehta/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/KenilMehta/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KenilMehta/subscriptions",
"type": "User",
"url": "https://api.github.com/users/KenilMehta"
}
|
[
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
},
{
"color": "547c03",
"default": false,
"description": "sum, mean, min, max, etc.",
"id": 2365504383,
"name": "Reduction Operations",
"node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations"
}
] |
closed
| false
| null |
[] | null | 12
| 2020-04-14T08:53:45Z
| 2021-04-20T05:06:20Z
| 2021-04-20T05:06:19Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33543/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33543/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33543.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33543",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33543.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33543"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33544
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33544/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33544/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33544/events
|
https://github.com/pandas-dev/pandas/issues/33544
| 599,412,071
|
MDU6SXNzdWU1OTk0MTIwNzE=
| 33,544
|
BUG:Timezone lost when assigning Datetime via DataFrame.at
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2877717?v=4",
"events_url": "https://api.github.com/users/torfsen/events{/privacy}",
"followers_url": "https://api.github.com/users/torfsen/followers",
"following_url": "https://api.github.com/users/torfsen/following{/other_user}",
"gists_url": "https://api.github.com/users/torfsen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/torfsen",
"id": 2877717,
"login": "torfsen",
"node_id": "MDQ6VXNlcjI4Nzc3MTc=",
"organizations_url": "https://api.github.com/users/torfsen/orgs",
"received_events_url": "https://api.github.com/users/torfsen/received_events",
"repos_url": "https://api.github.com/users/torfsen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/torfsen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/torfsen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/torfsen"
}
|
[
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-04-14T09:04:16Z
| 2020-04-21T13:25:22Z
| 2020-04-21T13:25:22Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import datetime as dt
import pandas as pd
df = pd.DataFrame({'foo': [dt.datetime(2000, 1, 1)]})
df.at[0, 'foo'] = dt.datetime(2000, 1, 2, tzinfo=dt.timezone.utc)
print(df.at[0, 'foo']) # Prints 2000-01-02 00:00:00
assert df.at[0, 'foo'].tzinfo is not None # Fails
```
#### Problem description
When assigning a tz-aware datetime via `at` I expect that the tz-information is kept. If that is not possible due to a datatype problem then I expect a warning or error message. Instead it is lost without a warning or error message.
#### Expected Output
I would have expected that the tz-information is kept, i.e. that
```
assert df.at[0, 'foo'].tzinfo is not None # Should not fail
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-46-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : 5.4.1
hypothesis : None
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33544/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33544/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33545
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33545/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33545/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33545/events
|
https://github.com/pandas-dev/pandas/issues/33545
| 599,697,658
|
MDU6SXNzdWU1OTk2OTc2NTg=
| 33,545
|
BUG: index name is lost when doing groupby where by is a dict and at least one value in the by dict is a list of of size zero
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59776270?v=4",
"events_url": "https://api.github.com/users/jasonaue/events{/privacy}",
"followers_url": "https://api.github.com/users/jasonaue/followers",
"following_url": "https://api.github.com/users/jasonaue/following{/other_user}",
"gists_url": "https://api.github.com/users/jasonaue/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jasonaue",
"id": 59776270,
"login": "jasonaue",
"node_id": "MDQ6VXNlcjU5Nzc2Mjcw",
"organizations_url": "https://api.github.com/users/jasonaue/orgs",
"received_events_url": "https://api.github.com/users/jasonaue/received_events",
"repos_url": "https://api.github.com/users/jasonaue/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jasonaue/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jasonaue/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jasonaue"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-14T16:22:59Z
| 2020-06-14T18:04:54Z
| 2020-06-14T18:04:54Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
To reproduce:
```
example = pd.DataFrame({'foo':[1,2,3],'bar1':[1,2,3],'bar2':[1,2,3]})
#index name is foo
display(example.groupby('foo').agg({'bar1': ['min'], 'bar2':['max']}))
#index name is None
display(example.groupby('foo').agg({'bar1': ['min'], 'bar2':[]}))
```
#### Output of ``pd.show_versions()``
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-7642-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.1
numpy : 1.17.2
pytz : 2019.3
dateutil : 2.8.0
pip : 19.2.3
setuptools : 41.4.0
Cython : 0.29.13
pytest : 5.2.1
hypothesis : None
sphinx : 2.2.0
blosc : None
feather : None
xlsxwriter : 1.2.1
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.0
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.9
tables : 3.5.2
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.1
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33545/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33545/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33546
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33546/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33546/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33546/events
|
https://github.com/pandas-dev/pandas/pull/33546
| 599,708,778
|
MDExOlB1bGxSZXF1ZXN0NDAzMjk1MzI4
| 33,546
|
TST: rename checknull_old -> test_checknull_old
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-14T16:41:32Z
| 2020-04-14T19:32:42Z
| 2020-04-14T17:21:42Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33546/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33546/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33546.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33546",
"merged_at": "2020-04-14T17:21:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33546.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33546"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33547
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33547/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33547/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33547/events
|
https://github.com/pandas-dev/pandas/issues/33547
| 599,801,617
|
MDU6SXNzdWU1OTk4MDE2MTc=
| 33,547
|
Spelling error in docs, Getting Started, section 03
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1487974?v=4",
"events_url": "https://api.github.com/users/skregas/events{/privacy}",
"followers_url": "https://api.github.com/users/skregas/followers",
"following_url": "https://api.github.com/users/skregas/following{/other_user}",
"gists_url": "https://api.github.com/users/skregas/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/skregas",
"id": 1487974,
"login": "skregas",
"node_id": "MDQ6VXNlcjE0ODc5NzQ=",
"organizations_url": "https://api.github.com/users/skregas/orgs",
"received_events_url": "https://api.github.com/users/skregas/received_events",
"repos_url": "https://api.github.com/users/skregas/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/skregas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/skregas/subscriptions",
"type": "User",
"url": "https://api.github.com/users/skregas"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
| null |
[] | null | 0
| 2020-04-14T19:19:41Z
| 2020-04-14T22:05:53Z
| 2020-04-14T22:05:53Z
|
NONE
| null |

In the Getting Started tutorials, section 03 "How to get subsets from a DataFrame", the paragraph beginning:
> We now from before...
should be:
> We know from before...
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33547/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33547/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33548
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33548/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33548/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33548/events
|
https://github.com/pandas-dev/pandas/issues/33548
| 599,804,448
|
MDU6SXNzdWU1OTk4MDQ0NDg=
| 33,548
|
BUG: groupby resample different results with .agg() vs .mean()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31221512?v=4",
"events_url": "https://api.github.com/users/pblankley/events{/privacy}",
"followers_url": "https://api.github.com/users/pblankley/followers",
"following_url": "https://api.github.com/users/pblankley/following{/other_user}",
"gists_url": "https://api.github.com/users/pblankley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pblankley",
"id": 31221512,
"login": "pblankley",
"node_id": "MDQ6VXNlcjMxMjIxNTEy",
"organizations_url": "https://api.github.com/users/pblankley/orgs",
"received_events_url": "https://api.github.com/users/pblankley/received_events",
"repos_url": "https://api.github.com/users/pblankley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pblankley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pblankley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pblankley"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-04-14T19:24:39Z
| 2020-12-22T14:07:19Z
| 2020-12-22T14:07:19Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import numpy as np
data = pd.DataFrame({
'cat': ['cat_1', 'cat_1', 'cat_2', 'cat_1', 'cat_2', 'cat_1', 'cat_2', 'cat_1'],
'num': [5,20,22,3,4,30,10,50],
'date': ['2019-2-1', '2018-02-03','2020-3-11','2019-2-2', '2019-2-2', '2018-12-4','2020-3-11', '2020-12-12']
})
data['date'] = pd.to_datetime(data['date'])
using_agg = data.groupby('cat').resample('Y', on='date').agg({'num': 'mean'})
using_mean = data.groupby('cat').resample('Y', on='date').mean()
print(using_agg)
print(using_mean)
assert(np.allclose(using_agg['num'], using_mean['num']))
```
#### Problem description
I expect to get the same result from using .agg({col_name: 'mean'}) and I expect to get from .mean()
It's very surprising the results are different here, and really worrying for me, considering historic code for us might be producing incorrect results. Can anyone shed some light on why this may be the case?
#### Expected Output
The output from `using_mean` is correct and should be equal to the output from `using_agg`
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.8.final.0
python-bits : 64
OS : Darwin
OS-release : 19.3.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 18.1
setuptools : 40.6.2
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33548/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33548/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33549
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33549/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33549/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33549/events
|
https://github.com/pandas-dev/pandas/pull/33549
| 599,846,521
|
MDExOlB1bGxSZXF1ZXN0NDAzNDAzOTkw
| 33,549
|
[WIP] Add remote file io using fsspec.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/307739?v=4",
"events_url": "https://api.github.com/users/jrderuiter/events{/privacy}",
"followers_url": "https://api.github.com/users/jrderuiter/followers",
"following_url": "https://api.github.com/users/jrderuiter/following{/other_user}",
"gists_url": "https://api.github.com/users/jrderuiter/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jrderuiter",
"id": 307739,
"login": "jrderuiter",
"node_id": "MDQ6VXNlcjMwNzczOQ==",
"organizations_url": "https://api.github.com/users/jrderuiter/orgs",
"received_events_url": "https://api.github.com/users/jrderuiter/received_events",
"repos_url": "https://api.github.com/users/jrderuiter/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jrderuiter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jrderuiter/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jrderuiter"
}
|
[
{
"color": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-04-14T20:42:38Z
| 2020-05-19T20:10:05Z
| 2020-05-19T20:10:05Z
|
NONE
| null |
- [x] closes #33452
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33549/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33549/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33549.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33549",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33549.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33549"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33550
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33550/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33550/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33550/events
|
https://github.com/pandas-dev/pandas/pull/33550
| 599,857,590
|
MDExOlB1bGxSZXF1ZXN0NDAzNDEyODU5
| 33,550
|
DOC: Fix some typos
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-14T21:03:16Z
| 2020-04-14T22:14:07Z
| 2020-04-14T22:05:53Z
|
MEMBER
| null |
Closes #33547, also Titanic should be capitalized
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33550/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33550/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33550.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33550",
"merged_at": "2020-04-14T22:05:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33550.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33550"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33551
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33551/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33551/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33551/events
|
https://github.com/pandas-dev/pandas/pull/33551
| 599,869,172
|
MDExOlB1bGxSZXF1ZXN0NDAzNDIyMzM1
| 33,551
|
BUG: Fix behavior of isocalendar with timezones
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/124705?v=4",
"events_url": "https://api.github.com/users/mgmarino/events{/privacy}",
"followers_url": "https://api.github.com/users/mgmarino/followers",
"following_url": "https://api.github.com/users/mgmarino/following{/other_user}",
"gists_url": "https://api.github.com/users/mgmarino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mgmarino",
"id": 124705,
"login": "mgmarino",
"node_id": "MDQ6VXNlcjEyNDcwNQ==",
"organizations_url": "https://api.github.com/users/mgmarino/orgs",
"received_events_url": "https://api.github.com/users/mgmarino/received_events",
"repos_url": "https://api.github.com/users/mgmarino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mgmarino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mgmarino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mgmarino"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-14T21:25:14Z
| 2020-05-27T08:23:27Z
| 2020-04-15T01:24:38Z
|
CONTRIBUTOR
| null |
- If timezone is not UTC, then convert to UTC
- This bug was found while deprecating 'week' and 'weekofyear'
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33551/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33551/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33551.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33551",
"merged_at": "2020-04-15T01:24:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33551.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33551"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33552
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33552/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33552/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33552/events
|
https://github.com/pandas-dev/pandas/pull/33552
| 599,898,537
|
MDExOlB1bGxSZXF1ZXN0NDAzNDQ2MzM4
| 33,552
|
BUG: Setting DTI/TDI freq affecting other indexes viewing the same data
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-14T22:32:33Z
| 2020-04-26T02:11:00Z
| 2020-04-25T20:45:15Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The issue this addresses is related to #31218.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33552/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33552/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33552.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33552",
"merged_at": "2020-04-25T20:45:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33552.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33552"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33553
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33553/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33553/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33553/events
|
https://github.com/pandas-dev/pandas/pull/33553
| 599,901,044
|
MDExOlB1bGxSZXF1ZXN0NDAzNDQ4Mzcx
| 33,553
|
BUG: tz_localize needs to invalidate freq
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-04-14T22:39:20Z
| 2020-04-16T21:45:51Z
| 2020-04-16T21:27:52Z
|
MEMBER
| null |
- [x] closes #30511
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Identified when trying to add `freq` check to `assert_index_equal` for DatetimeIndex and TimedeltaIndex.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33553/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33553/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33553.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33553",
"merged_at": "2020-04-16T21:27:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33553.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33553"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33554
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33554/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33554/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33554/events
|
https://github.com/pandas-dev/pandas/issues/33554
| 599,916,398
|
MDU6SXNzdWU1OTk5MTYzOTg=
| 33,554
|
BUG: merge left and merge inner produce different index-order
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4106013?v=4",
"events_url": "https://api.github.com/users/rwijtvliet/events{/privacy}",
"followers_url": "https://api.github.com/users/rwijtvliet/followers",
"following_url": "https://api.github.com/users/rwijtvliet/following{/other_user}",
"gists_url": "https://api.github.com/users/rwijtvliet/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rwijtvliet",
"id": 4106013,
"login": "rwijtvliet",
"node_id": "MDQ6VXNlcjQxMDYwMTM=",
"organizations_url": "https://api.github.com/users/rwijtvliet/orgs",
"received_events_url": "https://api.github.com/users/rwijtvliet/received_events",
"repos_url": "https://api.github.com/users/rwijtvliet/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rwijtvliet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rwijtvliet/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rwijtvliet"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
open
| false
| null |
[] | null | 5
| 2020-04-14T23:21:35Z
| 2020-10-25T22:26:28Z
| null |
NONE
| null |
According to the `df.merge` docstring and [documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.merge.html), concerning the `how` parameter:
> left: use only keys from left frame, similar to a SQL left outer join; **preserve key order**.
> inner: use intersection of keys from both frames, similar to a SQL inner join; **preserve the order of the left keys.**
(emphasis mine.) I understand this to mean, that the order of the left index will be preserved when using `how='left'` and `how='inner'` (or omitted). Of course, some keys might not be present in the second case, but that's beside the point here.
If my understanding is incorrect, my apologies and feel free to discard this report.
If my understanding is correct, however, I noticed today that this is not always true. Here is an example, where the order is not preserved.
#### Code Sample
```python
import pandas as pd
import numpy as np
data = pd.DataFrame({'value':np.random.randint(-10,100,12)}, index=pd.date_range('2020-01-01', periods=12, freq='M'))
data['q'] = data.index.map(lambda ts: ts.quarter)
data['even'] = data.index.map(lambda ts: ts.month % 2 ==0)
cols = ['even', 'q']
av = data.groupby(cols).apply(lambda gr: gr[['value']].mean())
df1 = data.merge(av, how='inner', left_on=cols, suffixes=['', '_av'], right_index=True)
df2 = data.merge(av, how='left', left_on=cols, suffixes=['', '_av'], right_index=True)
```
The dataframes:
```
data:
value q even
2020-01-31 74 1 False
2020-02-29 87 1 True
2020-03-31 79 1 False
2020-04-30 74 2 True
2020-05-31 71 2 False
2020-06-30 80 2 True
2020-07-31 94 3 False
2020-08-31 19 3 True
2020-09-30 58 3 False
2020-10-31 97 4 True
2020-11-30 5 4 False
2020-12-31 16 4 True
av:
value
even q
False 1 76.5
2 71.0
3 76.0
4 5.0
True 1 87.0
2 77.0
3 19.0
4 56.5
```
#### Output
```
df2: #as expected and wanted
value q even value_av
2020-01-31 74 1 False 76.5
2020-02-29 87 1 True 87.0
2020-03-31 79 1 False 76.5
2020-04-30 74 2 True 77.0
2020-05-31 71 2 False 71.0
2020-06-30 80 2 True 77.0
2020-07-31 94 3 False 76.0
2020-08-31 19 3 True 19.0
2020-09-30 58 3 False 76.0
2020-10-31 97 4 True 56.5
2020-11-30 5 4 False 5.0
2020-12-31 16 4 True 56.5
df1: #not as expected
value q even value_av
2020-01-31 74 1 False 76.5
2020-03-31 79 1 False 76.5
2020-02-29 87 1 True 87.0
2020-04-30 74 2 True 77.0
2020-06-30 80 2 True 77.0
2020-05-31 71 2 False 71.0
2020-07-31 94 3 False 76.0
2020-09-30 58 3 False 76.0
2020-08-31 19 3 True 19.0
2020-10-31 97 4 True 56.5
2020-12-31 16 4 True 56.5
2020-11-30 5 4 False 5.0
```
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en
LOCALE : None.None
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 42.0.2.post20191203
Cython : 0.29.15
pytest : 5.4.1
hypothesis : 5.8.3
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.2
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : None
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.15
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.8
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33554/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33554/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33555
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33555/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33555/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33555/events
|
https://github.com/pandas-dev/pandas/pull/33555
| 599,926,102
|
MDExOlB1bGxSZXF1ZXN0NDAzNDY4NjEz
| 33,555
|
CLN: x-array test warnings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-04-14T23:49:57Z
| 2020-04-15T00:33:23Z
| 2020-04-15T00:33:14Z
|
CONTRIBUTOR
| null |
Remove these warnings:
```
pandas/tests/generic/test_to_xarray.py:102
/home/travis/build/pandas-dev/pandas/pandas/tests/generic/test_to_xarray.py:102: DeprecationWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
s = Series(range(len(indices)), index=indices)
```
https://travis-ci.org/github/pandas-dev/pandas/jobs/675056013
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33555/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33555/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33555.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33555",
"merged_at": "2020-04-15T00:33:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33555.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33555"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33556
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33556/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33556/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33556/events
|
https://github.com/pandas-dev/pandas/pull/33556
| 599,941,311
|
MDExOlB1bGxSZXF1ZXN0NDAzNDgwODg1
| 33,556
|
fix
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/57118066?v=4",
"events_url": "https://api.github.com/users/csaoma/events{/privacy}",
"followers_url": "https://api.github.com/users/csaoma/followers",
"following_url": "https://api.github.com/users/csaoma/following{/other_user}",
"gists_url": "https://api.github.com/users/csaoma/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/csaoma",
"id": 57118066,
"login": "csaoma",
"node_id": "MDQ6VXNlcjU3MTE4MDY2",
"organizations_url": "https://api.github.com/users/csaoma/orgs",
"received_events_url": "https://api.github.com/users/csaoma/received_events",
"repos_url": "https://api.github.com/users/csaoma/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/csaoma/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/csaoma/subscriptions",
"type": "User",
"url": "https://api.github.com/users/csaoma"
}
|
[] |
closed
| false
| null |
[] | null | 4
| 2020-04-15T00:36:34Z
| 2020-04-15T14:38:49Z
| 2020-04-15T14:38:49Z
|
CONTRIBUTOR
| null |
- [x] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33556/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33556/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33556.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33556",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33556.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33556"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33557
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33557/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33557/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33557/events
|
https://github.com/pandas-dev/pandas/pull/33557
| 599,947,568
|
MDExOlB1bGxSZXF1ZXN0NDAzNDg1ODc3
| 33,557
|
fstring updates. Changing from .format to fstring
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/57118066?v=4",
"events_url": "https://api.github.com/users/csaoma/events{/privacy}",
"followers_url": "https://api.github.com/users/csaoma/followers",
"following_url": "https://api.github.com/users/csaoma/following{/other_user}",
"gists_url": "https://api.github.com/users/csaoma/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/csaoma",
"id": 57118066,
"login": "csaoma",
"node_id": "MDQ6VXNlcjU3MTE4MDY2",
"organizations_url": "https://api.github.com/users/csaoma/orgs",
"received_events_url": "https://api.github.com/users/csaoma/received_events",
"repos_url": "https://api.github.com/users/csaoma/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/csaoma/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/csaoma/subscriptions",
"type": "User",
"url": "https://api.github.com/users/csaoma"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-15T00:58:53Z
| 2020-04-15T19:40:48Z
| 2020-04-15T19:40:39Z
|
CONTRIBUTOR
| null |
Please accept my updates by converting .format to fstrings.
https://github.com/pandas-dev/pandas/issues/29547
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33557/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33557/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33557.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33557",
"merged_at": "2020-04-15T19:40:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33557.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33557"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33558
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33558/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33558/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33558/events
|
https://github.com/pandas-dev/pandas/issues/33558
| 599,953,635
|
MDU6SXNzdWU1OTk5NTM2MzU=
| 33,558
|
BUG: pd.array([timedelta_like_strings]) should infer TimedeltaArray
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 19
| 2020-04-15T01:20:13Z
| 2021-06-01T13:53:05Z
| 2021-06-01T13:53:05Z
|
MEMBER
| null |
```
>>> left = pd.array(['59 days', '59 days', pd.NaT]))
>>> left
<StringArray>
['59 days', '59 days', <NA>]
Length: 3, dtype: string
>>> left = pd.array(['59 days', '59 days', pd.NaT], dtype='m8[ns]')
>>> left
<TimedeltaArray>
['59 days', '59 days', NaT]
Length: 3, dtype: timedelta64[ns]
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33558/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33558/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33559
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33559/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33559/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33559/events
|
https://github.com/pandas-dev/pandas/issues/33559
| 600,085,240
|
MDU6SXNzdWU2MDAwODUyNDA=
| 33,559
|
BUG: Series.apply() throws an error on empty series when dtype = pd.StringDtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24492681?v=4",
"events_url": "https://api.github.com/users/IDDT/events{/privacy}",
"followers_url": "https://api.github.com/users/IDDT/followers",
"following_url": "https://api.github.com/users/IDDT/following{/other_user}",
"gists_url": "https://api.github.com/users/IDDT/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/IDDT",
"id": 24492681,
"login": "IDDT",
"node_id": "MDQ6VXNlcjI0NDkyNjgx",
"organizations_url": "https://api.github.com/users/IDDT/orgs",
"received_events_url": "https://api.github.com/users/IDDT/received_events",
"repos_url": "https://api.github.com/users/IDDT/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/IDDT/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IDDT/subscriptions",
"type": "User",
"url": "https://api.github.com/users/IDDT"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-15T07:34:30Z
| 2020-05-02T17:49:04Z
| 2020-05-02T17:49:04Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
pd.Series(['a', 'b', 'c']).iloc[0:0].apply(lambda x: x) #works as expected
pd.Series(['a', 'b', 'c']).astype('string').iloc[0:0].apply(lambda x: x) #throws an exception
```
#### Problem description
Applying a function to an empty Series with dtype `pd.StringDtype` throws `ValueError: PandasArray must be 1-dimensional.`.
#### Expected Output
Apply does nothing.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Linux
OS-release : 5.6.3-arch1-1
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.5 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33559/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33559/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33560
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33560/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33560/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33560/events
|
https://github.com/pandas-dev/pandas/issues/33560
| 600,104,117
|
MDU6SXNzdWU2MDAxMDQxMTc=
| 33,560
|
ENH: plotting function for "2D histograms"/"dynamic spectra" (similar to heatmap)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5310424?v=4",
"events_url": "https://api.github.com/users/johan12345/events{/privacy}",
"followers_url": "https://api.github.com/users/johan12345/followers",
"following_url": "https://api.github.com/users/johan12345/following{/other_user}",
"gists_url": "https://api.github.com/users/johan12345/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/johan12345",
"id": 5310424,
"login": "johan12345",
"node_id": "MDQ6VXNlcjUzMTA0MjQ=",
"organizations_url": "https://api.github.com/users/johan12345/orgs",
"received_events_url": "https://api.github.com/users/johan12345/received_events",
"repos_url": "https://api.github.com/users/johan12345/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/johan12345/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/johan12345/subscriptions",
"type": "User",
"url": "https://api.github.com/users/johan12345"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
open
| false
| null |
[] | null | 3
| 2020-04-15T08:06:03Z
| 2020-06-05T18:54:29Z
| null |
CONTRIBUTOR
| null |
#### Is your feature request related to a problem?
I often need to plot a heatmap of a DataFrame which uses an `IntervalIndex` as its columns (and, usually, time as its index). Such a plot could also be called a "dynamic spectrum" or "2D histogram" and is used to quickly get an idea of how a spectrum develops over time.
<img src="https://user-images.githubusercontent.com/5310424/79311884-6042b980-7efe-11ea-86d9-1a24b0f73038.png" width=400/>
This is slightly different from what is usually considered as a heatmap (see #19008 for an example) as the bins are not necessarily equidistant and there is not necessarily a separate label for each bin. The y axis (which is used for the `IntervalIndex`) could even have logarithmic scaling.
#### Describe the solution you'd like
This could use the same API `df.plot(type='heatmap')` as suggested in #19008 and switch between appropriate axis scaling/labeling modes depending on whether a `CategoricalIndex`, `IntervalIndex` or other types of indices are used.
#### Describe alternatives you've considered
My current implementation (see below) uses matplotlib's `pcolormesh`, but needs to do some fiddling with the bin edges to work correctly.
Matplotlib's `hist2d` does not work for this use case, because the data is already stored in histogrammed form - the histogram and its bins don't need to be calculated, just plotted.
Seaborn's `heatmap` function seems to be limited to plotting categorical data, so both `IntervalIndex` and `DatetimeIndex` are displayed as categorical data with one label per bin, equidistant spacing, and values on the y axis sorted from top to bottom instead of bottom to top:
<img src="https://user-images.githubusercontent.com/5310424/79312520-4d7cb480-7eff-11ea-80c2-9d0c120c68a2.png" width=400/>
#### Additional context
My current implementation looks similar to this:
```python
binedges = np.append(df.columns.left, df.columns.right[-1])
X, Y = np.meshgrid(df.index, binedges)
pcm = ax.pcolormesh(X, Y, df.values.T)
# then add labels, colorbar etc.
```
This only works if the `IntervalIndex` has no gaps and is non-overlapping, which would have to be checked first.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33560/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33560/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33561
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33561/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33561/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33561/events
|
https://github.com/pandas-dev/pandas/pull/33561
| 600,133,757
|
MDExOlB1bGxSZXF1ZXN0NDAzNjI4MDI0
| 33,561
|
PERF: operate on arrays instead of Series in DataFrame/DataFrame ops
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 4
| 2020-04-15T08:53:22Z
| 2020-05-25T14:57:16Z
| 2020-05-25T14:57:13Z
|
MEMBER
| null |
xref https://github.com/pandas-dev/pandas/pull/32779
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33561/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33561/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33561.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33561",
"merged_at": "2020-05-25T14:57:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33561.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33561"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33562
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33562/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33562/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33562/events
|
https://github.com/pandas-dev/pandas/issues/33562
| 600,180,431
|
MDU6SXNzdWU2MDAxODA0MzE=
| 33,562
|
BUG: df.style.apply(subset=...) argument only works for explicit slices but not ":"
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13109572?v=4",
"events_url": "https://api.github.com/users/dieterwang/events{/privacy}",
"followers_url": "https://api.github.com/users/dieterwang/followers",
"following_url": "https://api.github.com/users/dieterwang/following{/other_user}",
"gists_url": "https://api.github.com/users/dieterwang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dieterwang",
"id": 13109572,
"login": "dieterwang",
"node_id": "MDQ6VXNlcjEzMTA5NTcy",
"organizations_url": "https://api.github.com/users/dieterwang/orgs",
"received_events_url": "https://api.github.com/users/dieterwang/received_events",
"repos_url": "https://api.github.com/users/dieterwang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dieterwang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dieterwang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dieterwang"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 3
| 2020-04-15T10:08:52Z
| 2021-02-04T00:51:34Z
| 2021-02-04T00:51:34Z
|
NONE
| null |
Related to #25858 (if not the same?), reproduced on 0.25.3 and current version 1.0.3.
It seems that the `subset` argument for pd.DataFrame.style only works for slices with explicit labels, e.g. `['A',2]` but not for select-all labels, e.g. `[:,2]`. See MWE below
```python
import pandas as pd
pd.__version__ # 1.0.3
# Taken from
# https://pandas.pydata.org/pandas-docs/stable/user_guide/style.html
def color_negative_red(val):
color = 'red' if val < 0 else 'black'
return 'color: %s' % color
df = pd.DataFrame([
[-1, 3, 6],
[-2,-3, 2]
])
df.index = pd.MultiIndex.from_tuples([('A',1),('A',2)])
# Style works for applymap
df.style.applymap(color_negative_red)
# Works for explicit slice
slicer = pd.IndexSlice[pd.IndexSlice['A',2],:]
df.loc[slicer] # valid .loc slicer
df.style.applymap(color_negative_red, subset=slicer) # works
# Breaks for select-all slice
slicer = pd.IndexSlice[pd.IndexSlice[:,2],:]
df.loc[slicer] # valid .loc slicer
df.style.applymap(color_negative_red, subset=slicer)
# TypeError: unhashable type: 'slice'
```
|
{
"+1": 3,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 3,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33562/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33562/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33563
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33563/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33563/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33563/events
|
https://github.com/pandas-dev/pandas/pull/33563
| 600,242,955
|
MDExOlB1bGxSZXF1ZXN0NDAzNzE1NzUx
| 33,563
|
CI: Fix Deprecation warning from jedi
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-04-15T11:58:31Z
| 2020-04-15T12:24:59Z
| 2020-04-15T12:24:55Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33563/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33563/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33563.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33563",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33563.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33563"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33564
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33564/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33564/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33564/events
|
https://github.com/pandas-dev/pandas/issues/33564
| 600,253,481
|
MDU6SXNzdWU2MDAyNTM0ODE=
| 33,564
|
DOC: rename_axis 'columns' param
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7659064?v=4",
"events_url": "https://api.github.com/users/Toussaic/events{/privacy}",
"followers_url": "https://api.github.com/users/Toussaic/followers",
"following_url": "https://api.github.com/users/Toussaic/following{/other_user}",
"gists_url": "https://api.github.com/users/Toussaic/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Toussaic",
"id": 7659064,
"login": "Toussaic",
"node_id": "MDQ6VXNlcjc2NTkwNjQ=",
"organizations_url": "https://api.github.com/users/Toussaic/orgs",
"received_events_url": "https://api.github.com/users/Toussaic/received_events",
"repos_url": "https://api.github.com/users/Toussaic/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Toussaic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Toussaic/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Toussaic"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13362948?v=4",
"events_url": "https://api.github.com/users/benrhodeland/events{/privacy}",
"followers_url": "https://api.github.com/users/benrhodeland/followers",
"following_url": "https://api.github.com/users/benrhodeland/following{/other_user}",
"gists_url": "https://api.github.com/users/benrhodeland/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benrhodeland",
"id": 13362948,
"login": "benrhodeland",
"node_id": "MDQ6VXNlcjEzMzYyOTQ4",
"organizations_url": "https://api.github.com/users/benrhodeland/orgs",
"received_events_url": "https://api.github.com/users/benrhodeland/received_events",
"repos_url": "https://api.github.com/users/benrhodeland/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benrhodeland/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benrhodeland/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benrhodeland"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/13362948?v=4",
"events_url": "https://api.github.com/users/benrhodeland/events{/privacy}",
"followers_url": "https://api.github.com/users/benrhodeland/followers",
"following_url": "https://api.github.com/users/benrhodeland/following{/other_user}",
"gists_url": "https://api.github.com/users/benrhodeland/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benrhodeland",
"id": 13362948,
"login": "benrhodeland",
"node_id": "MDQ6VXNlcjEzMzYyOTQ4",
"organizations_url": "https://api.github.com/users/benrhodeland/orgs",
"received_events_url": "https://api.github.com/users/benrhodeland/received_events",
"repos_url": "https://api.github.com/users/benrhodeland/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benrhodeland/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benrhodeland/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benrhodeland"
}
] | null | 8
| 2020-04-15T12:16:54Z
| 2020-05-19T14:57:52Z
| 2020-05-19T14:57:52Z
|
NONE
| null |
Example :
```python
import pandas as pd
import numpy as np
s1 = pd.Series(np.random.randn(3), name="First", index=['a', 'b', 'c'])
s1.rename(columns="My Column")
```
Except :
TypeError: rename_axis() got an unexpected keyword argument "columns"
Description :
The documentation shows a "columns" param which is not allowed for a Series. There should be a note to explain this parameter only apply for DataFrame.
Link :
https://github.com/pandas-dev/pandas/blob/3adf3340453d6704d4a2cb47058214cc697a7d29/pandas/core/generic.py#L1110-L1279
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.2.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : fr_FR.cp1252
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : None
hypothesis : None
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33564/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33564/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33565
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33565/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33565/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33565/events
|
https://github.com/pandas-dev/pandas/pull/33565
| 600,364,047
|
MDExOlB1bGxSZXF1ZXN0NDAzODEzNjAz
| 33,565
|
REF: simplify broadcasting code
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-15T14:58:54Z
| 2020-04-15T19:29:48Z
| 2020-04-15T19:23:25Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33565/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33565/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33565.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33565",
"merged_at": "2020-04-15T19:23:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33565.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33565"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33566
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33566/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33566/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33566/events
|
https://github.com/pandas-dev/pandas/pull/33566
| 600,371,803
|
MDExOlB1bGxSZXF1ZXN0NDAzODE5OTQw
| 33,566
|
CI: Fix jedi deprecation warning for 0.17.0 on IPython
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 4
| 2020-04-15T15:09:09Z
| 2020-05-26T09:40:37Z
| 2020-04-15T18:09:32Z
|
MEMBER
| null |
- [ ] closes #33567
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33566/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33566/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33566.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33566",
"merged_at": "2020-04-15T18:09:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33566.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33566"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33567
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33567/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33567/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33567/events
|
https://github.com/pandas-dev/pandas/issues/33567
| 600,383,935
|
MDU6SXNzdWU2MDAzODM5MzU=
| 33,567
|
CI : jedi deprecation warnings fails CI
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 0
| 2020-04-15T15:25:13Z
| 2020-05-26T09:40:47Z
| 2020-04-15T18:09:32Z
|
MEMBER
| null |
```
ip = <IPython.core.interactiveshell.InteractiveShell object at 0x7f10269bd910>
@async_mark()
async def test_tab_complete_warning(self, ip):
# GH 16409
pytest.importorskip("IPython", minversion="6.0.0")
from IPython.core.completer import provisionalcompleter
code = "import pandas as pd; df = pd.DataFrame()"
await ip.run_code(code)
with tm.assert_produces_warning(None):
with provisionalcompleter("ignore"):
> list(ip.Completer.completions("df.", 1))
pandas/tests/frame/test_api.py:534:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <contextlib._GeneratorContextManager object at 0x7f10264bc190>
type = None, value = None, traceback = None
def __exit__(self, type, value, traceback):
if type is None:
try:
> next(self.gen)
E AssertionError: Caused unexpected warning(s): [('DeprecationWarning', DeprecationWarning('Providing the line is now done in the functions themselves like `Script(...).complete(line, column)`'), '/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/jedi/api/__init__.py', 843), ('DeprecationWarning', DeprecationWarning('Providing the column is now done in the functions themselves like `Script(...).complete(line, column)`'), '/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/jedi/api/__init__.py', 843), ('DeprecationWarning', DeprecationWarning('Deprecated since version 0.16.0. Use Script(...).complete instead.'), '/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/IPython/core/completer.py', 1401)]
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33567/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33567/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33568
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33568/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33568/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33568/events
|
https://github.com/pandas-dev/pandas/pull/33568
| 600,405,347
|
MDExOlB1bGxSZXF1ZXN0NDAzODQ2MTQ3
| 33,568
|
DOC: Fix heading capitalization in doc/source/whatsnew - part5 (#32550)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24496267?v=4",
"events_url": "https://api.github.com/users/cleconte987/events{/privacy}",
"followers_url": "https://api.github.com/users/cleconte987/followers",
"following_url": "https://api.github.com/users/cleconte987/following{/other_user}",
"gists_url": "https://api.github.com/users/cleconte987/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cleconte987",
"id": 24496267,
"login": "cleconte987",
"node_id": "MDQ6VXNlcjI0NDk2MjY3",
"organizations_url": "https://api.github.com/users/cleconte987/orgs",
"received_events_url": "https://api.github.com/users/cleconte987/received_events",
"repos_url": "https://api.github.com/users/cleconte987/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cleconte987/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cleconte987/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cleconte987"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 6
| 2020-04-15T15:53:50Z
| 2020-05-06T21:14:57Z
| 2020-05-06T21:14:50Z
|
CONTRIBUTOR
| null |
-Quite a lot of complicated issues here, need reviewing. Such as 'Groupby' transformed to 'GroupBy', 'I/O' to 'IO', and some others.
- [ ] Modify files v0.18.0.rst, v0.18.1.rst, v0.19.0.rst, v0.19.1.rst, v0.19.2.rst, v0.20.0.rst, v0.20.2.rst, v0.20.3.rst, v0.21.0.rst, v0.21.1.rst
-File v0.20.0.rst has bad file name as it is actually talking about version v0.20.1.rst
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33568/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33568/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33568.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33568",
"merged_at": "2020-05-06T21:14:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33568.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33568"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33569
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33569/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33569/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33569/events
|
https://github.com/pandas-dev/pandas/issues/33569
| 600,411,667
|
MDU6SXNzdWU2MDA0MTE2Njc=
| 33,569
|
BUG: strange behaviour in quantile with group by
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/15142264?v=4",
"events_url": "https://api.github.com/users/abdullahodibat/events{/privacy}",
"followers_url": "https://api.github.com/users/abdullahodibat/followers",
"following_url": "https://api.github.com/users/abdullahodibat/following{/other_user}",
"gists_url": "https://api.github.com/users/abdullahodibat/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/abdullahodibat",
"id": 15142264,
"login": "abdullahodibat",
"node_id": "MDQ6VXNlcjE1MTQyMjY0",
"organizations_url": "https://api.github.com/users/abdullahodibat/orgs",
"received_events_url": "https://api.github.com/users/abdullahodibat/received_events",
"repos_url": "https://api.github.com/users/abdullahodibat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/abdullahodibat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abdullahodibat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/abdullahodibat"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 1
| 2020-04-15T16:02:22Z
| 2020-05-25T21:58:07Z
| 2020-05-25T21:58:07Z
|
NONE
| null |
is this a bug in pandas? why null values in the grouped by field break the quantile?
```
df = pd.DataFrame({
'category': ['A', 'A', 'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', 'B', 'B'],
'value': [1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6]
})
quantiles = df.groupby('category')['value'].quantile(0.75)
print(quantiles)
df2 = pd.DataFrame({
'category': ['A', 'A', 'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', 'B', 'B', np.nan],
'value': [1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6,1]
})
quantiles2 = df2.groupby('category')['value'].quantile(0.75)
print(quantiles2)
```
produces this output:
```
category
A 4.75
B 4.75
Name: value, dtype: float64
category
A 3.75
B 3.75
Name: value, dtype: float64
```
im using pandas 1.0.3
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33569/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33569/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33570
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33570/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33570/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33570/events
|
https://github.com/pandas-dev/pandas/pull/33570
| 600,540,482
|
MDExOlB1bGxSZXF1ZXN0NDAzOTUwNTU5
| 33,570
|
Reverted cython pin
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-04-15T19:37:17Z
| 2020-06-11T15:40:31Z
| 2020-04-22T04:17:18Z
|
MEMBER
| null |
reverts #33534 and closes #33507
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33570/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33570/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33570.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33570",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33570.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33570"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33571
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33571/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33571/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33571/events
|
https://github.com/pandas-dev/pandas/pull/33571
| 600,558,337
|
MDExOlB1bGxSZXF1ZXN0NDAzOTY0OTQ0
| 33,571
|
BUG: Debug grouped quantile with NA values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-04-15T20:10:13Z
| 2020-05-04T12:48:47Z
| 2020-05-04T12:48:43Z
|
MEMBER
| null |
- [x] closes #33569
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33571/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33571/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33571.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33571",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33571.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33571"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33572
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33572/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33572/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33572/events
|
https://github.com/pandas-dev/pandas/pull/33572
| 600,564,153
|
MDExOlB1bGxSZXF1ZXN0NDAzOTY5Nzc2
| 33,572
|
BUG: set_levels set wrong order levels for MutiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32621777?v=4",
"events_url": "https://api.github.com/users/yixinxiao7/events{/privacy}",
"followers_url": "https://api.github.com/users/yixinxiao7/followers",
"following_url": "https://api.github.com/users/yixinxiao7/following{/other_user}",
"gists_url": "https://api.github.com/users/yixinxiao7/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yixinxiao7",
"id": 32621777,
"login": "yixinxiao7",
"node_id": "MDQ6VXNlcjMyNjIxNzc3",
"organizations_url": "https://api.github.com/users/yixinxiao7/orgs",
"received_events_url": "https://api.github.com/users/yixinxiao7/received_events",
"repos_url": "https://api.github.com/users/yixinxiao7/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yixinxiao7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yixinxiao7/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yixinxiao7"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-04-15T20:21:14Z
| 2020-04-17T16:07:47Z
| 2020-04-17T16:07:47Z
|
NONE
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Added parameter that allows user to reset codes
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33572/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33572/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33572.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33572",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33572.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33572"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33573
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33573/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33573/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33573/events
|
https://github.com/pandas-dev/pandas/pull/33573
| 600,596,031
|
MDExOlB1bGxSZXF1ZXN0NDAzOTk2MDI1
| 33,573
|
BUG: DatetimeIndex.insert on empty can preserve freq
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-15T21:21:47Z
| 2020-04-16T20:59:42Z
| 2020-04-16T20:53:03Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33573/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33573/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33573.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33573",
"merged_at": "2020-04-16T20:53:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33573.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33573"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33574
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33574/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33574/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33574/events
|
https://github.com/pandas-dev/pandas/issues/33574
| 600,611,134
|
MDU6SXNzdWU2MDA2MTExMzQ=
| 33,574
|
appropriate converting without '1900-01-01'
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/54816583?v=4",
"events_url": "https://api.github.com/users/BenbrahimMouad/events{/privacy}",
"followers_url": "https://api.github.com/users/BenbrahimMouad/followers",
"following_url": "https://api.github.com/users/BenbrahimMouad/following{/other_user}",
"gists_url": "https://api.github.com/users/BenbrahimMouad/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BenbrahimMouad",
"id": 54816583,
"login": "BenbrahimMouad",
"node_id": "MDQ6VXNlcjU0ODE2NTgz",
"organizations_url": "https://api.github.com/users/BenbrahimMouad/orgs",
"received_events_url": "https://api.github.com/users/BenbrahimMouad/received_events",
"repos_url": "https://api.github.com/users/BenbrahimMouad/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BenbrahimMouad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BenbrahimMouad/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BenbrahimMouad"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-04-15T21:54:34Z
| 2020-08-21T17:06:00Z
| 2020-04-16T05:29:59Z
|
NONE
| null |
hello everybody, i wish that you are in good healthy, so i have one little problem, i wanna to convert one column from my tabular csv (a lot of columns of time HH:MM:SS) so i see that a lot of my columns are object so i wanna to convert them to datetime64 with this method include in pandas library,
`data['DT']=data['DT].apply(pd.to_datetime)`
the problem that he showed me the actual date so i wanna just HH:MM:SS without date and preserving that their type format in datetime.
any kind of help if possible in my case.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33574/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33574/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33575
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33575/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33575/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33575/events
|
https://github.com/pandas-dev/pandas/pull/33575
| 600,622,019
|
MDExOlB1bGxSZXF1ZXN0NDA0MDE3NDY4
| 33,575
|
ENH: Add index to output of assert_series_equal on category and datetime values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18662115?v=4",
"events_url": "https://api.github.com/users/amilbourne/events{/privacy}",
"followers_url": "https://api.github.com/users/amilbourne/followers",
"following_url": "https://api.github.com/users/amilbourne/following{/other_user}",
"gists_url": "https://api.github.com/users/amilbourne/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/amilbourne",
"id": 18662115,
"login": "amilbourne",
"node_id": "MDQ6VXNlcjE4NjYyMTE1",
"organizations_url": "https://api.github.com/users/amilbourne/orgs",
"received_events_url": "https://api.github.com/users/amilbourne/received_events",
"repos_url": "https://api.github.com/users/amilbourne/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/amilbourne/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amilbourne/subscriptions",
"type": "User",
"url": "https://api.github.com/users/amilbourne"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-15T22:19:44Z
| 2020-04-26T20:22:54Z
| 2020-04-26T20:22:51Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is really an extension of #31435, which added index output to the messages produced when series (and DataFrames) are compared. I failed to notice that categorical values and datetime values were evaluated through a different code path and didn't add the index output for these data types. Since the original problem (index reordering) could just as easily happen for these types the functionality should be there as well. Also, it makes the output more consistent.
I added a couple of new tests to surface and check the additional output.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33575/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33575/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33575.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33575",
"merged_at": "2020-04-26T20:22:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33575.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33575"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33576
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33576/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33576/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33576/events
|
https://github.com/pandas-dev/pandas/issues/33576
| 600,643,908
|
MDU6SXNzdWU2MDA2NDM5MDg=
| 33,576
|
BUG:
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1364479?v=4",
"events_url": "https://api.github.com/users/GeyseR/events{/privacy}",
"followers_url": "https://api.github.com/users/GeyseR/followers",
"following_url": "https://api.github.com/users/GeyseR/following{/other_user}",
"gists_url": "https://api.github.com/users/GeyseR/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GeyseR",
"id": 1364479,
"login": "GeyseR",
"node_id": "MDQ6VXNlcjEzNjQ0Nzk=",
"organizations_url": "https://api.github.com/users/GeyseR/orgs",
"received_events_url": "https://api.github.com/users/GeyseR/received_events",
"repos_url": "https://api.github.com/users/GeyseR/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GeyseR/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GeyseR/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GeyseR"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-04-15T23:18:32Z
| 2020-08-21T17:06:01Z
| 2020-04-16T21:13:34Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
df = pd.DataFrame([
{'id': 1},
{'id': 2}
])
df2 = pd.DataFrame([
{'id': 2, 'col1': 'text', 'col2': None}
])
df = pd.merge(df, df2, how='left', on=['id'])
print(df)
# id col1 col2
# 0 1 NaN NaN
# 1 2 text None
df = pd.DataFrame([
{'id': 1},
{'id': 2}
])
df2 = pd.DataFrame([
{'id': 2, 'col2': None}
])
df = pd.merge(df, df2, how='left', on=['id'])
print(df)
# id col2
# 0 1 None
# 1 2 None
```
#### Problem description
Not sure is it a "real " bug or just an expected behavior of pandas. From the code fragment below you can see that with different input pandas fills empty columns with different empty values.
#### Expected Output
```
# id col1 col2
# 0 1 NaN None
# 1 2 text None
```
For the first print statement
#### Output of ``pd.show_versions()``
<details>
import pandas as pd
pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.76-linuxkit
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3
Cython : None
pytest : 5.4.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : 1.2.8
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33576/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33576/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33577
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33577/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33577/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33577/events
|
https://github.com/pandas-dev/pandas/pull/33577
| 600,648,358
|
MDExOlB1bGxSZXF1ZXN0NDA0MDM5MDI0
| 33,577
|
TST: Added test case for DataFrame.at
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/29585319?v=4",
"events_url": "https://api.github.com/users/EdAbati/events{/privacy}",
"followers_url": "https://api.github.com/users/EdAbati/followers",
"following_url": "https://api.github.com/users/EdAbati/following{/other_user}",
"gists_url": "https://api.github.com/users/EdAbati/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/EdAbati",
"id": 29585319,
"login": "EdAbati",
"node_id": "MDQ6VXNlcjI5NTg1MzE5",
"organizations_url": "https://api.github.com/users/EdAbati/orgs",
"received_events_url": "https://api.github.com/users/EdAbati/received_events",
"repos_url": "https://api.github.com/users/EdAbati/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/EdAbati/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EdAbati/subscriptions",
"type": "User",
"url": "https://api.github.com/users/EdAbati"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-04-15T23:31:59Z
| 2020-04-21T14:53:36Z
| 2020-04-21T13:25:22Z
|
CONTRIBUTOR
| null |
- [x] closes #33544
- [x] tests added
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33577/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33577/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33577.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33577",
"merged_at": "2020-04-21T13:25:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33577.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33577"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33578
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33578/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33578/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33578/events
|
https://github.com/pandas-dev/pandas/pull/33578
| 600,667,091
|
MDExOlB1bGxSZXF1ZXN0NDA0MDU0MzEz
| 33,578
|
DOC: Added check for standard
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/21048435?v=4",
"events_url": "https://api.github.com/users/willie3838/events{/privacy}",
"followers_url": "https://api.github.com/users/willie3838/followers",
"following_url": "https://api.github.com/users/willie3838/following{/other_user}",
"gists_url": "https://api.github.com/users/willie3838/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/willie3838",
"id": 21048435,
"login": "willie3838",
"node_id": "MDQ6VXNlcjIxMDQ4NDM1",
"organizations_url": "https://api.github.com/users/willie3838/orgs",
"received_events_url": "https://api.github.com/users/willie3838/received_events",
"repos_url": "https://api.github.com/users/willie3838/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/willie3838/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/willie3838/subscriptions",
"type": "User",
"url": "https://api.github.com/users/willie3838"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-04-16T00:32:03Z
| 2020-04-16T15:18:59Z
| 2020-04-16T15:18:59Z
|
CONTRIBUTOR
| null |
- [ ] xref #32316
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is my first time contributing, if I made any errors please tell me! I tried to continue what @joybhallaa was working on. I made a check to see which files are not using the standard documentation.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33578/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33578/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33578.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33578",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33578.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33578"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33579
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33579/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33579/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33579/events
|
https://github.com/pandas-dev/pandas/pull/33579
| 600,734,135
|
MDExOlB1bGxSZXF1ZXN0NDA0MTA2NjUy
| 33,579
|
solve bug #32580
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32339541?v=4",
"events_url": "https://api.github.com/users/echozzy629/events{/privacy}",
"followers_url": "https://api.github.com/users/echozzy629/followers",
"following_url": "https://api.github.com/users/echozzy629/following{/other_user}",
"gists_url": "https://api.github.com/users/echozzy629/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/echozzy629",
"id": 32339541,
"login": "echozzy629",
"node_id": "MDQ6VXNlcjMyMzM5NTQx",
"organizations_url": "https://api.github.com/users/echozzy629/orgs",
"received_events_url": "https://api.github.com/users/echozzy629/received_events",
"repos_url": "https://api.github.com/users/echozzy629/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/echozzy629/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/echozzy629/subscriptions",
"type": "User",
"url": "https://api.github.com/users/echozzy629"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-04-16T04:12:36Z
| 2020-04-16T15:13:16Z
| 2020-04-16T15:13:16Z
|
NONE
| null |
…ns is specified.
- [ ] closes #32580
- [ ] 0 tests added / 0 passed
- [ ] passes `black pandas`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33579/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33579/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33579.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33579",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33579.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33579"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33580
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33580/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33580/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33580/events
|
https://github.com/pandas-dev/pandas/pull/33580
| 600,773,591
|
MDExOlB1bGxSZXF1ZXN0NDA0MTM4Nzgx
| 33,580
|
Update pytables version
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7594913?v=4",
"events_url": "https://api.github.com/users/rbenes/events{/privacy}",
"followers_url": "https://api.github.com/users/rbenes/followers",
"following_url": "https://api.github.com/users/rbenes/following{/other_user}",
"gists_url": "https://api.github.com/users/rbenes/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rbenes",
"id": 7594913,
"login": "rbenes",
"node_id": "MDQ6VXNlcjc1OTQ5MTM=",
"organizations_url": "https://api.github.com/users/rbenes/orgs",
"received_events_url": "https://api.github.com/users/rbenes/received_events",
"repos_url": "https://api.github.com/users/rbenes/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rbenes/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rbenes/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rbenes"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-16T06:10:51Z
| 2020-04-16T19:45:01Z
| 2020-04-16T19:45:00Z
|
CONTRIBUTOR
| null |
Based on https://github.com/pandas-dev/pandas/pull/32700#pullrequestreview-391684059 I update pytables minimal required version to 3.4.3
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33580/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33580/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33580.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33580",
"merged_at": "2020-04-16T19:45:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33580.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33580"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33581
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33581/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33581/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33581/events
|
https://github.com/pandas-dev/pandas/pull/33581
| 600,783,643
|
MDExOlB1bGxSZXF1ZXN0NDA0MTQ2ODgx
| 33,581
|
Issue 30999 fix
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59907271?v=4",
"events_url": "https://api.github.com/users/Dxin-code/events{/privacy}",
"followers_url": "https://api.github.com/users/Dxin-code/followers",
"following_url": "https://api.github.com/users/Dxin-code/following{/other_user}",
"gists_url": "https://api.github.com/users/Dxin-code/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dxin-code",
"id": 59907271,
"login": "Dxin-code",
"node_id": "MDQ6VXNlcjU5OTA3Mjcx",
"organizations_url": "https://api.github.com/users/Dxin-code/orgs",
"received_events_url": "https://api.github.com/users/Dxin-code/received_events",
"repos_url": "https://api.github.com/users/Dxin-code/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dxin-code/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dxin-code/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dxin-code"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-04-16T06:34:05Z
| 2020-05-22T10:39:09Z
| 2020-05-22T10:39:09Z
|
NONE
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33581/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33581/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33581.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33581",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33581.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33581"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33582
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33582/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33582/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33582/events
|
https://github.com/pandas-dev/pandas/pull/33582
| 600,783,759
|
MDExOlB1bGxSZXF1ZXN0NDA0MTQ2OTc3
| 33,582
|
fixup some f-strings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59907271?v=4",
"events_url": "https://api.github.com/users/Dxin-code/events{/privacy}",
"followers_url": "https://api.github.com/users/Dxin-code/followers",
"following_url": "https://api.github.com/users/Dxin-code/following{/other_user}",
"gists_url": "https://api.github.com/users/Dxin-code/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dxin-code",
"id": 59907271,
"login": "Dxin-code",
"node_id": "MDQ6VXNlcjU5OTA3Mjcx",
"organizations_url": "https://api.github.com/users/Dxin-code/orgs",
"received_events_url": "https://api.github.com/users/Dxin-code/received_events",
"repos_url": "https://api.github.com/users/Dxin-code/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dxin-code/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dxin-code/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dxin-code"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-04-16T06:34:21Z
| 2020-04-19T00:12:02Z
| 2020-04-18T19:44:17Z
|
NONE
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref #29547
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33582/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33582/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33582.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33582",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33582.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33582"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33583
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33583/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33583/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33583/events
|
https://github.com/pandas-dev/pandas/pull/33583
| 600,783,836
|
MDExOlB1bGxSZXF1ZXN0NDA0MTQ3MDQy
| 33,583
|
Issue 33428 fix
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59907271?v=4",
"events_url": "https://api.github.com/users/Dxin-code/events{/privacy}",
"followers_url": "https://api.github.com/users/Dxin-code/followers",
"following_url": "https://api.github.com/users/Dxin-code/following{/other_user}",
"gists_url": "https://api.github.com/users/Dxin-code/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dxin-code",
"id": 59907271,
"login": "Dxin-code",
"node_id": "MDQ6VXNlcjU5OTA3Mjcx",
"organizations_url": "https://api.github.com/users/Dxin-code/orgs",
"received_events_url": "https://api.github.com/users/Dxin-code/received_events",
"repos_url": "https://api.github.com/users/Dxin-code/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dxin-code/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dxin-code/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dxin-code"
}
|
[] |
closed
| false
| null |
[] | null | 4
| 2020-04-16T06:34:31Z
| 2020-04-22T04:17:57Z
| 2020-04-22T04:00:45Z
|
NONE
| null |
- [ ] closes #33428
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33583/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33583/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33583.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33583",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33583.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33583"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33584
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33584/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33584/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33584/events
|
https://github.com/pandas-dev/pandas/pull/33584
| 600,784,054
|
MDExOlB1bGxSZXF1ZXN0NDA0MTQ3MjIy
| 33,584
|
TST: add message check to pytest.raises (tests/arrays/boolean/test_arithmetic.py)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59907271?v=4",
"events_url": "https://api.github.com/users/Dxin-code/events{/privacy}",
"followers_url": "https://api.github.com/users/Dxin-code/followers",
"following_url": "https://api.github.com/users/Dxin-code/following{/other_user}",
"gists_url": "https://api.github.com/users/Dxin-code/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dxin-code",
"id": 59907271,
"login": "Dxin-code",
"node_id": "MDQ6VXNlcjU5OTA3Mjcx",
"organizations_url": "https://api.github.com/users/Dxin-code/orgs",
"received_events_url": "https://api.github.com/users/Dxin-code/received_events",
"repos_url": "https://api.github.com/users/Dxin-code/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dxin-code/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dxin-code/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dxin-code"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-04-16T06:35:01Z
| 2020-04-16T14:08:59Z
| 2020-04-16T14:08:59Z
|
NONE
| null |
- [ ] xref #30999
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33584/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33584/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33584.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33584",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33584.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33584"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33585
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33585/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33585/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33585/events
|
https://github.com/pandas-dev/pandas/pull/33585
| 600,841,308
|
MDExOlB1bGxSZXF1ZXN0NDA0MTkzNTA3
| 33,585
|
BUG: Raise a TypeError when record_path doesn't point to an array
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/160962?v=4",
"events_url": "https://api.github.com/users/LTe/events{/privacy}",
"followers_url": "https://api.github.com/users/LTe/followers",
"following_url": "https://api.github.com/users/LTe/following{/other_user}",
"gists_url": "https://api.github.com/users/LTe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LTe",
"id": 160962,
"login": "LTe",
"node_id": "MDQ6VXNlcjE2MDk2Mg==",
"organizations_url": "https://api.github.com/users/LTe/orgs",
"received_events_url": "https://api.github.com/users/LTe/received_events",
"repos_url": "https://api.github.com/users/LTe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LTe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LTe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LTe"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-16T08:19:35Z
| 2020-04-17T05:04:34Z
| 2020-04-16T23:38:21Z
|
CONTRIBUTOR
| null |
When `record_path` points to something that is Iterable but is not
a sequence in JSON world we will receive odd results.
```
>>> json_normalize([{'key': 'value'}], record_path='key')
0
0 v
1 a
2 l
3 u
4 e
```
Based on RFC 8259 (https://tools.ietf.org/html/rfc8259) a JSON value MUST be
object, array, number, or string, false, null, true. But only two of them
should be treated as Iterable.
```
An object is an unordered *collection* of zero or more name/value
pairs, where a name is a string and a value is a string, number,
boolean, null, object, or array.
An array is an ordered *sequence* of zero or more values.
--
https://tools.ietf.org/html/rfc8259#page-3
```
Based on that `[{'key': 'value'}]` and `{'key': 'value'}` should not be
treated in the same way. In `json_normalize` documentation `record_path`
is described as `Path in each object to list of records`.
So when we want to translate JSON to Python like an object we need to take
into consideration a list (sequence). Based on that `record_path` should
point out to `list`, not `Iterable`.
In specs I added all possibile values that are allowed in JSON and
should not be treated as a collection. There is a special case for null
value that is already implemented.
| type | value | Iterable | Should be treated as list |
|--------|---------|----------|---------------------------|
| object | {} | Yes | No (unordered list) |
| array | [] | Yes | Yes |
| number | 1 | No | No |
| string | "value" | Yes | No |
| false | False | No | No |
| null | Null | No | No (Check #30148) |
| true | True | No | No |
- [x] closes #26284
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33585/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33585/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33585.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33585",
"merged_at": "2020-04-16T23:38:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33585.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33585"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33586
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33586/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33586/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33586/events
|
https://github.com/pandas-dev/pandas/issues/33586
| 600,891,257
|
MDU6SXNzdWU2MDA4OTEyNTc=
| 33,586
|
API: Specify the dtype of new columns added in reindex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1082217?v=4",
"events_url": "https://api.github.com/users/burk/events{/privacy}",
"followers_url": "https://api.github.com/users/burk/followers",
"following_url": "https://api.github.com/users/burk/following{/other_user}",
"gists_url": "https://api.github.com/users/burk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/burk",
"id": 1082217,
"login": "burk",
"node_id": "MDQ6VXNlcjEwODIyMTc=",
"organizations_url": "https://api.github.com/users/burk/orgs",
"received_events_url": "https://api.github.com/users/burk/received_events",
"repos_url": "https://api.github.com/users/burk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/burk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/burk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/burk"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-04-16T09:33:23Z
| 2020-05-04T15:56:10Z
| 2020-05-04T15:56:10Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```
df = pd.DataFrame({'x': [np.nan, 1., 2.]}).astype(pd.SparseDtype("float", np.nan))
df = df.reindex(['x', 'y'], axis='columns')
df.info()
```
```
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 3 entries, 0 to 2
Data columns (total 2 columns):
x -4 non-null Sparse[float64, nan]
y -6 non-null float64
dtypes: Sparse[float64, nan](1), float64(1)
memory usage: 176.0 bytes
```
#### Problem description
When re-indexing the columns of a sparse dataframe, new columns are not sparse. This is problematic especially since the new columns would be completely sparse.
#### Expected Output
I'd expect that the new column was also of type `Sparse[float64, 0.0]`.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-45-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.0
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 19.3.1
setuptools : 42.0.2
Cython : 0.29.15
pytest : 5.3.5
hypothesis : None
sphinx : 2.4.1
blosc : None
feather : 0.4.0
xlsxwriter : None
lxml.etree : 4.4.2
html5lib : None
pymysql : 0.9.3
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : 0.16.0
pytables : None
s3fs : None
scipy : 1.3.2
sqlalchemy : 1.3.13
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33586/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33586/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33587
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33587/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33587/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33587/events
|
https://github.com/pandas-dev/pandas/issues/33587
| 600,917,119
|
MDU6SXNzdWU2MDA5MTcxMTk=
| 33,587
|
QST: pd.pivot_table() generates wrong sums
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32362072?v=4",
"events_url": "https://api.github.com/users/zybex86/events{/privacy}",
"followers_url": "https://api.github.com/users/zybex86/followers",
"following_url": "https://api.github.com/users/zybex86/following{/other_user}",
"gists_url": "https://api.github.com/users/zybex86/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zybex86",
"id": 32362072,
"login": "zybex86",
"node_id": "MDQ6VXNlcjMyMzYyMDcy",
"organizations_url": "https://api.github.com/users/zybex86/orgs",
"received_events_url": "https://api.github.com/users/zybex86/received_events",
"repos_url": "https://api.github.com/users/zybex86/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zybex86/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zybex86/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zybex86"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-04-16T10:11:07Z
| 2020-08-21T17:06:01Z
| 2020-05-07T13:34:35Z
|
NONE
| null |
- [ X ] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.
- [ X ] I have asked my usage related question on [StackOverflow](https://stackoverflow.com).
---
#### Question about pandas
I have stumbled upon a strange phenomenon...
The same question asked on [StackOverflow](https://stackoverflow.com/questions/60883087/pandas-pivot-table-generates-wrong-sums)
I have a working code to generate pivoted tables from data uploaded from excels. I have stumbled on a strange case where after applying pivot_table to the data, I get different summed values than before pivot...
I generate data from xlsx and xls files, do some stuff with it and then want to generate a pivoted table. Before the pivot I do df.VAL1.sum() and df.VAL2.sum() and the values are the same ones as the ones summed in excels using =sum(), but after I run my pd.pivot_table() code I get a different result when I do pivot.sum()
The data has the following columns:
```
COL1 COL2 COL3 time_period VAL1 VAL2 UNIT_VAL1 COL4 COL5 COL6 UNIT_VAL2 COL7 COL8 COL9
```
where time_period is a string - YYYY-MM
and here is the pivot_table attributes:
```python
pivot = pd.pivot_table(
df[[
'COL1', 'COL2', 'COL3', 'COL9', 'time_period',
'VAL1','COL8', 'COL4', 'COL5', 'COL6', 'COL7', 'UNIT_VAL1'
]],
values='VAL1',
columns='time_period',
index=[
'COL7', 'COL8', 'COL3', 'COL1',
'COL5', 'COL2', 'COL9',
'COL4', 'COL6', 'UNIT_VAL1'
],
aggfunc=np.sum
)
```
Can the string `time_period` be the problem here or the order of the passed column names? Or maybe I am doing something wrong here? I want to note that this happens only with 2 dataframes, as other dataframes work well.
I did observe that this pivot code produces different sums after 4 decimal spaces, but that shouldn't change the sums IMHO... Maybe I should use `df.picot_table` instead of `pd.pivot_table` ? The problem is I need two tables from the data frame - one in KG and one in local CUR...
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33587/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33587/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33588
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33588/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33588/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33588/events
|
https://github.com/pandas-dev/pandas/pull/33588
| 600,951,842
|
MDExOlB1bGxSZXF1ZXN0NDA0Mjg0MTAy
| 33,588
|
TST: added test for GH28597
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/893512?v=4",
"events_url": "https://api.github.com/users/mojones/events{/privacy}",
"followers_url": "https://api.github.com/users/mojones/followers",
"following_url": "https://api.github.com/users/mojones/following{/other_user}",
"gists_url": "https://api.github.com/users/mojones/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mojones",
"id": 893512,
"login": "mojones",
"node_id": "MDQ6VXNlcjg5MzUxMg==",
"organizations_url": "https://api.github.com/users/mojones/orgs",
"received_events_url": "https://api.github.com/users/mojones/received_events",
"repos_url": "https://api.github.com/users/mojones/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mojones/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mojones/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mojones"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-16T11:05:18Z
| 2020-04-17T22:09:13Z
| 2020-04-17T22:08:52Z
|
CONTRIBUTOR
| null |
Added test to ensure that categories stay ordered when grouping
with missing values.
- [ ] closes #28597
- [X] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33588/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33588/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33588.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33588",
"merged_at": "2020-04-17T22:08:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33588.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33588"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33589
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33589/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33589/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33589/events
|
https://github.com/pandas-dev/pandas/issues/33589
| 600,966,586
|
MDU6SXNzdWU2MDA5NjY1ODY=
| 33,589
|
BUG: KeyError on slicing with datetime, when datetime contains microseconds
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45793125?v=4",
"events_url": "https://api.github.com/users/PaulVoigt/events{/privacy}",
"followers_url": "https://api.github.com/users/PaulVoigt/followers",
"following_url": "https://api.github.com/users/PaulVoigt/following{/other_user}",
"gists_url": "https://api.github.com/users/PaulVoigt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/PaulVoigt",
"id": 45793125,
"login": "PaulVoigt",
"node_id": "MDQ6VXNlcjQ1NzkzMTI1",
"organizations_url": "https://api.github.com/users/PaulVoigt/orgs",
"received_events_url": "https://api.github.com/users/PaulVoigt/received_events",
"repos_url": "https://api.github.com/users/PaulVoigt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/PaulVoigt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PaulVoigt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/PaulVoigt"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 0
| 2020-04-16T11:26:41Z
| 2021-01-25T16:33:13Z
| 2021-01-25T16:33:13Z
|
NONE
| null |
#### Problem description
Slicing a DataFrame with a datetime index by datetime results in a KeyError when the string contains microseconds.
`df['2017-10-25T16:25:04.252':'2017-10-25T16:50:05.237']`
```
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
<ipython-input-20-482a9c5e8c58> in <module>
----> 1 df['2017-10-25T16:25:04.252':'2017-10-25T16:50:05.237']
/opt/conda/lib/python3.7/site-packages/pandas/core/frame.py in __getitem__(self, key)
2777
2778 # Do we have a slicer (on rows)?
-> 2779 indexer = convert_to_index_sliceable(self, key)
2780 if indexer is not None:
2781 # either we have a slice or we have a string that can be converted
/opt/conda/lib/python3.7/site-packages/pandas/core/indexing.py in convert_to_index_sliceable(obj, key)
2265 idx = obj.index
2266 if isinstance(key, slice):
-> 2267 return idx._convert_slice_indexer(key, kind="getitem")
2268
2269 elif isinstance(key, str):
/opt/conda/lib/python3.7/site-packages/pandas/core/indexes/base.py in _convert_slice_indexer(self, key, kind)
2960 indexer = key
2961 else:
-> 2962 indexer = self.slice_indexer(start, stop, step, kind=kind)
2963
2964 return indexer
/opt/conda/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py in slice_indexer(self, start, end, step, kind)
823 mask = True
824 if start is not None:
--> 825 start_casted = self._maybe_cast_slice_bound(start, "left", kind)
826 mask = start_casted <= self
827
/opt/conda/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py in _maybe_cast_slice_bound(self, label, side, kind)
761 freq = getattr(self, "freqstr", getattr(self, "inferred_freq", None))
762 _, parsed, reso = parsing.parse_time_string(label, freq)
--> 763 lower, upper = self._parsed_string_to_bounds(reso, parsed)
764 # lower, upper form the half-open interval:
765 # [parsed, parsed + 1 freq)
/opt/conda/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py in _parsed_string_to_bounds(self, reso, parsed)
517 }
518 if reso not in valid_resos:
--> 519 raise KeyError
520 if reso == "year":
521 start = Timestamp(parsed.year, 1, 1)
KeyError:
```
I think that the function .parse_time_string in pandas._libs.tslibs.parsing.pyx is not supporting microseconds and returns `None`
#### Output of ``pd.show_versions()``
pandas : 1.0.3
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33589/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33589/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33590
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33590/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33590/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33590/events
|
https://github.com/pandas-dev/pandas/issues/33590
| 601,052,736
|
MDU6SXNzdWU2MDEwNTI3MzY=
| 33,590
|
BUG: replace in Series not working when pd.NA is present
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14983438?v=4",
"events_url": "https://api.github.com/users/BayerSe/events{/privacy}",
"followers_url": "https://api.github.com/users/BayerSe/followers",
"following_url": "https://api.github.com/users/BayerSe/following{/other_user}",
"gists_url": "https://api.github.com/users/BayerSe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BayerSe",
"id": 14983438,
"login": "BayerSe",
"node_id": "MDQ6VXNlcjE0OTgzNDM4",
"organizations_url": "https://api.github.com/users/BayerSe/orgs",
"received_events_url": "https://api.github.com/users/BayerSe/received_events",
"repos_url": "https://api.github.com/users/BayerSe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BayerSe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BayerSe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BayerSe"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] |
closed
| false
| null |
[] | null | 0
| 2020-04-16T13:26:35Z
| 2020-08-21T17:06:02Z
| 2020-04-17T04:39:36Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
# works
pd.Series(['A', None]).replace({'A': 0})
# raises TypeError: Cannot compare types 'ndarray(dtype=object)' and 'str'
pd.Series(['A', pd.NA]).replace({'A': 0})
```
#### Problem description
The `replace` method does not work when `pd.NA` instead of `None` is contained in the series.
#### Expected Output
Both statements should replace 'A' with 0 without touching the missing number.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-96-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.0.0
Cython : None
pytest : 5.4.1
hypothesis : None
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.16
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33590/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33590/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33591
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33591/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33591/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33591/events
|
https://github.com/pandas-dev/pandas/issues/33591
| 601,137,835
|
MDU6SXNzdWU2MDExMzc4MzU=
| 33,591
|
BUG: groupby first()/last() change datatype of all NaN columns to float; nth() preserves datatype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/945645?v=4",
"events_url": "https://api.github.com/users/jdmarino/events{/privacy}",
"followers_url": "https://api.github.com/users/jdmarino/followers",
"following_url": "https://api.github.com/users/jdmarino/following{/other_user}",
"gists_url": "https://api.github.com/users/jdmarino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jdmarino",
"id": 945645,
"login": "jdmarino",
"node_id": "MDQ6VXNlcjk0NTY0NQ==",
"organizations_url": "https://api.github.com/users/jdmarino/orgs",
"received_events_url": "https://api.github.com/users/jdmarino/received_events",
"repos_url": "https://api.github.com/users/jdmarino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jdmarino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jdmarino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jdmarino"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-04-16T15:01:32Z
| 2020-06-17T18:54:45Z
| 2020-06-17T18:54:37Z
|
NONE
| null |
- [x ] I have checked that this issue has not already been reported.
- [x ] I have confirmed this bug exists on the latest version of pandas.
Version 1.0.3 from the conda distro.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
print('pandas version is', pd.__version__, '\n')
df = pd.DataFrame({'id':['a','b','b','c'], 'sym':['ibm','msft','msft','goog'], 'idx':range(4), 'sectype':['E','E','E','E']})
df['osi'] = df.sym.where(df.sectype=='O') # add a column of NaNs that are object/str
print(df)
print(df.info())
# .nth(-1) does the right thing
x = df.groupby('id').nth(-1)
print('\nnth(-1)')
print(x.info())
# .last() converts the osi col to floats
x = df.groupby('id').last()
print('\nlast()')
print(x.info())
# .nth(0) does the right thing
x = df.groupby('id').nth(-1)
print('\nnth(0)')
print(x.info())
# .first() converts the osi col to floats
x = df.groupby('id').first()
print('\nfirst()')
print(x.info())
```
#### Problem description
Given a dataframe with an all-NaN column of str/objects, performing a groupby().first() will convert the all-NaN column to float. This is true for .last() as well, but not for .nth(0) and .nth(-1), so these are workarounds.
This is a problem for me as the groupby().first() is in general code that is iteratively called and the results either pd.concat'd (resulting in a column with mixed types) or appended to an hdf file (causing failure on the write).
#### Expected Output
The resulting dataframe from a groupby().first()/.last() should have the same metadata (column structure and datatypes) as the input dataframe. The result of .first()/.last() should match that of .nth(0)/.nth(-1) .
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : 0.29.15
pytest : 5.4.1
hypothesis : 5.8.3
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.2
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.15
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.8
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33591/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33591/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33592
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33592/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33592/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33592/events
|
https://github.com/pandas-dev/pandas/pull/33592
| 601,180,292
|
MDExOlB1bGxSZXF1ZXN0NDA0NDc4MTUw
| 33,592
|
Added a check for standard documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/21048435?v=4",
"events_url": "https://api.github.com/users/willie3838/events{/privacy}",
"followers_url": "https://api.github.com/users/willie3838/followers",
"following_url": "https://api.github.com/users/willie3838/following{/other_user}",
"gists_url": "https://api.github.com/users/willie3838/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/willie3838",
"id": 21048435,
"login": "willie3838",
"node_id": "MDQ6VXNlcjIxMDQ4NDM1",
"organizations_url": "https://api.github.com/users/willie3838/orgs",
"received_events_url": "https://api.github.com/users/willie3838/received_events",
"repos_url": "https://api.github.com/users/willie3838/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/willie3838/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/willie3838/subscriptions",
"type": "User",
"url": "https://api.github.com/users/willie3838"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 4
| 2020-04-16T15:41:44Z
| 2020-07-17T11:16:19Z
| 2020-07-17T11:16:19Z
|
CONTRIBUTOR
| null |
- [ ] closes #33213
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I created a check to see which files contain Pandas or *pandas* which will be of use for individuals aiming to resolve issue #32316. When the codecheck script is run, it will output the files that contain those strings.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33592/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33592/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33592.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33592",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33592.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33592"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33593
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33593/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33593/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33593/events
|
https://github.com/pandas-dev/pandas/issues/33593
| 601,209,402
|
MDU6SXNzdWU2MDEyMDk0MDI=
| 33,593
|
BUG: TypeError: _reconstruct: First argument must be a sub-type of ndarray
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4865998?v=4",
"events_url": "https://api.github.com/users/JamesAllingham/events{/privacy}",
"followers_url": "https://api.github.com/users/JamesAllingham/followers",
"following_url": "https://api.github.com/users/JamesAllingham/following{/other_user}",
"gists_url": "https://api.github.com/users/JamesAllingham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JamesAllingham",
"id": 4865998,
"login": "JamesAllingham",
"node_id": "MDQ6VXNlcjQ4NjU5OTg=",
"organizations_url": "https://api.github.com/users/JamesAllingham/orgs",
"received_events_url": "https://api.github.com/users/JamesAllingham/received_events",
"repos_url": "https://api.github.com/users/JamesAllingham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JamesAllingham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JamesAllingham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JamesAllingham"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
},
{
"color": "6c1cdb",
"default": false,
"description": "read_pickle, to_pickle",
"id": 1625435109,
"name": "IO Pickle",
"node_id": "MDU6TGFiZWwxNjI1NDM1MTA5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle"
}
] |
closed
| false
| null |
[] | null | 10
| 2020-04-16T16:07:27Z
| 2020-11-20T06:40:03Z
| 2020-04-17T12:54:18Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample
```python
import pandas as pd
pd.read_pickle("filtered_data.pickle")
```
#### Problem description
I am able to import the dataframe (which can be downloaded in zipped form from [here](https://javierantoran.github.io/assets/datasets/filtered_flight_data.pickle.zip)) with Pandas version 0.24.2 but get the following error with version 1.0.3:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/homes/jua23/.virtualenvs/arch_uncert/lib/python3.7/site-packages/pandas/io/pickle.py", line 182, in read_pickle
return pickle.load(f)
TypeError: _reconstruct: First argument must be a sub-type of ndarray
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-42-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.0.0
Cython : 0.29.15
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33593/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33593/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33594
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33594/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33594/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33594/events
|
https://github.com/pandas-dev/pandas/issues/33594
| 601,296,626
|
MDU6SXNzdWU2MDEyOTY2MjY=
| 33,594
|
BUG: pandas 1.0 dropna error with categorical data if pd.options.mode.use_inf_as_na = True
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10136503?v=4",
"events_url": "https://api.github.com/users/thebucc/events{/privacy}",
"followers_url": "https://api.github.com/users/thebucc/followers",
"following_url": "https://api.github.com/users/thebucc/following{/other_user}",
"gists_url": "https://api.github.com/users/thebucc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thebucc",
"id": 10136503,
"login": "thebucc",
"node_id": "MDQ6VXNlcjEwMTM2NTAz",
"organizations_url": "https://api.github.com/users/thebucc/orgs",
"received_events_url": "https://api.github.com/users/thebucc/received_events",
"repos_url": "https://api.github.com/users/thebucc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thebucc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thebucc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thebucc"
}
|
[
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 3
| 2020-04-16T18:06:38Z
| 2020-05-26T09:34:35Z
| 2020-04-27T21:07:23Z
|
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import numpy as np
from pandas.api.types import CategoricalDtype
# with categorical column and use_inf_as_na = True -> ERROR
pd.options.mode.use_inf_as_na = True
df1 = pd.DataFrame([['a1', 'good'], ['b1', 'good'], ['c1', 'good'], ['d1', 'bad']], columns=['C1', 'C2'])
df2 = pd.DataFrame([['a1', 'good'], ['b1', np.inf], ['c1', np.NaN], ['d1', 'bad']], columns=['C1', 'C2'])
categories = CategoricalDtype(categories=['good', 'bad'], ordered=True)
df1.loc[:, 'C2'] = df1['C2'].astype(categories)
df2.loc[:, 'C2'] = df2['C2'].astype(categories)
df1.dropna(axis=0) # ERROR
df2.dropna(axis=0) # ERROR
```
#### Problem description
With the latest version of pandas (1.0.3, installed via pip on python 3.6.8), DataFrame.dropna returns an error if a column is of type **CategoricalDtype** AND **pd.options.mode.use_inf_as_na = True**.
Exception with traceback:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sbucc/miniconda3/envs/tf114/lib/python3.6/site-packages/pandas/core/frame.py", line 4751, in dropna
count = agg_obj.count(axis=agg_axis)
File "/home/sbucc/miniconda3/envs/tf114/lib/python3.6/site-packages/pandas/core/frame.py", line 7800, in count
result = notna(frame).sum(axis=axis)
File "/home/sbucc/miniconda3/envs/tf114/lib/python3.6/site-packages/pandas/core/dtypes/missing.py", line 376, in notna
res = isna(obj)
File "/home/sbucc/miniconda3/envs/tf114/lib/python3.6/site-packages/pandas/core/dtypes/missing.py", line 126, in isna
return _isna(obj)
File "/home/sbucc/miniconda3/envs/tf114/lib/python3.6/site-packages/pandas/core/dtypes/missing.py", line 185, in _isna_old
return obj._constructor(obj._data.isna(func=_isna_old))
File "/home/sbucc/miniconda3/envs/tf114/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 555, in isna
return self.apply("apply", func=func)
File "/home/sbucc/miniconda3/envs/tf114/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 442, in apply
applied = getattr(b, f)(**kwargs)
File "/home/sbucc/miniconda3/envs/tf114/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 390, in apply
result = func(self.values, **kwargs)
File "/home/sbucc/miniconda3/envs/tf114/lib/python3.6/site-packages/pandas/core/dtypes/missing.py", line 183, in _isna_old
return _isna_ndarraylike_old(obj)
File "/home/sbucc/miniconda3/envs/tf114/lib/python3.6/site-packages/pandas/core/dtypes/missing.py", line 283, in _isna_ndarraylike_old
vec = libmissing.isnaobj_old(values.ravel())
TypeError: Argument 'arr' has incorrect type (expected numpy.ndarray, got Categorical)
This doesn't happen with pandas 0.24.0 or if pd.options.mode.use_inf_as_na = False (default).
#### Expected Output
no error
#### Output of ``pd.show_versions()``
<details>
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.8.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-96-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33594/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33594/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33595
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33595/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33595/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33595/events
|
https://github.com/pandas-dev/pandas/pull/33595
| 601,410,335
|
MDExOlB1bGxSZXF1ZXN0NDA0Njc1NjEy
| 33,595
|
DEPR: Deprecate week, weekofyear in Series.dt,DatetimeIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/124705?v=4",
"events_url": "https://api.github.com/users/mgmarino/events{/privacy}",
"followers_url": "https://api.github.com/users/mgmarino/followers",
"following_url": "https://api.github.com/users/mgmarino/following{/other_user}",
"gists_url": "https://api.github.com/users/mgmarino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mgmarino",
"id": 124705,
"login": "mgmarino",
"node_id": "MDQ6VXNlcjEyNDcwNQ==",
"organizations_url": "https://api.github.com/users/mgmarino/orgs",
"received_events_url": "https://api.github.com/users/mgmarino/received_events",
"repos_url": "https://api.github.com/users/mgmarino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mgmarino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mgmarino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mgmarino"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 13
| 2020-04-16T20:02:13Z
| 2020-05-26T06:36:11Z
| 2020-05-26T03:22:04Z
|
CONTRIBUTOR
| null |
Closes https://github.com/pandas-dev/pandas/issues/33503
This PR is a followup to #33220 and implements what was discussed there.
A few comments:
- `DatetimeIndex.isocalendar` does not set the index on the returned dataframe,
leading to some cumbersome syntax. This may be worth changing, please let me
know what you think.
- Should we also deprecate `Timestamp.week/weekofyear`?
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33595/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33595/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33595.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33595",
"merged_at": "2020-05-26T03:22:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33595.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33595"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33596
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33596/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33596/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33596/events
|
https://github.com/pandas-dev/pandas/pull/33596
| 601,424,613
|
MDExOlB1bGxSZXF1ZXN0NDA0Njg4Mzky
| 33,596
|
Update _core.py with missing parameters
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/44034221?v=4",
"events_url": "https://api.github.com/users/loudlemon/events{/privacy}",
"followers_url": "https://api.github.com/users/loudlemon/followers",
"following_url": "https://api.github.com/users/loudlemon/following{/other_user}",
"gists_url": "https://api.github.com/users/loudlemon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/loudlemon",
"id": 44034221,
"login": "loudlemon",
"node_id": "MDQ6VXNlcjQ0MDM0MjIx",
"organizations_url": "https://api.github.com/users/loudlemon/orgs",
"received_events_url": "https://api.github.com/users/loudlemon/received_events",
"repos_url": "https://api.github.com/users/loudlemon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/loudlemon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/loudlemon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/loudlemon"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-04-16T20:15:12Z
| 2020-05-07T11:19:22Z
| 2020-05-06T21:22:15Z
|
CONTRIBUTOR
| null |
added missing parameters:
- ax
- subplots
- sharex
- sharey
- secondary_y
- sort_columns
- stacked
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33596/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33596/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33596.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33596",
"merged_at": "2020-05-06T21:22:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33596.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33596"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33597
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33597/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33597/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33597/events
|
https://github.com/pandas-dev/pandas/pull/33597
| 601,444,251
|
MDExOlB1bGxSZXF1ZXN0NDA0NzA1NjA1
| 33,597
|
PERF: always slice when indexing on columns
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "70e5ca",
"default": false,
"description": "",
"id": 2085877452,
"name": "Copy / view semantics",
"node_id": "MDU6TGFiZWwyMDg1ODc3NDUy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Copy%20/%20view%20semantics"
}
] |
open
| false
| null |
[] | null | 7
| 2020-04-16T20:35:08Z
| 2021-08-26T19:21:03Z
| null |
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Touched on in #32779, this makes all\* DataFrame indexing-on-columns do slicing instead of taking, so doesn't make copies.
\* Actually there is a different path in `_slice_take_blocks_ax0` that we go down if we `self._is_single_block`, can update that later if we decide this is something we want to do.
```
In [3]: dti = pd.date_range("2016-01-01", periods=10**5, freq="S")
In [4]: df = pd.DataFrame._from_arrays([dti]*10 + [dti - dti] * 10 + [dti.to_period("D")]*10, columns=range(30), index=range(len(dti)))
In [8]: arr = np.arange(30)
In [9]: np.random.shuffle(arr)
In [10]: %timeit df[arr]
8.35 ms ± 64.1 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <-- master
650 µs ± 52.5 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- PR
```
The tradeoff is that we end up with less-consolidated results. I'm OK with that, but there may be downsides I'm not aware of, will wait for others to weigh in.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33597/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33597/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33597.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33597",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33597.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33597"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33598
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33598/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33598/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33598/events
|
https://github.com/pandas-dev/pandas/pull/33598
| 601,465,606
|
MDExOlB1bGxSZXF1ZXN0NDA0NzI0MjY1
| 33,598
|
CLN: trim unreachable branches in _compare_or_regex_search
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-16T20:57:40Z
| 2020-04-17T02:58:54Z
| 2020-04-17T02:36:03Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33598/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33598/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33598.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33598",
"merged_at": "2020-04-17T02:36:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33598.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33598"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33599
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33599/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33599/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33599/events
|
https://github.com/pandas-dev/pandas/pull/33599
| 601,469,493
|
MDExOlB1bGxSZXF1ZXN0NDA0NzI3NTkw
| 33,599
|
CLN: remove BlockManager._get_counts, get_dtype_counts
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-16T21:01:28Z
| 2020-04-17T03:00:30Z
| 2020-04-17T02:34:54Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33599/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33599/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33599.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33599",
"merged_at": "2020-04-17T02:34:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33599.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33599"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33600
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33600/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33600/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33600/events
|
https://github.com/pandas-dev/pandas/pull/33600
| 601,623,698
|
MDExOlB1bGxSZXF1ZXN0NDA0ODYxNTYw
| 33,600
|
PERF: op(frame, series) when series is not EA
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 6
| 2020-04-17T00:39:34Z
| 2020-04-25T21:46:55Z
| 2020-04-25T21:40:30Z
|
MEMBER
| null |
We have the same optimization in place for the flex ops.
ipython results for the asv this adds:
```
In [3]: arr = np.arange(10 ** 6).reshape(100, -1)
In [4]: df = pd.DataFrame(arr)
In [5]: df["C"] = 1.0
In [6]: row = df.iloc[0]
In [11]: %timeit df + row
1.92 s ± 71.1 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <-- master
1 ms ± 19.2 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- PR
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33600/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33600/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33600.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33600",
"merged_at": "2020-04-25T21:40:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33600.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33600"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33601
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33601/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33601/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33601/events
|
https://github.com/pandas-dev/pandas/issues/33601
| 601,628,656
|
MDU6SXNzdWU2MDE2Mjg2NTY=
| 33,601
|
ENH: add pandas.core.groupby.DataFrameGroupBy.nlargest / nsmallest
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33685575?v=4",
"events_url": "https://api.github.com/users/h-vetinari/events{/privacy}",
"followers_url": "https://api.github.com/users/h-vetinari/followers",
"following_url": "https://api.github.com/users/h-vetinari/following{/other_user}",
"gists_url": "https://api.github.com/users/h-vetinari/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/h-vetinari",
"id": 33685575,
"login": "h-vetinari",
"node_id": "MDQ6VXNlcjMzNjg1NTc1",
"organizations_url": "https://api.github.com/users/h-vetinari/orgs",
"received_events_url": "https://api.github.com/users/h-vetinari/received_events",
"repos_url": "https://api.github.com/users/h-vetinari/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/h-vetinari/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/h-vetinari/subscriptions",
"type": "User",
"url": "https://api.github.com/users/h-vetinari"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-04-17T00:56:04Z
| 2021-07-31T04:24:02Z
| 2021-07-31T04:24:02Z
|
CONTRIBUTOR
| null |
#### Is your feature request related to a problem?
It's common to want to select nlargest/nsmallest within a groupby based on whichever column is supposed to determine the sort order. However, the DataFrameGroupBy API has no such function, and it's very cumbersome to first select the largest records of a Series and then somehow reduce the dataframe based on that (and it's essentially impossible in the case when there's no unique index per record).
Another consideration is speed: for Series, the [docs](https://pandas.pydata.org/docs/reference/api/pandas.core.groupby.SeriesGroupBy.nlargest.html) note:
> **Notes**
> Faster than `.sort_values(ascending=False).head(n)` for small n relative to the size of the Series object.
Hopefully this can be leveraged for DataFrames as well.
#### Describe the solution you'd like
Docstring for `nlargest`, `nsmallest` adapted correspondingly
```python
def nlargest(self, sort_by, n=5, keep="first") -> "DataFrame":
"""
Return the `n` first rows when sorting after `sort_by` in descending order
Parameters
----------
sort_by: list
Column(s) of the DataFrame describing the precedence according to which
the DataFrame shall be sorted. Equivalent to `DataFrame.sort_values(sort_by)`
n : int, default 5
Return this many descending sorted values.
keep : {'first', 'last', 'all'}, default 'first'
When the sorting results in a tie extending beyond the `n`-th record:
- ``first`` : return the first `n` occurrences in order
of appearance.
- ``last`` : return the last `n` occurrences in reverse
order of appearance.
- ``all`` : keep all occurrences. This can result in a Series of
size larger than `n`.
Returns
-------
DataFrame
The first `n` records of the DataFrame, sorted in decreasing order
according to `sort_by`
See Also
--------
DataFrame.nsmallest: Get the `n` smallest elements.
DataFrame.sort_values: Sort Series by values.
DataFrame.head: Return the first `n` rows.
Notes
-----
Faster than ``.sort_values(ascending=False).head(n)`` for small `n`
relative to the size of the ``DataFrame`` object.
[...]
""""
```
#### API breaking implications
No breaking changes, function doesn't exist yet.
Initially, this could directly wrap ``.sort_values(sort_by, ascending=False).head(n)``, but hopefully similar speed ups can be gained as in the Series case.
#### Alternatives
One could allow an argument `ascending` if the columns should be allowed to toggle this per column (same as for `DataFrame.sort_values`). In this case, it might be better to call the methods `nfirst` / `nlast`.
Alternatively, one could just implement a minimal version where `nlargest`/`nsmallest` is only determined based on one column (and not several). In this case, a kwarg `dropna=True` should be added too (like for Series, cf. #28984).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33601/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33601/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33602
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33602/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33602/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33602/events
|
https://github.com/pandas-dev/pandas/pull/33602
| 601,629,849
|
MDExOlB1bGxSZXF1ZXN0NDA0ODY2MjE1
| 33,602
|
.format changed to f string
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/57118066?v=4",
"events_url": "https://api.github.com/users/csaoma/events{/privacy}",
"followers_url": "https://api.github.com/users/csaoma/followers",
"following_url": "https://api.github.com/users/csaoma/following{/other_user}",
"gists_url": "https://api.github.com/users/csaoma/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/csaoma",
"id": 57118066,
"login": "csaoma",
"node_id": "MDQ6VXNlcjU3MTE4MDY2",
"organizations_url": "https://api.github.com/users/csaoma/orgs",
"received_events_url": "https://api.github.com/users/csaoma/received_events",
"repos_url": "https://api.github.com/users/csaoma/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/csaoma/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/csaoma/subscriptions",
"type": "User",
"url": "https://api.github.com/users/csaoma"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-17T00:59:56Z
| 2020-04-17T02:58:45Z
| 2020-04-17T02:58:37Z
|
CONTRIBUTOR
| null |
.format changed to f string
https://github.com/pandas-dev/pandas/issues/29547
- [ ] closes #xxxx
- [x] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33602/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33602/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33602.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33602",
"merged_at": "2020-04-17T02:58:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33602.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33602"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33603
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33603/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33603/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33603/events
|
https://github.com/pandas-dev/pandas/issues/33603
| 601,641,863
|
MDU6SXNzdWU2MDE2NDE4NjM=
| 33,603
|
BUG: TimeDeltaIndex slicing with strings incorrectly includes too much data
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/773285?v=4",
"events_url": "https://api.github.com/users/pbotros/events{/privacy}",
"followers_url": "https://api.github.com/users/pbotros/followers",
"following_url": "https://api.github.com/users/pbotros/following{/other_user}",
"gists_url": "https://api.github.com/users/pbotros/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pbotros",
"id": 773285,
"login": "pbotros",
"node_id": "MDQ6VXNlcjc3MzI4NQ==",
"organizations_url": "https://api.github.com/users/pbotros/orgs",
"received_events_url": "https://api.github.com/users/pbotros/received_events",
"repos_url": "https://api.github.com/users/pbotros/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pbotros/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pbotros/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pbotros"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
open
| false
| null |
[] | null | 8
| 2020-04-17T01:40:12Z
| 2021-07-31T04:24:46Z
| null |
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import numpy as np
import pandas as pd
fs = 50000
i = pd.to_timedelta(np.arange(900 * fs, dtype=np.int) / fs * 1e9, unit='ns')
df = pd.DataFrame({'dummy': np.arange(len(i))}, index=i)
assert np.isclose(len(df['710s':'711s']) / fs, 2.0)
assert np.isclose(len(df['710s':'719s']) / fs, 10.0)
assert np.isclose(len(df['610s':'620s']) / fs, 11.0)
assert np.isclose(len(df['710s':'720.00000001s']) / fs, 10.00002)
assert np.isclose(len(df['710s':'720s']) / fs, 11.0) # fails! Slices 70 seconds of data??
```
#### Problem description
Slicing a dataframe with a TimeDeltaIndex with the particular right bound '720s' seems to be incorrectly parsed, not returning the time slice as expected. As can be seen in the above example, other bounds work as expected, but using '720s' as the right bound returns 60 more seconds of data than it should have.
#### Expected Output
Slicing between '710s' and '720s' should return 11 seconds of data, as slicing '610s' and '620s' does.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Linux
OS-release : 5.0.0-29-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 9.0.1
setuptools : 46.1.3
Cython : None
pytest : 4.3.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 0.999999999
pymysql : 0.9.3
psycopg2 : None
jinja2 : 2.10.3
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : 2.4.11
pandas_gbq : None
pyarrow : 0.13.0
pytables : None
pytest : 4.3.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.12
tables : None
tabulate : 0.8.6
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : None
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33603/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33603/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33604
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33604/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33604/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33604/events
|
https://github.com/pandas-dev/pandas/pull/33604
| 601,660,281
|
MDExOlB1bGxSZXF1ZXN0NDA0ODg4ODQ1
| 33,604
|
BUG: DatetimeIndex.intersection losing freq and tz
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-17T02:37:56Z
| 2020-04-17T22:07:16Z
| 2020-04-17T21:24:56Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33604/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33604/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33604.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33604",
"merged_at": "2020-04-17T21:24:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33604.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33604"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33605
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33605/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33605/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33605/events
|
https://github.com/pandas-dev/pandas/pull/33605
| 601,763,345
|
MDExOlB1bGxSZXF1ZXN0NDA0OTY4NjM3
| 33,605
|
BUG: support count function for custom BaseIndexer rolling windows
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
|
[
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-04-17T07:28:21Z
| 2020-04-18T05:45:10Z
| 2020-04-17T21:33:07Z
|
MEMBER
| null |
- [X] xref #32865
- [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
This PR makes sure that when we call `count` with a `BaseIndexer` subclass, custom `start` and `end` arrays get calculated, and the algorithm in the `aggregations.pyx` gets called instead of the `_Window.create_blocks`.
Turns out that we were sending the calculation into `aggregations.pyx` only for frequency-based windows, and custom `BaseIndexer` subclasses got ignored. Fixed it and cleaned the code up a bit.
## Background on the wider issue
We currently don't support several rolling window functions when building a rolling window object using a custom class descended from `pandas.api.indexers.Baseindexer`. The implementations were written with backward-looking windows in mind, and this led to these functions breaking.
Currently, using these functions returns a `NotImplemented` error thanks to #33057, but ideally we want to update the implementations, so that they will work without a performance hit. This is what I aim to do over a series of PRs.
## Perf notes
No changes to the algorithms necessary.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33605/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33605/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33605.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33605",
"merged_at": "2020-04-17T21:33:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33605.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33605"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33606
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33606/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33606/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33606/events
|
https://github.com/pandas-dev/pandas/issues/33606
| 601,793,821
|
MDU6SXNzdWU2MDE3OTM4MjE=
| 33,606
|
ENH: Always display column headers in HTML output when scrolling down on long dataframes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/89061?v=4",
"events_url": "https://api.github.com/users/ogrisel/events{/privacy}",
"followers_url": "https://api.github.com/users/ogrisel/followers",
"following_url": "https://api.github.com/users/ogrisel/following{/other_user}",
"gists_url": "https://api.github.com/users/ogrisel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ogrisel",
"id": 89061,
"login": "ogrisel",
"node_id": "MDQ6VXNlcjg5MDYx",
"organizations_url": "https://api.github.com/users/ogrisel/orgs",
"received_events_url": "https://api.github.com/users/ogrisel/received_events",
"repos_url": "https://api.github.com/users/ogrisel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ogrisel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ogrisel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ogrisel"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
},
{
"color": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-04-17T08:23:41Z
| 2021-02-20T21:01:00Z
| 2021-02-20T21:01:00Z
|
CONTRIBUTOR
| null |
#### Is your feature request related to a problem?
I sometimes need to visually screen several hundreds of records. For this I do:
```python
pd.set_option('display.max_rows', 300)
```
and then display the dataframe in the output cell of a jupyter notebook.
However if the dataframe is long enough to not fit in a single browser window, scrolling down hides the column headers and it makes it really hard to interpret the content of bottom records.
#### Describe the solution you'd like
It would be very nice to use some CSS wizardry to always keep the column headers visible just below the top edge of the browser viewport when scrolling down in a notebook with a long dataframe that does not fit entirely in the browser viewport at once.
#### Alternatively solution
An alternative it to slice the long DF into chunks and display with 50 or so records and display each chunk sequentially so that each of them always fit on the screen. But this is tedious and generates many jupyter cells which is not necessarily desired.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33606/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33606/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33607
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33607/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33607/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33607/events
|
https://github.com/pandas-dev/pandas/pull/33607
| 601,856,081
|
MDExOlB1bGxSZXF1ZXN0NDA1MDQxODg0
| 33,607
|
ENH: general concat with ExtensionArrays through find_common_type
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 17
| 2020-04-17T10:05:51Z
| 2020-05-02T17:26:21Z
| 2020-05-02T16:29:44Z
|
MEMBER
| null |
Exploring what is being discussed in https://github.com/pandas-dev/pandas/issues/22994. @TomAugspurger your idea seems to be working nicely! (it almost removes as much code than it adds (apart from tests/docs), ànd fixes the EA concat bugs ;))
Few notes compared to proposal in #22994:
- Since we already have a `find_common_type` function, decided to use this as the "get_concat_dtype", since it seems this does what is needed for concat
- Extending the EA interface with a `ExensionDtype._get_common_type` method that is used in pandas' `find_common_type` function to dispatch the logic to the extension type
What I already handled:
- general protocol, using this for concat with axis=0 (eg concatting series) and using it as example for IntegerDtype
- handling categoricals this way (which removes the `concat_categorical` helper). This turned up a few cases where we have value-dependent behaviour right now, which we can't easily preserve (mainly regarding NaNs and int dtype, see below)
Still need to handle sparse (those has failing tests now) and maybe datetime, and check other failures.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33607/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33607/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33607.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33607",
"merged_at": "2020-05-02T16:29:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33607.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33607"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33608
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33608/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33608/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33608/events
|
https://github.com/pandas-dev/pandas/pull/33608
| 601,957,814
|
MDExOlB1bGxSZXF1ZXN0NDA1MTE3Nzgz
| 33,608
|
DOC/CLN: Clean/Fix documentation for Window module
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6186510?v=4",
"events_url": "https://api.github.com/users/dilex42/events{/privacy}",
"followers_url": "https://api.github.com/users/dilex42/followers",
"following_url": "https://api.github.com/users/dilex42/following{/other_user}",
"gists_url": "https://api.github.com/users/dilex42/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dilex42",
"id": 6186510,
"login": "dilex42",
"node_id": "MDQ6VXNlcjYxODY1MTA=",
"organizations_url": "https://api.github.com/users/dilex42/orgs",
"received_events_url": "https://api.github.com/users/dilex42/received_events",
"repos_url": "https://api.github.com/users/dilex42/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dilex42/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dilex42/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dilex42"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-04-17T12:58:55Z
| 2020-05-07T07:59:10Z
| 2020-05-07T03:29:09Z
|
CONTRIBUTOR
| null |
- xref #31661
- xref #28792
- Added '.' before dataframe/series reference to fix missing link problem. Don't know if it's the best approach.
- Changed base template that is used by some functions to return better See Also section. Hope it's ok.
- Also question about Window class. It doesn't has its counterpart from Series/DF modules, its doc containing examples from Rolling part and there're only 4 functions. Is it internal base class for all windows and maybe shoul be excluded from docs or is it used somewhere maybe for creating custom windows?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33608/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33608/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33608.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33608",
"merged_at": "2020-05-07T03:29:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33608.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33608"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33609
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33609/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33609/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33609/events
|
https://github.com/pandas-dev/pandas/pull/33609
| 602,053,344
|
MDExOlB1bGxSZXF1ZXN0NDA1MTk1ODk2
| 33,609
|
TST: make expected DTI/TDI results more specific
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-17T15:22:30Z
| 2020-04-17T22:00:29Z
| 2020-04-17T21:46:25Z
|
MEMBER
| null |
assert_index_equal doesnt check for matching freq. I've got a branch that changes that, but the diff is massive, so i am first going through the tests and updating the `expected`s so that they will pass once that check is in place.
Also in this sequence: xref #33604
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33609/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33609/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33609.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33609",
"merged_at": "2020-04-17T21:46:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33609.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33609"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33610
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33610/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33610/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33610/events
|
https://github.com/pandas-dev/pandas/pull/33610
| 602,059,398
|
MDExOlB1bGxSZXF1ZXN0NDA1MjAwNzY5
| 33,610
|
TYP: type NDFrame.(_get_axis|_get_axis_name|_get_axis_number)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-17T15:31:35Z
| 2020-04-18T19:07:49Z
| 2020-04-18T19:07:45Z
|
CONTRIBUTOR
| null |
Gives return types to ``NDFrame._get_axis`` etc.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33610/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33610/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33610.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33610",
"merged_at": "2020-04-18T19:07:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33610.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33610"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33611
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33611/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33611/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33611/events
|
https://github.com/pandas-dev/pandas/pull/33611
| 602,085,742
|
MDExOlB1bGxSZXF1ZXN0NDA1MjIxODY2
| 33,611
|
BUG: set_levels set wrong order levels for MutiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32621777?v=4",
"events_url": "https://api.github.com/users/yixinxiao7/events{/privacy}",
"followers_url": "https://api.github.com/users/yixinxiao7/followers",
"following_url": "https://api.github.com/users/yixinxiao7/following{/other_user}",
"gists_url": "https://api.github.com/users/yixinxiao7/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yixinxiao7",
"id": 32621777,
"login": "yixinxiao7",
"node_id": "MDQ6VXNlcjMyNjIxNzc3",
"organizations_url": "https://api.github.com/users/yixinxiao7/orgs",
"received_events_url": "https://api.github.com/users/yixinxiao7/received_events",
"repos_url": "https://api.github.com/users/yixinxiao7/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yixinxiao7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yixinxiao7/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yixinxiao7"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-04-17T16:13:30Z
| 2020-05-25T22:43:58Z
| 2020-05-25T22:43:57Z
|
NONE
| null |
- [ ] closes #33420
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Added parameter that allows user to reset codes
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33611/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33611/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33611.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33611",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33611.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33611"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33612
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33612/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33612/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33612/events
|
https://github.com/pandas-dev/pandas/pull/33612
| 602,120,538
|
MDExOlB1bGxSZXF1ZXN0NDA1MjQ5Mjk0
| 33,612
|
DOC: Remove extra backtick in example in documentation.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18583940?v=4",
"events_url": "https://api.github.com/users/pkirlin/events{/privacy}",
"followers_url": "https://api.github.com/users/pkirlin/followers",
"following_url": "https://api.github.com/users/pkirlin/following{/other_user}",
"gists_url": "https://api.github.com/users/pkirlin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pkirlin",
"id": 18583940,
"login": "pkirlin",
"node_id": "MDQ6VXNlcjE4NTgzOTQw",
"organizations_url": "https://api.github.com/users/pkirlin/orgs",
"received_events_url": "https://api.github.com/users/pkirlin/received_events",
"repos_url": "https://api.github.com/users/pkirlin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pkirlin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkirlin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pkirlin"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-17T17:16:41Z
| 2020-04-25T17:06:31Z
| 2020-04-17T17:55:09Z
|
CONTRIBUTOR
| null |
:meth:`~Series.idxmax`` --> :meth:`~Series.idxmax`
- [x] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33612/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33612/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33612.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33612",
"merged_at": "2020-04-17T17:55:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33612.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33612"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33613
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33613/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33613/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33613/events
|
https://github.com/pandas-dev/pandas/pull/33613
| 602,222,474
|
MDExOlB1bGxSZXF1ZXN0NDA1MzMxNjQw
| 33,613
|
Fixed bug. Added in check for ufunc and evaluates inner expression be…
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/53505344?v=4",
"events_url": "https://api.github.com/users/SurajH1/events{/privacy}",
"followers_url": "https://api.github.com/users/SurajH1/followers",
"following_url": "https://api.github.com/users/SurajH1/following{/other_user}",
"gists_url": "https://api.github.com/users/SurajH1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SurajH1",
"id": 53505344,
"login": "SurajH1",
"node_id": "MDQ6VXNlcjUzNTA1MzQ0",
"organizations_url": "https://api.github.com/users/SurajH1/orgs",
"received_events_url": "https://api.github.com/users/SurajH1/received_events",
"repos_url": "https://api.github.com/users/SurajH1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SurajH1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SurajH1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SurajH1"
}
|
[
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] | null | 7
| 2020-04-17T20:43:11Z
| 2020-08-07T22:56:51Z
| 2020-08-07T22:56:51Z
|
CONTRIBUTOR
| null |
…fore evaluating outer expression
- [x] closes #24670
- [x] passes `black pandas`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33613/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33613/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33613.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33613",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33613.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33613"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33614
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33614/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33614/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33614/events
|
https://github.com/pandas-dev/pandas/pull/33614
| 602,226,746
|
MDExOlB1bGxSZXF1ZXN0NDA1MzM1MDM3
| 33,614
|
CLN: assorted cleanups
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-17T20:52:26Z
| 2020-04-17T22:06:38Z
| 2020-04-17T21:39:09Z
|
MEMBER
| null |
Trying to clear out my local CLN branches
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33614/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33614/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33614.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33614",
"merged_at": "2020-04-17T21:39:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33614.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33614"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33615
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33615/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33615/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33615/events
|
https://github.com/pandas-dev/pandas/pull/33615
| 602,229,005
|
MDExOlB1bGxSZXF1ZXN0NDA1MzM2Nzk5
| 33,615
|
CLN: avoid catching AssertionError, AttributeError in NDFrame methods
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-04-17T20:56:51Z
| 2020-04-21T14:56:55Z
| 2020-04-21T14:47:58Z
|
MEMBER
| null |
@WillAyd when i run `mypy` manually it passes, but when run via the pre-commit hook I get
```
pandas/core/internals/blocks.py:2739: error: unused 'type: ignore' comment
pandas/core/generic.py:4034: error: unused 'type: ignore' comment
pandas/core/generic.py:4093: error: unused 'type: ignore' comment
Found 3 errors in 2 files (checked 2 source files)
```
Something similar is happening with most branches these days. Have you seen this?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33615/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33615/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33615.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33615",
"merged_at": "2020-04-21T14:47:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33615.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33615"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33616
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33616/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33616/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33616/events
|
https://github.com/pandas-dev/pandas/pull/33616
| 602,350,274
|
MDExOlB1bGxSZXF1ZXN0NDA1NDI0MTMy
| 33,616
|
REF: get .items out of BlockManager.apply
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-18T01:28:13Z
| 2020-04-19T23:53:03Z
| 2020-04-19T23:30:51Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33616/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33616/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33616.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33616",
"merged_at": "2020-04-19T23:30:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33616.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33616"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.