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/25213 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25213/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25213/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25213/events | https://github.com/pandas-dev/pandas/issues/25213 | 407,702,617 | MDU6SXNzdWU0MDc3MDI2MTc= | 25,213 | BUG: object dtype & Int64Dtype equality comparison issue | {
"avatar_url": "https://avatars.githubusercontent.com/u/6213341?v=4",
"events_url": "https://api.github.com/users/danj1974/events{/privacy}",
"followers_url": "https://api.github.com/users/danj1974/followers",
"following_url": "https://api.github.com/users/danj1974/following{/other_user}",
"gists_url": "https://api.github.com/users/danj1974/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/danj1974",
"id": 6213341,
"login": "danj1974",
"node_id": "MDQ6VXNlcjYyMTMzNDE=",
"organizations_url": "https://api.github.com/users/danj1974/orgs",
"received_events_url": "https://api.github.com/users/danj1974/received_events",
"repos_url": "https://api.github.com/users/danj1974/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/danj1974/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danj1974/subscriptions",
"type": "User",
"url": "https://api.github.com/users/danj1974"
} | [] | closed | false | null | [] | null | 4 | 2019-02-07T13:34:44Z | 2019-02-08T09:07:20Z | 2019-02-08T09:07:20Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
d = {'int': [1, 2, 3], 'str': ['a', 'b', 'c']}
df = pd.DataFrame(d)
print(df['int'].dtype == pd.core.arrays.integer.Int64Dtype)
print(df['str'].dtype == pd.core.arrays.integer.Int64Dtype)
```
Example output:
```python
In [1]: import pandas as pd
In [2]: d = {'int': [1, 2, 3], 'str': ['a', 'b', 'c']}
In [3]: df = pd.DataFrame(d)
In [4]: df.dtypes
Out[4]:
int int64
str object
dtype: object
In [5]: df['int'].dtype == pd.core.arrays.integer.Int64Dtype
Out[5]: False
In [6]: df['str'].dtype == pd.core.arrays.integer.Int64Dtype
Out[6]: True
```
#### Problem description
I want to process columns of a dataframe according to their type and have a list of numeric dtypes that I'm interested in (one of which is the newer `Int64` type). However, I'm getting an issue with columns of `object` dtype which also appears to be `in` this list of numeric types.
The simplified code above shows why I'm getting this problem - when the dtype is `object` the equality check against `Int64Dtype` evaluates to `True`. Is this expected behaviour, or a bug?
I'm going to solve my use case in another way (using `pandas.api.types.is_numeric_dtype`), but I'd like to find out whether this is a bug or whether I need improve my understanding!
#### Expected Output
```
Out[5]: False
Out[6]: False
```
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-43-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: en_GB.UTF-8
pandas: 0.24.1
pytest: None
pip: 19.0.1
setuptools: 40.6.2
Cython: None
numpy: 1.16.1
scipy: None
pyarrow: None
xarray: None
IPython: 7.2.0
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25213/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25213/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25214 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25214/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25214/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25214/events | https://github.com/pandas-dev/pandas/issues/25214 | 407,741,420 | MDU6SXNzdWU0MDc3NDE0MjA= | 25,214 | BUG: SettingWithCopyWarning even if view | {
"avatar_url": "https://avatars.githubusercontent.com/u/36110064?v=4",
"events_url": "https://api.github.com/users/sean2dre/events{/privacy}",
"followers_url": "https://api.github.com/users/sean2dre/followers",
"following_url": "https://api.github.com/users/sean2dre/following{/other_user}",
"gists_url": "https://api.github.com/users/sean2dre/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sean2dre",
"id": 36110064,
"login": "sean2dre",
"node_id": "MDQ6VXNlcjM2MTEwMDY0",
"organizations_url": "https://api.github.com/users/sean2dre/orgs",
"received_events_url": "https://api.github.com/users/sean2dre/received_events",
"repos_url": "https://api.github.com/users/sean2dre/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sean2dre/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sean2dre/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sean2dre"
} | [] | closed | false | null | [] | null | 0 | 2019-02-07T14:59:41Z | 2019-02-07T15:08:43Z | 2019-02-07T15:08:43Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
# df['column_to_assign_to'][assigning_mask] = values_tobe_assigned
```
#### Problem description
the given code example raies a SettingWithCopyWarning but it's no copy but a view!
<details>
python: 3.6.2.final.0
pandas: 0.24.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/25214/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25214/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25215 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25215/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25215/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25215/events | https://github.com/pandas-dev/pandas/pull/25215 | 407,743,200 | MDExOlB1bGxSZXF1ZXN0MjUxMTQ3Nzc0 | 25,215 | [DOC] Fix typo in Cheat sheet with regex | {
"avatar_url": "https://avatars.githubusercontent.com/u/15113894?v=4",
"events_url": "https://api.github.com/users/Dr-Irv/events{/privacy}",
"followers_url": "https://api.github.com/users/Dr-Irv/followers",
"following_url": "https://api.github.com/users/Dr-Irv/following{/other_user}",
"gists_url": "https://api.github.com/users/Dr-Irv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dr-Irv",
"id": 15113894,
"login": "Dr-Irv",
"node_id": "MDQ6VXNlcjE1MTEzODk0",
"organizations_url": "https://api.github.com/users/Dr-Irv/orgs",
"received_events_url": "https://api.github.com/users/Dr-Irv/received_events",
"repos_url": "https://api.github.com/users/Dr-Irv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dr-Irv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dr-Irv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dr-Irv"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 18 | 2019-02-07T15:03:17Z | 2019-07-12T17:20:51Z | 2019-02-11T19:40:17Z | CONTRIBUTOR | null | - [x ] closes #25156
- [x ] tests added / passed
tests not needed - just a doc change
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
not needed - just a doc change
- [x ] whatsnew entry
Not needed - just a doc change
Small typo fixed in Powerpoint and PDF versions of cheat sheet.
Ideally, when merged, new PDF versions should push to current pandas release.
| {
"+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/25215/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25215/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25215.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25215",
"merged_at": "2019-02-11T19:40:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25215.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25215"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25216 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25216/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25216/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25216/events | https://github.com/pandas-dev/pandas/issues/25216 | 407,774,490 | MDU6SXNzdWU0MDc3NzQ0OTA= | 25,216 | Remove python 2.7 testing | {
"avatar_url": "https://avatars.githubusercontent.com/u/7870803?v=4",
"events_url": "https://api.github.com/users/tdamsma/events{/privacy}",
"followers_url": "https://api.github.com/users/tdamsma/followers",
"following_url": "https://api.github.com/users/tdamsma/following{/other_user}",
"gists_url": "https://api.github.com/users/tdamsma/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tdamsma",
"id": 7870803,
"login": "tdamsma",
"node_id": "MDQ6VXNlcjc4NzA4MDM=",
"organizations_url": "https://api.github.com/users/tdamsma/orgs",
"received_events_url": "https://api.github.com/users/tdamsma/received_events",
"repos_url": "https://api.github.com/users/tdamsma/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tdamsma/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tdamsma/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tdamsma"
} | [] | closed | false | null | [] | null | 2 | 2019-02-07T16:04:56Z | 2019-02-07T19:11:48Z | 2019-02-07T19:11:48Z | CONTRIBUTOR | null | Python 2.7 support is now dropped for 0.25, but the CI tests are still run against python 2.7 | {
"+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/25216/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25216/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25217 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25217/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25217/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25217/events | https://github.com/pandas-dev/pandas/pull/25217 | 407,780,922 | MDExOlB1bGxSZXF1ZXN0MjUxMTc2NTkz | 25,217 | [WIP] remove ci testing for python 2 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7870803?v=4",
"events_url": "https://api.github.com/users/tdamsma/events{/privacy}",
"followers_url": "https://api.github.com/users/tdamsma/followers",
"following_url": "https://api.github.com/users/tdamsma/following{/other_user}",
"gists_url": "https://api.github.com/users/tdamsma/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tdamsma",
"id": 7870803,
"login": "tdamsma",
"node_id": "MDQ6VXNlcjc4NzA4MDM=",
"organizations_url": "https://api.github.com/users/tdamsma/orgs",
"received_events_url": "https://api.github.com/users/tdamsma/received_events",
"repos_url": "https://api.github.com/users/tdamsma/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tdamsma/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tdamsma/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tdamsma"
} | [] | closed | false | null | [] | null | 4 | 2019-02-07T16:18:02Z | 2019-02-07T19:12:40Z | 2019-02-07T19:12:40Z | CONTRIBUTOR | null | - [x] closes #25216
- [ ] tests added / passed
- [ ] 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/25217/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25217/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25217.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25217",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/25217.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25217"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25218 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25218/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25218/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25218/events | https://github.com/pandas-dev/pandas/issues/25218 | 407,839,362 | MDU6SXNzdWU0MDc4MzkzNjI= | 25,218 | Pandas read_html loses comma | {
"avatar_url": "https://avatars.githubusercontent.com/u/6196390?v=4",
"events_url": "https://api.github.com/users/Code4SAFrankie/events{/privacy}",
"followers_url": "https://api.github.com/users/Code4SAFrankie/followers",
"following_url": "https://api.github.com/users/Code4SAFrankie/following{/other_user}",
"gists_url": "https://api.github.com/users/Code4SAFrankie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Code4SAFrankie",
"id": 6196390,
"login": "Code4SAFrankie",
"node_id": "MDQ6VXNlcjYxOTYzOTA=",
"organizations_url": "https://api.github.com/users/Code4SAFrankie/orgs",
"received_events_url": "https://api.github.com/users/Code4SAFrankie/received_events",
"repos_url": "https://api.github.com/users/Code4SAFrankie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Code4SAFrankie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Code4SAFrankie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Code4SAFrankie"
} | [
{
"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": "006b75",
"default": false,
"description": "read_html, to_html, Styl... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"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": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 5 | 2019-02-07T18:36:15Z | 2019-02-09T13:59:40Z | 2019-02-09T13:59:39Z | NONE | null | #### Code Sample
```python
import pandas as pd
table_list = pd.read_html("https://af.wikipedia.org/wiki/Lys_van_lande_volgens_geletterdheidskoers")
df = table_list[0].copy()
# Make the first row of the table the column headers.
new_header = df.iloc[0] # Grab the first row for the header.
df = df[1:] # Take the data less the header row.
df.columns = new_header # Set the header row as the df header.
df
```
#### Problem description
The last column (Geletterdheidskoers) has a value for the country Togo that is 532 instead of 53,2. This might be related to the fact that the row before that (for Jemen) incorrectly uses a period instead of a comma to indicate the decimal point.
#### Expected Output
53,2
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.6.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.4
pytest: 4.0.0
pip: 19.0.1
setuptools: 40.6.2
Cython: 0.28.5
numpy: 1.15.4
scipy: 1.1.0
pyarrow: 0.10.0
xarray: 0.10.8
IPython: 6.5.0
sphinx: 1.7.7
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.5
blosc: 1.5.1
bottleneck: 1.2.1
tables: None
numexpr: None
feather: 0.4.0
matplotlib: 3.0.2
openpyxl: None
xlrd: 1.1.0
xlwt: None
xlsxwriter: 1.0.7
lxml: 4.2.4
bs4: 4.6.3
html5lib: 1.0.1
sqlalchemy: 1.2.11
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: 0.1.6
pandas_gbq: None
pandas_datareader: 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/25218/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25218/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25219 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25219/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25219/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25219/events | https://github.com/pandas-dev/pandas/pull/25219 | 407,884,214 | MDExOlB1bGxSZXF1ZXN0MjUxMjU4NDYz | 25,219 | BUG: Fix type coercion in read_json orient='table' (#21345) | {
"avatar_url": "https://avatars.githubusercontent.com/u/8515462?v=4",
"events_url": "https://api.github.com/users/albertvillanova/events{/privacy}",
"followers_url": "https://api.github.com/users/albertvillanova/followers",
"following_url": "https://api.github.com/users/albertvillanova/following{/other_user}",
"gists_url": "https://api.github.com/users/albertvillanova/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/albertvillanova",
"id": 8515462,
"login": "albertvillanova",
"node_id": "MDQ6VXNlcjg1MTU0NjI=",
"organizations_url": "https://api.github.com/users/albertvillanova/orgs",
"received_events_url": "https://api.github.com/users/albertvillanova/received_events",
"repos_url": "https://api.github.com/users/albertvillanova/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/albertvillanova/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/albertvillanova/subscriptions",
"type": "User",
"url": "https://api.github.com/users/albertvillanova"
} | [
{
"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": "207... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-02-07T20:30:33Z | 2019-02-23T19:12:39Z | 2019-02-23T19:12:33Z | CONTRIBUTOR | null | - [X] closes #21345
- [x] tests added / passed
- [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/25219/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25219/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25219.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25219",
"merged_at": "2019-02-23T19:12:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25219.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25219"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25220 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25220/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25220/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25220/events | https://github.com/pandas-dev/pandas/issues/25220 | 407,924,189 | MDU6SXNzdWU0MDc5MjQxODk= | 25,220 | Keep (un-deprecate) `read_table()` for API stability | {
"avatar_url": "https://avatars.githubusercontent.com/u/28786187?v=4",
"events_url": "https://api.github.com/users/st-bender/events{/privacy}",
"followers_url": "https://api.github.com/users/st-bender/followers",
"following_url": "https://api.github.com/users/st-bender/following{/other_user}",
"gists_url": "https://api.github.com/users/st-bender/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/st-bender",
"id": 28786187,
"login": "st-bender",
"node_id": "MDQ6VXNlcjI4Nzg2MTg3",
"organizations_url": "https://api.github.com/users/st-bender/orgs",
"received_events_url": "https://api.github.com/users/st-bender/received_events",
"repos_url": "https://api.github.com/users/st-bender/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/st-bender/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/st-bender/subscriptions",
"type": "User",
"url": "https://api.github.com/users/st-bender"
} | [
{
"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"
},
{
"color": "AD7FA8",
"... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 34 | 2019-02-07T22:21:57Z | 2019-09-18T12:09:35Z | 2019-06-28T20:04:13Z | NONE | null | #### Problem description
`read_table()` got deprecated in favour of using `read_csv()`.
Using `read_csv()` to read tab/space delimited files is counter-intuitive. According to the docs and the related issues, both share the same code and it is not clear why the one function should be preferred over the other, and that change may even break existing code.
In my point of view `read_table()` is the more general function and `read_csv()` is a special case. Why would you deprecate (and then remove) the more useful function? It is already annoying to use `to_csv()` to write space/tab delimited files. And as I can see it, it comes down to two lines of code.
#### Proposed solution
Keep both functions as they are (un-deprecate `read_table()`) or rename the function to have a more general name like `read_txt()` (as in `numpy.genfromtxt()`) or similar. | {
"+1": 10,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 10,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/25220/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25220/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25221 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25221/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25221/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25221/events | https://github.com/pandas-dev/pandas/issues/25221 | 407,962,810 | MDU6SXNzdWU0MDc5NjI4MTA= | 25,221 | pivot and pivot_table not able to handle complex numbers | {
"avatar_url": "https://avatars.githubusercontent.com/u/11408965?v=4",
"events_url": "https://api.github.com/users/Haigutus/events{/privacy}",
"followers_url": "https://api.github.com/users/Haigutus/followers",
"following_url": "https://api.github.com/users/Haigutus/following{/other_user}",
"gists_url": "https://api.github.com/users/Haigutus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Haigutus",
"id": 11408965,
"login": "Haigutus",
"node_id": "MDQ6VXNlcjExNDA4OTY1",
"organizations_url": "https://api.github.com/users/Haigutus/orgs",
"received_events_url": "https://api.github.com/users/Haigutus/received_events",
"repos_url": "https://api.github.com/users/Haigutus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Haigutus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Haigutus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Haigutus"
} | [
{
"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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stac... | open | false | null | [] | null | 3 | 2019-02-08T00:51:04Z | 2021-06-26T04:57:19Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
# Your code here
>>> branches
KEY Terminal.ConductingEquipment SvVoltage.TopologicalNode_x SvVoltage.TopologicalNode_y Branch.y
1 d8f14106-d89c-4779-bd29-18ad4b4e671d a94e594e-46c8-4cb3-b3d1-f412715bbdb4 ff1fb999-6411-4776-8ce9-0a875afed1ea (0.009999999999999998-0.03j)
2 d8f14106-d89c-4779-bd29-18ad4b4e671d ff1fb999-6411-4776-8ce9-0a875afed1ea a94e594e-46c8-4cb3-b3d1-f412715bbdb4 (0.009999999999999998-0.03j)
# Works OK with strings
>>> branches[["Terminal.ConductingEquipment","SvVoltage.TopologicalNode_x", "SvVoltage.TopologicalNode_y"]].pivot(index = "SvVoltage.TopologicalNode_x", columns = "SvVoltage.TopologicalNode_y")
KEY Terminal.ConductingEquipment
SvVoltage.TopologicalNode_y a94e594e-46c8-4cb3-b3d1-f412715bbdb4 ff1fb999-6411-4776-8ce9-0a875afed1ea
SvVoltage.TopologicalNode_x
a94e594e-46c8-4cb3-b3d1-f412715bbdb4 NaN d8f14106-d89c-4779-bd29-18ad4b4e671d
ff1fb999-6411-4776-8ce9-0a875afed1ea d8f14106-d89c-4779-bd29-18ad4b4e671d NaN
# Fails with complex
>>> branches[["Branch.y","SvVoltage.TopologicalNode_x", "SvVoltage.TopologicalNode_y"]].pivot(index = "SvVoltage.TopologicalNode_x", columns = "SvVoltage.TopologicalNode_y")
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\frame.py", line 5194, in pivot
return pivot(self, index=index, columns=columns, values=values)
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\reshape\reshape.py", line 415, in pivot
return indexed.unstack(columns)
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\frame.py", line 5534, in unstack
return unstack(self, level, fill_value)
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\reshape\reshape.py", line 495, in unstack
return _unstack_frame(obj, level, fill_value=fill_value)
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\reshape\reshape.py", line 516, in _unstack_frame
return unstacker.get_result()
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\reshape\reshape.py", line 184, in get_result
values, _ = self.get_new_values()
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\reshape\reshape.py", line 248, in get_new_values
f = getattr(_reshape, "unstack_{name}".format(name=name))
AttributeError: 'module' object has no attribute 'unstack_complex128'
# Same with pivot_table
>>> branches[["Branch.y","SvVoltage.TopologicalNode_x", "SvVoltage.TopologicalNode_y"]].pivot_table(index = "SvVoltage.TopologicalNode_x", columns = "SvVoltage.TopologicalNode_y")
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\frame.py", line 5303, in pivot_table
margins_name=margins_name)
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\reshape\pivot.py", line 114, in pivot_table
table = agged.unstack(to_unstack)
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\frame.py", line 5534, in unstack
return unstack(self, level, fill_value)
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\reshape\reshape.py", line 495, in unstack
return _unstack_frame(obj, level, fill_value=fill_value)
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\reshape\reshape.py", line 516, in _unstack_frame
return unstacker.get_result()
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\reshape\reshape.py", line 184, in get_result
values, _ = self.get_new_values()
File "C:\Users\kristjan.vilgo\AppData\Roaming\Python\Python27\site-packages\pandas\core\reshape\reshape.py", line 248, in get_new_values
f = getattr(_reshape, "unstack_{name}".format(name=name))
AttributeError: 'module' object has no attribute 'unstack_complex128'
```
#### Problem description
pivot and pivot_table not able to handle complex numbers
#### Expected Output
pivoted table, as demonstrated above with string values, but with complex values
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
>>> pandas.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.13.final.0
python-bits: 32
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.4
pytest: None
pip: 7.1.2
setuptools: 28.8.0
Cython: None
numpy: 1.15.4
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 5.4.1
sphinx: None
patsy: None
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.0.0
openpyxl: 2.4.5
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: None
lxml: 4.2.1
bs4: 4.6.3
html5lib: 0.999999999
sqlalchemy: 1.2.15
pymysql: 0.9.3
psycopg2: None
jinja2: 2.9.6
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: 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/25221/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25221/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25222 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25222/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25222/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25222/events | https://github.com/pandas-dev/pandas/issues/25222 | 407,970,420 | MDU6SXNzdWU0MDc5NzA0MjA= | 25,222 | pandas.Series.dt.round inconsistent with freq = 'H' | {
"avatar_url": "https://avatars.githubusercontent.com/u/1562961?v=4",
"events_url": "https://api.github.com/users/daviddeery/events{/privacy}",
"followers_url": "https://api.github.com/users/daviddeery/followers",
"following_url": "https://api.github.com/users/daviddeery/following{/other_user}",
"gists_url": "https://api.github.com/users/daviddeery/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/daviddeery",
"id": 1562961,
"login": "daviddeery",
"node_id": "MDQ6VXNlcjE1NjI5NjE=",
"organizations_url": "https://api.github.com/users/daviddeery/orgs",
"received_events_url": "https://api.github.com/users/daviddeery/received_events",
"repos_url": "https://api.github.com/users/daviddeery/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/daviddeery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/daviddeery/subscriptions",
"type": "User",
"url": "https://api.github.com/users/daviddeery"
} | [
{
"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 | [] | {
"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"
} | 2 | 2019-02-08T01:25:53Z | 2019-02-08T03:44:16Z | 2019-02-08T03:44:02Z | NONE | null | #### Code Sample
```python
>>> df = pd.DataFrame(data=[pd.Timestamp('2017-10-11 07:30:00'),
pd.Timestamp('2017-10-11 08:30:00'),
pd.Timestamp('2017-10-11 09:30:00')],
index=[0,1,2],
columns=['Date_time'])
>>> df.Date_time
>>> 0 2017-10-11 07:30:00
1 2017-10-11 08:30:00
2 2017-10-11 09:30:00
Name: Date_time, dtype: datetime64[ns]
>>> df.Date_time.dt.round('H')
>>> 0 2017-10-11 08:00:00
1 2017-10-11 08:00:00
2 2017-10-11 10:00:00
Name: Date_time, dtype: datetime64[ns]
```
#### Problem description
07:30 and 09:30 are rounded **up** to the hour. 08:30 is rounded **down** to the hour. I find this inconsistent. I think my expected output below is more consistent, where 08:30 is rounded **up** to 09:00.
#### Expected Output
```python
>>> df.Date_time.dt.round('H')
>>> 0 2017-10-11 08:00:00
1 2017-10-11 09:00:00
2 2017-10-11 10:00:00
Name: Date_time, dtype: datetime64[ns]
```
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.7.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-141-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_AU.UTF-8
LOCALE: en_AU.UTF-8
pandas: 0.23.4
pytest: 4.0.2
pip: 18.1
setuptools: 40.6.3
Cython: 0.29.2
numpy: 1.15.4
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 7.2.0
sphinx: 1.8.2
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.8
feather: None
matplotlib: 3.0.2
openpyxl: 2.5.12
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.2
lxml: 4.2.5
bs4: 4.6.3
html5lib: 1.0.1
sqlalchemy: 1.2.15
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: 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/25222/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25222/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25223 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25223/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25223/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25223/events | https://github.com/pandas-dev/pandas/pull/25223 | 407,980,592 | MDExOlB1bGxSZXF1ZXN0MjUxMzMzNjAz | 25,223 | Backport PR #25182 on branch 0.24.x (BUG: Fix Series.is_unique with single occurrence of NaN) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"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"
}
] | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 2 | 2019-02-08T02:20:01Z | 2019-02-08T02:59:01Z | 2019-02-08T02:57:55Z | NONE | null | Backport PR #25182: BUG: Fix Series.is_unique with single occurrence of NaN | {
"+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/25223/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25223/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25223.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25223",
"merged_at": "2019-02-08T02:57:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25223.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25223"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25224 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25224/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25224/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25224/events | https://github.com/pandas-dev/pandas/pull/25224 | 408,024,074 | MDExOlB1bGxSZXF1ZXN0MjUxMzY1MjY4 | 25,224 | Fix concat not respecting order of OrderedDict | {
"avatar_url": "https://avatars.githubusercontent.com/u/33966871?v=4",
"events_url": "https://api.github.com/users/alexander-ponomaroff/events{/privacy}",
"followers_url": "https://api.github.com/users/alexander-ponomaroff/followers",
"following_url": "https://api.github.com/users/alexander-ponomaroff/following{/other_user}",
"gists_url": "https://api.github.com/users/alexander-ponomaroff/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alexander-ponomaroff",
"id": 33966871,
"login": "alexander-ponomaroff",
"node_id": "MDQ6VXNlcjMzOTY2ODcx",
"organizations_url": "https://api.github.com/users/alexander-ponomaroff/orgs",
"received_events_url": "https://api.github.com/users/alexander-ponomaroff/received_events",
"repos_url": "https://api.github.com/users/alexander-ponomaroff/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alexander-ponomaroff/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alexander-ponomaroff/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alexander-ponomaroff"
} | [
{
"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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stac... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 27 | 2019-02-08T06:31:10Z | 2019-03-13T13:11:40Z | 2019-03-13T13:11:29Z | CONTRIBUTOR | null | - [x] closes #21510
- [x] tests added / passed
- [x] 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/25224/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25224/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25224.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25224",
"merged_at": "2019-03-13T13:11:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25224.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25224"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25225 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25225/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25225/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25225/events | https://github.com/pandas-dev/pandas/pull/25225 | 408,082,887 | MDExOlB1bGxSZXF1ZXN0MjUxNDEwMDMy | 25,225 | TST: fix ci failures on master | {
"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"
} | [] | closed | false | null | [] | null | 2 | 2019-02-08T10:07:03Z | 2019-02-10T20:54:38Z | 2019-02-08T11:29:48Z | MEMBER | null | appear to have ci failures on master since #25182
the match check in `test_astype_categorical_to_other` is probably too explicit and dependent on random numbers. | {
"+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/25225/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25225/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25225.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25225",
"merged_at": "2019-02-08T11:29:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25225.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25225"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25226 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25226/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25226/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25226/events | https://github.com/pandas-dev/pandas/issues/25226 | 408,123,638 | MDU6SXNzdWU0MDgxMjM2Mzg= | 25,226 | Extending the grouper `base` argument | {
"avatar_url": "https://avatars.githubusercontent.com/u/7668531?v=4",
"events_url": "https://api.github.com/users/pj1989/events{/privacy}",
"followers_url": "https://api.github.com/users/pj1989/followers",
"following_url": "https://api.github.com/users/pj1989/following{/other_user}",
"gists_url": "https://api.github.com/users/pj1989/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pj1989",
"id": 7668531,
"login": "pj1989",
"node_id": "MDQ6VXNlcjc2Njg1MzE=",
"organizations_url": "https://api.github.com/users/pj1989/orgs",
"received_events_url": "https://api.github.com/users/pj1989/received_events",
"repos_url": "https://api.github.com/users/pj1989/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pj1989/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pj1989/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pj1989"
} | [
{
"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": "3465A4",
"default": false,
"description": null,
... | 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 | 2019-02-08T12:02:47Z | 2020-05-10T15:52:54Z | 2020-05-10T15:52:54Z | NONE | null | #### Problem description
`pd.Grouper`'s `base` argument is almost undocumented ([link](https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.Grouper.html)). Despite this, the argument is extremely useful when grouping a dataframe with uneven sampling rate with an arbitrary start time.
Take for example the case of a dataframe representing a 60 minutes experiment with uneven sampling rate starting at '12-01-2019 11:55:23.01938' that we want to split in six 10-minutes group. `base` is our best ally here.
Despite this, in the current implementation `base` represents a floating number of **minutes**. It's however quite hard to understand what this number refers to, is quite cumbersome to convert the above '11:55:23.01938' into a number of minutes and gives you little flexibility regarding when the grouping will start.
This can also cause rounding error issues as descibed [here](https://github.com/pandas-dev/pandas/issues/25161).
I suggest replacing (or extend) this allowing it to be a datetime object so that the edge of each group is simply
`base + N * freq`
where N is an integer number. This is much cleaner and easy to understand.
| {
"+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/25226/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25226/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25227 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25227/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25227/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25227/events | https://github.com/pandas-dev/pandas/pull/25227 | 408,136,770 | MDExOlB1bGxSZXF1ZXN0MjUxNDUyNTk1 | 25,227 | Specify build requirements in pyproject.toml (PEP 517) | {
"avatar_url": "https://avatars.githubusercontent.com/u/70274?v=4",
"events_url": "https://api.github.com/users/xhochy/events{/privacy}",
"followers_url": "https://api.github.com/users/xhochy/followers",
"following_url": "https://api.github.com/users/xhochy/following{/other_user}",
"gists_url": "https://api.github.com/users/xhochy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xhochy",
"id": 70274,
"login": "xhochy",
"node_id": "MDQ6VXNlcjcwMjc0",
"organizations_url": "https://api.github.com/users/xhochy/orgs",
"received_events_url": "https://api.github.com/users/xhochy/received_events",
"repos_url": "https://api.github.com/users/xhochy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xhochy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xhochy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xhochy"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "e11d21",
"default": false,
... | closed | false | null | [] | null | 27 | 2019-02-08T12:43:44Z | 2019-06-27T03:34:02Z | 2019-06-27T03:34:02Z | CONTRIBUTOR | null | - [x] closes #25193
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Verified this using the Dockefile:
```
FROM alpine:3.8
RUN apk update
RUN apk add g++ libstdc++ python3-dev bash git
RUN pip3 install --upgrade pip
COPY dist/pandas-0.25.0.dev0+86.gba77fb900.tar.gz /
RUN ls -l /
RUN pip3 install -vvv /pandas-0.25.0.dev0+86.gba77fb900.tar.gz
``` | {
"+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/25227/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25227/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25227.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25227",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/25227.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25227"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25228 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25228/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25228/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25228/events | https://github.com/pandas-dev/pandas/issues/25228 | 408,191,680 | MDU6SXNzdWU0MDgxOTE2ODA= | 25,228 | read_csv() drops randomly datapoints (lines) | {
"avatar_url": "https://avatars.githubusercontent.com/u/23312031?v=4",
"events_url": "https://api.github.com/users/Joapfel/events{/privacy}",
"followers_url": "https://api.github.com/users/Joapfel/followers",
"following_url": "https://api.github.com/users/Joapfel/following{/other_user}",
"gists_url": "https://api.github.com/users/Joapfel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Joapfel",
"id": 23312031,
"login": "Joapfel",
"node_id": "MDQ6VXNlcjIzMzEyMDMx",
"organizations_url": "https://api.github.com/users/Joapfel/orgs",
"received_events_url": "https://api.github.com/users/Joapfel/received_events",
"repos_url": "https://api.github.com/users/Joapfel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Joapfel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Joapfel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Joapfel"
} | [
{
"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 | 2019-02-08T15:07:22Z | 2019-02-08T22:04:21Z | 2019-02-08T22:04:13Z | NONE | null | ```
df_test = pd.read_csv('utterances_test.txt', sep='\t', names=['id', 'label'])
```
Above code results in "df_test" having 19988 lines, but the original file "utterances_test.txt" has exactly 20000 lines.
This can be confirmed by running
```
cat utterances_test.txt | wc -l
```
in the terminal.
Also reading the file in myself with python also results in 20000 lines.
Above file attached.
[utterances_test.txt](https://github.com/pandas-dev/pandas/files/2845609/utterances_test.txt)
| {
"+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/25228/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25228/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25229 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25229/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25229/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25229/events | https://github.com/pandas-dev/pandas/issues/25229 | 408,200,614 | MDU6SXNzdWU0MDgyMDA2MTQ= | 25,229 | DISCUSS: What would an ORC reader/writer API look like? | {
"avatar_url": "https://avatars.githubusercontent.com/u/3665167?v=4",
"events_url": "https://api.github.com/users/kkraus14/events{/privacy}",
"followers_url": "https://api.github.com/users/kkraus14/followers",
"following_url": "https://api.github.com/users/kkraus14/following{/other_user}",
"gists_url": "https://api.github.com/users/kkraus14/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kkraus14",
"id": 3665167,
"login": "kkraus14",
"node_id": "MDQ6VXNlcjM2NjUxNjc=",
"organizations_url": "https://api.github.com/users/kkraus14/orgs",
"received_events_url": "https://api.github.com/users/kkraus14/received_events",
"repos_url": "https://api.github.com/users/kkraus14/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kkraus14/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kkraus14/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kkraus14"
} | [
{
"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"
},
{
"color": "AD7FA8",
"... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 13 | 2019-02-08T15:28:21Z | 2021-07-16T22:24:30Z | 2019-12-11T08:11:52Z | CONTRIBUTOR | null | cc @mrocklin for dask.dataframe visibility
I'm one of the developers of https://github.com/rapidsai/cudf and we're working on adding GPU-accelerated file readers / writers to our library. It seems most of the standard formats are covered quite nicely in the Pandas API, but ORC isn't. Before we went off defining our own API I wanted to open a discussion for defining what that API would look like so we can be consistent with the Pandas and Pandas-like community.
At the top level, I imagine it would look almost identical to Parquet in something like the following:
```
def read_orc(path, engine='auto', columns=None, **kwargs):
"""
Load an orc object from the file path, returning a DataFrame.
Parameters
----------
path : string
File path
columns : list, default=None
If not None, only these columns will be read from the file.
engine : {'auto', 'pyarrow'}, default 'auto'
Orc library to use. If 'auto', then the option
``io.orc.engine`` is used. The default ``io.orc.engine``
behavior is to use 'pyarrow'.
kwargs are passed to the engine
Returns
-------
DataFrame
"""
...
def to_orc(self, fname, engine='auto', compression='snappy', index=None,
partition_cols=None, **kwargs):
"""
Write a DataFrame to the binary orc format.
This function writes the dataframe as a `orc file
<https://orc.apache.org/>`_. You can choose different orc
backends, and have the option of compression. See
:ref:`the user guide <io.orc>` for more details.
Parameters
----------
fname : str
File path or Root Directory path. Will be used as Root Directory
path while writing a partitioned dataset.
engine : {'auto', 'pyarrow'}, default 'auto'
Orc library to use. If 'auto', then the option
``io.orc.engine`` is used. The default ``io.orc.engine``
behavior is to use 'pyarrow'.
compression : {'snappy', 'gzip', 'brotli', None}, default 'snappy'
Name of the compression to use. Use ``None`` for no compression.
index : bool, default None
If ``True``, include the dataframe's index(es) in the file output.
If ``False``, they will not be written to the file. If ``None``,
the behavior depends on the chosen engine.
partition_cols : list, optional, default None
Column names by which to partition the dataset
Columns are partitioned in the order they are given
**kwargs
Additional arguments passed to the orc library. See
:ref:`pandas io <io.orc>` for more 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/25229/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25229/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25230 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25230/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25230/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25230/events | https://github.com/pandas-dev/pandas/pull/25230 | 408,202,385 | MDExOlB1bGxSZXF1ZXN0MjUxNTAzOTU1 | 25,230 | BUG: Fix regression in DataFrame.apply causing RecursionError | {
"avatar_url": "https://avatars.githubusercontent.com/u/4470925?v=4",
"events_url": "https://api.github.com/users/gioiab/events{/privacy}",
"followers_url": "https://api.github.com/users/gioiab/followers",
"following_url": "https://api.github.com/users/gioiab/following{/other_user}",
"gists_url": "https://api.github.com/users/gioiab/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gioiab",
"id": 4470925,
"login": "gioiab",
"node_id": "MDQ6VXNlcjQ0NzA5MjU=",
"organizations_url": "https://api.github.com/users/gioiab/orgs",
"received_events_url": "https://api.github.com/users/gioiab/received_events",
"repos_url": "https://api.github.com/users/gioiab/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gioiab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gioiab/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gioiab"
} | [
{
"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": ... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 6 | 2019-02-08T15:32:29Z | 2019-02-22T14:37:04Z | 2019-02-09T16:54:10Z | CONTRIBUTOR | null | - [X] closes #25196
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
With this change the snippets reported in the issue work as expected:
```
>>> import numpy as np
>>> import pandas as pd
>>> df = pd.DataFrame(np.zeros((100, 15)))
>>> df.T.apply(dict)
0 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
1 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
2 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
3 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
4 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
5 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
6 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
7 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
8 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
9 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
10 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
11 {0: 0.0, 1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0....
...
``` | {
"+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/25230/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25230/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25230.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25230",
"merged_at": "2019-02-09T16:54:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25230.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25230"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25231 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25231/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25231/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25231/events | https://github.com/pandas-dev/pandas/pull/25231 | 408,260,050 | MDExOlB1bGxSZXF1ZXN0MjUxNTQ4NDY1 | 25,231 | DEPR: remove tm.makePanel and all usages | {
"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": "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": f... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 10 | 2019-02-08T17:55:35Z | 2019-02-09T02:25:20Z | 2019-02-08T23:33:32Z | 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/25231/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25231/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25231.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25231",
"merged_at": "2019-02-08T23:33:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25231.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25231"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/25232 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25232/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25232/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25232/events | https://github.com/pandas-dev/pandas/issues/25232 | 408,267,831 | MDU6SXNzdWU0MDgyNjc4MzE= | 25,232 | Fix validation error type `PR08` and check in CI | {
"avatar_url": "https://avatars.githubusercontent.com/u/15032115?v=4",
"events_url": "https://api.github.com/users/MarckK/events{/privacy}",
"followers_url": "https://api.github.com/users/MarckK/followers",
"following_url": "https://api.github.com/users/MarckK/following{/other_user}",
"gists_url": "https://api.github.com/users/MarckK/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarckK",
"id": 15032115,
"login": "MarckK",
"node_id": "MDQ6VXNlcjE1MDMyMTE1",
"organizations_url": "https://api.github.com/users/MarckK/orgs",
"received_events_url": "https://api.github.com/users/MarckK/received_events",
"repos_url": "https://api.github.com/users/MarckK/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarckK/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarckK/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarckK"
} | [
{
"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": "a2bca7",
"default": false,
"description": "Continuous Integratio... | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"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": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2019-02-08T18:18:35Z | 2019-12-22T13:18:26Z | null | CONTRIBUTOR | null | #### Problem description
In order to have a continuous check by the CI on validation error `PR08` (Parameter description should start with a capital letter), fixing them in the code base enables the addition to the CI for automated testing in the future.
`PR08` has 156 occurrences (see [overview of the errors](https://gist.github.com/198cfa552c727d71bd7360fda66fdbb4)), including:
method | file | file_line | github_link
-- | -- | -- | --
pandas.Timestamp.ceil | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.day_name | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.floor | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.fromordinal | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.month_name | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.round | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.tz_localize | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Period.to_timestamp | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.DataFrame.insert | pandas/core/frame.py | 3434.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L3434
pandas.DataFrame.apply | pandas/core/frame.py | 6284.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L6284
pandas.DataFrame.pipe | pandas/core/generic.py | 4924.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L4924
pandas.DataFrame.corr | pandas/core/frame.py | 6960.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L6960
pandas.DataFrame.corrwith | pandas/core/frame.py | 7151.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L7151
pandas.DataFrame.rank | pandas/core/generic.py | 8287.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L8287
pandas.DataFrame.drop_duplicates | pandas/core/frame.py | 4579.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L4579
pandas.DataFrame.duplicated | pandas/core/frame.py | 4614.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L4614
pandas.DataFrame.idxmax | pandas/core/frame.py | 7564.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L7564
pandas.DataFrame.idxmin | pandas/core/frame.py | 7528.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L7528
pandas.DataFrame.rename | pandas/util/_decorators.py | 3922.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/util/_decorators.py#L3922
pandas.DataFrame.fillna | pandas/core/frame.py | 4007.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L4007
pandas.DataFrame.unstack | pandas/core/frame.py | 5905.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L5905
pandas.DataFrame.from_csv | pandas/core/frame.py | 1838.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L1838
pandas.DataFrame.to_feather | pandas/core/frame.py | 2083.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L2083
pandas.DataFrame.to_msgpack | pandas/core/generic.py | 2380.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L2380
pandas.DataFrame.to_clipboard | pandas/core/generic.py | 2596.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L2596
pandas.merge_ordered | pandas/core/reshape/merge.py | 132.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/reshape/merge.py#L132
pandas.merge_asof | pandas/core/reshape/merge.py | 236.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/reshape/merge.py#L236
pandas.to_numeric | pandas/core/tools/numeric.py | 14.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/tools/numeric.py#L14
pandas.to_datetime | pandas/core/tools/datetimes.py | 401.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/tools/datetimes.py#L401
pandas.to_timedelta | pandas/core/tools/timedeltas.py | 18.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/tools/timedeltas.py#L18
... | ... | ... | ...
pandas.Series.rename | pandas/core/series.py | 3726.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/series.py#L3726
pandas.Series.fillna | pandas/core/series.py | 3893.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/series.py#L3893
pandas.Series.reorder_levels | pandas/core/series.py | 3301.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/series.py#L3301
pandas.Series.dt.tz_localize | pandas/core/accessor.py | 94.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L94
pandas.Series.dt.round | pandas/core/accessor.py | 94.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L94
pandas.Series.dt.floor | pandas/core/accessor.py | 94.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L94
pandas.Series.dt.ceil | pandas/core/accessor.py | 94.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L94
pandas.Series.str.findall | pandas/core/strings.py | 1755.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/strings.py#L1755
pandas.Series.str.match | pandas/core/strings.py | 2526.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/strings.py#L2526
pandas.Series.str.replace | pandas/core/strings.py | 2531.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/strings.py#L2531
pandas.Series.cat.rename_categories | pandas/core/accessor.py | 94.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L94
pandas.Series.hist | pandas/plotting/_core.py | 2418.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/_core.py#L2418
pandas.Series.to_msgpack | pandas/core/generic.py | 2380.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L2380
pandas.Series.to_clipboard | pandas/core/generic.py | 2596.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L2596
pandas.io.formats.style.Styler | pandas/io/formats/style.py | 55.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py#L55
pandas.io.formats.style.Styler.apply | pandas/io/formats/style.py | 565.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py#L565
pandas.io.formats.style.Styler.applymap | pandas/io/formats/style.py | 623.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py#L623
pandas.io.formats.style.Styler.where | pandas/io/formats/style.py | 650.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py#L650
pandas.io.formats.style.Styler.set_properties | pandas/io/formats/style.py | 987.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py#L987
pandas.io.formats.style.Styler.highlight_max | pandas/io/formats/style.py | 1143.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py#L1143
pandas.io.formats.style.Styler.highlight_min | pandas/io/formats/style.py | 1163.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py#L1163
pandas.io.formats.style.Styler.background_gradient | pandas/io/formats/style.py | 881.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py#L881
pandas.io.formats.style.Styler.use | pandas/io/formats/style.py | 742.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py#L742
pandas.core.window.Rolling.apply | pandas/core/window.py | 1699.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/window.py#L1699
pandas.core.window.Expanding.apply | pandas/core/window.py | 1972.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/window.py#L1972
pandas.Panel.fillna | pandas/core/panel.py | 1288.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/panel.py#L1288
pandas.Panel.fromDict | pandas/core/panel.py | 243.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/panel.py#L243
pandas.Panel.pipe | pandas/core/generic.py | 4924.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L4924
pandas.Panel.rank | pandas/core/generic.py | 8287.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L8287
pandas.Panel.to_msgpack | pandas/core/generic.py | 2380.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L2380
Todo:
* [ ] get rid of the errors in the code base
* [ ] update the `code_check.sh` script to take into account the `SS02` type of errors | {
"+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/25232/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25232/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25233 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25233/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25233/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25233/events | https://github.com/pandas-dev/pandas/pull/25233 | 408,295,974 | MDExOlB1bGxSZXF1ZXN0MjUxNTc1OTgx | 25,233 | DEPR: Remove Panel-specific parts of io.pytables | {
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-02-08T19:40:18Z | 2019-02-09T02:24:32Z | 2019-02-08T23:34:57Z | MEMBER | null | Is it the case that LegacyTable and AppendableTable are never used directly, only their subclasses? If so, some further simplifications are available. | {
"+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/25233/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25233/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25233.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25233",
"merged_at": "2019-02-08T23:34:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25233.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25233"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25234 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25234/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25234/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25234/events | https://github.com/pandas-dev/pandas/pull/25234 | 408,383,829 | MDExOlB1bGxSZXF1ZXN0MjUxNjQ0NDAx | 25,234 | BUG: Duplicated returns boolean dataframe | {
"avatar_url": "https://avatars.githubusercontent.com/u/2371577?v=4",
"events_url": "https://api.github.com/users/gnilrets/events{/privacy}",
"followers_url": "https://api.github.com/users/gnilrets/followers",
"following_url": "https://api.github.com/users/gnilrets/following{/other_user}",
"gists_url": "https://api.github.com/users/gnilrets/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gnilrets",
"id": 2371577,
"login": "gnilrets",
"node_id": "MDQ6VXNlcjIzNzE1Nzc=",
"organizations_url": "https://api.github.com/users/gnilrets/orgs",
"received_events_url": "https://api.github.com/users/gnilrets/received_events",
"repos_url": "https://api.github.com/users/gnilrets/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gnilrets/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gnilrets/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gnilrets"
} | [
{
"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": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 4 | 2019-02-09T01:44:06Z | 2019-02-11T12:52:50Z | 2019-02-11T12:52:39Z | CONTRIBUTOR | null | - [x] closes #25184
- [x] tests added / passed
- [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/25234/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25234/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25234.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25234",
"merged_at": "2019-02-11T12:52:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25234.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25234"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25235 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25235/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25235/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25235/events | https://github.com/pandas-dev/pandas/issues/25235 | 408,384,712 | MDU6SXNzdWU0MDgzODQ3MTI= | 25,235 | Broken Benchmarks in CI | {
"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": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "a10c02",
"default": false,
... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-02-09T01:51:47Z | 2019-02-09T17:25:59Z | 2019-02-09T17:25:59Z | MEMBER | null | Having seen this on a couple PRs now it looks like the following bechmarks are causing build failures as they fail to run
frame_methods.Repr.time_html_repr_trunc_mi
<details>
```python-traceback
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/asv/benchmark.py", line 1039, in main_run_server
main_run(run_args)
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/asv/benchmark.py", line 913, in main_run
result = benchmark.do_run()
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/asv/benchmark.py", line 412, in do_run
return self.run(*self._current_params)
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/asv/benchmark.py", line 506, in run
min_run_count=self.min_run_count)
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/asv/benchmark.py", line 569, in benchmark_timing
timing = timer.timeit(number)
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/timeit.py", line 176, in timeit
timing = self.inner(it, self.timer)
File "<timeit-src>", line 6, in inner
File "/home/vsts/work/1/s/asv_bench/benchmarks/frame_methods.py", line 226, in time_html_repr_trunc_mi
self.df3._repr_html_()
File "/home/vsts/work/1/s/pandas/core/frame.py", line 651, in _repr_html_
import IPython
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/IPython/__init__.py", line 55, in <module>
from .terminal.embed import embed
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/IPython/terminal/embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/IPython/terminal/interactiveshell.py", line 81, in <module>
if not _stream or not hasattr(_stream, 'isatty') or not _stream.isatty():
ValueError: I/O operation on closed file
```
</details>
frame_methods.Repr.time_html_repr_trunc_si
<details>
```python-traceback
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/asv/benchmark.py", line 1039, in main_run_server
main_run(run_args)
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/asv/benchmark.py", line 913, in main_run
result = benchmark.do_run()
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/asv/benchmark.py", line 412, in do_run
return self.run(*self._current_params)
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/asv/benchmark.py", line 506, in run
min_run_count=self.min_run_count)
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/asv/benchmark.py", line 569, in benchmark_timing
timing = timer.timeit(number)
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/timeit.py", line 176, in timeit
timing = self.inner(it, self.timer)
File "<timeit-src>", line 6, in inner
File "/home/vsts/work/1/s/asv_bench/benchmarks/frame_methods.py", line 229, in time_html_repr_trunc_si
self.df4._repr_html_()
File "/home/vsts/work/1/s/pandas/core/frame.py", line 651, in _repr_html_
import IPython
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/IPython/__init__.py", line 55, in <module>
from .terminal.embed import embed
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/IPython/terminal/embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/IPython/terminal/interactiveshell.py", line 81, in <module>
if not _stream or not hasattr(_stream, 'isatty') or not _stream.isatty():
ValueError: I/O operation on closed file
```
</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/25235/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25235/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25236 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25236/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25236/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25236/events | https://github.com/pandas-dev/pandas/issues/25236 | 408,390,005 | MDU6SXNzdWU0MDgzOTAwMDU= | 25,236 | BUG: .loc indexing into MultiIndex with tuple with non-found keys gives wrong error | {
"avatar_url": "https://avatars.githubusercontent.com/u/11649522?v=4",
"events_url": "https://api.github.com/users/tikael1011/events{/privacy}",
"followers_url": "https://api.github.com/users/tikael1011/followers",
"following_url": "https://api.github.com/users/tikael1011/following{/other_user}",
"gists_url": "https://api.github.com/users/tikael1011/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tikael1011",
"id": 11649522,
"login": "tikael1011",
"node_id": "MDQ6VXNlcjExNjQ5NTIy",
"organizations_url": "https://api.github.com/users/tikael1011/orgs",
"received_events_url": "https://api.github.com/users/tikael1011/received_events",
"repos_url": "https://api.github.com/users/tikael1011/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tikael1011/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tikael1011/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tikael1011"
} | [
{
"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": "ff... | 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"
} | 13 | 2019-02-09T02:47:34Z | 2020-11-10T03:20:06Z | 2020-11-10T03:20:06Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
# Your code here
idx = ['str1', 'str2', 'str3']
df_full.set_index(idx, drop=False, inplace=True)
for i, rc in df.iterrows():
df.at[i, 'prev_state'] = df_full.loc[tuple(rc[e] for e in idx)]['state']
## df is a dataframe with columns in idx and prev_state
```
#### Problem description
The above piece of code works in 0.23.4, yet after I upgraded to 0.24.1, it throws
``` python
File "/usr/local/lib/python3.6/dist-packages/pandas/core/indexing.py", line 1494, in __getitem__
return self._getitem_tuple(key)
File "/usr/local/lib/python3.6/dist-packages/pandas/core/indexing.py", line 873, in _getitem_tuple
self._has_valid_tuple(tup)
File "/usr/local/lib/python3.6/dist-packages/pandas/core/indexing.py", line 221, in _has_valid_tuple
raise IndexingError('Too many indexers')
pandas.core.indexing.IndexingError: Too many indexers
```
I did compare that part of source code in both 0.23.4 and 0.24.1, and they look like the same.(maybe I am wrong) Please help.
#### Output of ``pd.show_versions() for 0.23.4``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.4.final.0
python-bits: 64
OS: Darwin
OS-release: 17.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: en_US.UTF-8
pandas: 0.23.4
pytest: None
pip: 9.0.1
setuptools: 40.6.2
Cython: None
numpy: 1.15.4
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.4
pytz: 2018.6
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: 1.2.16
pymysql: None
psycopg2: 2.7.6.1 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
None
</details>
#### Output of ``pd.show_versions() for 0.24.1``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.4.final.0
python-bits: 64
OS: Darwin
OS-release: 17.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: en_US.UTF-8
pandas: 0.24.1
pytest: None
pip: 9.0.1
setuptools: 40.6.2
Cython: None
numpy: 1.15.4
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.4
pytz: 2018.6
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: 1.2.16
pymysql: None
psycopg2: 2.7.6.1 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
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/25236/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25236/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25237 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25237/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25237/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25237/events | https://github.com/pandas-dev/pandas/pull/25237 | 408,392,655 | MDExOlB1bGxSZXF1ZXN0MjUxNjQ5ODI4 | 25,237 | BLD: prevent asv from calling sys.stdin.close() by using different launch method | {
"avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4",
"events_url": "https://api.github.com/users/qwhelan/events{/privacy}",
"followers_url": "https://api.github.com/users/qwhelan/followers",
"following_url": "https://api.github.com/users/qwhelan/following{/other_user}",
"gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/qwhelan",
"id": 440095,
"login": "qwhelan",
"node_id": "MDQ6VXNlcjQ0MDA5NQ==",
"organizations_url": "https://api.github.com/users/qwhelan/orgs",
"received_events_url": "https://api.github.com/users/qwhelan/received_events",
"repos_url": "https://api.github.com/users/qwhelan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/qwhelan"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-02-09T03:20:39Z | 2019-02-09T22:59:05Z | 2019-02-09T17:25:59Z | CONTRIBUTOR | null | This should fix the `asv dev` errors seen in #24953, though this may add a lot of runtime overhead so input on approaches appreciated.
When running `asv dev`, the default `--launch-method=fork` calls `sys.stdin.close()` in the main process where all benchmarks run. The function `DataFrame._repr_html_()` attempts to import `IPython`, which itself attempts a call on `sys.stdin` as part of `IPython.__init__`, which fails due to it having been closed by `asv`. This leads to the following output:
```
[ 30.00%] ··· frame_methods.Repr.time_html_repr_trunc_mi failed
[ 30.00%] ···· Traceback (most recent call last):
File "/home/chris/code/asv/asv/benchmark.py", line 1170, in main_run_server
main_run(run_args)
File "/home/chris/code/asv/asv/benchmark.py", line 1044, in main_run
result = benchmark.do_run()
File "/home/chris/code/asv/asv/benchmark.py", line 523, in do_run
return self.run(*self._current_params)
File "/home/chris/code/asv/asv/benchmark.py", line 617, in run
min_run_count=self.min_run_count)
File "/home/chris/code/asv/asv/benchmark.py", line 680, in benchmark_timing
timing = timer.timeit(number)
File "/home/chris/anaconda3/lib/python3.7/timeit.py", line 176, in timeit
timing = self.inner(it, self.timer)
File "<timeit-src>", line 6, in inner
File "/home/chris/code/pandas/asv_bench/benchmarks/frame_methods.py", line 226, in time_html_repr_trunc_mi
self.df3._repr_html_()
File "/home/chris/code/pandas/pandas/core/frame.py", line 652, in _repr_html_
import IPython
File "/home/chris/anaconda3/lib/python3.7/site-packages/IPython/__init__.py", line 55, in <module>
from .terminal.embed import embed
File "/home/chris/anaconda3/lib/python3.7/site-packages/IPython/terminal/embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/home/chris/anaconda3/lib/python3.7/site-packages/IPython/terminal/interactiveshell.py", line 81, in <module>
if not _stream or not hasattr(_stream, 'isatty') or not _stream.isatty():
ValueError: I/O operation on closed file
```
Long term, this needs to be changed upstream in `asv`. Short term, I see a couple options:
* Disable these benchmarks
* Use a different launchmethod that does not trigger the `sys.stdin.close()` call
This PR implements the latter by using the `--launch-method=spawn`, but it's to be seen how much overhead that introduces.
The command `asv dev` is shorthand for `asv run --quick --show-stderr --python=same`. Unfortunately, the `asv dev` command does not expose the `--launch-method` flag, so we have to substitute with the extended form.
- [ ] closes #25235
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
cc @WillAyd | {
"+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/25237/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25237/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25237.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25237",
"merged_at": "2019-02-09T17:25:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25237.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25237"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25238 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25238/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25238/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25238/events | https://github.com/pandas-dev/pandas/pull/25238 | 408,395,540 | MDExOlB1bGxSZXF1ZXN0MjUxNjUxNjk1 | 25,238 | DEPR: remove assert_panel_equal | {
"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": "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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-02-09T04:01:22Z | 2019-02-11T15:30:02Z | 2019-02-11T13:21:56Z | MEMBER | null | There's a kludge for test_pickle and test_packers to ignore the "panel" keys in the legacy files. Longer-term we'll need to re-generate the legacy files without the Panels in them. | {
"+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/25238/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25238/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25238.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25238",
"merged_at": "2019-02-11T13:21:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25238.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25238"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25239 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25239/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25239/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25239/events | https://github.com/pandas-dev/pandas/issues/25239 | 408,439,747 | MDU6SXNzdWU0MDg0Mzk3NDc= | 25,239 | DOC: Meaning of Timestamp `freq` attribute is unclear in docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/3150861?v=4",
"events_url": "https://api.github.com/users/nmusolino/events{/privacy}",
"followers_url": "https://api.github.com/users/nmusolino/followers",
"following_url": "https://api.github.com/users/nmusolino/following{/other_user}",
"gists_url": "https://api.github.com/users/nmusolino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmusolino",
"id": 3150861,
"login": "nmusolino",
"node_id": "MDQ6VXNlcjMxNTA4NjE=",
"organizations_url": "https://api.github.com/users/nmusolino/orgs",
"received_events_url": "https://api.github.com/users/nmusolino/received_events",
"repos_url": "https://api.github.com/users/nmusolino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmusolino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmusolino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmusolino"
} | [
{
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840... | closed | false | null | [] | null | 4 | 2019-02-09T15:12:42Z | 2021-06-26T05:01:37Z | 2021-06-26T05:01:37Z | CONTRIBUTOR | null | #### Problem description
The `freq` attribute of the `pandas.Timestamp` class is not well explained on the class's documentation page.
For background, there is an existing issue #15146 which proposes removing the `freq` attribute. I agree with that proposal, although I don't know how much technical complexity weighs against that.
If pandas decides not to deprecate/remove it, the documentation for it should be improved. The current (version 0.24.1) documentation reads:
```
ts_input : datetime-like, str, int, float
Value to be converted to Timestamp
freq : str, DateOffset <----
Offset which Timestamp will have <----
tz : str, pytz.timezone, dateutil.tz.tzfile or None
Time zone for time which Timestamp will have.
```
The `Timestamp` class or `datetime.datetime` class represents a point in time, an instant. There is no "offset" that a time point has, semantically speaking.
As far as I can tell, the role of `freq` is (1) to provide an implicit timedelta for Timestamp + integer operations, which are now deprecated, and (2) to provide a default in `Timestamp.to_period()` when that method's `freq` argument is None.
The `freq` value does not influence equality comparisons between Timestamp objects, and does not influence the hash of a Timestamp object. It is dropped in a few Timestamp transformations like tz localization
It's hard for me to suggest what the documentation should be here, since the attribute seems like a vestige from the days before a Period class, and since it doesn't influence the semantic meaning of a timestamp.
| {
"+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/25239/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25239/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25240 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25240/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25240/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25240/events | https://github.com/pandas-dev/pandas/issues/25240 | 408,439,984 | MDU6SXNzdWU0MDg0Mzk5ODQ= | 25,240 | Unexpected behavior of the str attribute which is working with Series of list | {
"avatar_url": "https://avatars.githubusercontent.com/u/4402700?v=4",
"events_url": "https://api.github.com/users/fran6w/events{/privacy}",
"followers_url": "https://api.github.com/users/fran6w/followers",
"following_url": "https://api.github.com/users/fran6w/following{/other_user}",
"gists_url": "https://api.github.com/users/fran6w/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fran6w",
"id": 4402700,
"login": "fran6w",
"node_id": "MDQ6VXNlcjQ0MDI3MDA=",
"organizations_url": "https://api.github.com/users/fran6w/orgs",
"received_events_url": "https://api.github.com/users/fran6w/received_events",
"repos_url": "https://api.github.com/users/fran6w/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fran6w/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fran6w/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fran6w"
} | [
{
"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": "5319e7",
"default": false,
"description": "String extension data... | open | false | null | [] | null | 4 | 2019-02-09T15:15:29Z | 2021-06-12T01:04:51Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
import pandas as pd
s1 = pd.Series(['AA/aa', 'BB/bb', 'CC/cc'])
s2 = s1.str.split('/')
s2.str[0]
Result:
0 AA
1 BB
2 CC
dtype: object
#### Problem description
In this example, the second 'str' attribute is applyied to a Series of list and not to a Series of string.
Then the [] operator works fine with each list an retrieve their first element...
As it is an unexpected working behavior, one may wonder if it is secure to code like this (instead of working with an apply + lambda for instance). This works also with Series of dict, and probably with any object implementing the [] operator.
#### Expected Output
Warning or error?
Or a word in the documentation?
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.4.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.4
pytest: 3.3.2
pip: 19.0.1
setuptools: 38.4.0
Cython: 0.27.3
numpy: 1.14.2
scipy: 1.0.0
pyarrow: None
xarray: 0.10.9
IPython: 6.2.1
sphinx: 1.6.6
patsy: 0.5.0
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: 1.2.1
tables: 3.4.2
numexpr: 2.6.4
feather: None
matplotlib: 2.1.2
openpyxl: 2.5.12
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.2
lxml: 4.2.3
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.1
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: 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/25240/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25240/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25241 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25241/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25241/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25241/events | https://github.com/pandas-dev/pandas/issues/25241 | 408,442,509 | MDU6SXNzdWU0MDg0NDI1MDk= | 25,241 | BUG: pandas Timestamp tz_localize and tz_convert do not preserve `freq` attribute | {
"avatar_url": "https://avatars.githubusercontent.com/u/3150861?v=4",
"events_url": "https://api.github.com/users/nmusolino/events{/privacy}",
"followers_url": "https://api.github.com/users/nmusolino/followers",
"following_url": "https://api.github.com/users/nmusolino/following{/other_user}",
"gists_url": "https://api.github.com/users/nmusolino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmusolino",
"id": 3150861,
"login": "nmusolino",
"node_id": "MDQ6VXNlcjMxNTA4NjE=",
"organizations_url": "https://api.github.com/users/nmusolino/orgs",
"received_events_url": "https://api.github.com/users/nmusolino/received_events",
"repos_url": "https://api.github.com/users/nmusolino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmusolino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmusolino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmusolino"
} | [
{
"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": ... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-02-09T15:45:51Z | 2019-02-11T13:09:36Z | 2019-02-11T13:09:36Z | CONTRIBUTOR | null | The `pandas.Timestamp.tz_localize()` and `pandas.Timestamp.tz_convert()` methods do not preserve the `freq` attribute. For background, the `freq` attribute is mostly a "helpful label", and it seems semantically ill-defined to me; cf. issue #15146, which proposes removing the attribute.
#### Code Sample
```
>>> import pandas
>>> import pytz
>>> t1 = pandas.Timestamp('2019-01-01 10:00', freq='H')
>>> print(t1.tz_localize(pytz.utc).freq)
None
>>> t2 = pandas.Timestamp('2019-01-02 12:00', tz=pytz.utc, freq='T')
>>> print(t2.tz_convert(pytz.utc).freq)
None
```
#### Problem description
I don't think that `pandas.Timestamp` should actually have a `freq` attribute, but so long as it does, it should be propagated to the new timestamp value returned by `tz_localize()` or `tz_convert`. In the `tz_convert` case, the method should produce an "equivalent" timestamp with a different tz.
#### Expected Output
`t1.tz_localize(pytz.utc).freq` should equal `t1.freq`, and `t2.tz_convert(pytz.utc).freq` should equal `t2.freq`.
#### Output of ``pd.show_versions()``
<details>
No module named 'dask'
INSTALLED VERSIONS
------------------
commit: 04df22fbeec782f474bcff20480eded04e0d1d82
python: 3.7.2.final.0
python-bits: 64
OS: Darwin
OS-release: 17.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.25.0.dev0+89.g04df22fbe
pytest: 4.2.0
pip: 19.0.1
setuptools: 40.7.3
Cython: 0.29.4
numpy: 1.15.4
scipy: 1.2.0
pyarrow: 0.11.1
xarray: 0.11.0
IPython: 7.2.0
sphinx: 1.8.4
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.9
blosc: None
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.9
feather: None
matplotlib: 3.0.2
openpyxl: 2.5.14
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.2
lxml.etree: 4.3.0
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.2.17
pymysql: 0.9.3
psycopg2: None
jinja2: 2.10
s3fs: 0.2.0
fastparquet: 0.2.1
pandas_gbq: None
pandas_datareader: None
gcsfs: 0.1.2
</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/25241/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25241/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25242 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25242/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25242/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25242/events | https://github.com/pandas-dev/pandas/issues/25242 | 408,443,399 | MDU6SXNzdWU0MDg0NDMzOTk= | 25,242 | ENH: accept None behaviour for suffixes in DataFrame.merge | {
"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": "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",
"de... | 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"
} | 1 | 2019-02-09T15:56:01Z | 2019-03-19T23:32:57Z | 2019-03-19T23:32:57Z | MEMBER | null | #### Problem description
xref: #24782
See the comment in https://github.com/pandas-dev/pandas/pull/24819
| {
"+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/25242/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25242/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25243 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25243/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25243/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25243/events | https://github.com/pandas-dev/pandas/pull/25243 | 408,443,467 | MDExOlB1bGxSZXF1ZXN0MjUxNjgxNDg1 | 25,243 | ENH: accept None behaviour for suffixes in DataFrame.merge | {
"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": "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",
"de... | 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"
} | 5 | 2019-02-09T15:56:56Z | 2019-03-19T23:32:22Z | 2019-03-19T23:32:09Z | MEMBER | null | - [ ] closes #25242
- [ ] tests added / passed
- [ ] 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/25243/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25243/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25243.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25243",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/25243.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25243"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25244 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25244/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25244/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25244/events | https://github.com/pandas-dev/pandas/pull/25244 | 408,448,350 | MDExOlB1bGxSZXF1ZXN0MjUxNjg0NDMw | 25,244 | Backport PR #25202 on branch 0.24.x (BUG-25061 fix printing indices with NaNs) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"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"
}
] | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 4 | 2019-02-09T16:53:15Z | 2019-02-09T17:38:19Z | 2019-02-09T17:37:46Z | NONE | null | Backport PR #25202: BUG-25061 fix printing indices with NaNs | {
"+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/25244/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25244/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25244.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25244",
"merged_at": "2019-02-09T17:37:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25244.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25244"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25245 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25245/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25245/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25245/events | https://github.com/pandas-dev/pandas/pull/25245 | 408,448,465 | MDExOlB1bGxSZXF1ZXN0MjUxNjg0NTAx | 25,245 | Backport PR #25230 on branch 0.24.x (BUG: Fix regression in DataFrame.apply causing RecursionError) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"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": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 2 | 2019-02-09T16:54:17Z | 2019-02-09T17:59:26Z | 2019-02-09T17:59:26Z | NONE | null | Backport PR #25230: BUG: Fix regression in DataFrame.apply causing RecursionError | {
"+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/25245/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25245/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25245.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25245",
"merged_at": "2019-02-09T17:59:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25245.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25245"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25246 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25246/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25246/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25246/events | https://github.com/pandas-dev/pandas/pull/25246 | 408,457,772 | MDExOlB1bGxSZXF1ZXN0MjUxNjkwMzc3 | 25,246 | BUG: Fix exceptions when Series.interpolate's `order` parameter is missing or invalid | {
"avatar_url": "https://avatars.githubusercontent.com/u/3150861?v=4",
"events_url": "https://api.github.com/users/nmusolino/events{/privacy}",
"followers_url": "https://api.github.com/users/nmusolino/followers",
"following_url": "https://api.github.com/users/nmusolino/following{/other_user}",
"gists_url": "https://api.github.com/users/nmusolino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmusolino",
"id": 3150861,
"login": "nmusolino",
"node_id": "MDQ6VXNlcjMxNTA4NjE=",
"organizations_url": "https://api.github.com/users/nmusolino/orgs",
"received_events_url": "https://api.github.com/users/nmusolino/received_events",
"repos_url": "https://api.github.com/users/nmusolino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmusolino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmusolino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmusolino"
} | [
{
"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": "ffa0ff"... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-02-09T18:33:57Z | 2019-02-11T16:08:55Z | 2019-02-11T16:08:48Z | CONTRIBUTOR | null | closes #24014
xref #10633
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Before this change, when the `Series.interpolate()` method was called with invalid arguments, exceptions with informative messages would be raised internally, but then caught and suppressed. An exception with a potentially misleading message would be raised instead.
For example, when interpolate is called with `method='spline'`, an `order` argument must also be supplied. This is checked internally, but when the `order` argument was missing, a confusing error would be raised:
```
>>> import pandas as pd
>>> s = pd.Series([0, 1, pd.np.nan, 3, 4])
>>> s.interpolate(method='spline')
Traceback (most recent call last):
...
ValueError: invalid method 'spline' to interpolate.
```
This problem was reported as issues #10633 and #24014.
After this change, a specific and correct exception (previously caught and discarded internally) is raised:
```
>>> import pandas as pd
>>> s = pd.Series([0, 1, pd.np.nan, 3, 4])
>>> s.interpolate(method='spline')
...
ValueError: You must specify the order of the spline or polynomial.
```
In addition, light validation is now performed on the `order` parameter before it is passed to a `scipy` class. Previously, `pandas` would check if `order` was truthy in the Python sense. If `order` was non-zero and invalid, a scipy error would propagate to the user:
```
>>> s.interpolate(method='spline', order=-1)
Traceback (most recent call last):
...
dfitpack.error: (1<=k && k<=5) failed for 3rd argument k: fpcurf0:k=-1
```
After this change, a more understandable exception is raised in this case:
```
>>> s.interpolate(method='spline', order=-1)
Traceback (most recent call last):
...
ValueError: order needs to be specified and greater than 0
``` | {
"+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/25246/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25246/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25246.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25246",
"merged_at": "2019-02-11T16:08:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25246.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25246"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25247 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25247/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25247/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25247/events | https://github.com/pandas-dev/pandas/pull/25247 | 408,459,694 | MDExOlB1bGxSZXF1ZXN0MjUxNjkxNTc2 | 25,247 | BUG: pandas Timestamp tz_localize and tz_convert do not preserve `freq` attribute | {
"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": "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": ... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-02-09T18:55:27Z | 2019-02-11T13:10:05Z | 2019-02-11T13:09:37Z | MEMBER | null | - [ ] closes #25241
- [ ] tests added / passed
- [ ] 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/25247/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25247/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25247.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25247",
"merged_at": "2019-02-11T13:09:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25247.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25247"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25248 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25248/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25248/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25248/events | https://github.com/pandas-dev/pandas/pull/25248 | 408,460,569 | MDExOlB1bGxSZXF1ZXN0MjUxNjkyMDkx | 25,248 | Backport PR #25171 on branch 0.24.x | {
"avatar_url": "https://avatars.githubusercontent.com/u/8515462?v=4",
"events_url": "https://api.github.com/users/albertvillanova/events{/privacy}",
"followers_url": "https://api.github.com/users/albertvillanova/followers",
"following_url": "https://api.github.com/users/albertvillanova/following{/other_user}",
"gists_url": "https://api.github.com/users/albertvillanova/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/albertvillanova",
"id": 8515462,
"login": "albertvillanova",
"node_id": "MDQ6VXNlcjg1MTU0NjI=",
"organizations_url": "https://api.github.com/users/albertvillanova/orgs",
"received_events_url": "https://api.github.com/users/albertvillanova/received_events",
"repos_url": "https://api.github.com/users/albertvillanova/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/albertvillanova/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/albertvillanova/subscriptions",
"type": "User",
"url": "https://api.github.com/users/albertvillanova"
} | [
{
"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": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 5 | 2019-02-09T19:05:24Z | 2019-02-11T12:51:53Z | 2019-02-11T12:51:51Z | CONTRIBUTOR | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] 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/25248/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25248/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25248.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25248",
"merged_at": "2019-02-11T12:51:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25248.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25248"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25249 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25249/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25249/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25249/events | https://github.com/pandas-dev/pandas/pull/25249 | 408,466,552 | MDExOlB1bGxSZXF1ZXN0MjUxNjk1OTA1 | 25,249 | Refactor groupby group_prod, group_var, group_mean, group_ohlc | {
"avatar_url": "https://avatars.githubusercontent.com/u/6236499?v=4",
"events_url": "https://api.github.com/users/noamher/events{/privacy}",
"followers_url": "https://api.github.com/users/noamher/followers",
"following_url": "https://api.github.com/users/noamher/following{/other_user}",
"gists_url": "https://api.github.com/users/noamher/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/noamher",
"id": 6236499,
"login": "noamher",
"node_id": "MDQ6VXNlcjYyMzY0OTk=",
"organizations_url": "https://api.github.com/users/noamher/orgs",
"received_events_url": "https://api.github.com/users/noamher/received_events",
"repos_url": "https://api.github.com/users/noamher/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/noamher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/noamher/subscriptions",
"type": "User",
"url": "https://api.github.com/users/noamher"
} | [
{
"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": "729FCF",
"default": false,
"de... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-02-09T20:17:01Z | 2019-02-11T19:39:30Z | 2019-02-11T19:39:27Z | CONTRIBUTOR | null | Followup to a previous [PR](https://github.com/pandas-dev/pandas/pull/24954).
Continue refactoring cython function implemented in tempita into fused types. | {
"+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/25249/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25249/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25249.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25249",
"merged_at": "2019-02-11T19:39:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25249.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25249"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25250 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25250/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25250/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25250/events | https://github.com/pandas-dev/pandas/issues/25250 | 408,475,722 | MDU6SXNzdWU0MDg0NzU3MjI= | 25,250 | Compat: re-write legacy files for io 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"
} | [
{
"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": "06909A",
"d... | closed | false | null | [] | null | 6 | 2019-02-09T22:05:12Z | 2019-06-27T21:24:45Z | 2019-06-27T21:24:33Z | MEMBER | null | #25238 introduced a kludge in test_pickle and test_msgpack to ignore the Panel objects when unpickling/unpacking files produced using older versions. The right way to do this is to re-write those files without Panels in them to begin with. | {
"+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/25250/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25250/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25251 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25251/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25251/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25251/events | https://github.com/pandas-dev/pandas/issues/25251 | 408,476,361 | MDU6SXNzdWU0MDg0NzYzNjE= | 25,251 | Pandas mapper enhancement | {
"avatar_url": "https://avatars.githubusercontent.com/u/2371577?v=4",
"events_url": "https://api.github.com/users/gnilrets/events{/privacy}",
"followers_url": "https://api.github.com/users/gnilrets/followers",
"following_url": "https://api.github.com/users/gnilrets/following{/other_user}",
"gists_url": "https://api.github.com/users/gnilrets/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gnilrets",
"id": 2371577,
"login": "gnilrets",
"node_id": "MDQ6VXNlcjIzNzE1Nzc=",
"organizations_url": "https://api.github.com/users/gnilrets/orgs",
"received_events_url": "https://api.github.com/users/gnilrets/received_events",
"repos_url": "https://api.github.com/users/gnilrets/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gnilrets/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gnilrets/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gnilrets"
} | [
{
"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": "ffa0ff",
"default": false,
"description": "Incorrec... | closed | false | null | [] | null | 5 | 2019-02-09T22:13:29Z | 2021-06-26T05:16:01Z | 2021-06-26T05:16:01Z | CONTRIBUTOR | null | I wrote a package that monkey patches pandas to allow support of writing concise error-trapping field transformations (https://github.com/inside-track/pandas-mapper). Would there be any interest in integrating this directly in pandas (or any objection)?
| {
"+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/25251/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25251/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25252 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25252/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25252/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25252/events | https://github.com/pandas-dev/pandas/issues/25252 | 408,481,341 | MDU6SXNzdWU0MDg0ODEzNDE= | 25,252 | Fix validation error type `PR08 ` and check in CI | {
"avatar_url": "https://avatars.githubusercontent.com/u/15032115?v=4",
"events_url": "https://api.github.com/users/MarckK/events{/privacy}",
"followers_url": "https://api.github.com/users/MarckK/followers",
"following_url": "https://api.github.com/users/MarckK/following{/other_user}",
"gists_url": "https://api.github.com/users/MarckK/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarckK",
"id": 15032115,
"login": "MarckK",
"node_id": "MDQ6VXNlcjE1MDMyMTE1",
"organizations_url": "https://api.github.com/users/MarckK/orgs",
"received_events_url": "https://api.github.com/users/MarckK/received_events",
"repos_url": "https://api.github.com/users/MarckK/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarckK/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarckK/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarckK"
} | [] | closed | false | null | [] | null | 1 | 2019-02-09T23:16:33Z | 2019-02-14T15:32:02Z | 2019-02-14T15:32:02Z | CONTRIBUTOR | null | #### Problem description
In order to have a continuous check by the CI on validation error `PR08` (Parameter description should start with a capital letter), fixing them in the code base enables the addition to the CI for automated testing in the future.
Please see [overview of the errors](https://gist.github.com/198cfa552c727d71bd7360fda66fdbb4).
Todo:
* [ ] get rid of the errors in the code base
* [ ] update the `code_check.sh` script to take into account the `PR08` type of errors | {
"+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/25252/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25252/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25253 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25253/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25253/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25253/events | https://github.com/pandas-dev/pandas/pull/25253 | 408,482,896 | MDExOlB1bGxSZXF1ZXN0MjUxNzA2MTkz | 25,253 | Revert "BLD: prevent asv from calling sys.stdin.close() by using different launch method" | {
"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": "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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-02-09T23:39:43Z | 2019-05-12T08:02:49Z | 2019-02-11T13:08:16Z | CONTRIBUTOR | null | Reverts pandas-dev/pandas#25237 | {
"+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/25253/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25253/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25253.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25253",
"merged_at": "2019-02-11T13:08:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25253.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25253"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25254 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25254/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25254/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25254/events | https://github.com/pandas-dev/pandas/pull/25254 | 408,483,121 | MDExOlB1bGxSZXF1ZXN0MjUxNzA2MzE1 | 25,254 | API: Ensure DatetimeTZDtype standardizes pytz timezones | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-02-09T23:42:52Z | 2019-02-11T16:22:08Z | 2019-02-11T14:32:54Z | MEMBER | null | - [x] closes #24713
- [x] closes #23815
- [x] closes #20257
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Includes some related-ish timezone documentation issues. | {
"+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/25254/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25254/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25254.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25254",
"merged_at": "2019-02-11T14:32:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25254.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25254"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25255 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25255/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25255/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25255/events | https://github.com/pandas-dev/pandas/pull/25255 | 408,487,945 | MDExOlB1bGxSZXF1ZXN0MjUxNzA5NDE0 | 25,255 | PERF: avoid copy of dataframe while writing to SQL DBs | {
"avatar_url": "https://avatars.githubusercontent.com/u/24300275?v=4",
"events_url": "https://api.github.com/users/sridhu88/events{/privacy}",
"followers_url": "https://api.github.com/users/sridhu88/followers",
"following_url": "https://api.github.com/users/sridhu88/following{/other_user}",
"gists_url": "https://api.github.com/users/sridhu88/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sridhu88",
"id": 24300275,
"login": "sridhu88",
"node_id": "MDQ6VXNlcjI0MzAwMjc1",
"organizations_url": "https://api.github.com/users/sridhu88/orgs",
"received_events_url": "https://api.github.com/users/sridhu88/received_events",
"repos_url": "https://api.github.com/users/sridhu88/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sridhu88/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sridhu88/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sridhu88"
} | [
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] | closed | false | null | [] | null | 13 | 2019-02-10T00:58:17Z | 2019-03-19T04:07:14Z | 2019-03-19T04:07:13Z | NONE | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] This change avoids making an entire copy of the dataframe while writing to SQL DBs with a chunksize. Instead we convert slices of the dataframe into a data list and write to the DB. Saves significant memory when writing large dataframes to SQL DBs.
| {
"+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/25255/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25255/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25255.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25255",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/25255.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25255"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25256 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25256/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25256/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25256/events | https://github.com/pandas-dev/pandas/pull/25256 | 408,488,612 | MDExOlB1bGxSZXF1ZXN0MjUxNzA5Nzk3 | 25,256 | Fix minor error in dynamic load function | {
"avatar_url": "https://avatars.githubusercontent.com/u/3150861?v=4",
"events_url": "https://api.github.com/users/nmusolino/events{/privacy}",
"followers_url": "https://api.github.com/users/nmusolino/followers",
"following_url": "https://api.github.com/users/nmusolino/following{/other_user}",
"gists_url": "https://api.github.com/users/nmusolino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmusolino",
"id": 3150861,
"login": "nmusolino",
"node_id": "MDQ6VXNlcjMxNTA4NjE=",
"organizations_url": "https://api.github.com/users/nmusolino/orgs",
"received_events_url": "https://api.github.com/users/nmusolino/received_events",
"repos_url": "https://api.github.com/users/nmusolino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmusolino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmusolino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmusolino"
} | [
{
"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": "eb64... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 12 | 2019-02-10T01:08:56Z | 2019-02-28T13:35:04Z | 2019-02-28T13:35:01Z | CONTRIBUTOR | null | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The `validate_docstrings.py` script dynamically loads modules/classes/functions from its command-line argument.
Currently, if the user supplies an invalid argument, an UnboundLocalError can be obtained:
```
Traceback (most recent call last):
...
File "./scripts/validate_docstrings.py", line 275, in _load_obj
obj = getattr(obj, part)
UnboundLocalError: local variable 'obj' referenced before assignment
```
This PR fixes a check within the relevant function, so that a more informative error can be raised:
```
$ ./scripts/validate_docstrings.py tslibs.Timestamp
Traceback (most recent call last):
...
ImportError: No module can be imported from "tslibs.Timestamp"
```
| {
"+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/25256/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25256/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25256.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25256",
"merged_at": "2019-02-28T13:35:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25256.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25256"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25257 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25257/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25257/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25257/events | https://github.com/pandas-dev/pandas/issues/25257 | 408,506,195 | MDU6SXNzdWU0MDg1MDYxOTU= | 25,257 | concat(..., copy=False) with datetime tz-aware data raises ValueError: cannot create a DatetimeTZBlock without a tz | {
"avatar_url": "https://avatars.githubusercontent.com/u/12504708?v=4",
"events_url": "https://api.github.com/users/karldw/events{/privacy}",
"followers_url": "https://api.github.com/users/karldw/followers",
"following_url": "https://api.github.com/users/karldw/following{/other_user}",
"gists_url": "https://api.github.com/users/karldw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/karldw",
"id": 12504708,
"login": "karldw",
"node_id": "MDQ6VXNlcjEyNTA0NzA4",
"organizations_url": "https://api.github.com/users/karldw/orgs",
"received_events_url": "https://api.github.com/users/karldw/received_events",
"repos_url": "https://api.github.com/users/karldw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/karldw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/karldw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/karldw"
} | [
{
"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": "5319e7",
"de... | closed | false | {
"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"
} | [
{
"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... | {
"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"
} | 9 | 2019-02-10T06:29:24Z | 2020-07-13T12:55:12Z | 2020-07-13T12:55:12Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame({
'timestamp': [pd.Timestamp('2017-08-27 01:00:00.709949+0000', tz='UTC')],
})
pd.concat([df]) # works
pd.concat([df, df]) # works
pd.concat([df], copy=False) # fails
# Edit: added full traceback
# Traceback (most recent call last):
# File "<stdin>", line 1, in <module>
# File ".../pandas/core/reshape/concat.py", line 229, in concat
# return op.get_result()
# File ".../pandas/core/reshape/concat.py", line 426, in get_result
# copy=self.copy)
# File ".../pandas/core/internals/managers.py", line 2055, in concatenate_block_managers
# b = b.make_block_same_class(values, placement=placement)
# File ".../pandas/core/internals/blocks.py", line 235, in make_block_same_class
# klass=self.__class__, dtype=dtype)
# File ".../pandas/core/internals/blocks.py", line 3095, in make_block
# return klass(values, ndim=ndim, placement=placement)
# File ".../pandas/core/internals/blocks.py", line 1680, in __init__
# values = self._maybe_coerce_values(values)
# File ".../pandas/core/internals/blocks.py", line 2266, in _maybe_coerce_values
# raise ValueError("cannot create a DatetimeTZBlock without a tz")
# ValueError: cannot create a DatetimeTZBlock without a tz
```
#### Problem description
Running `pd.concat` with a single dataframe and `copy=False` fails, giving an error about `cannot create a DatetimeTZBlock without a tz`.
Closely related:
- https://github.com/pandas-dev/pandas/issues/19420
- https://github.com/pandas-dev/pandas/issues?q=is%3Aopen+is%3Aissue+label%3AReshaping+label%3ATimezones
#### Expected Output
The original dataframe, since I'm only `concat`-ing a single dataframe.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.8.final.0
python-bits: 64
OS: Linux
OS-release: 4.18.0-14-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.1
pytest: 4.2.0
pip: 19.0.1
setuptools: 40.6.3
Cython: 0.29.4
numpy: 1.15.4
scipy: 1.2.0
pyarrow: 0.11.1
xarray: None
IPython: 7.2.0
sphinx: None
patsy: None
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.2
openpyxl: 2.4.10
xlrd: 1.2.0
xlwt: None
xlsxwriter: 1.1.2
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: 1.2.17
pymysql: None
psycopg2: 2.7.6.1 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: 0.2.1
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25257/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25257/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25258 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25258/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25258/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25258/events | https://github.com/pandas-dev/pandas/issues/25258 | 408,521,224 | MDU6SXNzdWU0MDg1MjEyMjQ= | 25,258 | IOError: [Errno 2] while building pandas doc | {
"avatar_url": "https://avatars.githubusercontent.com/u/47073683?v=4",
"events_url": "https://api.github.com/users/justineuroHP/events{/privacy}",
"followers_url": "https://api.github.com/users/justineuroHP/followers",
"following_url": "https://api.github.com/users/justineuroHP/following{/other_user}",
"gists_url": "https://api.github.com/users/justineuroHP/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/justineuroHP",
"id": 47073683,
"login": "justineuroHP",
"node_id": "MDQ6VXNlcjQ3MDczNjgz",
"organizations_url": "https://api.github.com/users/justineuroHP/orgs",
"received_events_url": "https://api.github.com/users/justineuroHP/received_events",
"repos_url": "https://api.github.com/users/justineuroHP/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/justineuroHP/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/justineuroHP/subscriptions",
"type": "User",
"url": "https://api.github.com/users/justineuroHP"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "3465A4",
"default": false,
... | open | false | null | [] | null | 3 | 2019-02-10T10:25:17Z | 2020-04-19T21:40:01Z | null | NONE | null | **Describe the bug**
Got an `IOError: [Errno 2]` when I tried to build the [pandas docs](https://github.com/pandas-dev/panda) in Ubuntu 18.04 LTS (Bionic Beaver) running in Windows 10. I initially posted this at `sphinx-doc` issues: [#6049](https://github.com/sphinx-doc/sphinx/issues/6049#issue-408502477) and [#6049-reply](https://github.com/sphinx-doc/sphinx/issues/6049#issuecomment-462114284) and it was suggested there that I post it here (see additional reply in [#6049](https://github.com/sphinx-doc/sphinx/issues/6049#issue-408502477)).
**To Reproduce**
Steps to reproduce the behavior:
```
$ git clone htps://github.com/pandas-dev/pandas
$ cd pandas
$ python setup.py build_ext --inplace --force
$ cd doc
$ python make.py clean
$ python make.py html
```
**Expected behavior**
Docs get built.
**Your project**
[None]
**Screenshots**
[None]
**Environment info**
- OS: Ubuntu 18.04 LTS (Bionic Beaver) running in Windows 10
- Python version: 2.7.15rc1 (CPython)
- Sphinx version: 1.8.4
- Docutils version: 0.14
- Jinja2 version: 2.10
**Additional context**
[*NOTE: Both the terminal output and .log file given below have been edited to allow anonymity*.]
The terminal output after `python make.py html`:
```bash
$ python make.py html
Running Sphinx v1.8.4
making output directory...
[autosummary] generating autosummary for: development/contributing.rst, development/contributing_docstring.rst, development/developer.rst, development/extending.rst, development/index.rst, development/internals.rst, ecosystem.rst, getting_started/10min.rst, getting_started/basics.rst, getting_started/comparison/comparison_with_r.rst, ..., whatsnew/v0.6.0.rst, whatsnew/v0.6.1.rst, whatsnew/v0.7.0.rst, whatsnew/v0.7.1.rst, whatsnew/v0.7.2.rst, whatsnew/v0.7.3.rst, whatsnew/v0.8.0.rst, whatsnew/v0.8.1.rst, whatsnew/v0.9.0.rst, whatsnew/v0.9.1.rst
WARNING: [autosummary] failed to import u'pandas.Timestamp.fold': no module named pandas.Timestamp.fold
[autosummary] generating autosummary for: /path/to/pandas/doc/source/reference/api/pandas.
...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 106 source files that are out of date
updating environment: 2781 added, 0 changed, 0 removed
/path/to/pandas/pandas/core/generic.py:docstring of pandas.DataFrame.asof:28: WARNING: Unexpected indentation.
/path/to/pandas/pandas/core/generic.py:docstring of pandas.DataFrame.asof:29: WARNING: Block quote ends without a blank line; unexpected unindent.
/path/to/pandas/pandas/core/generic.py:docstring of pandas.DataFrame.ewm:19: WARNING: Unexpected indentation.
/path/to/pandas/pandas/core/generic.py:docstring of pandas.DataFrame.ewm:17: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/path/to/pandas/pandas/core/accessor.py:docstring of pandas.DatetimeIndex.ceil:29: WARNING: Block quote ends without a blank line; unexpected unindent.
/path/to/pandas/pandas/core/accessor.py:docstring of pandas.DatetimeIndex.floor:29: WARNING: Block quote ends without a blank line; unexpected unindent.
/path/to/pandas/pandas/core/accessor.py:docstring of pandas.DatetimeIndex.round:29: WARNING: Block quote ends without a blank line; unexpected unindent.
/path/to/pandas/pandas/core/accessor.py:docstring of pandas.DatetimeIndex.tz_localize:36: WARNING: Block quote ends without a blank line; unexpected unindent.
/path/to/pandas/pandas/core/dtypes/dtypes.py:docstring of pandas.DatetimeTZDtype:36: WARNING: toctree references unknown document u'reference/api/pandas.DatetimeTZDtype.type'
/path/to/pandas/pandas/core/arrays/integer.py:docstring of pandas.Int16Dtype:34: WARNING: toctree references unknown document u'reference/api/pandas.Int16Dtype.type'
Exception occurred:
File "/usr/lib/python2.7/inspect.py", line 563, in findsource
raise IOError('could not find class definition')
IOError: could not find class definition
The full traceback has been saved in /tmp/sphinx-err-lTiOie.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Traceback (most recent call last):
File "make.py", line 339, in <module>
sys.exit(main())
File "make.py", line 335, in main
return getattr(builder, args.command)()
File "make.py", line 226, in html
self._add_redirects()
File "make.py", line 209, in _add_redirects
with open(path, 'w') as moved_page_fd:
IOError: [Errno 2] No such file or directory: /path/to/pandas/doc/build/html/generated/pandas.api.extensions.ExtensionArray.argsort.html'
```
The .log file is: [sphinx-err-lTiOie-EDITED.log](https://github.com/pandas-dev/pandas/files/2848738/sphinx-err-lTiOie-EDITED.log)
Thank you very much for whatever help you can extend! | {
"+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/25258/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25258/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25259 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25259/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25259/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25259/events | https://github.com/pandas-dev/pandas/issues/25259 | 408,547,241 | MDU6SXNzdWU0MDg1NDcyNDE= | 25,259 | replace method with comma separator does not work in pandas 0.24.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/29349211?v=4",
"events_url": "https://api.github.com/users/mr-yoo/events{/privacy}",
"followers_url": "https://api.github.com/users/mr-yoo/followers",
"following_url": "https://api.github.com/users/mr-yoo/following{/other_user}",
"gists_url": "https://api.github.com/users/mr-yoo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mr-yoo",
"id": 29349211,
"login": "mr-yoo",
"node_id": "MDQ6VXNlcjI5MzQ5MjEx",
"organizations_url": "https://api.github.com/users/mr-yoo/orgs",
"received_events_url": "https://api.github.com/users/mr-yoo/received_events",
"repos_url": "https://api.github.com/users/mr-yoo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mr-yoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mr-yoo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mr-yoo"
} | [
{
"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": "e11d21",
"default": false,
"description": "Functionality that used ... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 2 | 2019-02-10T15:40:42Z | 2019-02-28T13:55:33Z | 2019-02-28T13:55:33Z | NONE | null | ### The latest version (0.24.1) does not replace comma separator, but 0.23.4 does.
```python
import pandas as pd
df = pd.DataFrame({'one': ["1,000", "2,000"], 'two': ["3,000", "4,000"]})
df = df.replace({',': ''}, regex=True)
print(pd.__version__)
print(df)
```
```
0.23.4
one two
0 1000 3000
1 2000 4000
```
```
0.24.1
one two
0 1,000 3,000
1 2,000 4,000
```
If other characters are used with a comma, it works normally
```
df = df.replace({'1,': ''}, regex=True)
```
```
one two
0 000 3,000
1 2,000 4,000
``` | {
"+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/25259/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25259/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25260 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25260/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25260/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25260/events | https://github.com/pandas-dev/pandas/pull/25260 | 408,597,151 | MDExOlB1bGxSZXF1ZXN0MjUxNzc1ODk3 | 25,260 | BUG: DataFrame.join on tz-aware DatetimeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"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": "5319e7",
"de... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 6 | 2019-02-10T23:33:06Z | 2019-03-11T19:17:27Z | 2019-02-11T18:53:43Z | MEMBER | null | - [x] closes #23931
- [x] tests added / passed
- [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/25260/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25260/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25260.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25260",
"merged_at": "2019-02-11T18:53:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25260.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25260"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25261 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25261/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25261/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25261/events | https://github.com/pandas-dev/pandas/issues/25261 | 408,601,476 | MDU6SXNzdWU0MDg2MDE0NzY= | 25,261 | plotting: subplots_adjust prevents use of constrained_layout=True | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [
{
"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": "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"
} | 14 | 2019-02-11T00:15:51Z | 2021-01-28T15:07:14Z | 2021-01-28T15:07:14Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```python
# Your code here
import matplotlib.pyplot as plt
import pandas as pd
fig, axes = plt.subplots(2, constrained_layout=True)
times = pd.date_range(start='now', periods=10)
pd.DataFrame({'a': np.arange(10)}, index=times).plot(style='x', ax=axes[0])
```
#### Problem description
Plotting time-series uses pandas-internally a subplots_adjust, but due to this I am unable to use the new matplotlib constrained_layout that would take care of these things automatically.
#### Expected Output
A good layout that respects my constrained_layout setting to plt.subplots()
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.1.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-862.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.1
pytest: 4.2.0
pip: 19.0.2
setuptools: 40.7.3
Cython: 0.29.5
numpy: 1.16.1
scipy: 1.2.0
pyarrow: None
xarray: 0.11.3
IPython: 7.1.1
sphinx: 1.8.4
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: None
tables: 3.4.4
numexpr: 2.6.9
feather: None
matplotlib: 3.0.2
openpyxl: None
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.3
lxml.etree: 4.3.1
bs4: None
html5lib: None
sqlalchemy: 1.2.17
pymysql: None
psycopg2: 2.7.7 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/25261/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25261/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25262 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25262/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25262/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25262/events | https://github.com/pandas-dev/pandas/pull/25262 | 408,602,298 | MDExOlB1bGxSZXF1ZXN0MjUxNzc5MzI0 | 25,262 | REF/TST: resample/test_base.py | {
"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"
},
{
"color": "207de5",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-02-11T00:23:41Z | 2019-03-13T21:11:32Z | 2019-02-11T12:55:05Z | MEMBER | null | follow-on from #24377
xref #25197
in #24377, the `pytest_generate_tests` hook was used to parametrize the base tests over date_range, period_range and timedelta_range indexes.
to make it easier to understand the code and use less pytest magic, this PR uses a simpler approach of applying markers to the tests instead of having the test name ending in _all_ts. | {
"+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/25262/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25262/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25262.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25262",
"merged_at": "2019-02-11T12:55:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25262.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25262"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25263 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25263/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25263/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25263/events | https://github.com/pandas-dev/pandas/pull/25263 | 408,621,012 | MDExOlB1bGxSZXF1ZXN0MjUxNzkyMTYy | 25,263 | BUG: Indexing with UTC offset string no longer ignored | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"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": "53... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 8 | 2019-02-11T03:16:48Z | 2019-11-25T12:47:06Z | 2019-02-24T03:37:40Z | MEMBER | null | - [x] closes #24076
- [x] closes #16785
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Additionally, date strings with UTC offsets that are using in indexing are now validated by the following:
- An error is raised if 2 date strings have different UTC offsets
- An error is raised if the date strings have a UTC offset and the index is not timezone aware. | {
"+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/25263/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25263/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25263.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25263",
"merged_at": "2019-02-24T03:37:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25263.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25263"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25264 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25264/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25264/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25264/events | https://github.com/pandas-dev/pandas/pull/25264 | 408,655,730 | MDExOlB1bGxSZXF1ZXN0MjUxODE3MDc3 | 25,264 | BUG: groupby.transform retains timezone information | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"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,
... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 4 | 2019-02-11T07:01:00Z | 2019-02-16T22:33:36Z | 2019-02-16T16:32:04Z | MEMBER | null | - [x] closes #24198
- [x] tests added / passed
- [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/25264/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25264/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25264.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25264",
"merged_at": "2019-02-16T16:32:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25264.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25264"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25265 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25265/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25265/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25265/events | https://github.com/pandas-dev/pandas/pull/25265 | 408,687,539 | MDExOlB1bGxSZXF1ZXN0MjUxODQwNjQz | 25,265 | BUG: support casting from bool array to EA Integer dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/9671366?v=4",
"events_url": "https://api.github.com/users/vladserkoff/events{/privacy}",
"followers_url": "https://api.github.com/users/vladserkoff/followers",
"following_url": "https://api.github.com/users/vladserkoff/following{/other_user}",
"gists_url": "https://api.github.com/users/vladserkoff/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vladserkoff",
"id": 9671366,
"login": "vladserkoff",
"node_id": "MDQ6VXNlcjk2NzEzNjY=",
"organizations_url": "https://api.github.com/users/vladserkoff/orgs",
"received_events_url": "https://api.github.com/users/vladserkoff/received_events",
"repos_url": "https://api.github.com/users/vladserkoff/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vladserkoff/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vladserkoff/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vladserkoff"
} | [
{
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 23 | 2019-02-11T09:09:36Z | 2019-05-14T14:25:41Z | 2019-05-14T14:15:30Z | CONTRIBUTOR | null | Cast boolean array to int before casting to EA Integer dtype.
- [x] closes #25211
- [x] tests added / passed
- [x] 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/25265/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25265/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25265.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25265",
"merged_at": "2019-05-14T14:15:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25265.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25265"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25266 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25266/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25266/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25266/events | https://github.com/pandas-dev/pandas/pull/25266 | 408,720,955 | MDExOlB1bGxSZXF1ZXN0MjUxODY2Mzg1 | 25,266 | BUG: Fix regression on DataFrame.replace for regex | {
"avatar_url": "https://avatars.githubusercontent.com/u/9269985?v=4",
"events_url": "https://api.github.com/users/PetitLepton/events{/privacy}",
"followers_url": "https://api.github.com/users/PetitLepton/followers",
"following_url": "https://api.github.com/users/PetitLepton/following{/other_user}",
"gists_url": "https://api.github.com/users/PetitLepton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/PetitLepton",
"id": 9269985,
"login": "PetitLepton",
"node_id": "MDQ6VXNlcjkyNjk5ODU=",
"organizations_url": "https://api.github.com/users/PetitLepton/orgs",
"received_events_url": "https://api.github.com/users/PetitLepton/received_events",
"repos_url": "https://api.github.com/users/PetitLepton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/PetitLepton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PetitLepton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/PetitLepton"
} | [
{
"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": "5319e7",
"default": false,
"description": "String extension data ty... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 15 | 2019-02-11T10:41:58Z | 2019-02-28T18:44:51Z | 2019-02-28T13:55:34Z | CONTRIBUTOR | null | The commit ensures that the replacement for regex is not confined to the
beginning of the string but spans all the characters within. The
behaviour is then consistent with versions prior to 0.24.0.
- [x] closes #25259
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+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/25266/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25266/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25266.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25266",
"merged_at": "2019-02-28T13:55:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25266.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25266"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25267 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25267/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25267/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25267/events | https://github.com/pandas-dev/pandas/pull/25267 | 408,768,125 | MDExOlB1bGxSZXF1ZXN0MjUxOTAyOTIz | 25,267 | Backport PR #25234 on branch 0.24.x (BUG: Duplicated returns boolean dataframe) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"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": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 2 | 2019-02-11T12:53:23Z | 2019-02-11T13:59:47Z | 2019-02-11T13:59:47Z | NONE | null | Backport PR #25234: BUG: Duplicated returns boolean dataframe | {
"+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/25267/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25267/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25267.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25267",
"merged_at": "2019-02-11T13:59:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25267.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25267"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25268 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25268/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25268/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25268/events | https://github.com/pandas-dev/pandas/pull/25268 | 408,808,891 | MDExOlB1bGxSZXF1ZXN0MjUxOTM0NTkw | 25,268 | [BUG] exception handling of MultiIndex.__contains__ too narrow | {
"avatar_url": "https://avatars.githubusercontent.com/u/14367887?v=4",
"events_url": "https://api.github.com/users/makbigc/events{/privacy}",
"followers_url": "https://api.github.com/users/makbigc/followers",
"following_url": "https://api.github.com/users/makbigc/following{/other_user}",
"gists_url": "https://api.github.com/users/makbigc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/makbigc",
"id": 14367887,
"login": "makbigc",
"node_id": "MDQ6VXNlcjE0MzY3ODg3",
"organizations_url": "https://api.github.com/users/makbigc/orgs",
"received_events_url": "https://api.github.com/users/makbigc/received_events",
"repos_url": "https://api.github.com/users/makbigc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/makbigc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/makbigc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/makbigc"
} | [
{
"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": null,
"id": 71268330,... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 7 | 2019-02-11T14:31:59Z | 2019-02-19T13:46:12Z | 2019-02-19T13:46:05Z | CONTRIBUTOR | null | - closes #24570
- 1 test added
- 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/25268/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25268/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25268.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25268",
"merged_at": "2019-02-19T13:46:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25268.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25268"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25269 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25269/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25269/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25269/events | https://github.com/pandas-dev/pandas/issues/25269 | 408,813,437 | MDU6SXNzdWU0MDg4MTM0Mzc= | 25,269 | Numpy 1.16 and pickle retrocompatibility | {
"avatar_url": "https://avatars.githubusercontent.com/u/23078199?v=4",
"events_url": "https://api.github.com/users/SylvainLan/events{/privacy}",
"followers_url": "https://api.github.com/users/SylvainLan/followers",
"following_url": "https://api.github.com/users/SylvainLan/following{/other_user}",
"gists_url": "https://api.github.com/users/SylvainLan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SylvainLan",
"id": 23078199,
"login": "SylvainLan",
"node_id": "MDQ6VXNlcjIzMDc4MTk5",
"organizations_url": "https://api.github.com/users/SylvainLan/orgs",
"received_events_url": "https://api.github.com/users/SylvainLan/received_events",
"repos_url": "https://api.github.com/users/SylvainLan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SylvainLan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SylvainLan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SylvainLan"
} | [] | 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 | 2019-02-11T14:41:45Z | 2019-02-11T16:16:06Z | 2019-02-11T14:46:16Z | CONTRIBUTOR | null | Hi,
I don't really know if this matter should be posted in pandas but here is the issue I noticed.
If you save a DataFrame into pickle (using `to_pickle`) on a virtualenv that has `numpy>=1.16` and want to open it with another virtualenv with `numpy<=1.15.4`, the following error is thrown :
```
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
```
Which is a feature of `numpy=1.16`. This issue could be of interest because the numpy version downloaded through anaconda is still 1.15.4 (unless you use conda-forge) while it is 1.16 using pip.
My pandas version is `0.24.1` in both cases. | {
"+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/25269/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25269/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25270 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25270/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25270/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25270/events | https://github.com/pandas-dev/pandas/issues/25270 | 408,814,207 | MDU6SXNzdWU0MDg4MTQyMDc= | 25,270 | Indexing bug with Sparse DataFrames and column names not starting with `0` | {
"avatar_url": "https://avatars.githubusercontent.com/u/5618407?v=4",
"events_url": "https://api.github.com/users/rasbt/events{/privacy}",
"followers_url": "https://api.github.com/users/rasbt/followers",
"following_url": "https://api.github.com/users/rasbt/following{/other_user}",
"gists_url": "https://api.github.com/users/rasbt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rasbt",
"id": 5618407,
"login": "rasbt",
"node_id": "MDQ6VXNlcjU2MTg0MDc=",
"organizations_url": "https://api.github.com/users/rasbt/orgs",
"received_events_url": "https://api.github.com/users/rasbt/received_events",
"repos_url": "https://api.github.com/users/rasbt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rasbt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rasbt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rasbt"
} | [
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"color": "0e8a16",
"default": true,
"description":... | open | false | null | [] | null | 7 | 2019-02-11T14:43:33Z | 2021-09-23T23:27:57Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
ary = np.array([ [1, 0, 0, 3],
[1, 0, 2, 0],
[0, 4, 0 ,0] ])
df = pd.DataFrame(ary)
df.columns = [1, 2, 3, 4]
dfs = pd.SparseDataFrame(df,
default_fill_value=0)
# DOES NOT WORK:
dfs.to_coo() # raises KeyError: 0
# WORKS (1)
dfs2 = dfs.copy()
dfs2.columns = [0, 1, 2, 3]
dfs2.to_coo()
# WORKS (2)
dfs3 = dfs.copy()
dfs3.columns = [str(i) for i in dfs3.columns]
dfs3.to_coo()
```
#### Problem description
In the example above, the Pandas SparseDataFrame method `to_coo()` (and possibly others) cannot handle sparse dataframes if the column names are integer types and don't start at 0. If the column names start at 0 or are string types, this is not an issue.
#### Expected Output
```python
<3x4 sparse matrix of type '<class 'numpy.int64'>'
with 5 stored elements in COOrdinate format>
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Darwin
OS-release: 18.2.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.23.4
pytest: None
pip: 18.1
setuptools: 40.2.0
Cython: 0.28.5
numpy: 1.15.4
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 6.5.0
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: 3.4.4
numexpr: 2.6.9
feather: None
matplotlib: 2.2.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: 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/25270/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25270/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25271 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25271/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25271/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25271/events | https://github.com/pandas-dev/pandas/issues/25271 | 408,903,867 | MDU6SXNzdWU0MDg5MDM4Njc= | 25,271 | Excel Module Cleanups | {
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "207de5",
"default": false,
"de... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-02-11T17:55:40Z | 2019-02-20T08:04:32Z | 2019-02-20T08:04:32Z | MEMBER | null | As called out by @gfyoung in review there are some easy opportunities to clean up and simplify the existing Excel IO modules. These are mostly minor loop refactors and docstring updates
https://github.com/pandas-dev/pandas/pull/25153#pullrequestreview-200888051
| {
"+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/25271/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25271/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25272 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25272/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25272/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25272/events | https://github.com/pandas-dev/pandas/pull/25272 | 408,910,504 | MDExOlB1bGxSZXF1ZXN0MjUyMDEzMjY3 | 25,272 | REF: use _constructor and ABCFoo to avoid runtime imports | {
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-02-11T18:13:03Z | 2019-03-05T21:02:54Z | 2019-02-11T19:37:54Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] 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/25272/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25272/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25272.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25272",
"merged_at": "2019-02-11T19:37:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25272.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25272"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25273 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25273/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25273/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25273/events | https://github.com/pandas-dev/pandas/issues/25273 | 408,922,153 | MDU6SXNzdWU0MDg5MjIxNTM= | 25,273 | REF: Refactor private/circular parts out of dtypes.concat | {
"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,
"de... | closed | false | null | [] | null | 0 | 2019-02-11T18:44:36Z | 2021-06-17T03:06:21Z | 2021-06-17T03:06:21Z | MEMBER | null | A lot of core.dtypes.concat arguably doesn't belong in core.dtypes. In particular functions that induce circular imports, private functions that are used externally, and functions that are more about arrays/indexes than they are about dtypes.
Some of these (_get_series_result_type, _get_frame_result_type) are used in only core.reshape.concat, could go either directly in that module or into a helper module in core.reshape.
Others are class-specific (concat_rangeindex_same_dtype, _concat_sparse, concat_index_asobject) and make more sense in the modules corresponding to those classes (avoiding circular imports). union_categoricals and _concat_categorical probably belong in this group too.
_concat_compat is used in 6 other files, probably shouldn't be private. | {
"+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/25273/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25273/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25274 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25274/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25274/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25274/events | https://github.com/pandas-dev/pandas/issues/25274 | 408,929,321 | MDU6SXNzdWU0MDg5MjkzMjE= | 25,274 | Broken behaviour on read_excel on 0.24.0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/3506856?v=4",
"events_url": "https://api.github.com/users/LPugens/events{/privacy}",
"followers_url": "https://api.github.com/users/LPugens/followers",
"following_url": "https://api.github.com/users/LPugens/following{/other_user}",
"gists_url": "https://api.github.com/users/LPugens/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LPugens",
"id": 3506856,
"login": "LPugens",
"node_id": "MDQ6VXNlcjM1MDY4NTY=",
"organizations_url": "https://api.github.com/users/LPugens/orgs",
"received_events_url": "https://api.github.com/users/LPugens/received_events",
"repos_url": "https://api.github.com/users/LPugens/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LPugens/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LPugens/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LPugens"
} | [
{
"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": "bfe5bf",
"default": false,
"descript... | closed | false | null | [] | null | 3 | 2019-02-11T19:03:28Z | 2019-02-15T00:28:13Z | 2019-02-12T06:24:58Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
# Your code here
wget https://github.com/pandas-dev/pandas/files/2852618/file.xlsx
pip install pandas==0.23.4
>>import pandas as pd
>>df = pd.read_excel('file.xlsx', index_row=[0, 1, 2], header=[0, 1, 2])
>>print(df.columns.names)
pip uninstall pandas
pip install pandas==0.24.0
>>import pandas as pd
>>df = pd.read_excel('file.xlsx', index_row=[0, 1, 2], header=[0, 1, 2])
>>print(df.columns.names)
```
#### Problem description
The columns names are not identified by versions 0.24+.
#### Expected Output
Both print lines should print the same thing:
['top_level', 'middle_level', 'low_level']
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: AMD64 Family 23 Model 1 Stepping 1, AuthenticAMD
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.4
pytest: None
pip: 18.1
setuptools: 40.6.2
Cython: None
numpy: 1.16.1
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.2
openpyxl: 2.5.12
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: 1.2.14
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: AMD64 Family 23 Model 1 Stepping 1, AuthenticAMD
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.0
pytest: None
pip: 18.1
setuptools: 40.6.2
Cython: None
numpy: 1.16.1
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.2
openpyxl: 2.5.12
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: 1.2.14
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25274/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25274/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25275 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25275/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25275/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25275/events | https://github.com/pandas-dev/pandas/pull/25275 | 408,974,389 | MDExOlB1bGxSZXF1ZXN0MjUyMDYyOTM5 | 25,275 | [CLN] Excel Module Cleanups | {
"avatar_url": "https://avatars.githubusercontent.com/u/7870803?v=4",
"events_url": "https://api.github.com/users/tdamsma/events{/privacy}",
"followers_url": "https://api.github.com/users/tdamsma/followers",
"following_url": "https://api.github.com/users/tdamsma/following{/other_user}",
"gists_url": "https://api.github.com/users/tdamsma/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tdamsma",
"id": 7870803,
"login": "tdamsma",
"node_id": "MDQ6VXNlcjc4NzA4MDM=",
"organizations_url": "https://api.github.com/users/tdamsma/orgs",
"received_events_url": "https://api.github.com/users/tdamsma/received_events",
"repos_url": "https://api.github.com/users/tdamsma/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tdamsma/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tdamsma/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tdamsma"
} | [
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "207de5",
"default": false,
"de... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 7 | 2019-02-11T21:02:24Z | 2019-02-20T08:42:25Z | 2019-02-20T08:04:32Z | CONTRIBUTOR | null | - [x] closes #25271
- [x] tests added / passed
- [x] 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/25275/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25275/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25275.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25275",
"merged_at": "2019-02-20T08:04:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25275.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25275"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25276 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25276/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25276/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25276/events | https://github.com/pandas-dev/pandas/issues/25276 | 408,976,820 | MDU6SXNzdWU0MDg5NzY4MjA= | 25,276 | New pd variable types for pd.period arithmetic | {
"avatar_url": "https://avatars.githubusercontent.com/u/24326925?v=4",
"events_url": "https://api.github.com/users/justinessert/events{/privacy}",
"followers_url": "https://api.github.com/users/justinessert/followers",
"following_url": "https://api.github.com/users/justinessert/following{/other_user}",
"gists_url": "https://api.github.com/users/justinessert/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/justinessert",
"id": 24326925,
"login": "justinessert",
"node_id": "MDQ6VXNlcjI0MzI2OTI1",
"organizations_url": "https://api.github.com/users/justinessert/orgs",
"received_events_url": "https://api.github.com/users/justinessert/received_events",
"repos_url": "https://api.github.com/users/justinessert/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/justinessert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/justinessert/subscriptions",
"type": "User",
"url": "https://api.github.com/users/justinessert"
} | [
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id... | closed | false | null | [] | null | 6 | 2019-02-11T21:08:46Z | 2019-02-12T21:47:20Z | 2019-02-12T21:47:19Z | CONTRIBUTOR | null | I believe it was with the release of version 0.24.0 that changed how the arithmetic between pandas periods works, but prior to that version, if we started with
```python
x = pd.Period('2017-01')
y = pd.Period('2016-01')
diff = x-y
print(diff, ' ', type(diff))
```
The result would be:
```
12 <class 'int'>
```
diff would be the int `12`. But using version 0.24.0 and running the same code, the result is:
```
<12 * MonthEnds> <class 'pandas.tseries.offsets.MonthEnd'>
```
And there is seemingly no easy way to convert that back to an int. One solution posted on StackOverflow (https://stackoverflow.com/questions/42822768/pandas-number-of-months-between-two-dates) suggest that we do:
```python
(diff/np.timedelta64(1, 'M')).astype(int)
```
But this is a weird way to do something that I'd imagine is needed fairly often. It also causes issues if you need to support multiple pandas versions in your codebase because this code will break when diff is an int. So that leaves me with the best solution I could think of being:
```python
try:
(diff/np.timedelta64(1, 'M')).astype(int)
except:
pass
```
But this seems overly convoluted. Is there a better way to do this? Or could you add a `.astype(int)` method to the MonthsEnds class? | {
"+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/25276/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25276/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25277 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25277/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25277/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25277/events | https://github.com/pandas-dev/pandas/pull/25277 | 408,986,879 | MDExOlB1bGxSZXF1ZXN0MjUyMDcyNDE0 | 25,277 | TST/CLN: remove test_slice_ints_with_floats_raises | {
"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"
},
{
"color": "207de5",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-02-11T21:34:42Z | 2019-02-20T14:08:35Z | 2019-02-13T13:04:32Z | MEMBER | null | - [x] closes #20915
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [n/a ] 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/25277/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25277/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25277.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25277",
"merged_at": "2019-02-13T13:04:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25277.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25277"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25278 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25278/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25278/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25278/events | https://github.com/pandas-dev/pandas/issues/25278 | 409,073,631 | MDU6SXNzdWU0MDkwNzM2MzE= | 25,278 | crosstab shows margins in wrong order if index/columns are ordered categories | {
"avatar_url": "https://avatars.githubusercontent.com/u/6955013?v=4",
"events_url": "https://api.github.com/users/oriolmirosa/events{/privacy}",
"followers_url": "https://api.github.com/users/oriolmirosa/followers",
"following_url": "https://api.github.com/users/oriolmirosa/following{/other_user}",
"gists_url": "https://api.github.com/users/oriolmirosa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/oriolmirosa",
"id": 6955013,
"login": "oriolmirosa",
"node_id": "MDQ6VXNlcjY5NTUwMTM=",
"organizations_url": "https://api.github.com/users/oriolmirosa/orgs",
"received_events_url": "https://api.github.com/users/oriolmirosa/received_events",
"repos_url": "https://api.github.com/users/oriolmirosa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/oriolmirosa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oriolmirosa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/oriolmirosa"
} | [
{
"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": "0e8a16",
"de... | open | false | null | [] | null | 2 | 2019-02-12T01:47:13Z | 2021-06-26T05:25:57Z | null | NONE | null | #### Code Sample
Do a `crosstab` with an ordered categorical variable, with the order being different than the alphabetic default:
```python
df = pd.DataFrame({'First': ['B', 'B', 'C', 'A', 'B', 'C'],
'Second': ['C', 'B', 'B', 'B', 'C', 'A']})
df.First = df.First.astype(CategoricalDtype(ordered=True))
# Default order is alphabetic
df.First.cat.categories
>> Index(['A', 'B', 'C'], dtype='object')
# Change the order
df.First = df.First.cat.reorder_categories(['C', 'A', 'B'])
df.First.cat.categories
>> Index(['C', 'A', 'B'], dtype='object')
# Do a simple crosstab with margins
pd.crosstab(df.First, df.Second, margins=True)
>> Second A B C All
>> First
>> C 1 1 0 1
>> A 0 1 0 3
>> B 0 1 2 2
>> All 1 3 2 6
```
#### Problem description
The margins are showing the wrong values. In fact, they're showing the values that would be expected from the default ordering of the categories. This might be related to #20496, but the output here surely looks like a bug
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
commit: None
python: 3.6.7.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-1032-aws
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: en_US.UTF-8
LANG: C.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.1
pytest: 4.2.0
pip: 19.0.1
setuptools: 40.7.3
Cython: 0.29.4
numpy: 1.16.1
scipy: 1.2.0
pyarrow: 0.12.0
xarray: None
IPython: 7.2.0
sphinx: 1.8.4
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.9
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.9
feather: None
matplotlib: 3.0.2
openpyxl: 2.5.14
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: None
lxml.etree: 4.3.0
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.2.17
pymysql: None
psycopg2: 2.7.7 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: 0.2.1
pandas_gbq: 0.9.0
pandas_datareader: None
gcsfs: 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/25278/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25278/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25279 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25279/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25279/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25279/events | https://github.com/pandas-dev/pandas/pull/25279 | 409,088,678 | MDExOlB1bGxSZXF1ZXN0MjUyMTUyOTI2 | 25,279 | "Backport PR #25260 on branch 0.24.x" | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"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": "5319e7",
"de... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 3 | 2019-02-12T02:34:00Z | 2019-03-11T19:17:22Z | 2019-02-12T13:40:08Z | MEMBER | null | (cherry picked from commit a9a03a25d82ee285b6da48bfb20b9057d20bb9e7)
xref https://github.com/pandas-dev/pandas/pull/25260#issuecomment-462448610
| {
"+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/25279/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25279/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25279.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25279",
"merged_at": "2019-02-12T13:40:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25279.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25279"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25280 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25280/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25280/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25280/events | https://github.com/pandas-dev/pandas/pull/25280 | 409,100,010 | MDExOlB1bGxSZXF1ZXN0MjUyMTYyMDY4 | 25,280 | ENH: Support times with timezones in at_time | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"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": "0b02e1",
"default": false,
"description": "Related ... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-02-12T03:12:47Z | 2019-02-16T22:33:50Z | 2019-02-16T17:56:49Z | MEMBER | null | - [x] closes #24043
- [x] tests added / passed
- [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/25280/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25280/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25280.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25280",
"merged_at": "2019-02-16T17:56:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25280.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25280"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25281 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25281/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25281/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25281/events | https://github.com/pandas-dev/pandas/pull/25281 | 409,131,331 | MDExOlB1bGxSZXF1ZXN0MjUyMTg1MjI1 | 25,281 | Removed Panel class from HDF ASVs | {
"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": "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": "ae68cc",
"default": f... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-02-12T05:47:56Z | 2019-02-28T07:23:11Z | 2019-02-13T13:48:28Z | MEMBER | null | This is a logical follow up to #25233 which should also help resolve the build failures in #24953 | {
"+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/25281/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25281/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25281.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25281",
"merged_at": "2019-02-13T13:48:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25281.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25281"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25282 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25282/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25282/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25282/events | https://github.com/pandas-dev/pandas/issues/25282 | 409,149,773 | MDU6SXNzdWU0MDkxNDk3NzM= | 25,282 | Sum of TimedeltaIndex raises TypeError: len() of unsized object | {
"avatar_url": "https://avatars.githubusercontent.com/u/9310831?v=4",
"events_url": "https://api.github.com/users/H-SG/events{/privacy}",
"followers_url": "https://api.github.com/users/H-SG/followers",
"following_url": "https://api.github.com/users/H-SG/following{/other_user}",
"gists_url": "https://api.github.com/users/H-SG/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/H-SG",
"id": 9310831,
"login": "H-SG",
"node_id": "MDQ6VXNlcjkzMTA4MzE=",
"organizations_url": "https://api.github.com/users/H-SG/orgs",
"received_events_url": "https://api.github.com/users/H-SG/received_events",
"repos_url": "https://api.github.com/users/H-SG/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/H-SG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/H-SG/subscriptions",
"type": "User",
"url": "https://api.github.com/users/H-SG"
} | [
{
"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"
}
] | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 6 | 2019-02-12T07:02:04Z | 2019-02-20T10:52:02Z | 2019-02-20T10:52:02Z | NONE | null | #### Example code
```python
import pandas as pd
import numpy as np
dti = pd.date_range('2018-01-01', periods=100, freq='T')
dtd = dti[1:] - dti[:-1]
print(np.sum(dtd))
```
#### Problem description
Summing a TimedeltaIndex when using pandas 0.24.0 or newer with any version of numpy, or pandas 0.23.4 with any version of numpy newer than 0.15.4 fails, `np.sum(dtd)` gives the following output:
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-1-d64fe48d0fec> in <module>
6
7 print(np.mean(dtd)) # works
----> 8 print(np.sum(dtd)) # breaks
~/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py in sum(a, axis, dtype, out, keepdims, initial)
2074
2075 return _wrapreduction(a, np.add, 'sum', axis, dtype, out, keepdims=keepdims,
-> 2076 initial=initial)
2077
2078
~/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py in _wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs)
84 return reduction(axis=axis, out=out, **passkwargs)
85
---> 86 return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
87
88
~/.local/lib/python3.6/site-packages/pandas/core/indexes/base.py in __array_wrap__(self, result, context)
658 attrs = self._get_attributes_dict()
659 attrs = self._maybe_update_attributes(attrs)
--> 660 return Index(result, **attrs)
661
662 @cache_readonly
~/.local/lib/python3.6/site-packages/pandas/core/indexes/base.py in __new__(cls, data, dtype, copy, name, fastpath, tupleize_cols, **kwargs)
301 (dtype is not None and is_timedelta64_dtype(dtype))):
302 from pandas.core.indexes.timedeltas import TimedeltaIndex
--> 303 result = TimedeltaIndex(data, copy=copy, name=name, **kwargs)
304 if dtype is not None and _o_dtype == dtype:
305 return Index(result.to_pytimedelta(), dtype=_o_dtype)
~/.local/lib/python3.6/site-packages/pandas/core/indexes/timedeltas.py in __new__(cls, data, unit, freq, start, end, periods, closed, dtype, copy, name, verify_integrity)
250
251 # check that we are matching freqs
--> 252 if verify_integrity and len(data) > 0:
253 if freq is not None and not freq_infer:
254 index = cls._simple_new(data, name=name)
TypeError: len() of unsized object
```
Other methods such as `np.mean()` and `np.median()` continue to function normally
#### Expected Output
`5940000000000 nanoseconds`
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.7.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.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.24.1
pytest: None
pip: 19.0.2
setuptools: 40.8.0
Cython: None
numpy: 1.16.1
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 7.2.0
sphinx: None
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.3.1
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.2.17
pymysql: None
psycopg2: 2.7.7 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25282/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25282/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25283 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25283/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25283/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25283/events | https://github.com/pandas-dev/pandas/issues/25283 | 409,242,330 | MDU6SXNzdWU0MDkyNDIzMzA= | 25,283 | Pandas dataFrame - selecting data - 'Interval' Recursion error | {
"avatar_url": "https://avatars.githubusercontent.com/u/11476338?v=4",
"events_url": "https://api.github.com/users/cruzzoe/events{/privacy}",
"followers_url": "https://api.github.com/users/cruzzoe/followers",
"following_url": "https://api.github.com/users/cruzzoe/following{/other_user}",
"gists_url": "https://api.github.com/users/cruzzoe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cruzzoe",
"id": 11476338,
"login": "cruzzoe",
"node_id": "MDQ6VXNlcjExNDc2MzM4",
"organizations_url": "https://api.github.com/users/cruzzoe/orgs",
"received_events_url": "https://api.github.com/users/cruzzoe/received_events",
"repos_url": "https://api.github.com/users/cruzzoe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cruzzoe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cruzzoe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cruzzoe"
} | [
{
"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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtyp... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 1 | 2019-02-12T11:05:25Z | 2019-02-20T03:51:05Z | 2019-02-20T03:51:05Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame({'SPCName': ['IntervalXxxxxxxxxxxxxxxxxxxxxxxxx']})
df[df.SPCName == 'IntervalA']
```
#### Problem description
I am getting a recursion error from the above code ( RuntimeError: maximum recursion depth exceeded while calling a Python object )
This issue did not occur in version 0.23.4 but occurs when upgrading to 0.24.1.
I am not aware why using 'IntervalA' in a Boolean lookup or when using the loc indexer should result in RuntimeError
This issue appears to occur regardless of what follows the str 'Interval' for example 'IntervalABC' also fails.
#### Full traceback
python2.7/site-packages/pandas/core/ops.pyc in wrapper(self, other, axis)
1726
1727 elif (is_extension_array_dtype(self) or
-> 1728 (is_extension_array_dtype(other) and not is_scalar(other))):
1729 # Note: the `not is_scalar(other)` condition rules out
1730 # e.g. other == "category"
python2.7/site-packages/pandas/core/dtypes/common.pyc in is_extension_array_dtype(arr_or_dtype)
1747 dtype = getattr(arr_or_dtype, 'dtype', arr_or_dtype)
1748 return (isinstance(dtype, ExtensionDtype) or
-> 1749 registry.find(dtype) is not None)
1750
1751
python2.7/site-packages/pandas/core/dtypes/dtypes.pyc in find(self, dtype)
87 for dtype_type in self.dtypes:
88 try:
---> 89 return dtype_type.construct_from_string(dtype)
90 except TypeError:
91 pass
python2.7/site-packages/pandas/core/dtypes/dtypes.pyc in construct_from_string(cls, string)
936 (string.startswith('interval') or
937 string.startswith('Interval'))):
--> 938 return cls(string)
939
940 msg = "a string needs to be passed, got type {typ}"
python2.7/site-packages/pandas/core/dtypes/dtypes.pyc in __new__(cls, subtype)
897
898 try:
--> 899 subtype = pandas_dtype(subtype)
900 except TypeError:
901 raise TypeError("could not construct IntervalDtype")
python2.7/site-packages/pandas/core/dtypes/common.pyc in pandas_dtype(dtype)
2002
2003 # registered extension types
-> 2004 result = registry.find(dtype)
2005 if result is not None:
2006 return result
... last 4 frames repeated, from the frame below ...
python2.7/site-packages/pandas/core/dtypes/dtypes.pyc in find(self, dtype)
87 for dtype_type in self.dtypes:
88 try:
---> 89 return dtype_type.construct_from_string(dtype)
90 except TypeError:
91 pass
#### Expected Output
Empty dataframe because the str 'IntervalA' doesnt exist in the dataframe col SPCName.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.14.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-642.6.2.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US
LOCALE: None.None
pandas: 0.24.1
pytest: 3.6.4
pip: 18.0
setuptools: 40.2.0
Cython: None
numpy: 1.15.1
scipy: None
pyarrow: None
xarray: None
IPython: 5.8.0
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: 3.4.4
numexpr: 2.6.8
feather: None
matplotlib: 2.2.3
openpyxl: 2.5.12
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25283/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25283/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25284 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25284/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25284/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25284/events | https://github.com/pandas-dev/pandas/issues/25284 | 409,354,336 | MDU6SXNzdWU0MDkzNTQzMzY= | 25,284 | Empty string as subindex changes the shape | {
"avatar_url": "https://avatars.githubusercontent.com/u/6740194?v=4",
"events_url": "https://api.github.com/users/impact27/events{/privacy}",
"followers_url": "https://api.github.com/users/impact27/followers",
"following_url": "https://api.github.com/users/impact27/following{/other_user}",
"gists_url": "https://api.github.com/users/impact27/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/impact27",
"id": 6740194,
"login": "impact27",
"node_id": "MDQ6VXNlcjY3NDAxOTQ=",
"organizations_url": "https://api.github.com/users/impact27/orgs",
"received_events_url": "https://api.github.com/users/impact27/received_events",
"repos_url": "https://api.github.com/users/impact27/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/impact27/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/impact27/subscriptions",
"type": "User",
"url": "https://api.github.com/users/impact27"
} | [
{
"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 s... | open | false | null | [] | null | 1 | 2019-02-12T15:23:35Z | 2021-06-26T05:26:43Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
Example 1:
```python
import pandas as pd
import numpy as np
index = ['col1:sub1', 'col1:sub2', 'col2']
df = pd.DataFrame(np.random.random(size=(10, len(index))), columns = index)
df.columns = df.columns.str.split(':', expand=True)
for key in df.columns.levels[0]:
print(key, df.loc[:, key].shape)
index = ['col1:sub1', 'col1:sub2']
df = pd.DataFrame(np.random.random(size=(10, len(index))), columns = index)
df.columns = df.columns.str.split(':', expand=True)
df.loc[:, 'col2'] = np.random.random(size=(10))
for key in df.columns.levels[0]:
print(key, df.loc[:, key].shape)
```
Example 2:
```python
import pandas as pd
import numpy as np
index = pd.MultiIndex.from_tuples([
('col1', ''),
('col2', np.nan),
('col3', 'sub1'), ('col3', 'sub2'),
('col4', ''), ('col4', 'sub2'),
('col5', np.nan), ('col5', 'sub2')])
df = pd.DataFrame(np.random.random(size=(10, len(index))), columns = index)
for key in df.columns.levels[0]:
print(key, df.loc[:, key].shape)
```
#### Problem description
maybe related to #25154
This issue arises when one wants to work with mixed length MultiIndex. For example if I have a name and pH at different concentration, I would like to access `df.loc[:, 'name']` that would give me a Series, and `df.loc[:, 'pH']` that would give me a DataFrame.
To achieve that, pandas uses `''` as a subindex. Intuitively I would have thought that `nan` would have been a better choice! For example in example 1, if one uses `split` with `expand=True`, the missing values are filled with `nan`, while adding a column at a latter stage adds a `''`. Example 2 show that if the subindex is not alone, It is considered to be a DataFrame anyway.
In my opinion, it would be more intuitive if `('col2', np.nan)` was acting like `('col2', '')`. Example1 would show the same result for both techniques.
Perhaps more controversial, I think that the subindex of `df.loc[:, 'col2'] = np.random.random(size=(10))` should probably be `nan`, as this is the standard way of indicating missing data, and no data has been provided.
#### Expected Output
Example 1
```
col1 (10, 2)
col2 (10,)
col1 (10, 2)
col2 (10,)
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.0.final.0
python-bits: 64
OS: Darwin
OS-release: 18.2.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.1
pytest: 4.2.0
pip: 18.0
setuptools: 40.4.1
Cython: 0.28.5
numpy: 1.15.2
scipy: 1.2.0
pyarrow: None
xarray: None
IPython: 7.0.1
sphinx: 1.8.1
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.2.5
bs4: None
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25284/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25284/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25285 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25285/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25285/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25285/events | https://github.com/pandas-dev/pandas/pull/25285 | 409,366,441 | MDExOlB1bGxSZXF1ZXN0MjUyMzY3MDc1 | 25,285 | DOC: Fix minor typo in docstring | {
"avatar_url": "https://avatars.githubusercontent.com/u/5822618?v=4",
"events_url": "https://api.github.com/users/elcombato/events{/privacy}",
"followers_url": "https://api.github.com/users/elcombato/followers",
"following_url": "https://api.github.com/users/elcombato/following{/other_user}",
"gists_url": "https://api.github.com/users/elcombato/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/elcombato",
"id": 5822618,
"login": "elcombato",
"node_id": "MDQ6VXNlcjU4MjI2MTg=",
"organizations_url": "https://api.github.com/users/elcombato/orgs",
"received_events_url": "https://api.github.com/users/elcombato/received_events",
"repos_url": "https://api.github.com/users/elcombato/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/elcombato/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elcombato/subscriptions",
"type": "User",
"url": "https://api.github.com/users/elcombato"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-02-12T15:47:27Z | 2019-02-14T01:50:05Z | 2019-02-14T01:49:50Z | CONTRIBUTOR | null | fix for the docstring of `DataFrame.stack()` | {
"+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/25285/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25285/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25285.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25285",
"merged_at": "2019-02-14T01:49:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25285.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25285"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25286 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25286/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25286/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25286/events | https://github.com/pandas-dev/pandas/issues/25286 | 409,402,246 | MDU6SXNzdWU0MDk0MDIyNDY= | 25,286 | Ability to Override Default Titles for Missing Column Headers in read_csv | {
"avatar_url": "https://avatars.githubusercontent.com/u/6740194?v=4",
"events_url": "https://api.github.com/users/impact27/events{/privacy}",
"followers_url": "https://api.github.com/users/impact27/followers",
"following_url": "https://api.github.com/users/impact27/following{/other_user}",
"gists_url": "https://api.github.com/users/impact27/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/impact27",
"id": 6740194,
"login": "impact27",
"node_id": "MDQ6VXNlcjY3NDAxOTQ=",
"organizations_url": "https://api.github.com/users/impact27/orgs",
"received_events_url": "https://api.github.com/users/impact27/received_events",
"repos_url": "https://api.github.com/users/impact27/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/impact27/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/impact27/subscriptions",
"type": "User",
"url": "https://api.github.com/users/impact27"
} | [
{
"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": "207de5",
"default": false,
"description": null,
... | closed | false | null | [] | null | 6 | 2019-02-12T16:59:24Z | 2021-06-26T05:29:49Z | 2021-06-26T05:29:49Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
index = pd.MultiIndex.from_tuples([('col1', ''), ('col2', 'a1'), ('col2', 'a2')])
df = pd.DataFrame(np.random.random(size=(10, 3)), columns=index)
df.to_csv('test.cvs')
df2 = pd.read_csv('test.cvs', header=[0, 1], index_col=0)
print(df.columns)
print(df2.columns)
```
#### Problem description
`pd.read_csv` renames empty cells to "Unnamed: {i}_level_{level}" on line
https://github.com/pandas-dev/pandas/blob/4d44a2aff08c3075d9472e361bd7448a0472494e/pandas/io/parsers.py#L2542
It would be great to have an option of changing this behaviour to replacing with `''` or even a generic solution.
#### Expected Output
```
MultiIndex(levels=[['col1', 'col2'], ['', 'a1', 'a2']],
codes=[[0, 1, 1], [0, 1, 2]])
MultiIndex(levels=[['col1', 'col2'], ['', 'a1', 'a2']],
codes=[[0, 1, 1], [0, 1, 2]])
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.0.final.0
python-bits: 64
OS: Darwin
OS-release: 18.2.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.1
pytest: 4.2.0
pip: 18.0
setuptools: 40.4.1
Cython: 0.28.5
numpy: 1.15.2
scipy: 1.2.0
pyarrow: None
xarray: None
IPython: 7.0.1
sphinx: 1.8.1
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.2.5
bs4: None
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25286/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25286/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25287 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25287/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25287/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25287/events | https://github.com/pandas-dev/pandas/issues/25287 | 409,417,816 | MDU6SXNzdWU0MDk0MTc4MTY= | 25,287 | Python 2: pandas.Series.eq() crashes with unicode data | {
"avatar_url": "https://avatars.githubusercontent.com/u/461983?v=4",
"events_url": "https://api.github.com/users/joaoe/events{/privacy}",
"followers_url": "https://api.github.com/users/joaoe/followers",
"following_url": "https://api.github.com/users/joaoe/following{/other_user}",
"gists_url": "https://api.github.com/users/joaoe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joaoe",
"id": 461983,
"login": "joaoe",
"node_id": "MDQ6VXNlcjQ2MTk4Mw==",
"organizations_url": "https://api.github.com/users/joaoe/orgs",
"received_events_url": "https://api.github.com/users/joaoe/received_events",
"repos_url": "https://api.github.com/users/joaoe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joaoe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joaoe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joaoe"
} | [] | closed | false | null | [] | null | 4 | 2019-02-12T17:35:12Z | 2019-06-11T01:27:13Z | 2019-06-11T01:27:13Z | NONE | null | #### Code Sample
```python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pandas as pd
weird_string = u"føøbår"
x = pd.DataFrame({"a" : [weird_string, "xx"]})
bool_series = (x["a"].eq(weird_string))
print(x[bool_series].to_string())
assert len(x[bool_series]) == 1
```
#### Problem description
The code snippet above crashes. This makes querying dataframes with non-ascii text quite difficult.
Exception
```
bug.py
bool_series = (x["a"].eq(weird_string))
.env\lib\site-packages\pandas\core\ops.py:1728: in wrapper
(is_extension_array_dtype(other) and not is_scalar(other))):
.env\lib\site-packages\pandas\core\dtypes\common.py:1749: in is_extension_array_dtype
registry.find(dtype) is not None)
.env\lib\site-packages\pandas\core\dtypes\dtypes.py:89: in find
return dtype_type.construct_from_string(dtype)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 2: ordinal not in range(128)
```
I'm using pandas 0.24.1
#### Expected Output
No crash :)
#### Output of ``pd.show_versions()``
<details>
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.15.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.1
pytest: 4.2.0
pip: 19.0.1
setuptools: 40.7.3
Cython: None
numpy: 1.15.4
scipy: 1.2.0
pyarrow: None
xarray: 0.11.3
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.5
pytz: 2018.9
blosc: None
bottleneck: None
tables: 3.4.4
numexpr: 2.6.9
feather: None
matplotlib: 2.2.3
openpyxl: 2.5.14
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25287/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25287/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25288 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25288/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25288/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25288/events | https://github.com/pandas-dev/pandas/issues/25288 | 409,470,361 | MDU6SXNzdWU0MDk0NzAzNjE= | 25,288 | [0.24.1] New nullable integer fillna with non-int doesn't coerce to object | {
"avatar_url": "https://avatars.githubusercontent.com/u/4515493?v=4",
"events_url": "https://api.github.com/users/jelther/events{/privacy}",
"followers_url": "https://api.github.com/users/jelther/followers",
"following_url": "https://api.github.com/users/jelther/following{/other_user}",
"gists_url": "https://api.github.com/users/jelther/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jelther",
"id": 4515493,
"login": "jelther",
"node_id": "MDQ6VXNlcjQ1MTU0OTM=",
"organizations_url": "https://api.github.com/users/jelther/orgs",
"received_events_url": "https://api.github.com/users/jelther/received_events",
"repos_url": "https://api.github.com/users/jelther/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jelther/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jelther/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jelther"
} | [
{
"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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtyp... | open | false | null | [] | null | 22 | 2019-02-12T19:47:57Z | 2021-10-13T00:00:48Z | null | NONE | null | #### Code Sample
```python
import pandas as pd
sample_data = []
sample_data.append({"integer_column":None})
sample_data.append({"integer_column":1})
sample_data.append({"integer_column":2})
df = pd.DataFrame(sample_data)
# Previous type is object
# df.dtypes
df.loc[:,'integer_column'] = df.loc[:,'integer_column'].astype('Int64')
# Check new type is Int64, nullable
# df.dtypes
df.fillna('null_string')
```
#### Problem description
Using the new nullable type Int64, it is not possible to fill "NaN" values with other value.
### Error raised
> TypeError: <U11 cannot be converted to an IntegerDtype
#### Expected Output
The new dataframe should have replaced it's NaN values with the desired input of .fillna() method.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.4.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: en
LOCALE: None.None
pandas: 0.24.1
pytest: 3.3.2
pip: 9.0.1
setuptools: 38.4.0
Cython: 0.27.3
numpy: 1.14.0
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: 6.2.1
sphinx: 1.6.6
patsy: 0.5.0
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: 1.2.1
tables: 3.4.2
numexpr: 2.6.4
feather: None
matplotlib: 2.1.2
openpyxl: 2.5.12
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.2
lxml.etree: 4.1.1
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.1.18
pymysql: None
psycopg2: None
jinja2: 2.8.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+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/25288/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25288/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25289 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25289/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25289/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25289/events | https://github.com/pandas-dev/pandas/pull/25289 | 409,498,397 | MDExOlB1bGxSZXF1ZXN0MjUyNDY5ODIz | 25,289 | BUG: fixed merging with empty frame containing an Int64 column (#25183) | {
"avatar_url": "https://avatars.githubusercontent.com/u/3686522?v=4",
"events_url": "https://api.github.com/users/josham/events{/privacy}",
"followers_url": "https://api.github.com/users/josham/followers",
"following_url": "https://api.github.com/users/josham/following{/other_user}",
"gists_url": "https://api.github.com/users/josham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/josham",
"id": 3686522,
"login": "josham",
"node_id": "MDQ6VXNlcjM2ODY1MjI=",
"organizations_url": "https://api.github.com/users/josham/orgs",
"received_events_url": "https://api.github.com/users/josham/received_events",
"repos_url": "https://api.github.com/users/josham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/josham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/josham"
} | [
{
"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": "e102d8",
"de... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 6 | 2019-02-12T21:01:45Z | 2019-02-24T03:47:53Z | 2019-02-24T03:47:24Z | CONTRIBUTOR | null | - [x] closes #25183
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 1,
"hooray": 1,
"laugh": 0,
"rocket": 0,
"total_count": 3,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/25289/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25289/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25289.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25289",
"merged_at": "2019-02-24T03:47:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25289.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25289"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25290 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25290/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25290/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25290/events | https://github.com/pandas-dev/pandas/issues/25290 | 409,527,382 | MDU6SXNzdWU0MDk1MjczODI= | 25,290 | Row assignment by multi-index label not working in 0.24.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7799980?v=4",
"events_url": "https://api.github.com/users/stuz5000/events{/privacy}",
"followers_url": "https://api.github.com/users/stuz5000/followers",
"following_url": "https://api.github.com/users/stuz5000/following{/other_user}",
"gists_url": "https://api.github.com/users/stuz5000/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stuz5000",
"id": 7799980,
"login": "stuz5000",
"node_id": "MDQ6VXNlcjc3OTk5ODA=",
"organizations_url": "https://api.github.com/users/stuz5000/orgs",
"received_events_url": "https://api.github.com/users/stuz5000/received_events",
"repos_url": "https://api.github.com/users/stuz5000/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stuz5000/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stuz5000/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stuz5000"
} | [
{
"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": "20... | closed | false | null | [] | null | 6 | 2019-02-12T22:21:18Z | 2021-06-26T05:38:09Z | 2021-06-26T05:38:09Z | NONE | null | #### Code Sample, a copy-pastable example if possible
I uses to be able to assign to a series like so:
```
import pandas as pd
pd.Series()["aaa"]= True # regular indexing
pd.Series().loc["aaa"]= True # regular indexing
pd.Series()[("aaa",123)]= True # Multi indexing
pd.Series().loc[("aaa",123)]= True # Multi indexing
```
but in pandas 0.24.1:
```
pd.Series()[("aaa",123)]= True
pd.Series().loc[("aaa",123)]= True
```
both give me:
```
KeyError: u"None of [Index([u'aaa', 1], dtype='object')] are in the [index]"
```
Was assignment of new rows by multiindex intentionally removed?
#### Problem description
Assignment by multiindex no longer works after upgrading from 0.24.1 from 0.22.0
#### Expected Output
Should not assert.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.15.candidate.1
python-bits: 64
OS: Linux
OS-release: 4.15.0-45-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.24.1
pytest: None
pip: 18.1
setuptools: 40.6.2
Cython: 0.29.1
numpy: 1.16.1
scipy: 1.2.0
pyarrow: None
xarray: None
IPython: 5.0.0
sphinx: None
patsy: 0.5.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.8
feather: None
matplotlib: 2.1.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.2.1
bs4: 4.6.0
html5lib: 0.9999999
sqlalchemy: 1.2.17
pymysql: None
psycopg2: 2.7.7 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25290/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25290/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25291 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25291/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25291/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25291/events | https://github.com/pandas-dev/pandas/pull/25291 | 409,539,041 | MDExOlB1bGxSZXF1ZXN0MjUyNTAxMDA4 | 25,291 | Series pct_change fill_method behavior | {
"avatar_url": "https://avatars.githubusercontent.com/u/8515462?v=4",
"events_url": "https://api.github.com/users/albertvillanova/events{/privacy}",
"followers_url": "https://api.github.com/users/albertvillanova/followers",
"following_url": "https://api.github.com/users/albertvillanova/following{/other_user}",
"gists_url": "https://api.github.com/users/albertvillanova/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/albertvillanova",
"id": 8515462,
"login": "albertvillanova",
"node_id": "MDQ6VXNlcjg1MTU0NjI=",
"organizations_url": "https://api.github.com/users/albertvillanova/orgs",
"received_events_url": "https://api.github.com/users/albertvillanova/received_events",
"repos_url": "https://api.github.com/users/albertvillanova/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/albertvillanova/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/albertvillanova/subscriptions",
"type": "User",
"url": "https://api.github.com/users/albertvillanova"
} | [
{
"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": "AD7FA8"... | closed | false | null | [] | null | 17 | 2019-02-12T22:55:12Z | 2019-09-20T14:42:35Z | 2019-09-20T14:42:35Z | CONTRIBUTOR | null | - [ ] closes #25006
- [ ] tests added / passed
- [ ] 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/25291/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25291/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25291.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25291",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/25291.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25291"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25292 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25292/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25292/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25292/events | https://github.com/pandas-dev/pandas/issues/25292 | 409,564,279 | MDU6SXNzdWU0MDk1NjQyNzk= | 25,292 | read_parquet segmentation fault with pyarrow | {
"avatar_url": "https://avatars.githubusercontent.com/u/6054037?v=4",
"events_url": "https://api.github.com/users/ibackus/events{/privacy}",
"followers_url": "https://api.github.com/users/ibackus/followers",
"following_url": "https://api.github.com/users/ibackus/following{/other_user}",
"gists_url": "https://api.github.com/users/ibackus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ibackus",
"id": 6054037,
"login": "ibackus",
"node_id": "MDQ6VXNlcjYwNTQwMzc=",
"organizations_url": "https://api.github.com/users/ibackus/orgs",
"received_events_url": "https://api.github.com/users/ibackus/received_events",
"repos_url": "https://api.github.com/users/ibackus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ibackus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ibackus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ibackus"
} | [] | closed | false | null | [] | null | 3 | 2019-02-13T00:21:43Z | 2019-02-13T00:52:30Z | 2019-02-13T00:41:12Z | NONE | null | #### Problem description
Loading a dataframe with `pandas.read_parquet` with `engine='pyarrow'` can semi-randomly result in a segmentation fault.
This only seems to affect certain dataframes, others always seem to work. Unfortunately I can't share an affected dataframe because the problematic ones have sensitive data.
This happens with or without compression, and with or without `memory_map`. It happens consistently for certain data, even if I load it and save it to a different format (e.g. changing from compressed to uncompressed).
~This only happens when reading a file multiple times in a single python interpreter. Loading a file once seems to always work.~\
**EDIT:** This USUALLY happens only when reading a file multiple times in a single python interpreter. Loading a file once USUALLY works. Not always
## Examples
### Loading a file several times in one script
```python
# seg_fault.py
import pandas as pd
if __name__ == '__main__':
for i in range(100):
print('ITERATION {}: '.format(i), end='', flush=True)
x = pd.read_parquet('test-comp.parquet', engine='pyarrow', memory_map=False)
print('success', flush=True)
print('SUCCESS -- all runs succeeded')
```
#### output of seg_fault.py
```bash
ibackus@ilearn:$ python -u seg_fault.py
ITERATION 0: success
ITERATION 1: success
ITERATION 2: success
ITERATION 3: success
ITERATION 4: success
Segmentation fault (core dumped)
ibackus@ilearn:$ python -u seg_fault.py
ITERATION 0: success
ITERATION 1: success
ITERATION 2: success
ITERATION 3: success
ITERATION 4: success
ITERATION 5: success
ITERATION 6: success
ITERATION 7: success
ITERATION 8: success
ITERATION 9: success
ITERATION 10: success
ITERATION 11: success
ITERATION 12: Segmentation fault (core dumped)
ibackus@ilearn:$ python -u seg_fault.py
ITERATION 0: success
ITERATION 1: success
ITERATION 2: Segmentation fault (core dumped)
```
### Loading a file once per script
```python
# load.py
import pandas as pd
if __name__ == '__main__':
x = pd.read_parquet('test-comp.parquet', engine='pyarrow', memory_map=False)
```
```
#!/bin/bash -e
# load.sh
for run in {1..50}; do
echo "Run: $run"
python -u load.py
done
echo "ALL RUNS SUCCEEDED"
```
#### output of load.sh
```bash
ibackus@ilearn:$ ./load.sh
Run: 1
Run: 2
Run: 3
Run: 4
Run: 5
Run: 6
Run: 7
Run: 8
Run: 9
Run: 10
Run: 11
Run: 12
Run: 13
Run: 14
Run: 15
Run: 16
Run: 17
Run: 18
Run: 19
Run: 20
Run: 21
Run: 22
Run: 23
Run: 24
Run: 25
Run: 26
Run: 27
Run: 28
Run: 29
Run: 30
Run: 31
Run: 32
Run: 33
Run: 34
Run: 35
Run: 36
Run: 37
Run: 38
Run: 39
Run: 40
Run: 41
Run: 42
Run: 43
Run: 44
Run: 45
Run: 46
Run: 47
Run: 48
Run: 49
Run: 50
ALL RUNS SUCCEEDED
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.8.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-1032-aws
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: C.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.1
pytest: 4.1.0
pip: 18.1
setuptools: 40.6.3
Cython: 0.29.2
numpy: 1.15.4
scipy: 1.1.0
pyarrow: 0.12.0
xarray: None
IPython: 7.2.0
sphinx: 1.8.3
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.9
blosc: None
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.9
feather: 0.4.0
matplotlib: 3.0.2
openpyxl: 2.5.12
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.2
lxml.etree: 4.2.6
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.2.15
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: 0.2.1
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25292/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25292/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25293 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25293/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25293/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25293/events | https://github.com/pandas-dev/pandas/issues/25293 | 409,578,075 | MDU6SXNzdWU0MDk1NzgwNzU= | 25,293 | OO Optimization Failure | {
"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": "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": "75507B",
"d... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 3 | 2019-02-13T01:17:57Z | 2019-03-03T02:33:36Z | 2019-03-03T02:33:35Z | MEMBER | null | The travis logs have been failing recently as a result of -OO optimization failure. I cannot reproduce this locally so may just be a Windows issue?
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=8270&view=logs&jobId=ae5f5554-4e02-5fb5-2f57-d6e8aefc10c0&taskId=1f8b548e-2577-5189-1750-f82ca6ecc932&lineStart=690&lineEnd=691&colStart=1&colEnd=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/25293/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25293/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25294 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25294/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25294/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25294/events | https://github.com/pandas-dev/pandas/issues/25294 | 409,584,647 | MDU6SXNzdWU0MDk1ODQ2NDc= | 25,294 | variable dtype does not update when populating a dataframe | {
"avatar_url": "https://avatars.githubusercontent.com/u/1747497?v=4",
"events_url": "https://api.github.com/users/stragu/events{/privacy}",
"followers_url": "https://api.github.com/users/stragu/followers",
"following_url": "https://api.github.com/users/stragu/following{/other_user}",
"gists_url": "https://api.github.com/users/stragu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stragu",
"id": 1747497,
"login": "stragu",
"node_id": "MDQ6VXNlcjE3NDc0OTc=",
"organizations_url": "https://api.github.com/users/stragu/orgs",
"received_events_url": "https://api.github.com/users/stragu/received_events",
"repos_url": "https://api.github.com/users/stragu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stragu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stragu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stragu"
} | [
{
"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": "009800",
"default": false,
"descript... | closed | false | null | [] | null | 4 | 2019-02-13T01:47:04Z | 2019-02-13T12:29:54Z | 2019-02-13T08:07:34Z | CONTRIBUTOR | null | I posted a question about this on [StackOverflow](https://stackoverflow.com/questions/54650913/why-doesnt-pandas-update-a-variables-dtype-when-populating-a-dataframe), but though it might be something worth reporting here.
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame(columns = ("Name", "Age"))
df.loc[1] = "Jane", 5
df.loc[2] = "Riley", 24
df.dtypes
```
#### Problem description
In my test:
- with Python 3.5 and Pandas 0.18.1, populating the dataframe does update the "object" dtype of the Age variable to "float64"
- with Python 3.7 and Pandas 0.23.4, populating the dataframe does not update the "object" dtype of the Age variable
Why is that? I couldn't find an explanation in the documentation.
#### Expected Output
The dtype of an ampty variable gets updated when populating it for the first time, similarly to what `infer_objects()` does.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-45-lowlatency
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_AU.UTF-8
LOCALE: en_AU.UTF-8
pandas: 0.23.4
pytest: 4.0.1
pip: 18.1
setuptools: 40.6.2
Cython: 0.29
numpy: 1.15.4
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 7.2.0
sphinx: 1.8.2
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.8
feather: None
matplotlib: 3.0.1
openpyxl: 2.5.11
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.1.2
lxml: 4.2.5
bs4: 4.6.3
html5lib: 1.0.1
sqlalchemy: 1.2.14
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: 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/25294/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25294/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25295 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25295/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25295/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25295/events | https://github.com/pandas-dev/pandas/pull/25295 | 409,604,039 | MDExOlB1bGxSZXF1ZXN0MjUyNTQ2NDQ4 | 25,295 | DOC/CLN: Fix various docstring errors | {
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-02-13T03:08:35Z | 2019-02-16T17:29:49Z | 2019-02-16T17:27:50Z | MEMBER | null | This PR fixes a variety of docstring errors found in different parts of the code base (mostly incorrect names for data types, missing punctuation, PEP8 in examples, 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/25295/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25295/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25295.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25295",
"merged_at": "2019-02-16T17:27:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25295.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25295"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25296 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25296/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25296/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25296/events | https://github.com/pandas-dev/pandas/issues/25296 | 409,615,840 | MDU6SXNzdWU0MDk2MTU4NDA= | 25,296 | Document Using Regex for str.split | {
"avatar_url": "https://avatars.githubusercontent.com/u/33796896?v=4",
"events_url": "https://api.github.com/users/StevenLi-DS/events{/privacy}",
"followers_url": "https://api.github.com/users/StevenLi-DS/followers",
"following_url": "https://api.github.com/users/StevenLi-DS/following{/other_user}",
"gists_url": "https://api.github.com/users/StevenLi-DS/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/StevenLi-DS",
"id": 33796896,
"login": "StevenLi-DS",
"node_id": "MDQ6VXNlcjMzNzk2ODk2",
"organizations_url": "https://api.github.com/users/StevenLi-DS/orgs",
"received_events_url": "https://api.github.com/users/StevenLi-DS/received_events",
"repos_url": "https://api.github.com/users/StevenLi-DS/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/StevenLi-DS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StevenLi-DS/subscriptions",
"type": "User",
"url": "https://api.github.com/users/StevenLi-DS"
} | [
{
"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": 7171206... | closed | false | null | [] | null | 5 | 2019-02-13T04:02:52Z | 2019-05-03T05:50:10Z | 2019-05-03T05:50:10Z | NONE | null |
```python
import pandas as pd
df = pd.DataFrame({'col': ['a-b-c+e=d,f#t']*5})
df.col.str.split('+|=', expand=True)
```
#### Problem description
While passing two patterns separating with `|` to `str.split()` method, if one of them is `+`, `panads` returns the following error:
```
---------------------------------------------------------------------------
error Traceback (most recent call last)
in
2 import pandas as pd
3 df = pd.DataFrame({'col': ['a-b-c+e=d,f#t']*5})
----> 4 df.col.str.split('+|=', expand=True)
~\Anaconda3\lib\site-packages\pandas\core\strings.py in split(self, pat, n, expand)
2328 @copy(str_split)
2329 def split(self, pat=None, n=-1, expand=False):
-> 2330 result = str_split(self._data, pat, n=n)
2331 return self._wrap_result(result, expand=expand)
2332
~\Anaconda3\lib\site-packages\pandas\core\strings.py in str_split(arr, pat, n)
1458 if n is None or n == -1:
1459 n = 0
-> 1460 regex = re.compile(pat)
1461 f = lambda x: regex.split(x, maxsplit=n)
1462 res = _na_map(f, arr)
~\Anaconda3\lib\re.py in compile(pattern, flags)
231 def compile(pattern, flags=0):
232 "Compile a regular expression pattern, returning a pattern object."
--> 233 return _compile(pattern, flags)
234
235 def purge():
~\Anaconda3\lib\re.py in _compile(pattern, flags)
299 if not sre_compile.isstring(pattern):
300 raise TypeError("first argument must be string or compiled pattern")
--> 301 p = sre_compile.compile(pattern, flags)
302 if not (flags & DEBUG):
303 if len(_cache) >= _MAXCACHE:
~\Anaconda3\lib\sre_compile.py in compile(p, flags)
560 if isstring(p):
561 pattern = p
--> 562 p = sre_parse.parse(p, flags)
563 else:
564 pattern = None
~\Anaconda3\lib\sre_parse.py in parse(str, flags, pattern)
853
854 try:
--> 855 p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
856 except Verbose:
857 # the VERBOSE flag was switched on inside the pattern. to be
~\Anaconda3\lib\sre_parse.py in _parse_sub(source, state, verbose, nested)
414 while True:
415 itemsappend(_parse(source, state, verbose, nested + 1,
--> 416 not nested and not items))
417 if not sourcematch("|"):
418 break
~\Anaconda3\lib\sre_parse.py in _parse(source, state, verbose, nested, first)
614 if not item or (_len(item) == 1 and item[0][0] is AT):
615 raise source.error("nothing to repeat",
--> 616 source.tell() - here + len(this))
617 if item[0][0] in _REPEATCODES:
618 raise source.error("multiple repeat",
error: nothing to repeat at position 0
```
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.8.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.4
pytest: 3.7.1
pip: 18.1
setuptools: 40.2.0
Cython: 0.29.2
numpy: 1.15.4
scipy: 1.2.0
pyarrow: None
xarray: 0.11.0
IPython: 7.1.1
sphinx: 1.7.6
patsy: 0.5.1
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: 1.2.1
tables: 3.4.3
numexpr: 2.6.9
feather: None
matplotlib: 3.0.2
openpyxl: 2.5.5
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.5
lxml: 4.2.4
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.2.10
pymysql: None
psycopg2: 2.7.6.1 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: 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/25296/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25296/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25297 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25297/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25297/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25297/events | https://github.com/pandas-dev/pandas/pull/25297 | 409,668,119 | MDExOlB1bGxSZXF1ZXN0MjUyNTkxMjMy | 25,297 | BUG: OverflowError in resample.agg with tz data | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"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": "5319e7",
"default": false,
"description": "Timezone data dtype",
... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-02-13T07:42:48Z | 2019-02-16T22:34:09Z | 2019-02-16T17:22:41Z | MEMBER | null | - [x] closes #22660
- [x] tests added / passed
- [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/25297/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25297/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25297.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25297",
"merged_at": "2019-02-16T17:22:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25297.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25297"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25298 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25298/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25298/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25298/events | https://github.com/pandas-dev/pandas/issues/25298 | 409,674,422 | MDU6SXNzdWU0MDk2NzQ0MjI= | 25,298 | IntervalIndex level in MultiIndex does not work as expected | {
"avatar_url": "https://avatars.githubusercontent.com/u/31465436?v=4",
"events_url": "https://api.github.com/users/pushkarnimkar/events{/privacy}",
"followers_url": "https://api.github.com/users/pushkarnimkar/followers",
"following_url": "https://api.github.com/users/pushkarnimkar/following{/other_user}",
"gists_url": "https://api.github.com/users/pushkarnimkar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pushkarnimkar",
"id": 31465436,
"login": "pushkarnimkar",
"node_id": "MDQ6VXNlcjMxNDY1NDM2",
"organizations_url": "https://api.github.com/users/pushkarnimkar/orgs",
"received_events_url": "https://api.github.com/users/pushkarnimkar/received_events",
"repos_url": "https://api.github.com/users/pushkarnimkar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pushkarnimkar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pushkarnimkar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pushkarnimkar"
} | [
{
"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 s... | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"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": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 2 | 2019-02-13T08:03:41Z | 2021-10-05T12:37:29Z | null | NONE | null | I am trying to index data frame with a `MultiIndex` with constituent `IntervalIndex`
#### Example
```python
ii = pd.IntervalIndex.from_arrays([1, 5, 2, 6, 3, 7], [4, 8, 5, 9, 6, 10])
mi = pd.MultiIndex.from_arrays([["aa", "aa", "bb", "bb", "cc", "cc"], ii])
data = [(1, 2), (3, 4), (5, 6), (7, 8), (9, 10), (11, 12)]
df = pd.DataFrame(data, columns=['k', 'l'], index=mi)
df.loc[("bb", 3)]
```
Above code throws `TypeError` as follows:
```python
TypeError: cannot do label indexing on <class 'pandas.core.indexes.base.Index'> with these indexers [3] of <class 'int'>
```
I was expecting above to produce same result as:
```python
df.loc[("bb")].loc[3]
# k 5
# l 6
# Name: (2, 5], dtype: int64
```
Is this a bug or I'm not using it properly? (newbie here)
#### Version Details:
```
python: Python 3.6.7 | packaged by conda-forge | (default, Nov 21 2018, 03:09:43)
pandas: '0.23.4'
``` | {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/25298/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25298/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25299 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25299/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25299/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25299/events | https://github.com/pandas-dev/pandas/issues/25299 | 409,700,937 | MDU6SXNzdWU0MDk3MDA5Mzc= | 25,299 | Minimum of ordered categorical data in Panda DataFrames | {
"avatar_url": "https://avatars.githubusercontent.com/u/30867543?v=4",
"events_url": "https://api.github.com/users/Guillaume1801/events{/privacy}",
"followers_url": "https://api.github.com/users/Guillaume1801/followers",
"following_url": "https://api.github.com/users/Guillaume1801/following{/other_user}",
"gists_url": "https://api.github.com/users/Guillaume1801/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Guillaume1801",
"id": 30867543,
"login": "Guillaume1801",
"node_id": "MDQ6VXNlcjMwODY3NTQz",
"organizations_url": "https://api.github.com/users/Guillaume1801/orgs",
"received_events_url": "https://api.github.com/users/Guillaume1801/received_events",
"repos_url": "https://api.github.com/users/Guillaume1801/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Guillaume1801/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Guillaume1801/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Guillaume1801"
} | [
{
"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": ... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 7 | 2019-02-13T09:15:34Z | 2019-02-16T18:50:48Z | 2019-02-16T18:50:48Z | NONE | null | I have a Pandas DataFrame with one Serie containing ordered Categorical data. Some value of this Serie may be missing (NaN). I want to get the minimum without taking into account NaNs but I obtained strange results ...
#### Code:
```python
raw_cat = pd.Categorical(["a", "b", "c", "a"],
categories=["b", "c", "d"],
ordered=True)
s = pd.Series(raw_cat)
raw_cat.min(numeric_only=True), s.min(numeric_only=True)
```
#### Output:
```python
('b', nan)
```
#### Expected utput:
```python
('b', 'b')
```
I am getting the desired output when running this code with pandas 0.23.4 but not with pandas 0.24.0 and above.
Is this an issue or a misunderstanding? Thank you for your help. | {
"+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/25299/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25299/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25300 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25300/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25300/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25300/events | https://github.com/pandas-dev/pandas/issues/25300 | 409,724,595 | MDU6SXNzdWU0MDk3MjQ1OTU= | 25,300 | to_dict(orient='records') automatically renames "from" column | {
"avatar_url": "https://avatars.githubusercontent.com/u/6176998?v=4",
"events_url": "https://api.github.com/users/MaksimMisin/events{/privacy}",
"followers_url": "https://api.github.com/users/MaksimMisin/followers",
"following_url": "https://api.github.com/users/MaksimMisin/following{/other_user}",
"gists_url": "https://api.github.com/users/MaksimMisin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MaksimMisin",
"id": 6176998,
"login": "MaksimMisin",
"node_id": "MDQ6VXNlcjYxNzY5OTg=",
"organizations_url": "https://api.github.com/users/MaksimMisin/orgs",
"received_events_url": "https://api.github.com/users/MaksimMisin/received_events",
"repos_url": "https://api.github.com/users/MaksimMisin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MaksimMisin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MaksimMisin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MaksimMisin"
} | [
{
"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 | [] | {
"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"
} | 1 | 2019-02-13T10:10:02Z | 2019-02-13T11:49:46Z | 2019-02-13T11:49:36Z | NONE | null | Column `from` gets automatically renamed when DataFrame is converted to dictionary.
#### Code Sample
```python
import pandas as pd
import numpy as np
df = pd.DataFrame(np.ones((5, 2)), columns=['from', 'sum'])
print(df.to_dict(orient='records'))
```
Obove code returns:
```
[{'_0': 1.0, 'sum': 1.0}, {'_0': 1.0, 'sum': 1.0}, {'_0': 1.0, 'sum': 1.0}, {'_0': 1.0, 'sum': 1.0}, {'_0': 1.0, 'sum': 1.0}]
```
instead of:
```
[{'from': 1.0, 'sum': 1.0}, {'from': 1.0, 'sum': 1.0}, ...
```
Is this a bug or intended behaviour?
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-1027-gcp
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: C.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.0
pytest: 4.1.1
pip: 18.1
setuptools: 40.6.2
Cython: 0.29
numpy: 1.15.4
scipy: 1.1.0
pyarrow: 0.11.1
xarray: None
IPython: 7.1.1
sphinx: None
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: 3.4.4
numexpr: 2.6.8
feather: None
matplotlib: 3.0.1
openpyxl: 2.5.9
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: 4.6.3
html5lib: 1.0.1
sqlalchemy: 1.2.10
pymysql: None
psycopg2: 2.7.5 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: 0.2.1
pandas_gbq: None
pandas_datareader: None
gcsfs: 0.2.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/25300/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25300/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25301 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25301/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25301/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25301/events | https://github.com/pandas-dev/pandas/issues/25301 | 409,784,212 | MDU6SXNzdWU0MDk3ODQyMTI= | 25,301 | pandas.Series.eq docs page example doesn't feature eq | {
"avatar_url": "https://avatars.githubusercontent.com/u/8105141?v=4",
"events_url": "https://api.github.com/users/mikeyford/events{/privacy}",
"followers_url": "https://api.github.com/users/mikeyford/followers",
"following_url": "https://api.github.com/users/mikeyford/following{/other_user}",
"gists_url": "https://api.github.com/users/mikeyford/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mikeyford",
"id": 8105141,
"login": "mikeyford",
"node_id": "MDQ6VXNlcjgxMDUxNDE=",
"organizations_url": "https://api.github.com/users/mikeyford/orgs",
"received_events_url": "https://api.github.com/users/mikeyford/received_events",
"repos_url": "https://api.github.com/users/mikeyford/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mikeyford/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mikeyford/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mikeyford"
} | [] | closed | false | null | [] | null | 4 | 2019-02-13T12:35:49Z | 2019-02-13T14:09:39Z | 2019-02-13T14:09:39Z | NONE | null | The current stable documentation page for eq doesn't actually feature eq in the example:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.eq.html
I presume the last execution in the example should be something like this, rather than the add example.
```
>>> a.eq(b)
a True
b False
c False
d False
e False
dtype: bool
```
| {
"+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/25301/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25301/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25302 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25302/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25302/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25302/events | https://github.com/pandas-dev/pandas/issues/25302 | 409,804,530 | MDU6SXNzdWU0MDk4MDQ1MzA= | 25,302 | BLD: pandas-wheels timing out | {
"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"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 3 | 2019-02-13T13:27:01Z | 2019-03-03T02:31:38Z | 2019-03-03T02:31:38Z | CONTRIBUTOR | null | anyone know why the wheel building is timing out, not all of them though: https://travis-ci.org/MacPython/pandas-wheels. I have restarted on multiple days.
cc @TomAugspurger @matthew-brett | {
"+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/25302/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25302/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25303 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25303/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25303/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25303/events | https://github.com/pandas-dev/pandas/issues/25303 | 409,808,562 | MDU6SXNzdWU0MDk4MDg1NjI= | 25,303 | API: What is the rationale for numeric_only of Categorical reductions? | {
"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": "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": "e11d21",
"default": false,
"description": "C... | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 7 | 2019-02-13T13:36:51Z | 2019-12-02T10:37:12Z | 2019-12-02T10:37:12Z | MEMBER | null | Consider an ordered Categorical with missing values:
```
In [32]: cat = pd.Categorical(['a', np.nan, 'b', 'a'], ordered=True)
In [33]: cat.min()
Out[33]: nan
In [34]: cat.max()
Out[34]: 'b'
In [35]: cat.min(numeric_only=True)
Out[35]: 'a'
In [36]: cat.max(numeric_only=True)
Out[36]: 'b'
In [37]: cat.min(numeric_only=False)
Out[37]: nan
In [38]: cat.max(numeric_only=False)
Out[38]: 'b'
```
So from the observation above (and from the code: https://github.com/pandas-dev/pandas/blob/a89e19d59e0bff2d02e4647af1904e2c9701dd5f/pandas/core/arrays/categorical.py#L2199), it seems that `numeric_only` means that only the actual categories should be considered, and not the missing values (so codes that are not -1).
This struck me as strange, for the following reasons:
* The fact that -1 is used as the code for missing data is rather an implementation detail, but now actually determines min/max behaviour (missing value is always the minimum, but never the maximum, unless there are only missing values)
* This behaviour is different than the default for other data types in pandas, which is skipping missing values by default:
```
In [1]: s = pd.Series([1, np.nan, 2, 1])
In [2]: s.min()
Out[2]: 1.0
In [3]: s.astype(pd.CategoricalDtype(ordered=True)).min()
Out[3]: nan
In [5]: s.min(skipna=False)
Out[5]: nan
```
* The keyword in pandas to determine whether NaNs should be skipped or not for reductions is `skipna=True/False`, not `numeric_only` (this also means the `skipna` keyword for categorical series is broken / has no effect).
Apart from that, the name "numeric_only" is also strange to me to mean this (and is also not documented).
* The `numeric_only` keyword in reductions methods of DataFrame actually means something entirely different: should full columns be excluded from the result based on their dtype.
```
In [63]: cat = pd.Categorical(['a', np.nan, 'b', 'a'], ordered=True)
In [64]: pd.Series(cat).min(numeric_only=True)
Out[64]: 'a'
In [65]: pd.DataFrame({'cat': cat}).min(numeric_only=True)
Out[65]: Series([], dtype: float64)
```
From the above list, I don't see a good reason for having `numeric_only=False` as 1) the default behaviour and 2) altogether as an option (instead of skipna). But it seems this was implemented rather from the beginning that Categoricals were introduced.
*Am I missing something?*
*Is there a reason we don't skip NaNs by default for Categorical?*
Would it be an idea to deprecate `numeric_only` in favor of `skipna` and deprecate the default?
cc @jreback @jankatins
| {
"+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/25303/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25303/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25304 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25304/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25304/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25304/events | https://github.com/pandas-dev/pandas/pull/25304 | 409,823,534 | MDExOlB1bGxSZXF1ZXN0MjUyNzA4Mzkw | 25,304 | BUG: Fix passing of numeric_only argument for categorical reduce | {
"avatar_url": "https://avatars.githubusercontent.com/u/356082?v=4",
"events_url": "https://api.github.com/users/arnov/events{/privacy}",
"followers_url": "https://api.github.com/users/arnov/followers",
"following_url": "https://api.github.com/users/arnov/following{/other_user}",
"gists_url": "https://api.github.com/users/arnov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arnov",
"id": 356082,
"login": "arnov",
"node_id": "MDQ6VXNlcjM1NjA4Mg==",
"organizations_url": "https://api.github.com/users/arnov/orgs",
"received_events_url": "https://api.github.com/users/arnov/received_events",
"repos_url": "https://api.github.com/users/arnov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arnov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arnov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arnov"
} | [
{
"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": ... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 14 | 2019-02-13T14:10:56Z | 2019-02-16T18:49:58Z | 2019-02-16T18:49:51Z | CONTRIBUTOR | null | See https://github.com/pandas-dev/pandas/issues/25303 and https://github.com/pandas-dev/pandas/issues/25299
- [x] closes https://github.com/pandas-dev/pandas/issues/25299
- [x] tests added / passed
- [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/25304/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25304/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25304.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25304",
"merged_at": "2019-02-16T18:49:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25304.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25304"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25305 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25305/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25305/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25305/events | https://github.com/pandas-dev/pandas/pull/25305 | 409,835,533 | MDExOlB1bGxSZXF1ZXN0MjUyNzE3ODQx | 25,305 | DOC: fix misspellings | {
"avatar_url": "https://avatars.githubusercontent.com/u/10229505?v=4",
"events_url": "https://api.github.com/users/tnir/events{/privacy}",
"followers_url": "https://api.github.com/users/tnir/followers",
"following_url": "https://api.github.com/users/tnir/following{/other_user}",
"gists_url": "https://api.github.com/users/tnir/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tnir",
"id": 10229505,
"login": "tnir",
"node_id": "MDQ6VXNlcjEwMjI5NTA1",
"organizations_url": "https://api.github.com/users/tnir/orgs",
"received_events_url": "https://api.github.com/users/tnir/received_events",
"repos_url": "https://api.github.com/users/tnir/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tnir/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tnir/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tnir"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-02-13T14:37:24Z | 2019-02-15T04:07:59Z | 2019-02-15T04:07:55Z | CONTRIBUTOR | null | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com> | {
"+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/25305/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25305/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25305.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25305",
"merged_at": "2019-02-15T04:07:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25305.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25305"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25306 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25306/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25306/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25306/events | https://github.com/pandas-dev/pandas/issues/25306 | 409,957,970 | MDU6SXNzdWU0MDk5NTc5NzA= | 25,306 | Fix validation error type `SS03` and check in CI | {
"avatar_url": "https://avatars.githubusercontent.com/u/15032115?v=4",
"events_url": "https://api.github.com/users/MarckK/events{/privacy}",
"followers_url": "https://api.github.com/users/MarckK/followers",
"following_url": "https://api.github.com/users/MarckK/following{/other_user}",
"gists_url": "https://api.github.com/users/MarckK/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarckK",
"id": 15032115,
"login": "MarckK",
"node_id": "MDQ6VXNlcjE1MDMyMTE1",
"organizations_url": "https://api.github.com/users/MarckK/orgs",
"received_events_url": "https://api.github.com/users/MarckK/received_events",
"repos_url": "https://api.github.com/users/MarckK/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarckK/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarckK/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarckK"
} | [
{
"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": "a2bca7",
"default": false,
"description": "Continuous Integratio... | open | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"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": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 5 | 2019-02-13T19:12:48Z | 2021-11-21T00:50:06Z | null | CONTRIBUTOR | null | #### Problem description
In order to have a continuous check by the CI on validation error `SS03` (Summary does not end with a period), fixing them in the code base enables the addition to the CI for automated testing in the future.
`SS03` has 178 occurrences (see [overview of the errors](https://gist.github.com/198cfa552c727d71bd7360fda66fdbb4)), including:
method | file | file_line | github_link
-- | -- | -- | -- |
pandas.Timestamp | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.max | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.min | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.resolution | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.tz | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.ceil | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.combine | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.floor | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.fromordinal | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.isoweekday | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.replace | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.round | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.to_datetime64 | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timestamp.weekday | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timedelta.components | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timedelta.view | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timedelta.ceil | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timedelta.floor | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timedelta.isoformat | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timedelta.round | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timedelta.to_pytimedelta | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timedelta.to_timedelta64 | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Timedelta.total_seconds | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Period | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Period.asfreq | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Period.strftime | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Period.to_timestamp | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Interval.closed | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Interval.left | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Interval.length | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
... | ... | ... | ...
pandas.tseries.offsets.CBMonthEnd.normalize | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.tseries.offsets.CBMonthBegin.normalize | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.tseries.offsets.CDay.normalize | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.tseries.frequencies.to_offset | pandas/tseries/frequencies.py | 59.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/frequencies.py#L59
pandas.Panel.axes | pandas/core/generic.py | 441.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L441
pandas.Panel.shape | pandas/core/generic.py | 434.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L434
pandas.Panel.__iter__ | pandas/core/generic.py | 1819.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L1819
pandas.Panel.iteritems | pandas/core/generic.py | 1832.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L1832
pandas.Panel.lt | pandas/core/ops.py | 2170.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/ops.py#L2170
pandas.Panel.gt | pandas/core/ops.py | 2170.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/ops.py#L2170
pandas.Panel.le | pandas/core/ops.py | 2170.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/ops.py#L2170
pandas.Panel.ge | pandas/core/ops.py | 2170.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/ops.py#L2170
pandas.Panel.ne | pandas/core/ops.py | 2170.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/ops.py#L2170
pandas.Panel.eq | pandas/core/ops.py | 2170.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/ops.py#L2170
pandas.Panel.swaplevel | pandas/core/generic.py | 932.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L932
pandas.Panel.transpose | pandas/core/panel.py | 1269.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/panel.py#L1269
pandas.plotting.deregister_matplotlib_converters | pandas/plotting/_converter.py | 88.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/_converter.py#L88
pandas.plotting.register_matplotlib_converters | pandas/plotting/_converter.py | 55.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/_converter.py#L55
pandas.core.resample.Resampler.first | pandas/core/resample.py | 857.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L857
pandas.core.resample.Resampler.last | pandas/core/resample.py | 857.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L857
pandas.core.resample.Resampler.max | pandas/core/resample.py | 857.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L857
pandas.core.resample.Resampler.min | pandas/core/resample.py | 857.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L857
pandas.core.resample.Resampler.prod | pandas/core/resample.py | 846.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L846
pandas.core.resample.Resampler.sum | pandas/core/resample.py | 846.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L846
pandas.io.formats.style.Styler.loader | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.io.formats.style.Styler.set_caption | pandas/io/formats/style.py | 778.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py#L778
pandas.Panel.items | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Panel.keys | pandas/core/generic.py | 1824.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L1824
pandas.Panel.major_axis | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
pandas.Panel.minor_axis | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone
Todo:
* [ ] get rid of the errors in the code base
* [ ] update the `code_check.sh` script to take into account the `SS03` type of errors | {
"+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/25306/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25306/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25307 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25307/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25307/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25307/events | https://github.com/pandas-dev/pandas/issues/25307 | 409,964,393 | MDU6SXNzdWU0MDk5NjQzOTM= | 25,307 | Wrong result for float32 Series when using bottleneck | {
"avatar_url": "https://avatars.githubusercontent.com/u/691772?v=4",
"events_url": "https://api.github.com/users/lumbric/events{/privacy}",
"followers_url": "https://api.github.com/users/lumbric/followers",
"following_url": "https://api.github.com/users/lumbric/following{/other_user}",
"gists_url": "https://api.github.com/users/lumbric/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lumbric",
"id": 691772,
"login": "lumbric",
"node_id": "MDQ6VXNlcjY5MTc3Mg==",
"organizations_url": "https://api.github.com/users/lumbric/orgs",
"received_events_url": "https://api.github.com/users/lumbric/received_events",
"repos_url": "https://api.github.com/users/lumbric/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lumbric/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lumbric/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lumbric"
} | [
{
"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 | 8 | 2019-02-13T19:29:17Z | 2020-03-08T18:13:09Z | 2020-03-08T18:13:08Z | NONE | null | #### Minimal example
Requires bottleneck, numpy and pandas to be installed:
```python
>>> import numpy as np
>>> import pandas as pd
>>> import bottleneck as bn
>>> data = np.ones(2**25, dtype=np.float32)
>>> pd.Series(data).mean() # wrong
0.5
>>> bn.nanmean(data) # wrong
0.5
>>> data.mean() # correct
1.0
```
#### Problem description
The `mean()` of large float32 Series is wrong when [bottleneck](https://github.com/kwgoodman/bottleneck/) is used. Uninstalling bottleneck or using float64 is a valid workaround. xarray is or has been affected too, see pydata/xarray#1346.
<s>Bottleneck's documentation explicitly mentions that [no error is raised in case of an overflow](https://kwgoodman.github.io/bottleneck-doc/reference.html?highlight=overflow#bottleneck.nanmean), not sure if this is still to be considered as bug in bottleneck.</s> Anyhow since it seems quite severe, I want to raise attention here too.
**Update:** This is not an overflow, it's a numerical error (which is very high because bottleneck does not use [pairwise summation](https://en.wikipedia.org/wiki/Pairwise_summation)).
[Bottleneck's implementation of mean()](https://github.com/kwgoodman/bottleneck/blob/master/bottleneck/src/reduce_template.c#L162).
#### Related issues
* same thing in xarray: pydata/xarray#1346
* same thing in aospy: spencerahill/aospy#217
* similar bug in pandas with bottleneck, but related to int not float: pandas-dev/pandas#15453 and kwgoodman/bottleneck#163
* another very similar but older bug in pandas with bottleneck but related to int not float: pandas-dev/pandas#6915 kwgoodman/bottleneck#83
* something different, not to be confused - race conditions when reading netcdf files: dask/dask#2095
* probably not related, but who knows: kwgoodman/bottleneck#164
#### Expected Output
```python
>>> data = np.ones(2**25, dtype=np.float32)
>>> pd.Series(data).mean()
1.0
```
#### Output of ``pd.show_versions()``
<details>
```bash
$ pip3 freeze
Bottleneck==1.2.1
numpy==1.16.1
pandas==0.24.1
...
```
```python
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.7.final.0
python-bits: 64
OS: Linux
OS-release: 4.18.0-13-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.1
pytest: None
pip: 19.0.2
setuptools: 40.8.0
Cython: None
numpy: 1.16.1
scipy: None
pyarrow: None
xarray: 0.11.3
IPython: 7.2.0
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: 1.2.1
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25307/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25307/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25308 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25308/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25308/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25308/events | https://github.com/pandas-dev/pandas/pull/25308 | 409,974,288 | MDExOlB1bGxSZXF1ZXN0MjUyODI2Mzc4 | 25,308 | BUG: Groupby.agg with reduction function with tz aware data | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"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,
... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-02-13T19:55:07Z | 2019-02-28T17:39:01Z | 2019-02-28T17:38:48Z | MEMBER | null | - [x] closes #23683
- [x] closes #21603
- [x] tests added / passed
- [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/25308/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25308/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25308.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25308",
"merged_at": "2019-02-28T17:38:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25308.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25308"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25309 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25309/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25309/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25309/events | https://github.com/pandas-dev/pandas/pull/25309 | 409,992,163 | MDExOlB1bGxSZXF1ZXN0MjUyODQwMDM0 | 25,309 | Rt05 documentation error fix issue 25108 | {
"avatar_url": "https://avatars.githubusercontent.com/u/42625717?v=4",
"events_url": "https://api.github.com/users/zangell44/events{/privacy}",
"followers_url": "https://api.github.com/users/zangell44/followers",
"following_url": "https://api.github.com/users/zangell44/following{/other_user}",
"gists_url": "https://api.github.com/users/zangell44/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zangell44",
"id": 42625717,
"login": "zangell44",
"node_id": "MDQ6VXNlcjQyNjI1NzE3",
"organizations_url": "https://api.github.com/users/zangell44/orgs",
"received_events_url": "https://api.github.com/users/zangell44/received_events",
"repos_url": "https://api.github.com/users/zangell44/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zangell44/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zangell44/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zangell44"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 8 | 2019-02-13T20:41:40Z | 2019-02-14T20:37:45Z | 2019-02-14T19:18:09Z | CONTRIBUTOR | null | - [x] closes #25108
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] updates CI script to check for future testing automation | {
"+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/25309/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25309/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25309.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25309",
"merged_at": "2019-02-14T19:18:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25309.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25309"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25310 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25310/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25310/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25310/events | https://github.com/pandas-dev/pandas/pull/25310 | 410,027,192 | MDExOlB1bGxSZXF1ZXN0MjUyODY1ODU3 | 25,310 | #9236: test for the DataFrame.groupby with MultiIndex having pd.NaT | {
"avatar_url": "https://avatars.githubusercontent.com/u/2520893?v=4",
"events_url": "https://api.github.com/users/TrigonaMinima/events{/privacy}",
"followers_url": "https://api.github.com/users/TrigonaMinima/followers",
"following_url": "https://api.github.com/users/TrigonaMinima/following{/other_user}",
"gists_url": "https://api.github.com/users/TrigonaMinima/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TrigonaMinima",
"id": 2520893,
"login": "TrigonaMinima",
"node_id": "MDQ6VXNlcjI1MjA4OTM=",
"organizations_url": "https://api.github.com/users/TrigonaMinima/orgs",
"received_events_url": "https://api.github.com/users/TrigonaMinima/received_events",
"repos_url": "https://api.github.com/users/TrigonaMinima/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TrigonaMinima/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TrigonaMinima/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TrigonaMinima"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"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": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 7 | 2019-02-13T22:10:35Z | 2019-02-19T18:55:20Z | 2019-02-19T13:32:42Z | CONTRIBUTOR | null | - [x] closes #9236
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The referenced issue seems to be solved in the current master. So added a test for the edge 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/25310/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25310/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/25310.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/25310",
"merged_at": "2019-02-19T13:32:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/25310.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25310"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/25311 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25311/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25311/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25311/events | https://github.com/pandas-dev/pandas/issues/25311 | 410,055,786 | MDU6SXNzdWU0MTAwNTU3ODY= | 25,311 | DataFrame to_csv line_terminator inconsistency when using compression | {
"avatar_url": "https://avatars.githubusercontent.com/u/42198131?v=4",
"events_url": "https://api.github.com/users/jointfull/events{/privacy}",
"followers_url": "https://api.github.com/users/jointfull/followers",
"following_url": "https://api.github.com/users/jointfull/following{/other_user}",
"gists_url": "https://api.github.com/users/jointfull/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jointfull",
"id": 42198131,
"login": "jointfull",
"node_id": "MDQ6VXNlcjQyMTk4MTMx",
"organizations_url": "https://api.github.com/users/jointfull/orgs",
"received_events_url": "https://api.github.com/users/jointfull/received_events",
"repos_url": "https://api.github.com/users/jointfull/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jointfull/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jointfull/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jointfull"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "0052cc",
"default": false,
"descriptio... | closed | false | null | [] | {
"closed_at": "2019-03-13T21:33:10Z",
"closed_issues": 127,
"created_at": "2019-01-30T14:20:23Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.24.x",
"due_on": "2019-03-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/63",
"id": 4015221,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels",
"node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==",
"number": 63,
"open_issues": 0,
"state": "closed",
"title": "0.24.2",
"updated_at": "2019-03-13T21:33:10Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63"
} | 8 | 2019-02-13T23:42:04Z | 2019-03-11T16:56:29Z | 2019-03-11T15:26:55Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
df.to_csv('uncompressed.csv')
df.to_csv('compressed-wrong-line-terminator.csv.gz')
df.to_csv('compressed-good-line-terminator.csv.gz', line_terminator='\n')
```
#### Problem description
Current line_terminator defaults when using compression and when not using compression are different (Windows OS, pandas 0.24.1).
When uncompressing the gzip file created using the default line_terminator, we can clearly see that the files are different (compressed-wrong-line-terminator.csv vs uncompressed.csv); only when using the explicit line_termintor='\n' the uncompressed file is identical to the not compressed file (compressed-good-line-terminator.csv.gz vs. uncompressed.csv).
It is emphasized that if we use the explicit line_terminator='\n' for non-compressed files, the output file is different than the ones created without explicit assignment of the line_terminator - forcing the user the need to explicitly specify the line_terminator only for compressed files.
This behavior is problematic, especially using the latest pandas version, where compression is inferred from the file extension, and one would expect that also the line_separator will undergo the same inference.
#### Expected Output
As stated above, it is expected that the command in python line 2 (after uncompressing it) will produce the same file as produced by the command in python line 1.
However, we see that only the command in python line 3 (after uncompressing it) produces the same file as produced by the command in python line 1.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.4.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.1
pytest: None
pip: 19.0.1
setuptools: 40.4.3
Cython: None
numpy: 1.15.2
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: 6.2.1
sphinx: None
patsy: 0.5.0
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.0
openpyxl: 2.5.12
xlrd: 1.2.0
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/25311/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25311/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/25312 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/25312/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/25312/comments | https://api.github.com/repos/pandas-dev/pandas/issues/25312/events | https://github.com/pandas-dev/pandas/issues/25312 | 410,097,797 | MDU6SXNzdWU0MTAwOTc3OTc= | 25,312 | Pandas graphing time series issue | {
"avatar_url": "https://avatars.githubusercontent.com/u/15021936?v=4",
"events_url": "https://api.github.com/users/bran112299/events{/privacy}",
"followers_url": "https://api.github.com/users/bran112299/followers",
"following_url": "https://api.github.com/users/bran112299/following{/other_user}",
"gists_url": "https://api.github.com/users/bran112299/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bran112299",
"id": 15021936,
"login": "bran112299",
"node_id": "MDQ6VXNlcjE1MDIxOTM2",
"organizations_url": "https://api.github.com/users/bran112299/orgs",
"received_events_url": "https://api.github.com/users/bran112299/received_events",
"repos_url": "https://api.github.com/users/bran112299/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bran112299/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bran112299/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bran112299"
} | [] | closed | false | null | [] | null | 3 | 2019-02-14T02:36:04Z | 2019-02-16T23:24:24Z | 2019-02-14T06:35:32Z | NONE | null | ```
import pandas as pd
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
%matplotlib qt
exampl = [4.4,5.1,6.1,6.2,6.1,6.1,5.7,5.2,4.7,4.1,3.9,3.5]
dates = pd.date_range('2016/10/29 5:30pm', periods = 12, freq='H')
series = pd.Series(exampl, dates)
series15m = series.resample('15min').interpolate(method = 'cubic')
series15m.plot()
series.plot()
plt.legend()
plt.show()
```
#### Problem description
I tried this code and the graph it ends up is messed up, I figured it was matplotlib and I asked them for help and the lead developer told me it probably wasn't matplotlib.

| {
"+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/25312/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/25312/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.