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/14708
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14708/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14708/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14708/events
|
https://github.com/pandas-dev/pandas/pull/14708
| 190,913,708 |
MDExOlB1bGxSZXF1ZXN0OTQ3NTI3NTE=
| 14,708 |
DOC: Disambiguate 'where' in boolean indexing-10min.rst (#12661)
|
{
"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": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2016-11-22T05:53:32Z | 2016-12-14T16:49:47Z | 2016-11-23T08:31:50Z |
MEMBER
| null |
- [x] closes #12661
Per @jorisvandenbossche comment in this thread (https://github.com/pandas-dev/pandas/pull/12671), remove code markdown from 'where' to not confuse the example with the `where()` method.
|
{
"+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/14708/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14708/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14708.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14708",
"merged_at": "2016-11-23T08:31:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14708.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14708"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14709
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14709/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14709/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14709/events
|
https://github.com/pandas-dev/pandas/issues/14709
| 190,968,709 |
MDU6SXNzdWUxOTA5Njg3MDk=
| 14,709 |
Changes in groups.items() output between Pandas 18.0.1 and Pandas 19.0.1
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20567696?v=4",
"events_url": "https://api.github.com/users/BLMeltdown/events{/privacy}",
"followers_url": "https://api.github.com/users/BLMeltdown/followers",
"following_url": "https://api.github.com/users/BLMeltdown/following{/other_user}",
"gists_url": "https://api.github.com/users/BLMeltdown/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BLMeltdown",
"id": 20567696,
"login": "BLMeltdown",
"node_id": "MDQ6VXNlcjIwNTY3Njk2",
"organizations_url": "https://api.github.com/users/BLMeltdown/orgs",
"received_events_url": "https://api.github.com/users/BLMeltdown/received_events",
"repos_url": "https://api.github.com/users/BLMeltdown/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BLMeltdown/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BLMeltdown/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BLMeltdown"
}
|
[
{
"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"
}
| 3 | 2016-11-22T11:01:19Z | 2016-11-22T14:49:13Z | 2016-11-22T14:49:12Z |
NONE
| null |
"""The code worked with a dict, and used groupby to retrieve subdicts of lists of indexes based on length.
Then I had to apply a process on this, and I popped on the lists of indexes built by groupby through a loop.
But this morning I ran the code, it worked, then I updated Pandas to 19.0.0.1 and it started to bug with the TypeError as Int64Index has no .pop() indeed."""
```python
dictoflists={0:[0],1:[1,3],2:[2,3],3:[3,4],4:[4,5,6],5: [3,0,1,6,7,8]}
tested={0:[0,1],1:[8,1,3],2:[2,3],3:[3,4],4:[9,9,9],5: [3,0,1,6,7,8], 6:[0,0,0,1]}
transform_df=pd.DataFrame(dictoflists,dtype=object,index=dictoflists.keys(),
columns=['Sequence'])
transform_df['length']=[len(list_i) for list_i in dictoflists.values()]
transform_df2=transform_df.groupby('length', sort=False)
for key,value in transform_df2.groups.items():
group_index=value
while True:
ref=tested[group_index.pop()]
```
I easily circumvented this by turning value into a list with 'group_index=list(value)'
but I want to give this feedback as I don't know if the change is intentional or not, as I could not find a reference about it in the release notes.
Edit: updated to include reference for variables...
|
{
"+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/14709/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14709/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14710
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14710/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14710/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14710/events
|
https://github.com/pandas-dev/pandas/issues/14710
| 190,973,325 |
MDU6SXNzdWUxOTA5NzMzMjU=
| 14,710 |
Inconsistent merging for multi-indexed dataframes with datetime.date
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13064489?v=4",
"events_url": "https://api.github.com/users/jbfiot/events{/privacy}",
"followers_url": "https://api.github.com/users/jbfiot/followers",
"following_url": "https://api.github.com/users/jbfiot/following{/other_user}",
"gists_url": "https://api.github.com/users/jbfiot/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbfiot",
"id": 13064489,
"login": "jbfiot",
"node_id": "MDQ6VXNlcjEzMDY0NDg5",
"organizations_url": "https://api.github.com/users/jbfiot/orgs",
"received_events_url": "https://api.github.com/users/jbfiot/received_events",
"repos_url": "https://api.github.com/users/jbfiot/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbfiot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbfiot/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbfiot"
}
|
[
{
"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",
"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"
}
] |
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 | 2016-11-22T11:22:33Z | 2018-07-06T20:21:13Z | 2016-11-23T11:54:16Z |
NONE
| null |
#### Code Sample
In this example, we merge multi-indexed dataframes, where one level contains `datetime.date` objects. We illustrate the inconsistent behavior by comparing the output of two merge operations.
1. Let us create the three dataframes {df1, df2, df3} such that
* df1 and df2 indexes overlap
* df1 and df3 indexes do not overlap
```python
>>> index_1 = pd.MultiIndex(levels=[['dummy'], [dt.date(2016,1,1)]],
... labels=[[0], [0]], names=['i', 'j'])
>>> index_2 = pd.MultiIndex(levels=[['dummy'], [dt.date(2016,1,1)]],
... labels=[[0], [0]], names=['i', 'j'])
>>> index_3 = pd.MultiIndex(levels=[['dummy'], [dt.date(2016,1,2)]],
... labels=[[0], [0]], names=['i', 'j'])
>>> df1 = pd.DataFrame([1], index=index_1, columns=['A'])
>>> df2 = pd.DataFrame([1], index=index_2, columns=['B'])
>>> df3 = pd.DataFrame([1], index=index_3, columns=['C'])
>>> df1
A
i j
dummy 2016-01-01 1
```
2. Let us merge using the indexes.
```python
>>> merge1 = df1.merge(df2, left_index=True, right_index=True, how='outer')
>>> merge2 = df1.merge(df3, left_index=True, right_index=True, how='outer')
>>> merge1
A B
i j
dummy 2016-01-01 1 1
>>> merge2
A C
i j
dummy 2016-01-01 1.0 NaN
2016-01-02 NaN 1.0
```
3. Let us examine the indexes
```python
>>> merge1.index[0][1]
datetime.date(2016, 1, 1)
>>> merge2.index[0][1]
Timestamp('2016-01-01 00:00:00')
```
#### Problem description
The index type of the merge output is inconsistent.
In my opinion, the merge operation should not change the types.
#### Expected Output
```python
>>> merge2.index[0][1]
datetime.date(2016, 1, 1)
```
#### Output of ``pd.show_versions()``
<details>
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-229.7.2.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_IE.UTF-8
LOCALE: en_IE.UTF-8
pandas: 0.19.1
nose: None
pip: 8.1.2
setuptools: 27.2.0
Cython: 0.24.1a
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.0.0
sphinx: None
patsy: 0.4.1
dateutil: 2.5.2
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.3
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
#### Comment
This bug does not occur for single-index dataframes
```python
>>> df1 = pd.DataFrame([1], index=[dt.date(2016,1,1)], columns=['A'])
>>> df3 = pd.DataFrame([1], index=[dt.date(2016,1,2)], columns=['B'])
>>> df1.merge(df3, left_index=True, right_index=True, how='outer').index[0]
datetime.date(2016, 1, 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/14710/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14710/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14711
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14711/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14711/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14711/events
|
https://github.com/pandas-dev/pandas/issues/14711
| 191,016,970 |
MDU6SXNzdWUxOTEwMTY5NzA=
| 14,711 |
Make categories and ordered part of CategoricalDtype
|
{
"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": "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": "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": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"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": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
}
| 35 | 2016-11-22T14:09:25Z | 2017-09-23T18:56:12Z | 2017-09-23T18:56:12Z |
CONTRIBUTOR
| null |
This is to discuss pushing the `Categorical.categories` and
`Categorical.ordered` information into the extension type `CategoricalDtype`.
```python
pd.CategoricalDtype(categories, ordered=False)
```
Note that there is no `values` argument. This is a type constructor, that
isn't attached to any specific `Categorical` instance.
## Why?
Several times now (`read_csv(..., dtype=...)`, `.astype(...)`, `Series([], dtype=...)`)
we have places where we accept `dtype='category'` which takes the values
in the method (the series, or column from the CSV, etc.)
and hands it off to the *value* constructor, with no control over the
`categories` and `ordered` arguments.
```python
Categorical(values, categories=None, ordered=False)
```
The proposal here would add the `categories` and `ordered`
attributes / arguments to `CategoricalDtype` and provide a common API
for specifying non-default parameters for the `Categorical` constructor
in methods like `read_csv`, `astype`, etc.
```python
t = pd.CategoricalDtype(['low', 'med', 'high'], ordered=True)
pd.read_csv('foo.csv', dtype={'A': int, 'B': t)
pd.Series(['high', 'low', 'high'], dtype=t)
s = pd.Series(['high', 'low', 'high'])
s.astype(t)
```
We would continue to accept `dtype='category'`.
This becomes even more import when doing operations on larger than memory datasets with something like `dask` or even (`read_csv(..., chunksize=N)`). Right now you don't have an easy way to specify the `categories` or `ordered` for columns (assuming you know them ahead of time).
## Issues
1. `CategoricalDtype` currently isn't part of the public API. Which methods
on it do we make public?
2. Equality semantics: For backwards compat, I think all instances
of `CategoricalDtype` should compare equal with all others. You can use
identity to check if two types are the same
```python
t1 = pd.CategoricalDtype(['a', 'b'], ordered=True)
t2 = pd.CategoricalDtype(['a', 'b'], ordered=False)
t1 == t2 # True
t1 is t2 # False
t1 is t1 # True
```
3. Should the `categories` argument be required? Currently `dtype='category'`
says 1.) infer the categories based on the *values*, and 2.) it's unordered.
Would `CategoricalDtype(None, ordered=False)` be allowed?
4. Strictness? If I say
```python
pd.Series(['a', 'b', 'c'], dtype=pd.CategoricalDtype(['a', 'b']))
```
What happens? I would probably expect a `TypeError` or `ValueError` as `c`
isn't "supposed" to be there. Or do we replace `'c'` with `NA`? Should
`strict` be another parameter to `CategoricalDtype` (I don't think so).
I'm willing to work on this over the next couple weeks.
xref https://github.com/pandas-dev/pandas/issues/14676 (astype)
xref https://github.com/pandas-dev/pandas/issues/14503 (read_csv)
|
{
"+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/14711/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14711/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14712
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14712/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14712/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14712/events
|
https://github.com/pandas-dev/pandas/issues/14712
| 191,036,051 |
MDU6SXNzdWUxOTEwMzYwNTE=
| 14,712 |
read_csv ignores dtype for empty CSV files
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2195834?v=4",
"events_url": "https://api.github.com/users/jluttine/events{/privacy}",
"followers_url": "https://api.github.com/users/jluttine/followers",
"following_url": "https://api.github.com/users/jluttine/following{/other_user}",
"gists_url": "https://api.github.com/users/jluttine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jluttine",
"id": 2195834,
"login": "jluttine",
"node_id": "MDQ6VXNlcjIxOTU4MzQ=",
"organizations_url": "https://api.github.com/users/jluttine/orgs",
"received_events_url": "https://api.github.com/users/jluttine/received_events",
"repos_url": "https://api.github.com/users/jluttine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jluttine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jluttine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jluttine"
}
|
[
{
"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 dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 0 | 2016-11-22T15:21:35Z | 2016-11-24T21:19:38Z | 2016-11-24T21:18:20Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
>>> import io
>>> import pandas as pd
>>> pd.read_csv(io.StringIO('foo,bar'), header=0, dtype=np.float64).values
array([], shape=(0, 2), dtype=object)
```
#### Problem description
CSV reader doesn't respect the given dtype `np.float64` but sets `object` dtype instead.
#### Expected Output
```python
array([], shape=(0, 2), dtype=float64)
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.8.8-gnu-1
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.1
nose: 1.3.7
pip: 8.1.2
setuptools: 28.8.0
Cython: 0.25.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.4.8
patsy: None
dateutil: 2.6.0
pytz: 2016.7
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: None
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.5.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.5
sqlalchemy: 1.1.4
pymysql: None
psycopg2: 2.6.2 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: 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/14712/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14712/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14713
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14713/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14713/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14713/events
|
https://github.com/pandas-dev/pandas/pull/14713
| 191,056,761 |
MDExOlB1bGxSZXF1ZXN0OTQ4NDk3NDk=
| 14,713 |
DOC: update FAQ to note pandas-qt only works for python 2.x
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/22569604?v=4",
"events_url": "https://api.github.com/users/draperjames/events{/privacy}",
"followers_url": "https://api.github.com/users/draperjames/followers",
"following_url": "https://api.github.com/users/draperjames/following{/other_user}",
"gists_url": "https://api.github.com/users/draperjames/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/draperjames",
"id": 22569604,
"login": "draperjames",
"node_id": "MDQ6VXNlcjIyNTY5NjA0",
"organizations_url": "https://api.github.com/users/draperjames/orgs",
"received_events_url": "https://api.github.com/users/draperjames/received_events",
"repos_url": "https://api.github.com/users/draperjames/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/draperjames/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/draperjames/subscriptions",
"type": "User",
"url": "https://api.github.com/users/draperjames"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2016-11-22T16:34:29Z | 2016-11-22T16:44:06Z | 2016-11-22T16:39:16Z |
CONTRIBUTOR
| null |
- [ ] closes #14703
Here is the the pull request for the issue I raised [here](https://github.com/pandas-dev/pandas/issues/14703).
|
{
"+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/14713/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14713/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14713.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14713",
"merged_at": "2016-11-22T16:39:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14713.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14713"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14714
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14714/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14714/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14714/events
|
https://github.com/pandas-dev/pandas/issues/14714
| 191,064,553 |
MDU6SXNzdWUxOTEwNjQ1NTM=
| 14,714 |
ENH: enable pd.cut to handle i8 convertibles
|
{
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] |
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"
}
| 15 | 2016-11-22T16:58:43Z | 2016-12-03T10:11:59Z | 2016-12-03T10:11:59Z |
CONTRIBUTOR
| null |
so this should work for timedeltas AND datetimes.
Should be straight forward. detect an i8 convertible. turn into i8. do the cut. turn back to the original dtype.
```
In [15]: s = Series(pd.to_timedelta(np.random.randint(0,100,size=10),unit='ms')).sort_values()
In [16]: s
Out[16]:
3 00:00:00.005000
5 00:00:00.007000
7 00:00:00.010000
4 00:00:00.017000
9 00:00:00.023000
1 00:00:00.043000
0 00:00:00.045000
6 00:00:00.047000
8 00:00:00.065000
2 00:00:00.090000
dtype: timedelta64[ns]
In [18]: pd.cut(s, 5)
TypeError: unsupported operand type(s) for +: 'Timedelta' and 'float'
# works when converted
In [17]: pd.cut(s.astype('timedelta64[ms]'), 5)
Out[17]:
3 (4.915, 22]
5 (4.915, 22]
7 (4.915, 22]
4 (4.915, 22]
9 (22, 39]
1 (39, 56]
0 (39, 56]
6 (39, 56]
8 (56, 73]
2 (73, 90]
dtype: category
Categories (5, object): [(4.915, 22] < (22, 39] < (39, 56] < (56, 73] < (73, 90]]
```
|
{
"+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/14714/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14714/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14715
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14715/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14715/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14715/events
|
https://github.com/pandas-dev/pandas/issues/14715
| 191,100,506 |
MDU6SXNzdWUxOTExMDA1MDY=
| 14,715 |
BUG: resample Grouper in a list grouping on a column with NaT throws an error
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/648190?v=4",
"events_url": "https://api.github.com/users/nmichaud/events{/privacy}",
"followers_url": "https://api.github.com/users/nmichaud/followers",
"following_url": "https://api.github.com/users/nmichaud/following{/other_user}",
"gists_url": "https://api.github.com/users/nmichaud/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmichaud",
"id": 648190,
"login": "nmichaud",
"node_id": "MDQ6VXNlcjY0ODE5MA==",
"organizations_url": "https://api.github.com/users/nmichaud/orgs",
"received_events_url": "https://api.github.com/users/nmichaud/received_events",
"repos_url": "https://api.github.com/users/nmichaud/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmichaud/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmichaud/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmichaud"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2019-01-26T00:51:26Z",
"closed_issues": 2048,
"created_at": "2018-03-29T12:00:12Z",
"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": "",
"due_on": "2019-01-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/55",
"id": 3228419,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55/labels",
"node_id": "MDk6TWlsZXN0b25lMzIyODQxOQ==",
"number": 55,
"open_issues": 0,
"state": "closed",
"title": "0.24.0",
"updated_at": "2019-01-29T07:42:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55"
}
| 6 | 2016-11-22T19:24:30Z | 2018-08-28T12:22:28Z | 2018-08-28T12:22:28Z |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
df = pd.DataFrame({'completed':pd.date_range('1/1/2011', periods=365, freq='D')})
# In the real case i have nulls in my data
df.iloc[-1] = pd.NaT
# This works
df.groupby(pd.Grouper(key='completed', freq='AS'))
# This doesn't and throws an error
df.groupby([pd.Grouper(key='completed', freq='AS')])
```
#### Problem description
Second form throws the following error:
```python
/anaconda/lib/python2.7/site-packages/pandas/indexes/base.pyc in _assert_take_fillable(self, values, indices, allow_fill, fill_value, na_value)
1537 taken[mask] = na_value
1538 else:
-> 1539 taken = values.take(indices)
1540 return taken
1541
IndexError: index 364 is out of bounds for size 364
```
#### Expected Output
A proper grouper
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.1
nose: 1.3.7
pip: 8.1.2
setuptools: 0.6
Cython: 0.23.4
numpy: 1.11.0
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.5.1
pytz: 2016.2
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext)
jinja2: 2.8
boto: 2.39.0
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/14715/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14715/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14716
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14716/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14716/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14716/events
|
https://github.com/pandas-dev/pandas/pull/14716
| 191,107,744 |
MDExOlB1bGxSZXF1ZXN0OTQ4ODU4NTk=
| 14,716 |
Fix num_days in PandasAutoDateLocator
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19717465?v=4",
"events_url": "https://api.github.com/users/wiktortomczak/events{/privacy}",
"followers_url": "https://api.github.com/users/wiktortomczak/followers",
"following_url": "https://api.github.com/users/wiktortomczak/following{/other_user}",
"gists_url": "https://api.github.com/users/wiktortomczak/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wiktortomczak",
"id": 19717465,
"login": "wiktortomczak",
"node_id": "MDQ6VXNlcjE5NzE3NDY1",
"organizations_url": "https://api.github.com/users/wiktortomczak/orgs",
"received_events_url": "https://api.github.com/users/wiktortomczak/received_events",
"repos_url": "https://api.github.com/users/wiktortomczak/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wiktortomczak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wiktortomczak/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wiktortomczak"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 7 | 2016-11-22T19:52:37Z | 2017-03-21T08:53:14Z | 2017-03-21T08:52:38Z |
CONTRIBUTOR
| null |
Prior to this commit, one year is worth 12 days, not 12 * 31 days.
|
{
"+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/14716/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14716/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14716.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14716",
"merged_at": "2017-03-21T08:52:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14716.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14716"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14717
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14717/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14717/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14717/events
|
https://github.com/pandas-dev/pandas/pull/14717
| 191,123,273 |
MDExOlB1bGxSZXF1ZXN0OTQ4OTczMjc=
| 14,717 |
BUG: Respect the dtype parameter for empty CSV
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"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 dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 5 | 2016-11-22T21:01:49Z | 2016-11-24T21:18:46Z | 2016-11-24T21:18:20Z |
MEMBER
| null |
Title is self-explanatory. Closes #14712.
Should be merged in before #14295 because the bug could also exist for the Python parser.
|
{
"+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/14717/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14717/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14717.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14717",
"merged_at": "2016-11-24T21:18:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14717.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14717"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14718
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14718/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14718/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14718/events
|
https://github.com/pandas-dev/pandas/pull/14718
| 191,160,807 |
MDExOlB1bGxSZXF1ZXN0OTQ5MjUwNzY=
| 14,718 |
DOC: fix typo in merge_asof docstring examples
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2343358?v=4",
"events_url": "https://api.github.com/users/dwillmer/events{/privacy}",
"followers_url": "https://api.github.com/users/dwillmer/followers",
"following_url": "https://api.github.com/users/dwillmer/following{/other_user}",
"gists_url": "https://api.github.com/users/dwillmer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dwillmer",
"id": 2343358,
"login": "dwillmer",
"node_id": "MDQ6VXNlcjIzNDMzNTg=",
"organizations_url": "https://api.github.com/users/dwillmer/orgs",
"received_events_url": "https://api.github.com/users/dwillmer/received_events",
"repos_url": "https://api.github.com/users/dwillmer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dwillmer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dwillmer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dwillmer"
}
|
[
{
"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": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 2 | 2016-11-23T00:20:44Z | 2016-11-23T08:35:09Z | 2016-11-23T08:35:09Z |
CONTRIBUTOR
| null |
Just a trivial fix to docs - incorrect function name in doctests.
|
{
"+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/14718/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14718/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14718.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14718",
"merged_at": "2016-11-23T08:35:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14718.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14718"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14719
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14719/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14719/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14719/events
|
https://github.com/pandas-dev/pandas/issues/14719
| 191,216,145 |
MDU6SXNzdWUxOTEyMTYxNDU=
| 14,719 |
TST: test_transactions for sqlite fallback fails on python 3.6
|
{
"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": "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": "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 |
[] |
{
"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"
}
| 2 | 2016-11-23T08:57:34Z | 2019-09-15T13:14:00Z | 2019-09-15T13:14:00Z |
MEMBER
| null |
Skipped on travis for now: https://github.com/pandas-dev/pandas/commit/880de3054c7ce3a6c48e295837207787dc73350f
See also comment here: https://github.com/pandas-dev/pandas/issues/14679#issuecomment-261533205 (I can reproduce it locally by running the test, but not with a simple example mimicking the test)
|
{
"+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/14719/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14719/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14720
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14720/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14720/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14720/events
|
https://github.com/pandas-dev/pandas/issues/14720
| 191,265,615 |
MDU6SXNzdWUxOTEyNjU2MTU=
| 14,720 |
Feature Request: Circular bins with pd.cut
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
}
|
[
{
"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": "9aace2",
"default": false,
"description": "cut, qcut",
"id": 1639305834,
"name": "cut",
"node_id": "MDU6TGFiZWwxNjM5MzA1ODM0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/cut"
}
] |
closed
| false | null |
[] | null | 5 | 2016-11-23T13:05:53Z | 2019-12-28T05:36:42Z | 2019-12-28T05:36:42Z |
NONE
| null |
pandas.cut and similar operate on the principle that bins start at one end of a line and finish at another. However, sometimes it is necessary to work with data that operates on a circular scale, for example compass directions.
It would be a great enhancement if pd.cut could deal with these cases.
I do not know of anything in numpy or pandas that currently deals with this situation, but it would be very useful.
#### Current workaround
Currently this is accomplished by having a bin covering half of the real bin at each end of the scale, for example the bin 345° to15° would be covered by a bin of 0° to 15° and a bin of 345° to 360°. It is then necessary to assign the members of one category to the other, rename it, and then delete the unused category.
```python
data = pd.DataFrame(np.random.random(400) * 360, columns=["Direction"])
bins = np.array([-15, 15, 45, 75, 105, 135, 165, 195, 225, 255, 285, 315, 345, 375])
c = pd.cut(data.Direction, bins)
c[c=="(-15, 15]"] = "(345, 375]"
c = c.cat.remove_unused_categories()
cats = list(c.cat.categories)
cats[-1] = '(345, 15]'
c = c.cat.set_categories(cats)
```
#### Desired behaviour
Better would be accepting a parameter indicating at what point the scale loops, e.g. zeroat=360. Other solutions may be possible, such as taking the structure of the list of bins to indicate that the scale loops.
One issue is the order. How can the fact that 345 is both more than and less than 0 be dealt with, depending on what direction you are looking in? There is an order, but it isn't straight forward.
|
{
"+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/14720/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14720/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14721
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14721/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14721/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14721/events
|
https://github.com/pandas-dev/pandas/issues/14721
| 191,313,614 |
MDU6SXNzdWUxOTEzMTM2MTQ=
| 14,721 |
Series.unique converts uint64 to int64 (with overflow)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3475067?v=4",
"events_url": "https://api.github.com/users/dnspies/events{/privacy}",
"followers_url": "https://api.github.com/users/dnspies/followers",
"following_url": "https://api.github.com/users/dnspies/following{/other_user}",
"gists_url": "https://api.github.com/users/dnspies/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dnspies",
"id": 3475067,
"login": "dnspies",
"node_id": "MDQ6VXNlcjM0NzUwNjc=",
"organizations_url": "https://api.github.com/users/dnspies/orgs",
"received_events_url": "https://api.github.com/users/dnspies/received_events",
"repos_url": "https://api.github.com/users/dnspies/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dnspies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dnspies/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dnspies"
}
|
[
{
"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 dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 16 | 2016-11-23T16:03:30Z | 2016-12-20T13:46:00Z | 2016-12-20T13:46:00Z |
NONE
| null |
```
>>> import pandas as pd
>>> import numpy as np
>>> s = pd.Series([1,2,2**63], dtype=np.dtype('uint64'))
>>> s
0 1
1 2
2 9223372036854775808
dtype: uint64
>>> s.unique()
array([ 1, 2, -9223372036854775808])
```
Series.unique should preserve whatever type the values are. But instead it changes from uint64 to int64.
INSTALLED VERSIONS
------------------
...
python: 3.4.3.final.0
python-bits: 64
...
...
pandas: 0.17.1
numpy: 1.10.4
...
|
{
"+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/14721/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14721/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14722
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14722/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14722/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14722/events
|
https://github.com/pandas-dev/pandas/pull/14722
| 191,353,283 |
MDExOlB1bGxSZXF1ZXN0OTUwNjAxMjA=
| 14,722 |
doc: comverted --> converted
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/463344?v=4",
"events_url": "https://api.github.com/users/nicholsn/events{/privacy}",
"followers_url": "https://api.github.com/users/nicholsn/followers",
"following_url": "https://api.github.com/users/nicholsn/following{/other_user}",
"gists_url": "https://api.github.com/users/nicholsn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nicholsn",
"id": 463344,
"login": "nicholsn",
"node_id": "MDQ6VXNlcjQ2MzM0NA==",
"organizations_url": "https://api.github.com/users/nicholsn/orgs",
"received_events_url": "https://api.github.com/users/nicholsn/received_events",
"repos_url": "https://api.github.com/users/nicholsn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nicholsn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nicholsn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nicholsn"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-11-23T18:49:28Z | 2016-11-24T09:22:31Z | 2016-11-23T20:35:31Z |
CONTRIBUTOR
| null |
Just fixing a spelling error =)
|
{
"+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/14722/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14722/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14722.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14722",
"merged_at": "2016-11-23T20:35:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14722.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14722"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14723
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14723/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14723/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14723/events
|
https://github.com/pandas-dev/pandas/pull/14723
| 191,364,362 |
MDExOlB1bGxSZXF1ZXN0OTUwNjgxOTI=
| 14,723 |
MAINT: Ignore .pxi files
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"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": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 12 | 2016-11-23T19:44:39Z | 2016-12-15T09:15:05Z | 2016-11-25T13:19:12Z |
MEMBER
| null |
All `.pxi` files have the warning to not edit directly, so why not have Git ignore any changes made there?
In addition, this PR deletes all of the `.pxi` files from the codebase because they are automatically generated by the `.pxi.in` files
|
{
"+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/14723/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14723/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14723.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14723",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14723.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14723"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14724
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14724/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14724/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14724/events
|
https://github.com/pandas-dev/pandas/pull/14724
| 191,381,400 |
MDExOlB1bGxSZXF1ZXN0OTUwODA1OTc=
| 14,724 |
Minor typo in frame.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6052419?v=4",
"events_url": "https://api.github.com/users/sdimi/events{/privacy}",
"followers_url": "https://api.github.com/users/sdimi/followers",
"following_url": "https://api.github.com/users/sdimi/following{/other_user}",
"gists_url": "https://api.github.com/users/sdimi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sdimi",
"id": 6052419,
"login": "sdimi",
"node_id": "MDQ6VXNlcjYwNTI0MTk=",
"organizations_url": "https://api.github.com/users/sdimi/orgs",
"received_events_url": "https://api.github.com/users/sdimi/received_events",
"repos_url": "https://api.github.com/users/sdimi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sdimi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sdimi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sdimi"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-11-23T21:15:38Z | 2016-11-24T09:22:27Z | 2016-11-23T21:23:32Z |
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
typo "explicitly"
|
{
"+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/14724/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14724/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14724.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14724",
"merged_at": "2016-11-23T21:23:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14724.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14724"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14725
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14725/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14725/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14725/events
|
https://github.com/pandas-dev/pandas/issues/14725
| 191,400,037 |
MDU6SXNzdWUxOTE0MDAwMzc=
| 14,725 |
Cannot add TimedeltaIndex to tz-aware DatetimeIndex (but can to non-tz-aware DatetimeIndex)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/546210?v=4",
"events_url": "https://api.github.com/users/Liam3851/events{/privacy}",
"followers_url": "https://api.github.com/users/Liam3851/followers",
"following_url": "https://api.github.com/users/Liam3851/following{/other_user}",
"gists_url": "https://api.github.com/users/Liam3851/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Liam3851",
"id": 546210,
"login": "Liam3851",
"node_id": "MDQ6VXNlcjU0NjIxMA==",
"organizations_url": "https://api.github.com/users/Liam3851/orgs",
"received_events_url": "https://api.github.com/users/Liam3851/received_events",
"repos_url": "https://api.github.com/users/Liam3851/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Liam3851/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Liam3851/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Liam3851"
}
|
[
{
"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": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false | null |
[] | null | 2 | 2016-11-23T23:12:39Z | 2016-11-24T03:09:20Z | 2016-11-24T03:09:19Z |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
Under 0.19.1 and latest master:
```python
In [19]: dr = pd.date_range("20161123 00:00", "20161123 02:00", freq="H")
In [20]: tdr = pd.timedelta_range("1 minute", "3 minutes", freq="T")
In [21]: dr + tdr
Out[21]:
DatetimeIndex(['2016-11-23 00:01:00', '2016-11-23 01:02:00',
'2016-11-23 02:03:00'],
dtype='datetime64[ns]', freq='61T')
In [22]: dr_tz = pd.date_range("20161123 00:00", "20161123 02:00", freq="H", tz="America/New_York")
...:
In [23]: dr_tz + tdr
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-23-c10d4a537816> in <module>()
----> 1 dr_tz + tdr
C:\Anaconda\envs\bleeding\lib\site-packages\pandas\tseries\base.pyc in __add__(self, other)
617 from pandas.tseries.offsets import DateOffset
618 if isinstance(other, TimedeltaIndex):
--> 619 return self._add_delta(other)
620 elif isinstance(self, TimedeltaIndex) and isinstance(other, Index):
621 if hasattr(other, '_add_delta'):
C:\Anaconda\envs\bleeding\lib\site-packages\pandas\tseries\index.pyc in _add_delta(self, delta)
787 new_values = self._add_delta_td(delta)
788 elif isinstance(delta, TimedeltaIndex):
--> 789 new_values = self._add_delta_tdi(delta)
790 # update name when delta is Index
791 name = com._maybe_match_name(self, delta)
C:\Anaconda\envs\bleeding\lib\site-packages\pandas\tseries\base.pyc in _add_delta_tdi(self, other)
704 mask = (self._isnan) | (other._isnan)
705 new_values[mask] = tslib.iNaT
--> 706 return new_values.view(self.dtype)
707
708 def isin(self, values):
TypeError: data type not understood
```
#### Problem description
Given a DatetimeIndex that is not tz-aware, adding a TimedeltaIndex of the same length adds the values elementwise, as one would expect. Given a tz-aware DatetimeIndex, however, adding a TimedeltaIndex results in TypeError. Performing the same operation by iterating over the tz-aware index and adding the values directly works in the expected manner. This behavior did not occur under pandas 0.16.2; however, the above behavior occurs under at least 0.19.1 and the latest master.
#### Expected Output
Equivalent to the elementwise operation below, which works on latest master:
```python
In [25]: pd.Index([dr_tz[i] + tdr[i] for i in xrange(len(dr_tz))])
Out[25]:
DatetimeIndex(['2016-11-23 00:01:00-05:00', '2016-11-23 01:02:00-05:00',
'2016-11-23 02:03:00-05:00'],
dtype='datetime64[ns, America/New_York]', freq=None)
```
This also worked under 0.16.2:
```python
In [14]: dr_tz = pd.date_range("20161123 00:00", "20161123 02:00", freq="H", tz="America/New_York")
In [15]: tdr = pd.timedelta_range("1 minute", "3 minutes", freq="T")
In [16]: dr_tz + tdr
Out[16]:
DatetimeIndex(['2016-11-23 00:01:00-05:00', '2016-11-23 01:02:00-05:00',
'2016-11-23 02:03:00-05:00'],
dtype='datetime64[ns]', freq='61T', tz='America/New_York')
```
#### Output of ``pd.show_versions()``
<details>
In [26]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.0+98.gc045e1d
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.24.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.4.8
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: None
lxml: 3.6.4
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 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/14725/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14725/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14726
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14726/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14726/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14726/events
|
https://github.com/pandas-dev/pandas/issues/14726
| 191,436,701 |
MDU6SXNzdWUxOTE0MzY3MDE=
| 14,726 |
Segfault on Linux with 0.19.1
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/67612?v=4",
"events_url": "https://api.github.com/users/matthew-brett/events{/privacy}",
"followers_url": "https://api.github.com/users/matthew-brett/followers",
"following_url": "https://api.github.com/users/matthew-brett/following{/other_user}",
"gists_url": "https://api.github.com/users/matthew-brett/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matthew-brett",
"id": 67612,
"login": "matthew-brett",
"node_id": "MDQ6VXNlcjY3NjEy",
"organizations_url": "https://api.github.com/users/matthew-brett/orgs",
"received_events_url": "https://api.github.com/users/matthew-brett/received_events",
"repos_url": "https://api.github.com/users/matthew-brett/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matthew-brett/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matthew-brett/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matthew-brett"
}
|
[
{
"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 | 2016-11-24T05:31:29Z | 2016-11-24T09:11:02Z | 2016-11-24T09:11:02Z |
CONTRIBUTOR
| null |
I'm getting a segfault on my Linux machines with the following:
```
from datetime import datetime
import pandas.tseries.offsets as offsets
from pandas.tslib import Timestamp
dt = datetime(2011, 1, 1, 9, 0)
tz = 'dateutil/Asia/Tokyo'
offset_s = offsets.LastWeekOfMonth(n=1, weekday=5)
expected = Timestamp('2011-01-29 09:00:00')
expected_localize = expected.tz_localize(tz)
result = Timestamp(dt, tz=tz) + offset_s
expected_localize = expected.tz_localize(tz)
```
Here's a script to reproduce on a clean debian-stable docker container:
```
docker run --rm -ti -v $PWD:/io debian:stable /bin/bash
```
```
apt-get update
apt-get install -y wget python-minimal
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install pandas
cat > pandas_segfault.py << EOF
from datetime import datetime
import pandas.tseries.offsets as offsets
from pandas.tslib import Timestamp
dt = datetime(2011, 1, 1, 9, 0)
tz = 'dateutil/Asia/Tokyo'
offset_s = offsets.LastWeekOfMonth(n=1, weekday=5)
expected = Timestamp('2011-01-29 09:00:00')
expected_localize = expected.tz_localize(tz)
result = Timestamp(dt, tz=tz) + offset_s
expected_localize = expected.tz_localize(tz)
EOF
python pandas_segfault.py
```
Segfault from manylinux wheel up on pypi, and install from source of 0.19.1 . No segfault from current master.
Worth a point release to fix?
|
{
"+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/14726/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14726/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14727
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14727/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14727/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14727/events
|
https://github.com/pandas-dev/pandas/issues/14727
| 191,438,809 |
MDU6SXNzdWUxOTE0Mzg4MDk=
| 14,727 |
UnicodeWarning when using `DataFrame.xs`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4273204?v=4",
"events_url": "https://api.github.com/users/zym1010/events{/privacy}",
"followers_url": "https://api.github.com/users/zym1010/followers",
"following_url": "https://api.github.com/users/zym1010/following{/other_user}",
"gists_url": "https://api.github.com/users/zym1010/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zym1010",
"id": 4273204,
"login": "zym1010",
"node_id": "MDQ6VXNlcjQyNzMyMDQ=",
"organizations_url": "https://api.github.com/users/zym1010/orgs",
"received_events_url": "https://api.github.com/users/zym1010/received_events",
"repos_url": "https://api.github.com/users/zym1010/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zym1010/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zym1010/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zym1010"
}
|
[
{
"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": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] | null | 7 | 2016-11-24T05:53:27Z | 2019-07-09T14:47:41Z | 2019-07-09T14:47:40Z |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
charset = [u'a', u'b', u'c', u'd', u'e']
list_dt = [ {u'a': x, u'b': y, u'c': z, u'd': w, u'e': k, u'value': 1} for x in charset for y in charset for z in charset for w in charset for k in charset]
dt_this = pd.DataFrame(list_dt).set_index(['a','b','c','d','e'])
print('try c')
a=dt_this.xs(u'c', level='a')
print('try b')
a=dt_this.xs(u'b', level='a')
print('try c')
a=dt_this.xs(u'c', level='a')
level = u'a'
drop_level = True
key = u'c'
axis = 0
axis = dt_this._get_axis_number(axis)
labels = dt_this._get_axis(axis)
if level is not None:
loc, new_ax = labels.get_loc_level(key, level=level,
drop_level=drop_level)
# convert to a label indexer if needed
if isinstance(loc, slice):
lev_num = labels._get_level_number(level)
if labels.levels[lev_num].inferred_type == 'integer':
loc = labels[loc]
# create the tuple of the indexer
indexer = [slice(None)] * dt_this.ndim
indexer[axis] = loc
indexer = tuple(indexer)
print('try c, using indexing')
print(indexer)
result = a.ix[indexer]
indexer2 = (slice(1250, 1875, None), slice(None, None, None))
print(indexer2)
print('try c, using indexing, naive integer')
result = a.ix[indexer2]
```
##### output
You can run this snippet (say, saved as `test_bug.py`), with `python -W always test_bug.py`, then get the following output.
~~~
try c
/home/yimengzh/miniconda2/envs/theano-tf-test/lib/python2.7/site-packages/pandas/indexes/base.py:2134: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
return self._engine.get_loc(key)
/home/yimengzh/miniconda2/envs/theano-tf-test/lib/python2.7/site-packages/pandas/indexes/base.py:2136: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
return self._engine.get_loc(self._maybe_cast_indexer(key))
try b
try c
/home/yimengzh/miniconda2/envs/theano-tf-test/lib/python2.7/site-packages/pandas/indexes/base.py:2134: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
return self._engine.get_loc(key)
/home/yimengzh/miniconda2/envs/theano-tf-test/lib/python2.7/site-packages/pandas/indexes/base.py:2136: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
return self._engine.get_loc(self._maybe_cast_indexer(key))
try c, using indexing
(slice(1250, 1875, None), slice(None, None, None))
/home/yimengzh/miniconda2/envs/theano-tf-test/lib/python2.7/site-packages/pandas/indexes/base.py:2134: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
return self._engine.get_loc(key)
/home/yimengzh/miniconda2/envs/theano-tf-test/lib/python2.7/site-packages/pandas/indexes/base.py:2136: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
return self._engine.get_loc(self._maybe_cast_indexer(key))
(slice(1250, 1875, None), slice(None, None, None))
try c, using indexing, naive integer
~~~
#### Problem description
For some reason, when slicing those rows with column `a` equal to `c`, there are `UnicodeWarning` spit out. For some other rows, say those with `a` equal to `b`, there's no such warning (well, actually I'm not sure whether this is really a warning, as when I use `python -W error` to run the script, no warning appears.
I did some debugging myself on this, and seems that when passing a slice, or a tuple of slices into `DataFrame.ix`, where some elements in the slice are `np.int64`, this can **possibly** happen (some `np.int64` numbers won't trigger the warning). When replacing all `np.int64` attributes (`start`, `stop`, `step`) of the slice with native Python integers, there's no warning. This is based on running the source code of `DataFrame.xs` line by line.
#### Output of ``pd.show_versions()``
<details>
~~~
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-279.14.1.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.1
nose: 1.3.7
pip: 8.1.2
setuptools: 26.1.1.post20160901
Cython: None
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 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/14727/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14727/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14728
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14728/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14728/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14728/events
|
https://github.com/pandas-dev/pandas/pull/14728
| 191,499,009 |
MDExOlB1bGxSZXF1ZXN0OTUxNjMyMDI=
| 14,728 |
BUG: Ensure min_itemsize is always a list (#11412)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4",
"events_url": "https://api.github.com/users/toobaz/events{/privacy}",
"followers_url": "https://api.github.com/users/toobaz/followers",
"following_url": "https://api.github.com/users/toobaz/following{/other_user}",
"gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/toobaz",
"id": 1224492,
"login": "toobaz",
"node_id": "MDQ6VXNlcjEyMjQ0OTI=",
"organizations_url": "https://api.github.com/users/toobaz/orgs",
"received_events_url": "https://api.github.com/users/toobaz/received_events",
"repos_url": "https://api.github.com/users/toobaz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toobaz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/toobaz"
}
|
[
{
"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": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 13 | 2016-11-24T11:39:41Z | 2016-12-05T23:44:36Z | 2016-12-05T23:44:36Z |
MEMBER
| null |
- [x] closes #11412
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] tests added / passed
- [x] whatsnew entry
(I plan to fix #10381 and #12154 next, but first we need coherence on ``type(data_columns)`` - and ``Index`` seems to me the best option.)
|
{
"+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/14728/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14728/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14728.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14728",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14728.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14728"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14729
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14729/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14729/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14729/events
|
https://github.com/pandas-dev/pandas/pull/14729
| 191,545,098 |
MDExOlB1bGxSZXF1ZXN0OTUxOTU4Njk=
| 14,729 |
ENH: add data hashing routines
|
{
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 52 | 2016-11-24T15:21:19Z | 2016-11-28T16:31:04Z | 2016-11-28T16:19:06Z |
CONTRIBUTOR
| null |
xref https://github.com/dask/dask/pull/1807
|
{
"+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/14729/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14729/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14729.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14729",
"merged_at": "2016-11-28T16:19:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14729.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14729"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14730
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14730/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14730/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14730/events
|
https://github.com/pandas-dev/pandas/issues/14730
| 191,550,555 |
MDU6SXNzdWUxOTE1NTA1NTU=
| 14,730 |
Indexing a mulitIndex with a series fails
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11660098?v=4",
"events_url": "https://api.github.com/users/owlas/events{/privacy}",
"followers_url": "https://api.github.com/users/owlas/followers",
"following_url": "https://api.github.com/users/owlas/following{/other_user}",
"gists_url": "https://api.github.com/users/owlas/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/owlas",
"id": 11660098,
"login": "owlas",
"node_id": "MDQ6VXNlcjExNjYwMDk4",
"organizations_url": "https://api.github.com/users/owlas/orgs",
"received_events_url": "https://api.github.com/users/owlas/received_events",
"repos_url": "https://api.github.com/users/owlas/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/owlas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/owlas/subscriptions",
"type": "User",
"url": "https://api.github.com/users/owlas"
}
|
[
{
"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,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 9 | 2016-11-24T15:47:13Z | 2017-05-19T09:27:51Z | 2017-01-04T00:00:09Z |
NONE
| null |
#### Code Sample
```python
import pandas as pd
index = pd.Index([1,2,3])
x = pd.Series(index=index, data=range(3))
y = pd.Series([1,3])
x.loc[[1,3]] # can index series with list
x.loc[y] # can index series with another series
index = pd.MultiIndex.from_product([[1, 2, 3], ['A', 'B', 'C']])
x = pd.Series(index=index, data=range(9))
y = pd.Series([1,3])
x.loc[[1,3]] # can index series with list
x.loc[y] # cannot index series with another series
```
#### Problem description
In pandas you can index a DataFrame or Series with a list, ndarray, series, etc. But this fails when using a muliIndex.
#### Expected Output
No failures
#### Error message
<details>
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/core/indexing.py in _get_label(self, label, axis)
94 try:
---> 95 return self.obj._xs(label, axis=axis)
96 except:
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/core/generic.py in xs(self, key, axis, level, drop_level)
1776 loc, new_index = self.index.get_loc_level(key,
-> 1777 drop_level=drop_level)
1778 else:
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in get_loc_level(self, key, level, drop_level)
1795 else:
-> 1796 return partial_selection(key)
1797 else:
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in partial_selection(key, indexer)
1761 if indexer is None:
-> 1762 indexer = self.get_loc(key)
1763 ilevels = [i for i in range(len(key))
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in get_loc(self, key, method)
1671 start, stop = (self.slice_locs(lead_key, lead_key)
-> 1672 if lead_key else (0, len(self)))
1673
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in slice_locs(self, start, end, step, kind)
1577 # happens in get_slice_bound method), but it adds meaningful doc.
-> 1578 return super(MultiIndex, self).slice_locs(start, end, step, kind=kind)
1579
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/base.py in slice_locs(self, start, end, step, kind)
3175 if start is not None:
-> 3176 start_slice = self.get_slice_bound(start, 'left', kind)
3177 if start_slice is None:
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in get_slice_bound(self, label, side, kind)
1548 label = label,
-> 1549 return self._partial_tup_index(label, side=side)
1550
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in _partial_tup_index(self, tup, side)
1591
-> 1592 if lab not in lev:
1593 if not lev.is_type_compatible(lib.infer_dtype([lab])):
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/base.py in __contains__(self, key)
1392 def __contains__(self, key):
-> 1393 hash(key)
1394 # work around some kind of odd cython bug
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/core/generic.py in __hash__(self)
830 raise TypeError('{0!r} objects are mutable, thus they cannot be'
--> 831 ' hashed'.format(self.__class__.__name__))
832
TypeError: 'Series' objects are mutable, thus they cannot be hashed
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last)
<ipython-input-7-5927dd14b2bf> in <module>()
4 y = pd.Series([1,3])
5 x.loc[[1,3]] # can index series with list
----> 6 x.loc[y] # cannot index series with another series
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/core/indexing.py in __getitem__(self, key)
1309 return self._getitem_tuple(key)
1310 else:
-> 1311 return self._getitem_axis(key, axis=0)
1312
1313 def _getitem_axis(self, key, axis=0):
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/core/indexing.py in _getitem_axis(self, key, axis)
1480 # fall thru to straight lookup
1481 self._has_valid_type(key, axis)
-> 1482 return self._get_label(key, axis=axis)
1483
1484
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/core/indexing.py in _get_label(self, label, axis)
95 return self.obj._xs(label, axis=axis)
96 except:
---> 97 return self.obj[label]
98 elif isinstance(label, tuple) and isinstance(label[axis], slice):
99 raise IndexingError('no slices here, handle elsewhere')
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/core/series.py in __getitem__(self, key)
640 key = check_bool_indexer(self.index, key)
641
--> 642 return self._get_with(key)
643
644 def _get_with(self, key):
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/core/series.py in _get_with(self, key)
653 if isinstance(key, tuple):
654 try:
--> 655 return self._get_values_tuple(key)
656 except:
657 if len(key) == 1:
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/core/series.py in _get_values_tuple(self, key)
701
702 # If key is contained, would have returned by now
--> 703 indexer, new_index = self.index.get_loc_level(key)
704 return self._constructor(self._values[indexer],
705 index=new_index).__finalize__(self)
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in get_loc_level(self, key, level, drop_level)
1794 return partial_selection(key)
1795 else:
-> 1796 return partial_selection(key)
1797 else:
1798 indexer = None
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in partial_selection(key, indexer)
1760 def partial_selection(key, indexer=None):
1761 if indexer is None:
-> 1762 indexer = self.get_loc(key)
1763 ilevels = [i for i in range(len(key))
1764 if key[i] != slice(None, None)]
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in get_loc(self, key, method)
1670 lead_key, follow_key = key[:i], key[i:]
1671 start, stop = (self.slice_locs(lead_key, lead_key)
-> 1672 if lead_key else (0, len(self)))
1673
1674 if start == stop:
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in slice_locs(self, start, end, step, kind)
1576 # This function adds nothing to its parent implementation (the magic
1577 # happens in get_slice_bound method), but it adds meaningful doc.
-> 1578 return super(MultiIndex, self).slice_locs(start, end, step, kind=kind)
1579
1580 def _partial_tup_index(self, tup, side='left'):
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/base.py in slice_locs(self, start, end, step, kind)
3174 start_slice = None
3175 if start is not None:
-> 3176 start_slice = self.get_slice_bound(start, 'left', kind)
3177 if start_slice is None:
3178 start_slice = 0
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in get_slice_bound(self, label, side, kind)
1547 if not isinstance(label, tuple):
1548 label = label,
-> 1549 return self._partial_tup_index(label, side=side)
1550
1551 def slice_locs(self, start=None, end=None, step=None, kind=None):
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/multi.py in _partial_tup_index(self, tup, side)
1590 section = labs[start:end]
1591
-> 1592 if lab not in lev:
1593 if not lev.is_type_compatible(lib.infer_dtype([lab])):
1594 raise TypeError('Level type mismatch: %s' % lab)
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/indexes/base.py in __contains__(self, key)
1391
1392 def __contains__(self, key):
-> 1393 hash(key)
1394 # work around some kind of odd cython bug
1395 try:
/home/owl/miniconda3/envs/p3/lib/python3.5/site-packages/pandas/core/generic.py in __hash__(self)
829 def __hash__(self):
830 raise TypeError('{0!r} objects are mutable, thus they cannot be'
--> 831 ' hashed'.format(self.__class__.__name__))
832
833 def __iter__(self):
TypeError: 'Series' objects are mutable, thus they cannot be hashed
```
</details>
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-47-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: en_GB.UTF-8
pandas: 0.19.1
nose: None
pip: 8.1.2
setuptools: 27.2.0
Cython: None
numpy: 1.11.2
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 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/14730/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14730/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14731
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14731/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14731/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14731/events
|
https://github.com/pandas-dev/pandas/pull/14731
| 191,575,152 |
MDExOlB1bGxSZXF1ZXN0OTUyMTcwNjE=
| 14,731 |
CLN: move assignment from header into cython
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/823911?v=4",
"events_url": "https://api.github.com/users/mattip/events{/privacy}",
"followers_url": "https://api.github.com/users/mattip/followers",
"following_url": "https://api.github.com/users/mattip/following{/other_user}",
"gists_url": "https://api.github.com/users/mattip/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mattip",
"id": 823911,
"login": "mattip",
"node_id": "MDQ6VXNlcjgyMzkxMQ==",
"organizations_url": "https://api.github.com/users/mattip/orgs",
"received_events_url": "https://api.github.com/users/mattip/received_events",
"repos_url": "https://api.github.com/users/mattip/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mattip/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mattip/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mattip"
}
|
[
{
"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": "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": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 3 | 2016-11-24T18:18:28Z | 2016-11-25T12:52:16Z | 2016-11-25T12:52:11Z |
CONTRIBUTOR
| null |
an insignificant refactoring that allows PyPy2.7 to build and import Pandas. The original code uses functions that are macros in CPython but actual c-functions in PyPy and one cannot assign to a function result
Note that while PyPy imports Pandas, it very quickly segfaults, Apparently PyPy does not yet play well with enough of Cython, I suspect strange interactions with tp_new and tp_deallocate
|
{
"+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/14731/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14731/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14731.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14731",
"merged_at": "2016-11-25T12:52:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14731.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14731"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14732
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14732/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14732/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14732/events
|
https://github.com/pandas-dev/pandas/issues/14732
| 191,584,748 |
MDU6SXNzdWUxOTE1ODQ3NDg=
| 14,732 |
Default example of plotting a time series fails in v0.19.1
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1276212?v=4",
"events_url": "https://api.github.com/users/smartsystems4u/events{/privacy}",
"followers_url": "https://api.github.com/users/smartsystems4u/followers",
"following_url": "https://api.github.com/users/smartsystems4u/following{/other_user}",
"gists_url": "https://api.github.com/users/smartsystems4u/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/smartsystems4u",
"id": 1276212,
"login": "smartsystems4u",
"node_id": "MDQ6VXNlcjEyNzYyMTI=",
"organizations_url": "https://api.github.com/users/smartsystems4u/orgs",
"received_events_url": "https://api.github.com/users/smartsystems4u/received_events",
"repos_url": "https://api.github.com/users/smartsystems4u/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/smartsystems4u/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/smartsystems4u/subscriptions",
"type": "User",
"url": "https://api.github.com/users/smartsystems4u"
}
|
[
{
"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": 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 | 2016-11-24T19:56:28Z | 2016-11-24T23:37:36Z | 2016-11-24T23:37:27Z |
NONE
| null |
Simply using the example of the [documentation](http://pandas.pydata.org/pandas-docs/stable/visualization.html):
#### Code Sample, a copy-pastable example if possible
```python
ts = ps.Series(np.random.randn(1000), index=ps.date_range('1/1/2000', periods=1000))
ts = ts.cumsum()
ts.plot()
```
#### Problem description
fails with the error:
TypeError: float() argument must be a string or a number
Note: I confirmed that downgrading to Pandas version 0.19.0 this issue goes away.
#### Expected Output
I would expect a nicely formatted graph with date labels on the x-axis.
#### ``traceback``
<details>
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-26-0d06e21bb979> in <module>()
2 ap.columns = [["Month", "Passengers"]]
3 apts = ps.Series(ap.Passengers.values.astype('float'), index=ap.Month)
----> 4 ax = apts.plot(marker='.', label='Airline Passengers')
5 ax.legend()
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/pandas/tools/plotting.pyc in __call__(self, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds)
3597 colormap=colormap, table=table, yerr=yerr,
3598 xerr=xerr, label=label, secondary_y=secondary_y,
-> 3599 **kwds)
3600 __call__.__doc__ = plot_series.__doc__
3601
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/pandas/tools/plotting.pyc in plot_series(data, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds)
2671 yerr=yerr, xerr=xerr,
2672 label=label, secondary_y=secondary_y,
-> 2673 **kwds)
2674
2675
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/pandas/tools/plotting.pyc in _plot(data, x, y, subplots, ax, kind, **kwds)
2467 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds)
2468
-> 2469 plot_obj.generate()
2470 plot_obj.draw()
2471 return plot_obj.result
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/pandas/tools/plotting.pyc in generate(self)
1041 self._compute_plot_data()
1042 self._setup_subplots()
-> 1043 self._make_plot()
1044 self._add_table()
1045 self._make_legend()
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/pandas/tools/plotting.pyc in _make_plot(self)
1724 stacking_id=stacking_id,
1725 is_errorbar=is_errorbar,
-> 1726 **kwds)
1727 self._add_legend_handle(newlines[0], label, index=i)
1728
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/pandas/tools/plotting.pyc in _ts_plot(cls, ax, x, data, style, **kwds)
1762 ax._plot_data.append((data, cls._kind, kwds))
1763
-> 1764 lines = cls._plot(ax, data.index, data.values, style=style, **kwds)
1765 # set date formatter, locators and rescale limits
1766 format_dateaxis(ax, ax.freq)
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/pandas/tools/plotting.pyc in _plot(cls, ax, x, y, style, column_num, stacking_id, **kwds)
1739 cls._initialize_stacker(ax, stacking_id, len(y))
1740 y_values = cls._get_stacked_values(ax, stacking_id, y, kwds['label'])
-> 1741 lines = MPLPlot._plot(ax, x, y_values, style=style, **kwds)
1742 cls._update_stacker(ax, stacking_id, y)
1743 return lines
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/pandas/tools/plotting.pyc in _plot(cls, ax, x, y, style, is_errorbar, **kwds)
1359 else:
1360 args = (x, y)
-> 1361 return ax.plot(*args, **kwds)
1362
1363 def _get_index_name(self):
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/matplotlib/__init__.pyc in inner(ax, *args, **kwargs)
1817 warnings.warn(msg % (label_namer, func.__name__),
1818 RuntimeWarning, stacklevel=2)
-> 1819 return func(ax, *args, **kwargs)
1820 pre_doc = inner.__doc__
1821 if pre_doc is None:
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/matplotlib/axes/_axes.pyc in plot(self, *args, **kwargs)
1381
1382 for line in self._get_lines(*args, **kwargs):
-> 1383 self.add_line(line)
1384 lines.append(line)
1385
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/matplotlib/axes/_base.pyc in add_line(self, line)
1701 line.set_clip_path(self.patch)
1702
-> 1703 self._update_line_limits(line)
1704 if not line.get_label():
1705 line.set_label('_line%d' % len(self.lines))
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/matplotlib/axes/_base.pyc in _update_line_limits(self, line)
1723 Figures out the data limit of the given line, updating self.dataLim.
1724 """
-> 1725 path = line.get_path()
1726 if path.vertices.size == 0:
1727 return
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/matplotlib/lines.pyc in get_path(self)
936 """
937 if self._invalidy or self._invalidx:
--> 938 self.recache()
939 return self._path
940
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/matplotlib/lines.pyc in recache(self, always)
623 x = ma.asarray(xconv, np.float_).filled(np.nan)
624 else:
--> 625 x = np.asarray(xconv, np.float_)
626 x = x.ravel()
627 else:
/Users/willem/dev/ml/keras/mlpy/lib/python2.7/site-packages/numpy/core/numeric.pyc in asarray(a, dtype, order)
480
481 """
--> 482 return array(a, dtype, copy=False, order=order)
483
484 def asanyarray(a, dtype=None, order=None):
TypeError: float() argument must be a string or a number
```
</details>
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Darwin
OS-release: 16.1.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.1
nose: None
pip: 9.0.1
setuptools: 28.8.0
Cython: None
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.3
openpyxl: None
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 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/14732/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14732/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14733
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14733/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14733/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14733/events
|
https://github.com/pandas-dev/pandas/issues/14733
| 191,612,744 |
MDU6SXNzdWUxOTE2MTI3NDQ=
| 14,733 |
i
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16885848?v=4",
"events_url": "https://api.github.com/users/i-frost/events{/privacy}",
"followers_url": "https://api.github.com/users/i-frost/followers",
"following_url": "https://api.github.com/users/i-frost/following{/other_user}",
"gists_url": "https://api.github.com/users/i-frost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/i-frost",
"id": 16885848,
"login": "i-frost",
"node_id": "MDQ6VXNlcjE2ODg1ODQ4",
"organizations_url": "https://api.github.com/users/i-frost/orgs",
"received_events_url": "https://api.github.com/users/i-frost/received_events",
"repos_url": "https://api.github.com/users/i-frost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/i-frost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/i-frost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/i-frost"
}
|
[] |
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"
}
| 0 | 2016-11-25T02:10:38Z | 2016-11-25T08:33:24Z | 2016-11-25T02:24:14Z |
NONE
| 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/14733/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14733/timeline
| null | null | null |
|
https://api.github.com/repos/pandas-dev/pandas/issues/14734
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14734/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14734/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14734/events
|
https://github.com/pandas-dev/pandas/issues/14734
| 191,622,568 |
MDU6SXNzdWUxOTE2MjI1Njg=
| 14,734 |
read_sas with chunksize/iterator raises ValueError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9507544?v=4",
"events_url": "https://api.github.com/users/pijucha/events{/privacy}",
"followers_url": "https://api.github.com/users/pijucha/followers",
"following_url": "https://api.github.com/users/pijucha/following{/other_user}",
"gists_url": "https://api.github.com/users/pijucha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pijucha",
"id": 9507544,
"login": "pijucha",
"node_id": "MDQ6VXNlcjk1MDc1NDQ=",
"organizations_url": "https://api.github.com/users/pijucha/orgs",
"received_events_url": "https://api.github.com/users/pijucha/received_events",
"repos_url": "https://api.github.com/users/pijucha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pijucha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pijucha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pijucha"
}
|
[
{
"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": "SAS: read_sas",
"id": 258745163,
"name": "IO SAS",
"node_id": "MDU6TGFiZWwyNTg3NDUxNjM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SAS"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 9 | 2016-11-25T04:17:11Z | 2017-05-02T14:52:13Z | 2016-11-28T09:48:59Z |
CONTRIBUTOR
| null |
`read_sas` doesn't work well with `chunksize` or `iterator` parameters.
#### Code Sample and Problem Description
The following data test file in the repository have 32 lines.
```python
sasfile = 'pandas/io/tests/sas/data/airline.sas7bdat'
pd.read_sas(sasfile).shape
Out[18]: (32, 6)
```
When we carefully read the file with `chunksize`/`iterator`, all's well:
```python
reader = pd.read_sas(sasfile, chunksize=16)
df = reader.read()
df.shape
Out[31]: (16, 6)
df = reader.read()
df.shape
Out[33]: (16, 6)
```
or
```python
reader = pd.read_sas(sasfile, iterator=True)
df = reader.read(30)
df.shape
Out[37]: (30, 6)
df = reader.read(2)
df.shape
Out[39]: (2, 6)
df = reader.read(2)
type(df)
Out[41]: NoneType
```
But if we don't know the length of the data, we'll easily stumble on an exception and won't read the whole data, which is painful with large files.
```python
reader = pd.read_sas(sasfile, chunksize=20)
df = reader.read()
df.shape
Out[45]: (20, 6)
df = reader.read()
Traceback (most recent call last):
File "/usr/local/lib64/python3.5/site-packages/IPython/core/interactiveshell.py", line 2885, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-46-c5d811b93ac1>", line 1, in <module>
df = reader.read()
File "/home/users/piotr/workspace/pandas-pijucha/pandas/io/sas/sas7bdat.py", line 604, in read
rslt = self._chunk_to_dataframe()
File "/home/users/piotr/workspace/pandas-pijucha/pandas/io/sas/sas7bdat.py", line 646, in _chunk_to_dataframe
dtype=self.byte_order + 'd')
File "/home/users/piotr/workspace/pandas-pijucha/pandas/core/frame.py", line 2419, in __setitem__
self._set_item(key, value)
File "/home/users/piotr/workspace/pandas-pijucha/pandas/core/frame.py", line 2485, in _set_item
value = self._sanitize_column(key, value)
File "/home/users/piotr/workspace/pandas-pijucha/pandas/core/frame.py", line 2656, in _sanitize_column
value = _sanitize_index(value, self.index, copy=False)
File "/home/users/piotr/workspace/pandas-pijucha/pandas/core/series.py", line 2793, in _sanitize_index
raise ValueError('Length of values does not match length of ' 'index')
ValueError: Length of values does not match length of index
```
or
```python
reader = pd.read_sas(sasfile, iterator=True)
reader.read(30).shape
Out[51]: (30, 6)
reader.read(30).shape
Traceback (most recent call last):
File "/usr/local/lib64/python3.5/site-packages/IPython/core/interactiveshell.py", line 2885, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-52-5d757f713808>", line 1, in <module>
reader.read(30).shape
File "/home/users/piotr/workspace/pandas-pijucha/pandas/io/sas/sas7bdat.py", line 604, in read
rslt = self._chunk_to_dataframe()
File "/home/users/piotr/workspace/pandas-pijucha/pandas/io/sas/sas7bdat.py", line 646, in _chunk_to_dataframe
dtype=self.byte_order + 'd')
File "/home/users/piotr/workspace/pandas-pijucha/pandas/core/frame.py", line 2419, in __setitem__
self._set_item(key, value)
File "/home/users/piotr/workspace/pandas-pijucha/pandas/core/frame.py", line 2485, in _set_item
value = self._sanitize_column(key, value)
File "/home/users/piotr/workspace/pandas-pijucha/pandas/core/frame.py", line 2656, in _sanitize_column
value = _sanitize_index(value, self.index, copy=False)
File "/home/users/piotr/workspace/pandas-pijucha/pandas/core/series.py", line 2793, in _sanitize_index
raise ValueError('Length of values does not match length of ' 'index')
ValueError: Length of values does not match length of index
```
#### Output of ``pd.show_versions()``
<details>
pd.show_versions()
INSTALLED VERSIONS
------------------
commit: 75b606abad51762b3faace1bbfa0a8d2241dc297
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.1.20-1
machine: x86_64
processor: Intel(R)_Core(TM)_i5-2520M_CPU_@_2.50GHz
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.0+112.g75b606a
nose: 1.3.7
pip: 9.0.1
setuptools: 21.0.0
Cython: 0.24
numpy: 1.11.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/14734/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14734/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14735
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14735/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14735/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14735/events
|
https://github.com/pandas-dev/pandas/pull/14735
| 191,627,596 |
MDExOlB1bGxSZXF1ZXN0OTUyNTE5MjQ=
| 14,735 |
Cut enhance for issue #14714
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4158294?v=4",
"events_url": "https://api.github.com/users/aileronajay/events{/privacy}",
"followers_url": "https://api.github.com/users/aileronajay/followers",
"following_url": "https://api.github.com/users/aileronajay/following{/other_user}",
"gists_url": "https://api.github.com/users/aileronajay/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aileronajay",
"id": 4158294,
"login": "aileronajay",
"node_id": "MDQ6VXNlcjQxNTgyOTQ=",
"organizations_url": "https://api.github.com/users/aileronajay/orgs",
"received_events_url": "https://api.github.com/users/aileronajay/received_events",
"repos_url": "https://api.github.com/users/aileronajay/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aileronajay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aileronajay/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aileronajay"
}
|
[] |
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 | 2016-11-25T05:30:07Z | 2016-11-25T08:31:00Z | 2016-11-25T05:37:18Z |
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
Initial iteration, primarily for code review
|
{
"+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/14735/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14735/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14735.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14735",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14735.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14735"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14736
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14736/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14736/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14736/events
|
https://github.com/pandas-dev/pandas/issues/14736
| 191,629,414 |
MDU6SXNzdWUxOTE2Mjk0MTQ=
| 14,736 |
DOC: warning section on memory overflow when joining/merging dataframes on index with duplicate keys
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1189869?v=4",
"events_url": "https://api.github.com/users/xgdgsc/events{/privacy}",
"followers_url": "https://api.github.com/users/xgdgsc/followers",
"following_url": "https://api.github.com/users/xgdgsc/following{/other_user}",
"gists_url": "https://api.github.com/users/xgdgsc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xgdgsc",
"id": 1189869,
"login": "xgdgsc",
"node_id": "MDQ6VXNlcjExODk4Njk=",
"organizations_url": "https://api.github.com/users/xgdgsc/orgs",
"received_events_url": "https://api.github.com/users/xgdgsc/received_events",
"repos_url": "https://api.github.com/users/xgdgsc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xgdgsc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xgdgsc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xgdgsc"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 8 | 2016-11-25T05:51:00Z | 2016-12-11T20:26:51Z | 2016-12-11T20:26:35Z |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
http://stackoverflow.com/questions/32750970/python-pandas-merge-causing-memory-overflow
# coding: utf-8
import pandas as pd
data = pd.read_csv('https://gist.githubusercontent.com/xgdgsc/8671a22136e1da937f1046a5f211c0ff/raw/d261706a6e7d1d7014e45e47122ead71e7159ef4/small.csv', index_col='<Date>')
print(data.shape)
another = data[[ ' <Open>']]
joined = data.join([another])
print(joined.shape)
#### Problem description
Currently having index with duplicate keys when joining dataframes would cause severe memory overflow, sometimes freezes the computer and user has to hard reboot, which can be disastrous for unsaved work.
#### Expected Output
Adding a simple checking before joining/merging , stop the operation and warn the user would be enough.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 27.2.0
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.6
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
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/14736/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14736/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14737
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14737/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14737/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14737/events
|
https://github.com/pandas-dev/pandas/pull/14737
| 191,634,835 |
MDExOlB1bGxSZXF1ZXN0OTUyNTY2ODI=
| 14,737 |
ENH: support cut/qcut for datetime/timedelta (GH14714)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4158294?v=4",
"events_url": "https://api.github.com/users/aileronajay/events{/privacy}",
"followers_url": "https://api.github.com/users/aileronajay/followers",
"following_url": "https://api.github.com/users/aileronajay/following{/other_user}",
"gists_url": "https://api.github.com/users/aileronajay/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aileronajay",
"id": 4158294,
"login": "aileronajay",
"node_id": "MDQ6VXNlcjQxNTgyOTQ=",
"organizations_url": "https://api.github.com/users/aileronajay/orgs",
"received_events_url": "https://api.github.com/users/aileronajay/received_events",
"repos_url": "https://api.github.com/users/aileronajay/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aileronajay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aileronajay/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aileronajay"
}
|
[
{
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 23 | 2016-11-25T06:43:10Z | 2016-12-04T22:35:52Z | 2016-12-03T10:11:59Z |
CONTRIBUTOR
| null |
- [x] closes #14714
- [x] tests added / passed
- [x] passes ``git diff upstream/master | 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/14737/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14737/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14737.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14737",
"merged_at": "2016-12-03T10:11:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14737.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14737"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14738
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14738/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14738/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14738/events
|
https://github.com/pandas-dev/pandas/pull/14738
| 191,640,462 |
MDExOlB1bGxSZXF1ZXN0OTUyNjA2MDM=
| 14,738 |
DOC: Correct uniqueness of index for Series (#7808)
|
{
"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": "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"
}
| 3 | 2016-11-25T07:31:56Z | 2017-12-20T01:57:46Z | 2016-11-25T10:07:26Z |
MEMBER
| null |
- [X] closes #7808
|
{
"+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/14738/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14738/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14738.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14738",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14738.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14738"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14739
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14739/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14739/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14739/events
|
https://github.com/pandas-dev/pandas/pull/14739
| 191,643,933 |
MDExOlB1bGxSZXF1ZXN0OTUyNjMwMTU=
| 14,739 |
DOC: Update outdated caveats for Anaconda and HTML parsing (#9032)
|
{
"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": "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,
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 4 | 2016-11-25T07:59:20Z | 2016-11-25T22:48:02Z | 2016-11-25T22:47:50Z |
MEMBER
| null |
- [x] closes #9032
|
{
"+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/14739/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14739/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14739.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14739",
"merged_at": "2016-11-25T22:47:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14739.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14739"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14740
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14740/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14740/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14740/events
|
https://github.com/pandas-dev/pandas/pull/14740
| 191,665,170 |
MDExOlB1bGxSZXF1ZXN0OTUyNzc2NzM=
| 14,740 |
MAINT: Cleanup pandas/src/parser
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"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": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 26 | 2016-11-25T10:02:26Z | 2016-12-06T22:31:59Z | 2016-12-06T18:43:13Z |
MEMBER
| null |
Remove dead code and reformat for style using Google's C++ style guide (found <a href="https://google.github.io/styleguide/cppguide.html">here</a>).
Also adds line of code to install fork of Google's C++ style checker (source code <a href="https://github.com/cpplint/cpplint">here</a>) when doing style checks in Travis.
|
{
"+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/14740/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14740/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14740.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14740",
"merged_at": "2016-12-06T18:43:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14740.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14740"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14741
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14741/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14741/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14741/events
|
https://github.com/pandas-dev/pandas/issues/14741
| 191,692,129 |
MDU6SXNzdWUxOTE2OTIxMjk=
| 14,741 |
groupby agg with rank and parameter return does not reduce
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10682573?v=4",
"events_url": "https://api.github.com/users/jesrael/events{/privacy}",
"followers_url": "https://api.github.com/users/jesrael/followers",
"following_url": "https://api.github.com/users/jesrael/following{/other_user}",
"gists_url": "https://api.github.com/users/jesrael/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jesrael",
"id": 10682573,
"login": "jesrael",
"node_id": "MDQ6VXNlcjEwNjgyNTcz",
"organizations_url": "https://api.github.com/users/jesrael/orgs",
"received_events_url": "https://api.github.com/users/jesrael/received_events",
"repos_url": "https://api.github.com/users/jesrael/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jesrael/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jesrael/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jesrael"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
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 | 2016-11-25T12:28:09Z | 2020-01-26T06:26:22Z | null |
NONE
| null |
Sample with **Multiindex** in columns:
df = pd.DataFrame({('r', 'c'): {(1, '2016-11-01 00:00:00+00:00', 3121): 143, (1, '2016-11-01 00:00:00+00:00', 4880): 12, (1, '2016-11-01 00:00:00+00:00', 3953): 4, (1, '2016-11-01 00:00:00+00:00', 3923): 11}})
df.index.names = ['z','x','y']
print (df)
r
c
z x y
1 2016-11-01 00:00:00+00:00 3121 143
3923 11
3953 4
4880 12
x = 'x'
y = 'y'
#works perfect
print (df.groupby(level=[x, y]).agg({('r', 'c'): 'rank'}))
print (df.groupby(level=[x, y]).agg({('r', 'c'): lambda x: x.rank(ascending=False)}))
#ValueError: Function does not reduce
Problem is with **non MultiIndex** columns also:
df = pd.DataFrame({'A':[1,1,3,3],
'B':[4,5,6,1]})
print (df)
A B
0 1 4
1 1 5
2 3 6
3 3 1
print (df.groupby('A').agg({'B': 'rank'}))
B
0 1.0
1 2.0
2 2.0
3 1.0
print (df.groupby('A').agg({'B': lambda x: x.rank()}))
#Exception: Must produce aggregated value
print (df.groupby('A').agg({'B': lambda x: x.rank(ascending=False)}))
#Exception: Must produce aggregated value
Problem is how can I use function with parameter in `agg` function? [SO question](http://stackoverflow.com/questions/40785476/pandas-rank-specify-order)
print (pd.show_versions())
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: sk_SK
LOCALE: None.None
pandas: 0.19.1
nose: 1.3.7
pip: 8.1.1
setuptools: 20.3
Cython: 0.23.4
numpy: 1.11.0
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.5.1
pytz: 2016.2
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.0
pandas_datareader: 0.2.1
None
Thank you for pandas and for your perfect documentation.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14741/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14741/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14742
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14742/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14742/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14742/events
|
https://github.com/pandas-dev/pandas/pull/14742
| 191,698,595 |
MDExOlB1bGxSZXF1ZXN0OTUzMDE2NTM=
| 14,742 |
Added query_config parameter to read_gbq
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8968486?v=4",
"events_url": "https://api.github.com/users/necnec/events{/privacy}",
"followers_url": "https://api.github.com/users/necnec/followers",
"following_url": "https://api.github.com/users/necnec/following{/other_user}",
"gists_url": "https://api.github.com/users/necnec/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/necnec",
"id": 8968486,
"login": "necnec",
"node_id": "MDQ6VXNlcjg5Njg0ODY=",
"organizations_url": "https://api.github.com/users/necnec/orgs",
"received_events_url": "https://api.github.com/users/necnec/received_events",
"repos_url": "https://api.github.com/users/necnec/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/necnec/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/necnec/subscriptions",
"type": "User",
"url": "https://api.github.com/users/necnec"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 26 | 2016-11-25T13:05:31Z | 2017-01-03T11:28:59Z | 2017-01-03T11:20:54Z |
CONTRIBUTOR
| null |
Now more complicated queries could be processed.
|
{
"+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/14742/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14742/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14742.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14742",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14742.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14742"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14743
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14743/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14743/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14743/events
|
https://github.com/pandas-dev/pandas/pull/14743
| 191,720,978 |
MDExOlB1bGxSZXF1ZXN0OTUzMTc4MDI=
| 14,743 |
SAS chunksize / iteration issues
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2666691?v=4",
"events_url": "https://api.github.com/users/kshedden/events{/privacy}",
"followers_url": "https://api.github.com/users/kshedden/followers",
"following_url": "https://api.github.com/users/kshedden/following{/other_user}",
"gists_url": "https://api.github.com/users/kshedden/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kshedden",
"id": 2666691,
"login": "kshedden",
"node_id": "MDQ6VXNlcjI2NjY2OTE=",
"organizations_url": "https://api.github.com/users/kshedden/orgs",
"received_events_url": "https://api.github.com/users/kshedden/received_events",
"repos_url": "https://api.github.com/users/kshedden/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kshedden/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kshedden/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kshedden"
}
|
[
{
"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": "SAS: read_sas",
"id": 258745163,
"name": "IO SAS",
"node_id": "MDU6TGFiZWwyNTg3NDUxNjM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SAS"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 6 | 2016-11-25T15:10:12Z | 2016-11-28T09:49:08Z | 2016-11-28T09:48:59Z |
CONTRIBUTOR
| null |
closes #14734
closes #13654
- [X] tests added / passed
- [X] passes ``git diff upstream/master | 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/14743/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14743/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14743.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14743",
"merged_at": "2016-11-28T09:48:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14743.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14743"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14744
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14744/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14744/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14744/events
|
https://github.com/pandas-dev/pandas/pull/14744
| 191,734,265 |
MDExOlB1bGxSZXF1ZXN0OTUzMjY4MTk=
| 14,744 |
Revert "TST/TEMP: fix pyqt to 4.x for plotting tests"
|
{
"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": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2016-11-25T16:20:12Z | 2018-09-13T14:19:38Z | 2016-11-26T17:18:54Z |
MEMBER
| null |
Reverts pydata/pandas#14240
For when https://github.com/ContinuumIO/anaconda-issues/issues/1068 is solved
|
{
"+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/14744/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14744/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14744.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14744",
"merged_at": "2016-11-26T17:18:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14744.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14744"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14745
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14745/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14745/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14745/events
|
https://github.com/pandas-dev/pandas/pull/14745
| 191,741,329 |
MDExOlB1bGxSZXF1ZXN0OTUzMzE1NTM=
| 14,745 |
DOC: missing ref in timeseries.rst
|
{
"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": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 0 | 2016-11-25T17:00:46Z | 2016-11-25T20:39:47Z | 2016-11-25T17:00:50Z |
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14745/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14745/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14745.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14745",
"merged_at": "2016-11-25T17:00:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14745.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14745"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/14746
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14746/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14746/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14746/events
|
https://github.com/pandas-dev/pandas/issues/14746
| 191,751,547 |
MDU6SXNzdWUxOTE3NTE1NDc=
| 14,746 |
pandas dataframe to rpy2 dataframe gives me unwanted data
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/22320970?v=4",
"events_url": "https://api.github.com/users/smartie-dieter/events{/privacy}",
"followers_url": "https://api.github.com/users/smartie-dieter/followers",
"following_url": "https://api.github.com/users/smartie-dieter/following{/other_user}",
"gists_url": "https://api.github.com/users/smartie-dieter/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/smartie-dieter",
"id": 22320970,
"login": "smartie-dieter",
"node_id": "MDQ6VXNlcjIyMzIwOTcw",
"organizations_url": "https://api.github.com/users/smartie-dieter/orgs",
"received_events_url": "https://api.github.com/users/smartie-dieter/received_events",
"repos_url": "https://api.github.com/users/smartie-dieter/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/smartie-dieter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/smartie-dieter/subscriptions",
"type": "User",
"url": "https://api.github.com/users/smartie-dieter"
}
|
[
{
"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": "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 |
[] |
{
"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 | 2016-11-25T18:29:10Z | 2017-02-17T22:32:52Z | 2017-02-17T22:32:52Z |
NONE
| null |
#### Code Sample
```python
df.to_csv("output_df.csv", sep=',', encoding='utf-8')
df2 = pandas2ri.py2ri(df)
df2.to_csvfile("output_df2.csv")
```
#### Problem description
I want to convert my pandas data.frame (df) into a rpy2 data.frame.
But unfortunately, it generates me a massive amount of unwanted data.
Data which isn't present in my original data.frame
#### Expected Output - ``which is the print out of df``
```xlsx
,AssociatedTaxa,BasisofRecord,Behavior,CanonicalName,CatalogNumber,CollectionCode,Conf,CoordinateUncertaintyInMeters,Country,CountryCode,DataGeneralizations,DataSetID,DataSetName,DateIdentified,Day,DecimalLatitude,DecimalLongitude,DeterminationID,EstablishmentMeans,EventDate,EventID,EventRemarks,Family,FieldDate,FilenameID,GBIFtaxoMatch,Genus,GeodeticDatum,IdentificationRemarks,IdentificationVerificationStatus,IdentifiedBy,IndividualCount,InstitutionCode,LifeStage,Locality,LocationRemarks,Modified,Month,Municipality,OccurrenceRemarks,Ordre,OrganismsQuantity,OrganismsQuantityType,ProviderID,RecordNumber,RecordedBy,SamplingProtocol,ScientificName,Sex,SpecificEpithet,StateProvince,TaxonRank,VerbatimCoordinates,VerbatimCoordinatesystem,VerbatimElevation,VerbatimEventDate,VerbatimLatitude,VerbatimLongitude,VerbatimScientificName,Year,cond_id,fips,ifbl,occurrenceID,spec_id,spec_id_orig,stat_id,uuid
0,None,HumanObservation,None,Ailanthus altissima,None,None,4,10.0,Belgium,BE,Subselection of priority classified invasive species within the compiled datasets,17,Fusion BDs invasives,2013-09-26,26,55.73,-3.9049,None,Invasive,2013-09-26,None,None,Simaroubaceae,2013-09-26,demma_invasives2.sqlite,EXACT,Ailanthus,WGS84,None,5,"Muir, Malcolm",1,DEMNA-SPW,None,Lanarkshire,None,None,09,None,Presence,Sapindales,None,None,demma,2,"Muir, Malcolm",None,Ailanthus altissima (Miller) Swingle,None,altissima ,None,species,deg 55.73 -3.9049,WGS84,None,20130926,55.73,-3.9049,Ailanthus altissima,2013,2,None,,17:2,2,None,2,d73298b8-b32c-11e6-a3ef-0a1c6976a2db
1,None,HumanObservation,None,Ailanthus altissima,None,None,4,15.0,Belgium,BE,Subselection of priority classified invasive species within the compiled datasets,17,Fusion BDs invasives,2014-10-19,19,51.4591,-2.6021,None,Invasive,2014-10-19,None,None,Simaroubaceae,2014-10-19,demma_invasives2.sqlite,EXACT,Ailanthus,WGS84,None,5,"Anonymous, Anonymous",1,DEMNA-SPW,None,West Gloucestershire,None,None,10,None,Presence,Sapindales,None,None,demma,3,"Anonymous, Anonymous",None,Ailanthus altissima (Miller) Swingle,None,altissima ,None,species,deg 51.4591 -2.6021,WGS84,None,20141019,51.4591,-2.6021,Ailanthus altissima,2014,3,None,,17:3,3,None,3,d73298b9-b32c-11e6-a3ef-0a1c6976a2db
2,None,HumanObservation,None,Ailanthus altissima,None,None,4,nan,Belgium,BE,Subselection of priority classified invasive species within the compiled datasets,17,Fusion BDs invasives,2015-08-08,08,50.8102,3.3562,None,Invasive,2015-08-08,None,None,Simaroubaceae,2015-08-08,demma_invasives2.sqlite,EXACT,Ailanthus,WGS84,None,5,"vanhee, dave",1,DEMNA-SPW,None,None,None,None,08,None,Presence,Sapindales,None,None,demma,4,"vanhee, dave",None,Ailanthus altissima (Miller) Swingle,None,altissima ,None,species,deg 50.8102 3.3562,WGS84,None,20150808,50.8102,3.3562,Ailanthus altissima,2015,4,None,E23433,17:4,4,None,4,d73298ba-b32c-11e6-a3ef-0a1c6976a2db
```
#### Output of ``df2`` - if you scroll to the right, you'll notice the problem.
```xlsx
"AssociatedTaxa","BasisofRecord","Behavior","CanonicalName","CatalogNumber","CollectionCode","Conf","CoordinateUncertaintyInMeters","Country","CountryCode","DataGeneralizations","DataSetID","DataSetName","DateIdentified","Day","DecimalLatitude","DecimalLongitude","DeterminationID","EstablishmentMeans","EventDate","EventID","EventRemarks","Family","FieldDate","FilenameID","GBIFtaxoMatch","Genus","GeodeticDatum","IdentificationRemarks","IdentificationVerificationStatus","IdentifiedBy","IndividualCount","InstitutionCode","LifeStage","Locality","LocationRemarks","Modified","Month","Municipality","OccurrenceRemarks","Ordre","OrganismsQuantity","OrganismsQuantityType","ProviderID","RecordNumber","RecordedBy","SamplingProtocol","ScientificName","Sex","SpecificEpithet","StateProvince","TaxonRank","VerbatimCoordinates","VerbatimCoordinatesystem","VerbatimElevation","VerbatimEventDate","VerbatimLatitude","VerbatimLongitude","VerbatimScientificName","Year","cond_id","fips","ifbl.0","ifbl.1","ifbl.2","ifbl.3","ifbl.4","ifbl.5","ifbl.6","ifbl.7","ifbl.8","ifbl.9","ifbl.10","ifbl.11","ifbl.12","ifbl.13","ifbl.14","ifbl.15","ifbl.16","ifbl.17","ifbl.18","ifbl.19","ifbl.20","ifbl.21","ifbl.22","ifbl.23","ifbl.24","ifbl.25","ifbl.26","ifbl.27","ifbl.28","ifbl.29","ifbl.30","ifbl.31","ifbl.32","ifbl.33","ifbl.34","ifbl.35","ifbl.36","ifbl.37","ifbl.38","ifbl.39","ifbl.40","ifbl.41","ifbl.42","ifbl.43","ifbl.44","ifbl.45","ifbl.46","ifbl.47","ifbl.48","ifbl.49","ifbl.50","ifbl.51","ifbl.52","ifbl.53","ifbl.54","ifbl.55","ifbl.56","ifbl.57","ifbl.58","ifbl.59","ifbl.60","ifbl.61","ifbl.62","ifbl.63","ifbl.64","ifbl.65","ifbl.66","ifbl.67","ifbl.68","ifbl.69","ifbl.70","ifbl.71","ifbl.72","ifbl.73","ifbl.74","ifbl.75","ifbl.76","ifbl.77","ifbl.78","ifbl.79","ifbl.80","ifbl.81","ifbl.82","ifbl.83","ifbl.84","ifbl.85","ifbl.86","ifbl.87","ifbl.88","ifbl.89","ifbl.90","ifbl.91","ifbl.92","ifbl.93","ifbl.94","ifbl.95","ifbl.96","ifbl.97","ifbl.98","ifbl.99","ifbl.100","ifbl.101","ifbl.102","ifbl.103","ifbl.104","ifbl.105","ifbl.106","ifbl.107","ifbl.108","ifbl.109","ifbl.110","ifbl.111","ifbl.112","ifbl.113","ifbl.114","ifbl.115","ifbl.116","ifbl.117","ifbl.118","ifbl.119","ifbl.120","ifbl.121","ifbl.122","ifbl.123","ifbl.124","ifbl.125","ifbl.126","ifbl.127","ifbl.128","ifbl.129","ifbl.130","ifbl.131","ifbl.132","ifbl.133","ifbl.134","ifbl.135","ifbl.136","ifbl.137","ifbl.138","ifbl.139","ifbl.140","ifbl.141","ifbl.142","ifbl.143","ifbl.144","ifbl.145","ifbl.146","ifbl.147","ifbl.148","ifbl.149","ifbl.150","ifbl.151","ifbl.152","ifbl.153","ifbl.154","ifbl.155","ifbl.156","ifbl.157","ifbl.158","ifbl.159","ifbl.160","ifbl.161","ifbl.162","ifbl.163","ifbl.164","ifbl.165","ifbl.166","ifbl.167","ifbl.168","ifbl.169","ifbl.170","ifbl.171","ifbl.172","ifbl.173","ifbl.174","ifbl.175","ifbl.176","ifbl.177","ifbl.178","ifbl.179","ifbl.180","ifbl.181","ifbl.182","ifbl.183","ifbl.184","ifbl.185","ifbl.186","ifbl.187","ifbl.188","ifbl.189","ifbl.190","ifbl.191","ifbl.192","ifbl.193","ifbl.194","ifbl.195","ifbl.196","ifbl.197","ifbl.198","ifbl.199","ifbl.200","ifbl.201","ifbl.202","ifbl.203","ifbl.204","ifbl.205","ifbl.206","ifbl.207","ifbl.208","ifbl.209","ifbl.210","ifbl.211","ifbl.212","ifbl.213","ifbl.214","ifbl.215","ifbl.216","ifbl.217","ifbl.218","ifbl.219","ifbl.220","ifbl.221","ifbl.222","ifbl.223","ifbl.224","ifbl.225","ifbl.226","ifbl.227","ifbl.228","ifbl.229","ifbl.230","ifbl.231","ifbl.232","ifbl.233","ifbl.234","ifbl.235","ifbl.236","ifbl.237","ifbl.238","ifbl.239","ifbl.240","ifbl.241","ifbl.242","ifbl.243","ifbl.244","ifbl.245","ifbl.246","ifbl.247","ifbl.248","ifbl.249","ifbl.250","ifbl.251","ifbl.252","ifbl.253","ifbl.254","ifbl.255","ifbl.256","ifbl.257","ifbl.258","ifbl.259","ifbl.260","ifbl.261","ifbl.262","ifbl.263","ifbl.264","ifbl.265","ifbl.266","ifbl.267","ifbl.268","ifbl.269","ifbl.270","ifbl.271","ifbl.272","ifbl.273","ifbl.274","ifbl.275","ifbl.276","ifbl.277","ifbl.278","ifbl.279","ifbl.280","ifbl.281","ifbl.282","ifbl.283","ifbl.284","ifbl.285","ifbl.286","ifbl.287","ifbl.288","ifbl.289","ifbl.290","ifbl.291","ifbl.292","ifbl.293","ifbl.294","ifbl.295","ifbl.296","ifbl.297","ifbl.298","ifbl.299","ifbl.300","ifbl.301","ifbl.302","ifbl.303","ifbl.304","ifbl.305","ifbl.306","ifbl.307","ifbl.308","ifbl.309","ifbl.310","ifbl.311","ifbl.312","ifbl.313","ifbl.314","ifbl.315","ifbl.316","ifbl.317","ifbl.318","ifbl.319","ifbl.320","ifbl.321","ifbl.322","ifbl.323","ifbl.324","ifbl.325","ifbl.326","ifbl.327","ifbl.328","ifbl.329","ifbl.330","ifbl.331","ifbl.332","ifbl.333","ifbl.334","ifbl.335","ifbl.336","ifbl.337","ifbl.338","ifbl.339","ifbl.340","ifbl.341","ifbl.342","ifbl.343","ifbl.344","ifbl.345","ifbl.346","ifbl.347","ifbl.348","ifbl.349","ifbl.350","ifbl.351","ifbl.352","ifbl.353","ifbl.354","ifbl.355","ifbl.356","ifbl.357","ifbl.358","ifbl.359","ifbl.360","ifbl.361","ifbl.362","ifbl.363","ifbl.364","ifbl.365","ifbl.366","ifbl.367","ifbl.368","ifbl.369","ifbl.370","ifbl.371","ifbl.372","ifbl.373","ifbl.374","ifbl.375","ifbl.376","ifbl.377","ifbl.378","ifbl.379","ifbl.380","ifbl.381","ifbl.382","ifbl.383","ifbl.384","ifbl.385","ifbl.386","ifbl.387","ifbl.388","ifbl.389","ifbl.390","ifbl.391","ifbl.392","ifbl.393","ifbl.394","ifbl.395","ifbl.396","ifbl.397","ifbl.398","ifbl.399","ifbl.400","ifbl.401","ifbl.402","ifbl.403","ifbl.404","ifbl.405","ifbl.406","ifbl.407","ifbl.408","ifbl.409","ifbl.410","ifbl.411","ifbl.412","ifbl.413","ifbl.414","ifbl.415","ifbl.416","ifbl.417","ifbl.418","ifbl.419","ifbl.420","ifbl.421","ifbl.422","ifbl.423","ifbl.424","ifbl.425","ifbl.426","ifbl.427","ifbl.428","ifbl.429","ifbl.430","ifbl.431","ifbl.432","ifbl.433","ifbl.434","ifbl.435","ifbl.436","ifbl.437","ifbl.438","ifbl.439","ifbl.440","ifbl.441","ifbl.442","ifbl.443","ifbl.444","ifbl.445","ifbl.446","ifbl.447","ifbl.448","ifbl.449","ifbl.450","ifbl.451","ifbl.452","ifbl.453","ifbl.454","ifbl.455","ifbl.456","ifbl.457","ifbl.458","ifbl.459","ifbl.460","ifbl.461","ifbl.462","ifbl.463","ifbl.464","ifbl.465","ifbl.466","ifbl.467","ifbl.468","ifbl.469","ifbl.470","ifbl.471","ifbl.472","ifbl.473","ifbl.474","ifbl.475","ifbl.476","ifbl.477","ifbl.478","ifbl.479","ifbl.480","ifbl.481","ifbl.482","ifbl.483","ifbl.484","ifbl.485","ifbl.486","ifbl.487","ifbl.488","ifbl.489","ifbl.490","ifbl.491","ifbl.492","ifbl.493","ifbl.494","ifbl.495","ifbl.496","ifbl.497","ifbl.498","ifbl.499","occurrenceID","spec_id","spec_id_orig","stat_id","uuid"
"0","None","HumanObservation","None","Ailanthus altissima","None","None","4","10.0","Belgium","BE","Subselection of priority classified invasive species within the compiled datasets","17","Fusion BDs invasives","2013-09-26","26","55.73","-3.9049","None","Invasive","2013-09-26","None","None","Simaroubaceae","2013-09-26","demma_invasives2.sqlite","EXACT","Ailanthus","WGS84","None","5","Muir, Malcolm","1","DEMNA-SPW","None","Lanarkshire","None","None","09","None","Presence","Sapindales","None","None","demma","2","Muir, Malcolm","None","Ailanthus altissima (Miller) Swingle","None","altissima ","None","species","deg 55.73 -3.9049","WGS84","None","20130926","55.73","-3.9049","Ailanthus altissima","2013","2","None",NA,NA,"E23433","E24213",NA,"?71423",NA,NA,"C72332","C14541",NA,"C44624","C14814","C14832","C24144","C04843","C04843","C04843","C04843","C04843","C35234","C35234","E11641","F32812",NA,"H74232",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"C22243","C24143","C04843","C25121","C04843","C04843","C15814","C35243","C35234","D21131","D21133","D31143","D11743","E31821","E22511","F45223","F45241","H74232",NA,NA,NA,NA,"F45241","F45232",NA,NA,NA,"?71522","B74223",NA,NA,NA,NA,NA,NA,"C11444","C72332","C22331","C32633","C32633","C32633","C32633","C32633","C22144","C14611","C23142","C23132","C23211","C24332","C24332","C14632","C24143","C04843","C04843","E31821","E41133","E25111","E35114","E45413","F43411",NA,NA,NA,NA,NA,NA,"C24142","C04843","C04843","C04843","C04843","C04843","C35522","C04843","C04843","C04843","C04843","C04843","C04843","C04843","C75722","C75722","C15612","C35241","C35234","C35234","C35234","D31143","D11732","D21133",NA,"D14834","D14744","E31821","E23413","E13833","E35114","F35521","F45331","H74232","J54113",NA,NA,NA,"C35241","F44341",NA,NA,NA,NA,NA,"D21132","D13833","E31823","F55342","E41133","J54113",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"<55643","<55544","<55623",NA,NA,">62723",NA,NA,"E23433","E24213",NA,"?71423",NA,NA,"C72332","C14541",NA,"C44624","C14814","C14832","C24144","C04843","C04843","C04843","C04843","C04843","C35234","C35234","E11641","F32812",NA,"H74232",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"C22243","C24143","C04843","C25121","C04843","C04843","C15814","C35243","C35234","D21131","D21133","D31143","D11743","E31821","E22511","F45223","F45241","H74232",NA,NA,NA,NA,"F45241","F45232",NA,NA,NA,"?71522","B74223",NA,NA,NA,NA,NA,NA,">62723",">62723",">75821","?71414",NA,"@71523",NA,NA,NA,NA,NA,NA,"@45434",NA,"E31821","E31823","E31823","C11444","C72332","C22331","C32633","C32633","C32633","C32633","C32633","C22144","C14611","C23142","C23132","C23211","C24332","C24332","C14632","C24143","C04843","C04843","E31821","E41133","E25111","E35114","E45413","F43411",NA,NA,NA,NA,NA,NA,"C24142","C04843","C04843","C04843","C04843","C04843","C35522","C04843","C04843","C04843","C04843","C04843","C04843","C04843","C75722","C75722","C15612","C35241","C35234","C35234","C35234","D31143","D11732","D21133",NA,"D14834","D14744","E31821","E23413","E13833","E35114","F35521","F45331","H74232","J54113",NA,NA,NA,"C35241","F44341",NA,NA,NA,NA,NA,"D21132","D13833","E31823","F55342","E41133","J54113",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"E31823","E31823","E31823","E31823","E31823","E31824","E31823","E41133","E22322","E22411","E22511","E12831","E23412","E23213","E13724","E23213","E23413","E23433","E23344","E14811","F35521",NA,"A33112",NA,NA,NA,"B41544",NA,NA,NA,NA,NA,"B74212",NA,NA,NA,NA,NA,NA,NA,NA,"<55643","<55544","<55623",NA,NA,">62723",">62723",">62723",">75821","?71414",NA,"@71523",NA,NA,NA,NA,NA,NA,"@45434",NA,"E31821","E31823","E31823","E31823","E31823","E31823","E31823","E31823","E31824","E31823","E41133","E22322","E22411","E22511","E12831","E23412","E23213","E13724","E23213","E23413","E23433","E23344","E14811","F35521",NA,"A33112",NA,NA,NA,"B41544",NA,NA,NA,NA,NA,"B74212",NA,NA,"B74211","C11533","C04843","C04843","C35243","C04843","C04843","C35243",NA,"B74211","C11533","C04843","C04843","C35243","C04843","C04843","C35243","17:2","2","None","2","d73298b8-b32c-11e6-a3ef-0a1c6976a2db"
"1","None","HumanObservation","None","Ailanthus altissima","None","None","4","15.0","Belgium","BE","Subselection of priority classified invasive species within the compiled datasets","17","Fusion BDs invasives","2014-10-19","19","51.4591","-2.6021","None","Invasive","2014-10-19","None","None","Simaroubaceae","2014-10-19","demma_invasives2.sqlite","EXACT","Ailanthus","WGS84","None","5","Anonymous, Anonymous","1","DEMNA-SPW","None","West Gloucestershire","None","None","10","None","Presence","Sapindales","None","None","demma","3","Anonymous, Anonymous","None","Ailanthus altissima (Miller) Swingle","None","altissima ","None","species","deg 51.4591 -2.6021","WGS84","None","20141019","51.4591","-2.6021","Ailanthus altissima","2014","3","None",NA,NA,"E23433","E24213",NA,"?71423",NA,NA,"C72332","C14541",NA,"C44624","C14814","C14832","C24144","C04843","C04843","C04843","C04843","C04843","C35234","C35234","E11641","F32812",NA,"H74232",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"C22243","C24143","C04843","C25121","C04843","C04843","C15814","C35243","C35234","D21131","D21133","D31143","D11743","E31821","E22511","F45223","F45241","H74232",NA,NA,NA,NA,"F45241","F45232",NA,NA,NA,"?71522","B74223",NA,NA,NA,NA,NA,NA,"C11444","C72332","C22331","C32633","C32633","C32633","C32633","C32633","C22144","C14611","C23142","C23132","C23211","C24332","C24332","C14632","C24143","C04843","C04843","E31821","E41133","E25111","E35114","E45413","F43411",NA,NA,NA,NA,NA,NA,"C24142","C04843","C04843","C04843","C04843","C04843","C35522","C04843","C04843","C04843","C04843","C04843","C04843","C04843","C75722","C75722","C15612","C35241","C35234","C35234","C35234","D31143","D11732","D21133",NA,"D14834","D14744","E31821","E23413","E13833","E35114","F35521","F45331","H74232","J54113",NA,NA,NA,"C35241","F44341",NA,NA,NA,NA,NA,"D21132","D13833","E31823","F55342","E41133","J54113",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"<55643","<55544","<55623",NA,NA,">62723",NA,NA,"E23433","E24213",NA,"?71423",NA,NA,"C72332","C14541",NA,"C44624","C14814","C14832","C24144","C04843","C04843","C04843","C04843","C04843","C35234","C35234","E11641","F32812",NA,"H74232",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"C22243","C24143","C04843","C25121","C04843","C04843","C15814","C35243","C35234","D21131","D21133","D31143","D11743","E31821","E22511","F45223","F45241","H74232",NA,NA,NA,NA,"F45241","F45232",NA,NA,NA,"?71522","B74223",NA,NA,NA,NA,NA,NA,">62723",">62723",">75821","?71414",NA,"@71523",NA,NA,NA,NA,NA,NA,"@45434",NA,"E31821","E31823","E31823","C11444","C72332","C22331","C32633","C32633","C32633","C32633","C32633","C22144","C14611","C23142","C23132","C23211","C24332","C24332","C14632","C24143","C04843","C04843","E31821","E41133","E25111","E35114","E45413","F43411",NA,NA,NA,NA,NA,NA,"C24142","C04843","C04843","C04843","C04843","C04843","C35522","C04843","C04843","C04843","C04843","C04843","C04843","C04843","C75722","C75722","C15612","C35241","C35234","C35234","C35234","D31143","D11732","D21133",NA,"D14834","D14744","E31821","E23413","E13833","E35114","F35521","F45331","H74232","J54113",NA,NA,NA,"C35241","F44341",NA,NA,NA,NA,NA,"D21132","D13833","E31823","F55342","E41133","J54113",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"E31823","E31823","E31823","E31823","E31823","E31824","E31823","E41133","E22322","E22411","E22511","E12831","E23412","E23213","E13724","E23213","E23413","E23433","E23344","E14811","F35521",NA,"A33112",NA,NA,NA,"B41544",NA,NA,NA,NA,NA,"B74212",NA,NA,NA,NA,NA,NA,NA,NA,"<55643","<55544","<55623",NA,NA,">62723",">62723",">62723",">75821","?71414",NA,"@71523",NA,NA,NA,NA,NA,NA,"@45434",NA,"E31821","E31823","E31823","E31823","E31823","E31823","E31823","E31823","E31824","E31823","E41133","E22322","E22411","E22511","E12831","E23412","E23213","E13724","E23213","E23413","E23433","E23344","E14811","F35521",NA,"A33112",NA,NA,NA,"B41544",NA,NA,NA,NA,NA,"B74212",NA,NA,"B74211","C11533","C04843","C04843","C35243","C04843","C04843","C35243",NA,"B74211","C11533","C04843","C04843","C35243","C04843","C04843","C35243","17:3","3","None","3","d73298b9-b32c-11e6-a3ef-0a1c6976a2db"
"2","None","HumanObservation","None","Ailanthus altissima","None","None","4","nan","Belgium","BE","Subselection of priority classified invasive species within the compiled datasets","17","Fusion BDs invasives","2015-08-08","08","50.8102","3.3562","None","Invasive","2015-08-08","None","None","Simaroubaceae","2015-08-08","demma_invasives2.sqlite","EXACT","Ailanthus","WGS84","None","5","vanhee, dave","1","DEMNA-SPW","None","None","None","None","08","None","Presence","Sapindales","None","None","demma","4","vanhee, dave","None","Ailanthus altissima (Miller) Swingle","None","altissima ","None","species","deg 50.8102 3.3562","WGS84","None","20150808","50.8102","3.3562","Ailanthus altissima","2015","4","None",NA,NA,"E23433","E24213",NA,"?71423",NA,NA,"C72332","C14541",NA,"C44624","C14814","C14832","C24144","C04843","C04843","C04843","C04843","C04843","C35234","C35234","E11641","F32812",NA,"H74232",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"C22243","C24143","C04843","C25121","C04843","C04843","C15814","C35243","C35234","D21131","D21133","D31143","D11743","E31821","E22511","F45223","F45241","H74232",NA,NA,NA,NA,"F45241","F45232",NA,NA,NA,"?71522","B74223",NA,NA,NA,NA,NA,NA,"C11444","C72332","C22331","C32633","C32633","C32633","C32633","C32633","C22144","C14611","C23142","C23132","C23211","C24332","C24332","C14632","C24143","C04843","C04843","E31821","E41133","E25111","E35114","E45413","F43411",NA,NA,NA,NA,NA,NA,"C24142","C04843","C04843","C04843","C04843","C04843","C35522","C04843","C04843","C04843","C04843","C04843","C04843","C04843","C75722","C75722","C15612","C35241","C35234","C35234","C35234","D31143","D11732","D21133",NA,"D14834","D14744","E31821","E23413","E13833","E35114","F35521","F45331","H74232","J54113",NA,NA,NA,"C35241","F44341",NA,NA,NA,NA,NA,"D21132","D13833","E31823","F55342","E41133","J54113",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"<55643","<55544","<55623",NA,NA,">62723",NA,NA,"E23433","E24213",NA,"?71423",NA,NA,"C72332","C14541",NA,"C44624","C14814","C14832","C24144","C04843","C04843","C04843","C04843","C04843","C35234","C35234","E11641","F32812",NA,"H74232",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"C22243","C24143","C04843","C25121","C04843","C04843","C15814","C35243","C35234","D21131","D21133","D31143","D11743","E31821","E22511","F45223","F45241","H74232",NA,NA,NA,NA,"F45241","F45232",NA,NA,NA,"?71522","B74223",NA,NA,NA,NA,NA,NA,">62723",">62723",">75821","?71414",NA,"@71523",NA,NA,NA,NA,NA,NA,"@45434",NA,"E31821","E31823","E31823","C11444","C72332","C22331","C32633","C32633","C32633","C32633","C32633","C22144","C14611","C23142","C23132","C23211","C24332","C24332","C14632","C24143","C04843","C04843","E31821","E41133","E25111","E35114","E45413","F43411",NA,NA,NA,NA,NA,NA,"C24142","C04843","C04843","C04843","C04843","C04843","C35522","C04843","C04843","C04843","C04843","C04843","C04843","C04843","C75722","C75722","C15612","C35241","C35234","C35234","C35234","D31143","D11732","D21133",NA,"D14834","D14744","E31821","E23413","E13833","E35114","F35521","F45331","H74232","J54113",NA,NA,NA,"C35241","F44341",NA,NA,NA,NA,NA,"D21132","D13833","E31823","F55342","E41133","J54113",NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,"E31823","E31823","E31823","E31823","E31823","E31824","E31823","E41133","E22322","E22411","E22511","E12831","E23412","E23213","E13724","E23213","E23413","E23433","E23344","E14811","F35521",NA,"A33112",NA,NA,NA,"B41544",NA,NA,NA,NA,NA,"B74212",NA,NA,NA,NA,NA,NA,NA,NA,"<55643","<55544","<55623",NA,NA,">62723",">62723",">62723",">75821","?71414",NA,"@71523",NA,NA,NA,NA,NA,NA,"@45434",NA,"E31821","E31823","E31823","E31823","E31823","E31823","E31823","E31823","E31824","E31823","E41133","E22322","E22411","E22511","E12831","E23412","E23213","E13724","E23213","E23413","E23433","E23344","E14811","F35521",NA,"A33112",NA,NA,NA,"B41544",NA,NA,NA,NA,NA,"B74212",NA,NA,"B74211","C11533","C04843","C04843","C35243","C04843","C04843","C35243",NA,"B74211","C11533","C04843","C04843","C35243","C04843","C04843","C35243","17:4","4","None","4","d73298ba-b32c-11e6-a3ef-0a1c6976a2db"
```
|
{
"+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/14746/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14746/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14747
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14747/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14747/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14747/events
|
https://github.com/pandas-dev/pandas/pull/14747
| 191,758,195 |
MDExOlB1bGxSZXF1ZXN0OTUzNDMwMTU=
| 14,747 |
BUG: Corrects stopping logic when nrows argument is supplied (#7626)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10188148?v=4",
"events_url": "https://api.github.com/users/jeffcarey/events{/privacy}",
"followers_url": "https://api.github.com/users/jeffcarey/followers",
"following_url": "https://api.github.com/users/jeffcarey/following{/other_user}",
"gists_url": "https://api.github.com/users/jeffcarey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeffcarey",
"id": 10188148,
"login": "jeffcarey",
"node_id": "MDQ6VXNlcjEwMTg4MTQ4",
"organizations_url": "https://api.github.com/users/jeffcarey/orgs",
"received_events_url": "https://api.github.com/users/jeffcarey/received_events",
"repos_url": "https://api.github.com/users/jeffcarey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeffcarey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeffcarey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeffcarey"
}
|
[
{
"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": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 14 | 2016-11-25T19:44:27Z | 2016-12-06T01:48:21Z | 2016-12-06T01:48:05Z |
CONTRIBUTOR
| null |
- closes #7626 - Subsets of tabular files with different "shapes" will now load when a valid skiprows/nrows is given as an argument
- [x] tests added / passed - Test case added to io/tests/parser/common.py. nosetests suite passed successfully.
- [x] passes ``git diff upstream/master | flake8 --diff``
Conditions for error:
1) There are different "shapes" within a tabular data file, i.e. different numbers of columns.
2) A "narrower" set of columns is followed by a "wider" (more columns) one, and the narrower set is laid out such that the end of a 262144-byte block occurs within it.
Issue summary:
The C engine for parsing files reads in 262144 bytes at a time. Previously, the "start_lines" variable in tokenizer.c/tokenize_bytes() was set incorrectly to the first line in that chunk, rather than the overall first row requested. This lead to incorrect logic on when to stop reading when nrows is supplied by the user. This always happened but only caused a crash when a wider set of columns followed in the file. In other cases, extra rows were read in but then harmlessly discarded.
This pull request always uses the first requested row for comparisons, so only nrows will be parsed when supplied.
|
{
"+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/14747/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14747/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14747.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14747",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14747.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14747"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14748
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14748/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14748/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14748/events
|
https://github.com/pandas-dev/pandas/issues/14748
| 191,770,318 |
MDU6SXNzdWUxOTE3NzAzMTg=
| 14,748 |
RLS: v0.19.2
|
{
"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": "006b75",
"default": false,
"description": null,
"id": 131473665,
"name": "Release",
"node_id": "MDU6TGFiZWwxMzE0NzM2NjU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Release"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 24 | 2016-11-25T22:19:43Z | 2017-01-03T14:32:01Z | 2016-12-24T22:50:34Z |
MEMBER
| null |
Issue to follow-up 0.19.2 release.
0.19.2 milestoned issues/PRs: https://github.com/pandas-dev/pandas/milestone/45
0.19.1 was released Nov 3. In the meantime already quite some work for 0.19.2 is done (mainly thanks to Jeff!). Main things for 0.19.2 (besides general bug fixes):
- Python 3.6 compatibility (https://github.com/pandas-dev/pandas/issues/14679).
- This is already done I think thanks to Jeff
- fix segfault with latest dateutil (done in #14631)
- possible regressions (I don't think we have any urgent reported at the moment, only https://github.com/pandas-dev/pandas/issues/14687)
The Python 3.6 release schedule is a rc1 at 2016-12-05, and final release at 2016-12-16.
Regarding timeline for pandas 0.19.2, the question is maybe whether we have to wait until after the final Python 3.6 release, or if we can do it earlier (eg after rc1, with the risk there are still some changes)
@pandas-dev/pandas-core
|
{
"+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/14748/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14748/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14749
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14749/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14749/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14749/events
|
https://github.com/pandas-dev/pandas/pull/14749
| 191,778,851 |
MDExOlB1bGxSZXF1ZXN0OTUzNTY0NjE=
| 14,749 |
BUG: Improve error message for skipfooter malformed rows in Python engine
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"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": "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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 3 | 2016-11-26T00:53:25Z | 2016-11-29T21:18:35Z | 2016-11-29T21:18:28Z |
MEMBER
| null |
Python's native CSV library does not respect the `skipfooter` parameter, so if one of those skipped
rows is malformed, it will still raise an error. Append some useful information to the error message regarding that if that situation is potentially applicable.
Closes #13879.
|
{
"+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/14749/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14749/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14749.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14749",
"merged_at": "2016-11-29T21:18:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14749.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14749"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14750
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14750/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14750/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14750/events
|
https://github.com/pandas-dev/pandas/issues/14750
| 191,788,979 |
MDU6SXNzdWUxOTE3ODg5Nzk=
| 14,750 |
Boolean slicing on MultiIndex only works if bool index is same length as MultiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/287200?v=4",
"events_url": "https://api.github.com/users/eamartin/events{/privacy}",
"followers_url": "https://api.github.com/users/eamartin/followers",
"following_url": "https://api.github.com/users/eamartin/following{/other_user}",
"gists_url": "https://api.github.com/users/eamartin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/eamartin",
"id": 287200,
"login": "eamartin",
"node_id": "MDQ6VXNlcjI4NzIwMA==",
"organizations_url": "https://api.github.com/users/eamartin/orgs",
"received_events_url": "https://api.github.com/users/eamartin/received_events",
"repos_url": "https://api.github.com/users/eamartin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/eamartin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eamartin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/eamartin"
}
|
[
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
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"
}
| 14 | 2016-11-26T05:56:53Z | 2016-11-30T00:02:16Z | 2016-11-30T00:02:04Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
from __future__ import print_function
import numpy as np
import pandas as pd
idx = pd.MultiIndex.from_product([['foo', 'bar'], ['a', 'b']],
names=['first', 'second'])
df = pd.DataFrame(np.random.randn(4, 2), index=idx).sort_index()
bool_idx = pd.Series([True, False], index=['foo', 'bar'])
print ('dataframe')
print(df)
print('\nbool idx')
print(bool_idx)
try:
df.loc[(bool_idx, slice(None)), :]
except ValueError as e:
import traceback
print('\nbool index in MultiIndex failed')
traceback.print_exc()
no_multi_idx = df.reset_index(level=1)
print('\nno multi index')
print(no_multi_idx)
print('successful indexing')
print(no_multi_idx.loc[bool_idx])
```
#### Problem description
A level of a MultiIndex cannot be sliced by a boolean array shorter than the level. A single level of a MultiIndex can contain repeated values (as one level isn't the entire index), so slicing by a smaller array can be necessary.
A single Index with repeated values can currently be sliced by a boolean array without repeated Index values. It would be a smoother user experience if the same feature existed for MultiIndex, especially since this is less of a corner case in with MultiIndex (because it doesn't require repeating index values). I would guess that the same or very similar code to the single Index case could be used to handle the MultiIndex case.
#### Expected Output
```
0 1
first second
foo a -0.569935 -1.146863
b -2.087799 -0.506962
```
This can currently be computed by calling ``reset_index``, slicing, and then calling ``set_index`` with append=True.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Linux
OS-release: 3.19.0-15-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.1
nose: 1.3.4
pip: 9.0.1
setuptools: 18.0.1
Cython: 0.21.1
numpy: 1.11.2
scipy: 0.14.1
statsmodels: None
xarray: None
IPython: 3.2.0
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.3.2
html5lib: 0.999
httplib2: 0.9.2
apiclient: None
sqlalchemy: 1.0.8
pymysql: None
psycopg2: 2.6.2 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: 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/14750/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14750/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14751
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14751/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14751/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14751/events
|
https://github.com/pandas-dev/pandas/pull/14751
| 191,789,147 |
MDExOlB1bGxSZXF1ZXN0OTUzNjI0MzY=
| 14,751 |
BUG: Patch read_csv NA values behaviour
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"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": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 5 | 2016-11-26T06:03:07Z | 2016-12-16T23:32:49Z | 2016-12-16T23:32:49Z |
MEMBER
| null |
Patches the following behaviour when `na_values` is passed in as a dictionary:
1. Prevent aliasing in case `na_values` was defined in a broader scope.
2. Respect column indices as keys when doing NA conversions.
Closes #14203.
|
{
"+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/14751/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14751/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14751.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14751",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14751.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14751"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14752
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14752/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14752/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14752/events
|
https://github.com/pandas-dev/pandas/pull/14752
| 191,801,788 |
MDExOlB1bGxSZXF1ZXN0OTUzNjkyNjM=
| 14,752 |
TST: add test to confirm GH14606 (specify category dtype for empty)
|
{
"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": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 0 | 2016-11-26T11:41:54Z | 2016-12-10T11:02:54Z | 2016-12-10T11:02:54Z |
MEMBER
| null |
Closes #14606
Issue #14606 was fixed by PR #14717, adding one more specific test to confirm this
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14752/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14752/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14752.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14752",
"merged_at": "2016-12-10T11:02:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14752.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14752"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14753
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14753/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14753/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14753/events
|
https://github.com/pandas-dev/pandas/pull/14753
| 191,824,662 |
MDExOlB1bGxSZXF1ZXN0OTUzODE4ODY=
| 14,753 |
ENH: Add the ability to have a separate title for each subplot when plotting
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9854460?v=4",
"events_url": "https://api.github.com/users/icanhazcodeplz-zz/events{/privacy}",
"followers_url": "https://api.github.com/users/icanhazcodeplz-zz/followers",
"following_url": "https://api.github.com/users/icanhazcodeplz-zz/following{/other_user}",
"gists_url": "https://api.github.com/users/icanhazcodeplz-zz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/icanhazcodeplz-zz",
"id": 9854460,
"login": "icanhazcodeplz-zz",
"node_id": "MDQ6VXNlcjk4NTQ0NjA=",
"organizations_url": "https://api.github.com/users/icanhazcodeplz-zz/orgs",
"received_events_url": "https://api.github.com/users/icanhazcodeplz-zz/received_events",
"repos_url": "https://api.github.com/users/icanhazcodeplz-zz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/icanhazcodeplz-zz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/icanhazcodeplz-zz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/icanhazcodeplz-zz"
}
|
[
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 11 | 2016-11-26T20:18:16Z | 2016-12-09T08:32:47Z | 2016-12-09T08:32:33Z |
NONE
| null |
- [] tests added / passed
- [] passes ``git diff upstream/master | 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/14753/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14753/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14753.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14753",
"merged_at": "2016-12-09T08:32:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14753.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14753"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14754
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14754/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14754/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14754/events
|
https://github.com/pandas-dev/pandas/pull/14754
| 191,835,167 |
MDExOlB1bGxSZXF1ZXN0OTUzODgwNzI=
| 14,754 |
TST: Same return values in drop_duplicates for Series and DataFrames(#…
|
{
"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": "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": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2016-11-27T00:49:49Z | 2016-12-15T09:02:59Z | 2016-12-15T09:02:51Z |
MEMBER
| null |
- [x] closes #14192
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
…14192)
|
{
"+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/14754/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14754/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14754.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14754",
"merged_at": "2016-12-15T09:02:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14754.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14754"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14755
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14755/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14755/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14755/events
|
https://github.com/pandas-dev/pandas/pull/14755
| 191,836,824 |
MDExOlB1bGxSZXF1ZXN0OTUzODkwMzE=
| 14,755 |
TST: Correct results with np.size and crosstab (#4003)
|
{
"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": "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": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 4 | 2016-11-27T01:45:54Z | 2016-12-11T13:57:19Z | 2016-12-10T21:35:41Z |
MEMBER
| null |
- [x] closes #4003
- [x] tests added / passed
- [x] passes ``git diff upstream/master | 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/14755/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14755/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14755.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14755",
"merged_at": "2016-12-10T21:35:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14755.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14755"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14756
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14756/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14756/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14756/events
|
https://github.com/pandas-dev/pandas/pull/14756
| 191,908,390 |
MDExOlB1bGxSZXF1ZXN0OTU0MzA2ODI=
| 14,756 |
BF: (re)raise the exception always unless returning
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4",
"events_url": "https://api.github.com/users/yarikoptic/events{/privacy}",
"followers_url": "https://api.github.com/users/yarikoptic/followers",
"following_url": "https://api.github.com/users/yarikoptic/following{/other_user}",
"gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yarikoptic",
"id": 39889,
"login": "yarikoptic",
"node_id": "MDQ6VXNlcjM5ODg5",
"organizations_url": "https://api.github.com/users/yarikoptic/orgs",
"received_events_url": "https://api.github.com/users/yarikoptic/received_events",
"repos_url": "https://api.github.com/users/yarikoptic/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yarikoptic"
}
|
[
{
"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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 1 | 2016-11-28T02:48:34Z | 2016-11-28T17:30:19Z | 2016-11-28T17:30:16Z |
CONTRIBUTOR
| null |
coding logic flaw is obvious (leaves unser used later undefined), so no dedicated test was found
otherwise leads atm to masking of this error while testing on i386 and then failling with
UnboundLocalError: local variable unser referenced before assignment
More detail: https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=i386&ver=0.19.1-1&stamp=1479504883
|
{
"+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/14756/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14756/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14756.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14756",
"merged_at": "2016-11-28T17:30:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14756.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14756"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14757
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14757/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14757/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14757/events
|
https://github.com/pandas-dev/pandas/pull/14757
| 192,044,385 |
MDExOlB1bGxSZXF1ZXN0OTU1MjYwMzc=
| 14,757 |
ENH: Added more options for formats.style.bar
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5479063?v=4",
"events_url": "https://api.github.com/users/jmarrec/events{/privacy}",
"followers_url": "https://api.github.com/users/jmarrec/followers",
"following_url": "https://api.github.com/users/jmarrec/following{/other_user}",
"gists_url": "https://api.github.com/users/jmarrec/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jmarrec",
"id": 5479063,
"login": "jmarrec",
"node_id": "MDQ6VXNlcjU0NzkwNjM=",
"organizations_url": "https://api.github.com/users/jmarrec/orgs",
"received_events_url": "https://api.github.com/users/jmarrec/received_events",
"repos_url": "https://api.github.com/users/jmarrec/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jmarrec/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jmarrec/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jmarrec"
}
|
[
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
}
] |
closed
| false | null |
[] | null | 35 | 2016-11-28T16:02:35Z | 2017-07-04T10:20:42Z | 2017-05-02T01:46:44Z |
CONTRIBUTOR
| null |
- [x] 4 tests added and passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] Update documentation
You can now have the df.style.bar be centered on zero or midpoint value (in
addition to the already existing way of having the min value at the left side of the cell)
----
## Documentation:
I have produced the following example that I think does a pretty good job of explaining the new capabilities
```
import pandas as pd
from IPython.display import HTML
# Case 1: s.min() < 0:
test1 = pd.Series([-100,-60,-30,-20], name='All Negative')
# Case 2: s.max() < 0:
test2 = pd.Series([10,20,50,100], name='All Positive')
# Case 3:
test3 = pd.Series([-10,-5,0,90], name='Both Pos and Neg')
head = """
<table>
<thead>
<th>Align</th>
<th>All Negative</th>
<th>All Positive</th>
<th>Both Neg and Pos</th>
</thead>
</tbody>
"""
aligns = ['left','zero','mid']
for align in aligns:
row = "<tr><th>{}</th>".format(align)
for serie in [test1,test2,test3]:
s = serie.copy()
s.name=''
row += "<td>{}</td>".format(s.to_frame().style.bar(align=align,
color=['#d65f5f', '#5fba7d'],
width=100).render()) #testn['width']
row += '</tr>'
head += row
head+= """
</tbody>
</table>"""
HTML(head)
```

What do you think?
|
{
"+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/14757/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14757/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14757.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14757",
"merged_at": "2017-05-02T01:46:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14757.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14757"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14758
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14758/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14758/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14758/events
|
https://github.com/pandas-dev/pandas/issues/14758
| 192,085,667 |
MDU6SXNzdWUxOTIwODU2Njc=
| 14,758 |
BUG: invalid coercion raises in groupby uniques
|
{
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"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": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
}
| 6 | 2016-11-28T18:46:12Z | 2017-06-12T10:46:53Z | 2017-06-12T10:46:53Z |
CONTRIBUTOR
| null |
```
df = pd.DataFrame([[1, 2], [3, 4], [5, 6]], dtype=object) + 9223372036854775807
df.groupby(0).sum()
...
C:\Anaconda\envs\bmc3\lib\site-packages\pandas\core\groupby.py in labels(self)
2252 def labels(self):
2253 if self._labels is None:
-> 2254 self._make_labels()
2255 return self._labels
2256
C:\Anaconda\envs\bmc3\lib\site-packages\pandas\core\groupby.py in _make_labels(self)
2264 if self._labels is None or self._group_index is None:
2265 labels, uniques = algos.factorize(self.grouper, sort=self.sort)
-> 2266 uniques = Index(uniques, name=self.name)
2267 self._labels = labels
2268 self._group_index = uniques
C:\Anaconda\envs\bmc3\lib\site-packages\pandas\indexes\base.py in __new__(cls, data, dtype, copy, name, fastpath, tupleize_cols, **kwargs)
234 if inferred == 'integer':
235 from .numeric import Int64Index
--> 236 return Int64Index(subarr.astype('i8'), copy=copy,
237 name=name)
238 elif inferred in ['floating', 'mixed-integer-float']:
OverflowError: int too big to convert
```
We are inferring int when the this should be 'object' (or just not integer):
```
In [36]: pd.lib.infer_dtype(np.array([9223372036854775808, 9223372036854775810, 9223372036854775812], dtype=object))
Out[36]: 'integer'
```
|
{
"+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/14758/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14758/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14759
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14759/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14759/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14759/events
|
https://github.com/pandas-dev/pandas/issues/14759
| 192,151,048 |
MDU6SXNzdWUxOTIxNTEwNDg=
| 14,759 |
DOC: document groupby.resample/rolling
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-11-28T23:57:54Z | 2016-12-10T11:12:01Z | 2016-12-10T11:12:01Z |
CONTRIBUTOR
| null |
examples are in the whatsnew: http://pandas.pydata.org/pandas-docs/stable/whatsnew.html#groupby-syntax-with-window-and-resample-operations
but I think a section in groupby.rst with some xrefs in timeseries.rst (resample) and computation.rst (rolling) would be helpful. I wrote this and can barely find it!
plus the API reference is missing these functions
|
{
"+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/14759/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14759/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14760
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14760/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14760/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14760/events
|
https://github.com/pandas-dev/pandas/issues/14760
| 192,174,208 |
MDU6SXNzdWUxOTIxNzQyMDg=
| 14,760 |
No TimeGrouper docs, Day-of-Week resampling?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/167164?v=4",
"events_url": "https://api.github.com/users/naught101/events{/privacy}",
"followers_url": "https://api.github.com/users/naught101/followers",
"following_url": "https://api.github.com/users/naught101/following{/other_user}",
"gists_url": "https://api.github.com/users/naught101/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/naught101",
"id": 167164,
"login": "naught101",
"node_id": "MDQ6VXNlcjE2NzE2NA==",
"organizations_url": "https://api.github.com/users/naught101/orgs",
"received_events_url": "https://api.github.com/users/naught101/received_events",
"repos_url": "https://api.github.com/users/naught101/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/naught101/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/naught101/subscriptions",
"type": "User",
"url": "https://api.github.com/users/naught101"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false | null |
[] | null | 4 | 2016-11-29T02:48:26Z | 2016-11-30T16:01:35Z | 2016-11-29T23:25:21Z |
NONE
| null |
TimeGrouper isn't really mentioned in the docs at all. In particular, it'd be nice to know what the grouping options are. I assume they're the same as resample's options? I also can't find a simple list of those.
In particular, weekly grouping is doable via `'W'`, but I can't find that listed in the docs anywhere.
It would also be really nice to have a `'DoW'` (Day of Week) grouping option - this can be really useful for any data with a human signal in it.
|
{
"+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/14760/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14760/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14761
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14761/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14761/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14761/events
|
https://github.com/pandas-dev/pandas/issues/14761
| 192,252,395 |
MDU6SXNzdWUxOTIyNTIzOTU=
| 14,761 |
DOC: update docs for .astype with dict
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-11-29T11:08:02Z | 2016-12-22T13:37:19Z | 2016-12-22T13:37:19Z |
CONTRIBUTOR
| null |
in #13375 added dict argument to .astype
need to add a doc examp:
http://pandas.pydata.org/pandas-docs/stable/basics.html#
add versionadded tag to .astype docstring (0.19.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/14761/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14761/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14762
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14762/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14762/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14762/events
|
https://github.com/pandas-dev/pandas/pull/14762
| 192,309,650 |
MDExOlB1bGxSZXF1ZXN0OTU3MTIwNDk=
| 14,762 |
ENH: Introduce UnsortedIndexError GH11897
|
{
"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": "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": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 21 | 2016-11-29T15:18:34Z | 2016-12-09T16:36:30Z | 2016-12-09T16:36:30Z |
CONTRIBUTOR
| null |
closes #11897
closes #14491
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | 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/14762/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14762/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14762.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14762",
"merged_at": "2016-12-09T16:36:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14762.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14762"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14763
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14763/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14763/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14763/events
|
https://github.com/pandas-dev/pandas/issues/14763
| 192,315,472 |
MDU6SXNzdWUxOTIzMTU0NzI=
| 14,763 |
Period Index plotting method, non standard intervals
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5183040?v=4",
"events_url": "https://api.github.com/users/quebbs/events{/privacy}",
"followers_url": "https://api.github.com/users/quebbs/followers",
"following_url": "https://api.github.com/users/quebbs/following{/other_user}",
"gists_url": "https://api.github.com/users/quebbs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/quebbs",
"id": 5183040,
"login": "quebbs",
"node_id": "MDQ6VXNlcjUxODMwNDA=",
"organizations_url": "https://api.github.com/users/quebbs/orgs",
"received_events_url": "https://api.github.com/users/quebbs/received_events",
"repos_url": "https://api.github.com/users/quebbs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/quebbs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/quebbs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/quebbs"
}
|
[
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
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 | 2016-11-29T15:38:27Z | 2019-05-29T00:27:04Z | 2019-05-28T20:55:59Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import numpy as np, pandas as pd
idx = pd.period_range('2000-01-01', '2000-01-05', freq='6H')
s = pd.Series(np.random.randn(len(idx)), index=idx)
s.plot()
```
#### Problem description
Plotting a period index with 'D' or 'H' works fine, but changing the interval to 6-hr throws an error: `IncompatibleFrequency: Input has different freq=6H from PeriodIndex(freq=H)`
#### Expected Output
Should make a nice plot. Using the same example above with alternative frequencies of 'D' or 'H' plots as expected, but 3H, 6H, and even 24H throw an error.
#### Output
<details>
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tseries\period.py in _from_arraylike(cls, data, freq, tz)
263 try:
--> 264 data = com._ensure_int64(data)
265 except (TypeError, ValueError):
pandas\src\generated.pyx in pandas.algos.ensure_int64 (pandas\algos.c:64659)()
pandas\src\generated.pyx in pandas.algos.ensure_int64 (pandas\algos.c:64550)()
TypeError: int() argument must be a string, a bytes-like object or a number, not 'pandas._period.Period'
During handling of the above exception, another exception occurred:
IncompatibleFrequency Traceback (most recent call last)
<ipython-input-103-18275fd04456> in <module>()
2 idx = ps.period_range('2000-01-01', '2000-01-05', freq='6H')
3 s = ps.Series(np.random.randn(len(idx)), index=idx)
----> 4 s.plot()
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tools\plotting.py in __call__(self, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds)
3564 colormap=colormap, table=table, yerr=yerr,
3565 xerr=xerr, label=label, secondary_y=secondary_y,
-> 3566 **kwds)
3567 __call__.__doc__ = plot_series.__doc__
3568
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tools\plotting.py in plot_series(data, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds)
2643 yerr=yerr, xerr=xerr,
2644 label=label, secondary_y=secondary_y,
-> 2645 **kwds)
2646
2647
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tools\plotting.py in _plot(data, x, y, subplots, ax, kind, **kwds)
2439 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds)
2440
-> 2441 plot_obj.generate()
2442 plot_obj.draw()
2443 return plot_obj.result
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tools\plotting.py in generate(self)
1026 self._compute_plot_data()
1027 self._setup_subplots()
-> 1028 self._make_plot()
1029 self._add_table()
1030 self._make_legend()
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tools\plotting.py in _make_plot(self)
1705 stacking_id=stacking_id,
1706 is_errorbar=is_errorbar,
-> 1707 **kwds)
1708 self._add_legend_handle(newlines[0], label, index=i)
1709
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tools\plotting.py in _ts_plot(cls, ax, x, data, style, **kwds)
1743 ax._plot_data.append((data, cls._kind, kwds))
1744
-> 1745 lines = cls._plot(ax, data.index, data.values, style=style, **kwds)
1746 # set date formatter, locators and rescale limits
1747 format_dateaxis(ax, ax.freq)
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tools\plotting.py in _plot(cls, ax, x, y, style, column_num, stacking_id, **kwds)
1720 cls._initialize_stacker(ax, stacking_id, len(y))
1721 y_values = cls._get_stacked_values(ax, stacking_id, y, kwds['label'])
-> 1722 lines = MPLPlot._plot(ax, x, y_values, style=style, **kwds)
1723 cls._update_stacker(ax, stacking_id, y)
1724 return lines
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tools\plotting.py in _plot(cls, ax, x, y, style, is_errorbar, **kwds)
1340 else:
1341 args = (x, y)
-> 1342 return ax.plot(*args, **kwds)
1343
1344 def _get_index_name(self):
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\matplotlib\__init__.py in inner(ax, *args, **kwargs)
1816 warnings.warn(msg % (label_namer, func.__name__),
1817 RuntimeWarning, stacklevel=2)
-> 1818 return func(ax, *args, **kwargs)
1819 pre_doc = inner.__doc__
1820 if pre_doc is None:
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\matplotlib\axes\_axes.py in plot(self, *args, **kwargs)
1381
1382 for line in self._get_lines(*args, **kwargs):
-> 1383 self.add_line(line)
1384 lines.append(line)
1385
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\matplotlib\axes\_base.py in add_line(self, line)
1701 line.set_clip_path(self.patch)
1702
-> 1703 self._update_line_limits(line)
1704 if not line.get_label():
1705 line.set_label('_line%d' % len(self.lines))
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\matplotlib\axes\_base.py in _update_line_limits(self, line)
1723 Figures out the data limit of the given line, updating self.dataLim.
1724 """
-> 1725 path = line.get_path()
1726 if path.vertices.size == 0:
1727 return
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\matplotlib\lines.py in get_path(self)
936 """
937 if self._invalidy or self._invalidx:
--> 938 self.recache()
939 return self._path
940
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\matplotlib\lines.py in recache(self, always)
619 def recache(self, always=False):
620 if always or self._invalidx:
--> 621 xconv = self.convert_xunits(self._xorig)
622 if ma.isMaskedArray(self._xorig):
623 x = ma.asarray(xconv, np.float_).filled(np.nan)
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\matplotlib\artist.py in convert_xunits(self, x)
188 if ax is None or ax.xaxis is None:
189 return x
--> 190 return ax.xaxis.convert_units(x)
191
192 def convert_yunits(self, y):
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\matplotlib\axis.py in convert_units(self, x)
1442 return x
1443
-> 1444 ret = self.converter.convert(x, self.units, self)
1445 return ret
1446
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tseries\converter.py in convert(values, units, axis)
120 return values.map(lambda x: get_datevalue(x, axis.freq))
121 if com.is_period_arraylike(values):
--> 122 return PeriodIndex(values, freq=axis.freq).values
123 if isinstance(values, (list, tuple, np.ndarray, Index)):
124 return [get_datevalue(x, axis.freq) for x in values]
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tseries\period.py in __new__(cls, data, ordinal, freq, start, end, periods, copy, name, tz, **kwargs)
188 freq, kwargs)
189 else:
--> 190 ordinal, freq = cls._from_arraylike(data, freq, tz)
191 data = np.array(ordinal, dtype=np.int64, copy=False)
192
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tseries\period.py in _from_arraylike(cls, data, freq, tz)
265 except (TypeError, ValueError):
266 data = com._ensure_object(data)
--> 267 data = _get_ordinals(data, freq)
268
269 return data, freq
C:\Users\jaq\AppData\Local\Continuum\Anaconda\envs\py35\lib\site-packages\pandas\tseries\period.py in _get_ordinals(data, freq)
42 f = lambda x: Period(x, freq=freq).ordinal
43 if isinstance(data[0], Period):
---> 44 return period.extract_ordinals(data, freq)
45 else:
46 return lib.map_infer(data, f)
pandas\src\period.pyx in pandas._period.extract_ordinals (pandas\src\period.c:7030)()
IncompatibleFrequency: Input has different freq=6H from PeriodIndex(freq=H)
</details>
|
{
"+1": 11,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 11,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14763/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14763/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14764
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14764/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14764/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14764/events
|
https://github.com/pandas-dev/pandas/issues/14764
| 192,333,417 |
MDU6SXNzdWUxOTIzMzM0MTc=
| 14,764 |
DOC: pd.DataFrame(dtype) arg cannot be list, dict, Series. And None will infer wider type than necessary.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1179309?v=4",
"events_url": "https://api.github.com/users/smcinerney/events{/privacy}",
"followers_url": "https://api.github.com/users/smcinerney/followers",
"following_url": "https://api.github.com/users/smcinerney/following{/other_user}",
"gists_url": "https://api.github.com/users/smcinerney/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/smcinerney",
"id": 1179309,
"login": "smcinerney",
"node_id": "MDQ6VXNlcjExNzkzMDk=",
"organizations_url": "https://api.github.com/users/smcinerney/orgs",
"received_events_url": "https://api.github.com/users/smcinerney/received_events",
"repos_url": "https://api.github.com/users/smcinerney/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/smcinerney/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/smcinerney/subscriptions",
"type": "User",
"url": "https://api.github.com/users/smcinerney"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"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": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
}
| 8 | 2016-11-29T16:39:10Z | 2017-09-15T18:47:10Z | 2017-05-31T08:54:26Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
# This is a DOCbug simply to document what pd.DataFrame(dtype) currently does.
# It is non-obvious to new users, gives non-obvious error messages, and also behaves differently to read_csv(dtype)
# a) Leaving dtype=None in constructor will infer a wider type than necessary
df_cols = {'year':np.int32, 'month':np.int8}
df = pd.DataFrame(columns=df_cols.keys(), dtype=None, index=range(10), data=-1)
>>> df.dtypes
month int64
year int64
# b) The doc doesn't explicitly say a list/dict/Series/array-like is not allowed (and if you
# pass in one the error is not very friendly). Also behaves differently to read_csv(dtype)
df = pd.DataFrame(columns=df_cols.keys(), dtype=np.int32, index=range(10), data=-1)
# df.dtypes shows they're all np.int32
# Fix up dtypes after declaration
for col,coltype in df_cols.items():
df[col] = df[col].astype(coltype)
```
#### Problem description
The DataFrame() doc doesn't explicitly say a list/dict/Series/array-like is not allowed (and if you pass in one the error is not very friendly). Also behaves differently to read_csv(dtype).
Leaving dtype=None in constructor will infer a wider type than necessary.
So in general you either set dtype=widest_necessary_type, or dtype=None and then manually fix them up after declaration, by casting with `astype()`
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
python: 2.7.10.final.0
python-bits: 64
machine: x86_64
processor: i386
byteorder: little
pandas: 0.19.1
numpy: 1.11.2
scipy: 0.18.1
</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/14764/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14764/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14765
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14765/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14765/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14765/events
|
https://github.com/pandas-dev/pandas/pull/14765
| 192,411,943 |
MDExOlB1bGxSZXF1ZXN0OTU3ODMwMzM=
| 14,765 |
added read_msgpack() to index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2432062?v=4",
"events_url": "https://api.github.com/users/tadiseshan/events{/privacy}",
"followers_url": "https://api.github.com/users/tadiseshan/followers",
"following_url": "https://api.github.com/users/tadiseshan/following{/other_user}",
"gists_url": "https://api.github.com/users/tadiseshan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tadiseshan",
"id": 2432062,
"login": "tadiseshan",
"node_id": "MDQ6VXNlcjI0MzIwNjI=",
"organizations_url": "https://api.github.com/users/tadiseshan/orgs",
"received_events_url": "https://api.github.com/users/tadiseshan/received_events",
"repos_url": "https://api.github.com/users/tadiseshan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tadiseshan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tadiseshan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tadiseshan"
}
|
[
{
"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": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 1 | 2016-11-29T21:50:28Z | 2016-12-05T19:11:28Z | 2016-11-29T23:33:47Z |
CONTRIBUTOR
| null |
- [x] closes #14702
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
First time contributing to pandas, let me know if there's something I should do differently.
|
{
"+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/14765/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14765/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14765.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14765",
"merged_at": "2016-11-29T23:33:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14765.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14765"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14766
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14766/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14766/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14766/events
|
https://github.com/pandas-dev/pandas/pull/14766
| 192,433,306 |
MDExOlB1bGxSZXF1ZXN0OTU3OTg4OTI=
| 14,766 |
BLD: clean .pxi when cleaning
|
{
"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": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 0 | 2016-11-29T23:37:09Z | 2016-11-29T23:37:29Z | 2016-11-29T23:37:29Z |
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14766/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14766/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14766.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14766",
"merged_at": "2016-11-29T23:37:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14766.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14766"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/14767
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14767/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14767/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14767/events
|
https://github.com/pandas-dev/pandas/pull/14767
| 192,436,044 |
MDExOlB1bGxSZXF1ZXN0OTU4MDA4NTQ=
| 14,767 |
ERR: raise on python in object hashing, only supporting strings, nulls
|
{
"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": "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": "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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 5 | 2016-11-29T23:53:45Z | 2016-11-30T11:02:04Z | 2016-11-30T11:02:04Z |
CONTRIBUTOR
| null |
xref #14729
|
{
"+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/14767/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14767/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14767.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14767",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14767.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14767"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14768
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14768/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14768/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14768/events
|
https://github.com/pandas-dev/pandas/pull/14768
| 192,450,714 |
MDExOlB1bGxSZXF1ZXN0OTU4MTA5OTA=
| 14,768 |
DOC/TST: dtype param in read_fwf
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4",
"events_url": "https://api.github.com/users/chris-b1/events{/privacy}",
"followers_url": "https://api.github.com/users/chris-b1/followers",
"following_url": "https://api.github.com/users/chris-b1/following{/other_user}",
"gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chris-b1",
"id": 1924092,
"login": "chris-b1",
"node_id": "MDQ6VXNlcjE5MjQwOTI=",
"organizations_url": "https://api.github.com/users/chris-b1/orgs",
"received_events_url": "https://api.github.com/users/chris-b1/received_events",
"repos_url": "https://api.github.com/users/chris-b1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chris-b1"
}
|
[
{
"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": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2016-11-30T01:29:13Z | 2016-11-30T15:11:14Z | 2016-11-30T15:11:05Z |
CONTRIBUTOR
| null |
- [x] closes #7141
- [ ] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
#14295 actually implemented the behavior, this is just adding docs and tests.
|
{
"+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/14768/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14768/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14768.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14768",
"merged_at": "2016-11-30T15:11:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14768.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14768"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14769
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14769/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14769/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14769/events
|
https://github.com/pandas-dev/pandas/pull/14769
| 192,488,233 |
MDExOlB1bGxSZXF1ZXN0OTU4MzYzMjc=
| 14,769 |
DOC: Remove SparseSeries from SparseArray doc
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"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": "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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-11-30T06:43:32Z | 2016-11-30T15:04:50Z | 2016-11-30T11:03:10Z |
MEMBER
| null |
Title is self-explanatory. Looks like a failed copy-paste.
|
{
"+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/14769/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14769/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14769.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14769",
"merged_at": "2016-11-30T11:03:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14769.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14769"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14770
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14770/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14770/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14770/events
|
https://github.com/pandas-dev/pandas/pull/14770
| 192,488,443 |
MDExOlB1bGxSZXF1ZXN0OTU4MzY0ODM=
| 14,770 |
BUG: Error upon Series.Groupby.nunique with empty Series (#12553)
|
{
"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,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 3 | 2016-11-30T06:45:08Z | 2017-12-20T01:58:14Z | 2016-12-04T17:42:07Z |
MEMBER
| null |
- [x] closes #12553
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Similar to #12560, but it has appeared to stall. Wanted to push it along.
|
{
"+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/14770/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14770/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14770.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14770",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14770.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14770"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14771
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14771/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14771/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14771/events
|
https://github.com/pandas-dev/pandas/pull/14771
| 192,533,188 |
MDExOlB1bGxSZXF1ZXN0OTU4Njc3MDg=
| 14,771 |
API: Return sparse objects always for cumsum
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
}
|
[
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 5 | 2016-11-30T10:47:11Z | 2016-12-15T11:28:37Z | 2016-12-15T11:28:26Z |
MEMBER
| null |
Always return `SparseArray` and `SparseSeries` for `SparseArray.cumsum()` and `SparseSeries.cumsum()` respectively, regardless of `fill_value`.
Close #12855.
|
{
"+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/14771/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14771/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14771.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14771",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14771.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14771"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14772
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14772/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14772/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14772/events
|
https://github.com/pandas-dev/pandas/issues/14772
| 192,541,191 |
MDU6SXNzdWUxOTI1NDExOTE=
| 14,772 |
ENH: Timestamp/DTI. to epoch time
|
{
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
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"
}
| 13 | 2016-11-30T11:26:01Z | 2021-05-02T00:49:53Z | null |
CONTRIBUTOR
| null |
add a ``.to_epoch(unit='s')`` method to ``Timestamp`` and ``DatetimeIndex`` that returns the epoch for that unit. I think would default this to ``s`` as that seems pretty common, but allow any of our units.
```
In [19]: s = Series(pd.date_range('20160101',periods=3))
In [20]: s
Out[20]:
0 2016-01-01
1 2016-01-02
2 2016-01-03
dtype: datetime64[ns]
In [21]: ((s-Timestamp(0)) / Timedelta('1s')).astype('i8')
Out[21]:
0 1451606400
1 1451692800
2 1451779200
dtype: int64
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14772/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14772/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14773
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14773/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14773/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14773/events
|
https://github.com/pandas-dev/pandas/issues/14773
| 192,591,313 |
MDU6SXNzdWUxOTI1OTEzMTM=
| 14,773 |
BUG: diff with multiple columns of type np.int8 fails
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1199593?v=4",
"events_url": "https://api.github.com/users/simonm3/events{/privacy}",
"followers_url": "https://api.github.com/users/simonm3/followers",
"following_url": "https://api.github.com/users/simonm3/following{/other_user}",
"gists_url": "https://api.github.com/users/simonm3/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonm3",
"id": 1199593,
"login": "simonm3",
"node_id": "MDQ6VXNlcjExOTk1OTM=",
"organizations_url": "https://api.github.com/users/simonm3/orgs",
"received_events_url": "https://api.github.com/users/simonm3/received_events",
"repos_url": "https://api.github.com/users/simonm3/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonm3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonm3/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonm3"
}
|
[
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false | null |
[] |
{
"closed_at": "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"
}
| 4 | 2016-11-30T15:14:12Z | 2021-05-19T12:53:58Z | 2021-05-19T12:53:58Z |
NONE
| null |
```
df = pd.DataFrame(np.random.randint(9, size=(4,5)), columns=list("abcde"))
df = df.astype(np.int8)
print(df.astype(int).diff())
print(df.a.diff())
df.diff()
```
diff works fine on a dataframe with int columns; or on a single column of type np.int8. However if there are multiple columns of np.int8 then it fails
```
a b c d e
0 NaN NaN NaN NaN NaN
1 6.0 -5.0 -7.0 -7.0 -1.0
2 -5.0 7.0 -1.0 5.0 -7.0
3 2.0 -6.0 8.0 0.0 3.0
0 NaN
1 6.0
2 -5.0
3 2.0
Name: a, dtype: float64
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-145-2724544318c3> in <module>()
3 print(df.astype(int).diff())
4 print(df.a.diff())
----> 5 df.diff()
C:\Users\s\Anaconda3\lib\site-packages\pandas\core\frame.py in diff(self, periods, axis)
4068 """
4069 bm_axis = self._get_block_manager_axis(axis)
-> 4070 new_data = self._data.diff(n=periods, axis=bm_axis)
4071 return self._constructor(new_data)
4072
C:\Users\s\Anaconda3\lib\site-packages\pandas\core\internals.py in diff(self, **kwargs)
3172
3173 def diff(self, **kwargs):
-> 3174 return self.apply('diff', **kwargs)
3175
3176 def interpolate(self, **kwargs):
C:\Users\s\Anaconda3\lib\site-packages\pandas\core\internals.py in apply(self, f, axes, filter, do_integrity_check, consolidate, **kwargs)
3054
3055 kwargs['mgr'] = self
-> 3056 applied = getattr(b, f)(**kwargs)
3057 result_blocks = _extend_blocks(applied, result_blocks)
3058
C:\Users\s\Anaconda3\lib\site-packages\pandas\core\internals.py in diff(self, n, axis, mgr)
1040 def diff(self, n, axis=1, mgr=None):
1041 """ return block for the diff of the values """
-> 1042 new_values = algos.diff(self.values, n, axis=axis)
1043 return [self.make_block(values=new_values, fastpath=True)]
1044
C:\Users\s\Anaconda3\lib\site-packages\pandas\core\algorithms.py in diff(arr, n, axis)
1196 if arr.ndim == 2 and arr.dtype.name in _diff_special:
1197 f = _diff_special[arr.dtype.name]
-> 1198 f(arr, out_arr, n, axis)
1199 else:
1200 res_indexer = [slice(None)] * arr.ndim
pandas\src\algos_common_helper.pxi in pandas.algos.diff_2d_int8 (pandas\algos.c:62940)()
ValueError: Buffer dtype mismatch, expected 'float32_t' but got 'double'
```
######################################################################
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.1
nose: 1.3.7
pip: 9.0.1
setuptools: 28.7.1
Cython: 0.24
numpy: 1.11.2
scipy: 0.17.1
statsmodels: 0.8.0rc1
xarray: None
IPython: 4.2.0
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.3
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
time: 5.55 s
|
{
"+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/14773/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14773/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14774
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14774/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14774/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14774/events
|
https://github.com/pandas-dev/pandas/issues/14774
| 192,608,455 |
MDU6SXNzdWUxOTI2MDg0NTU=
| 14,774 |
AssertionError in FY5253.rollback()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6090478?v=4",
"events_url": "https://api.github.com/users/ronif/events{/privacy}",
"followers_url": "https://api.github.com/users/ronif/followers",
"following_url": "https://api.github.com/users/ronif/following{/other_user}",
"gists_url": "https://api.github.com/users/ronif/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ronif",
"id": 6090478,
"login": "ronif",
"node_id": "MDQ6VXNlcjYwOTA0Nzg=",
"organizations_url": "https://api.github.com/users/ronif/orgs",
"received_events_url": "https://api.github.com/users/ronif/received_events",
"repos_url": "https://api.github.com/users/ronif/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ronif/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ronif/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ronif"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2018-05-16T03:09:58Z",
"closed_issues": 1645,
"created_at": "2017-10-20T10:17:09Z",
"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": "after 0.22",
"due_on": "2018-05-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/53",
"id": 2853937,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53/labels",
"node_id": "MDk6TWlsZXN0b25lMjg1MzkzNw==",
"number": 53,
"open_issues": 0,
"state": "closed",
"title": "0.23.0",
"updated_at": "2018-08-20T06:48:57Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53"
}
| 1 | 2016-11-30T16:14:53Z | 2017-12-06T11:15:31Z | 2017-12-06T11:15:31Z |
NONE
| null |
Hi,
I'm trying to do North American (Year,WeekOfYear) <-> Period (W-SAT) conversions, for calculations involving fiscal year week numbers, etc. From what I understand pandas.offsets.FY5253 can be used for this, but I'm getting a weird assertion error than should probably not happen.
#### Code
```python
import pandas as pd
fy = pd.offsets.FY5253(n=1, weekday=5, startingMonth=12, variation='nearest')
fy.rollback(pd.Timestamp('2004-01-01'))
```
#### Expected Output
I think the output should be equal to the one you get with
```python
fy.rollback(pd.Timestamp('2003-12-31'))
```
which is
```python
Timestamp('2002-12-28 00:00:00')
```
#### Output of ``pd.show_versions()``
<details>
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.2.0-35-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.1
nose: 1.3.7
pip: 8.1.2
setuptools: 28.7.1
Cython: 0.23.4
numpy: 1.11.2
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.6.0
pytz: 2016.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.4.2
sqlalchemy: 1.0.12
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext)
jinja2: 2.7.3
boto: 2.38.0
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/14774/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14774/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14775
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14775/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14775/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14775/events
|
https://github.com/pandas-dev/pandas/issues/14775
| 192,609,957 |
MDU6SXNzdWUxOTI2MDk5NTc=
| 14,775 |
Severe performance problems with multi-index joins
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24275372?v=4",
"events_url": "https://api.github.com/users/SReicheltPTV/events{/privacy}",
"followers_url": "https://api.github.com/users/SReicheltPTV/followers",
"following_url": "https://api.github.com/users/SReicheltPTV/following{/other_user}",
"gists_url": "https://api.github.com/users/SReicheltPTV/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SReicheltPTV",
"id": 24275372,
"login": "SReicheltPTV",
"node_id": "MDQ6VXNlcjI0Mjc1Mzcy",
"organizations_url": "https://api.github.com/users/SReicheltPTV/orgs",
"received_events_url": "https://api.github.com/users/SReicheltPTV/received_events",
"repos_url": "https://api.github.com/users/SReicheltPTV/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SReicheltPTV/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SReicheltPTV/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SReicheltPTV"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "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": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
open
| false | null |
[] | null | 4 | 2016-11-30T16:20:07Z | 2021-05-02T00:52:41Z | null |
NONE
| null |
#### Code Sample (microbenchmark)
```python
from __future__ import division
import pandas as pd
import numpy as np
import functools
import operator as op
import time
def join_raw(df1, df2, *args, **kwargs):
start_time = time.time()
result = df1.join(df2, *args, **kwargs)
end_time = time.time()
return result, end_time - start_time
def join_with_workaround(df1, df2, *args, **kwargs):
index1 = list(df1.index.names)
index2 = list(df2.index.names)
index1common = [level for level in index1 if level in index2]
index2common = [level for level in index2 if level in index1]
index1remove = [level for level in index1 if level not in index2]
index2remove = [level for level in index2 if level not in index1]
if index1remove:
df1 = df1.reset_index(index1remove)
if index2remove:
df2 = df2.reset_index(index2remove)
# The indices should be the same now, except that levels might be in a
# different order, which causes "join" to fail as well.
if df1.index.names != df2.index.names:
df2 = df2.reorder_levels(df1.index.names)
start_time = time.time()
result = df1.join(df2, *args, **kwargs)
end_time = time.time()
# Add all removed levels to the index of the result.
if index1remove:
result.set_index(index1remove, append=True, inplace=True)
# Make sure the levels are ordered the same way as in df1.
# Additional levels only appearing in df2 will be added at the
# end, though.
if result.index.names != index1:
result = result.reorder_levels(index1)
if index2remove:
result.set_index(index2remove, append=True, inplace=True)
return result, end_time - start_time
def join_with_reset_index(df1, df2, *args, **kwargs):
index1 = list(df1.index.names)
index2 = list(df2.index.names)
index2common = [level for level in index2 if level in index1]
index2remove = [level for level in index2 if level not in index1]
df1 = df1.reset_index()
if index2remove:
df2 = df2.reset_index(index2remove)
start_time = time.time()
result = df1.join(df2, on=index2common, *args, **kwargs)
end_time = time.time()
result.set_index(index1 + index2remove, inplace=True)
return result, end_time - start_time
def join_via_concat(df1, df2, how='left', lsuffix='', rsuffix=''):
index1 = list(df1.index.names)
index2 = list(df2.index.names)
index1remove = [level for level in index1 if level not in index2]
index2remove = [level for level in index2 if level not in index1]
# Remove levels from both indices as necessary.
if index1remove:
df1 = df1.reset_index(index1remove)
if index2remove:
df2 = df2.reset_index(index2remove)
# The indices should be the same now, except that levels might be in a
# different order.
if df1.index.names != df2.index.names:
df2 = df2.reorder_levels(df1.index.names)
if lsuffix:
df1 = df1.rename(columns=lambda c: c + lsuffix if c in df2.columns.values else c, copy=False)
if rsuffix:
df2 = df2.rename(columns=lambda c: c + rsuffix if c in df1.columns.values else c, copy=False)
overlapping_columns = [column for column in df1.columns.values if column in df2.columns.values]
if overlapping_columns:
raise Exception('Overlapping column names when joining data frames: %s (specify lsuffix or rsuffix)' % overlapping_columns)
# Use concat to simulate join.
start_time = time.time()
if how == 'left':
result = pd.concat([df1, df2], axis=1, join_axes=[df1.index])
elif how == 'right':
result = pd.concat([df1, df2], axis=1, join_axes=[df2.index])
else:
result = pd.concat([df1, df2], axis=1, join=how)
end_time = time.time()
# Add all removed levels to the index of the result.
if index1remove:
result.set_index(index1remove, append=True, inplace=True)
# Make sure the levels are ordered the same way as in df1.
# Additional levels only appearing in df2 will be added at the
# end, though.
if result.index.names != index1:
result = result.reorder_levels(index1)
if index2remove:
result.set_index(index2remove, append=True, inplace=True)
return result, end_time - start_time
result_row_count = 10000000
random_numbers = np.random.randn(result_row_count)
def create_dataframe(index_columns, index_sizes):
index_ranges = [list(range(size)) for size in index_sizes]
index = pd.MultiIndex.from_product(index_ranges, names=index_columns)
row_count = functools.reduce(op.mul, index_sizes, 1)
return pd.DataFrame(random_numbers[:row_count], columns=['V'], index=index)
def test_join_fn(fn, index1, index2, index_sizes):
df1 = create_dataframe(index1, [index_sizes[c] for c in index1])
df2 = create_dataframe(index2, [index_sizes[c] for c in index2])
try:
start_time = time.time()
result, main_time_1 = fn(df1, df2, lsuffix='l', rsuffix='r')
mid_time = time.time()
result, main_time_2 = fn(df1, df2, lsuffix='l', rsuffix='r')
end_time = time.time()
print(" %.3f (%.3f), then %.3f (%.3f)" % (mid_time - start_time, main_time_1, end_time - mid_time, main_time_2))
return True
except:
print(" ERROR")
return False
def test_joins(*args):
print(" Raw join on index:")
if not test_join_fn(join_raw, *args):
print(" Join on index with workaround (partial reset_index):")
test_join_fn(join_with_workaround, *args)
print(" Join after reset_index:")
test_join_fn(join_with_reset_index, *args)
print(" Join via concat:")
test_join_fn(join_via_concat, *args)
print("")
def test_index_combination(index1, index2):
result_index = index1 + [c for c in index2 if c not in index1]
print("%s + %s -> %s:" % (index1, index2, result_index))
remaining_row_count = result_row_count
index_sizes = {}
for c in result_index[:-1]:
if remaining_row_count >= 10:
index_sizes[c] = 10
remaining_row_count = (remaining_row_count + 9) // 10
else:
index_sizes[c] = 1
index_sizes[result_index[-1]] = remaining_row_count
test_joins(index1, index2, index_sizes)
test_index_combination(list('A'), list('A'))
test_index_combination(list('AB'), list('AB'))
test_index_combination(list('ABC'), list('ABC'))
test_index_combination(list('ABCDE'), list('ABCDE'))
test_index_combination(list('ABCDEFG'), list('ABCDEFG'))
test_index_combination(list('A'), list('AB'))
test_index_combination(list('B'), list('AB'))
test_index_combination(list('A'), list('ABC'))
test_index_combination(list('B'), list('ABC'))
test_index_combination(list('AB'), list('A'))
test_index_combination(list('AB'), list('B'))
test_index_combination(list('ABC'), list('A'))
test_index_combination(list('ABC'), list('B'))
test_index_combination(list('ABC'), list('AB'))
test_index_combination(list('ABCDEF'), list('ABCDE'))
test_index_combination(list('AB'), list('ABC'))
test_index_combination(list('ABCDE'), list('ABCDEF'))
test_index_combination(list('ABC'), list('ABD'))
test_index_combination(list('ABC'), list('BC'))
test_index_combination(list('BC'), list('ABC'))
test_index_combination(list('ABC'), list('AC'))
test_index_combination(list('AC'), list('ABC'))
test_index_combination(list('AB'), list('BA'))
test_index_combination(list('ABCEF'), list('ACDBF'))
```
#### Problem description
We are getting severe performance bottlenecks in our code due to join operations on multiple index levels.
To analyze and illustrate the problem, we have created a microbenchmark which executes joins on data frames with different indices and one data column. The benchmark is constructed such that the resulting data frame always has the same number of rows (10000000 in this case, though we also have to deal with larger data sets). We would therefore expect all join operations to take a similar amount of time, perhaps somewhat linear in the number of index levels. Instead, we see up to 200x longer execution times in some cases (see output).
The benchmark works as follows:
* First, we create two data frames with unique, hierarchically sorted multi-indices. The data frames are built so that after they are joined, all index levels except the last have 10 values each, and the last level has however many values are necessary to get 10000000 rows.
* Then these data frames are joined twice in a row, measuring the time each join operation takes.
* Moreover, we perform the same join in several different ways that (as far as we can tell) yield the same result but are sometimes faster, and/or work in cases where the native join operation fails with a "currently not implemented" exception. In particular, using concat instead of join sometimes helps a lot. Unfortunately, even the fastest method is often too slow for our purposes.
The numbers show the times of both joins that are executed on the same data frames. Interestingly, in some cases, the first join often takes a lot longer than the second. For the alternative implementations, the numbers in parentheses show the number of seconds spent in the main inner operation (either join or concat).
We would be grateful for answers to any of the following questions:
* What is causing these large differences in performance?
* Is there anything we can do on our side to speed things up (other than selecting the fastest option in each case, which we already do)?
* Are there any plans to improve the performance of joins in Pandas, in general?
* Could we assist with this, e.g. with a bug bounty?
#### Output
[test_join_results.txt](https://github.com/pandas-dev/pandas/files/622316/test_join_results.txt)
#### Expected Output
We would expect all execution times to be less than a second, usually much less.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.1
nose: None
pip: 9.0.1
setuptools: 20.10.1
Cython: None
numpy: 1.11.2
scipy: None
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: 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/14775/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14775/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14776
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14776/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14776/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14776/events
|
https://github.com/pandas-dev/pandas/issues/14776
| 192,691,242 |
MDU6SXNzdWUxOTI2OTEyNDI=
| 14,776 |
BUG: group.apply with non-lexsorted levels and sort=True
|
{
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 0 | 2016-11-30T21:56:38Z | 2016-12-04T17:35:29Z | 2016-12-04T17:34:59Z |
CONTRIBUTOR
| null |
```
In [1]: df = pd.DataFrame({'x': ['a', 'a', 'b', 'a'], 'y': [1, 1, 2, 2], 'z': [1, 2,3, 4]}).set_index(['x', 'y'])
In [2]: df
Out[2]:
z
x y
a 1 1
1 2
b 2 3
a 2 4
In [3]: df.index
Out[3]:
MultiIndex(levels=[['a', 'b'], [1, 2]],
labels=[[0, 0, 1, 0], [0, 0, 1, 1]],
names=['x', 'y'])
In [5]: df.index.is_lexsorted()
Out[5]: False
In [6]: df.groupby(level=[0,1]).sum()
Out[6]:
z
x y
a 1 3
2 4
b 2 3
In [7]: df.groupby(level=[0,1]).apply(pd.DataFrame.drop_duplicates)
Exception: cannot handle a non-unique multi-index!
In [8]: df.sort_index().groupby(level=[0,1]).apply(pd.DataFrame.drop_duplicates)
Out[8]:
z
x y
a 1 1
1 2
2 4
b 2 3
# this is ok though
In [9]: df.groupby(level=[0,1], sort=False).apply(pd.DataFrame.drop_duplicates)
Out[9]:
z
x y
a 1 1
1 2
b 2 3
a 2 4
```
|
{
"+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/14776/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14776/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14777
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14777/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14777/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14777/events
|
https://github.com/pandas-dev/pandas/pull/14777
| 192,700,515 |
MDExOlB1bGxSZXF1ZXN0OTU5ODg2NTQ=
| 14,777 |
BUG: Bug in a groupby of a non-lexsorted MultiIndex
|
{
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 1 | 2016-11-30T22:37:38Z | 2016-12-04T17:34:59Z | 2016-12-04T17:34:59Z |
CONTRIBUTOR
| null |
closes #14776
|
{
"+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/14777/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14777/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14777.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14777",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14777.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14777"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14778
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14778/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14778/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14778/events
|
https://github.com/pandas-dev/pandas/issues/14778
| 192,711,445 |
MDU6SXNzdWUxOTI3MTE0NDU=
| 14,778 |
ENH/DOC: wide_to_long performance and docstring clarification
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7185264?v=4",
"events_url": "https://api.github.com/users/erikcs/events{/privacy}",
"followers_url": "https://api.github.com/users/erikcs/followers",
"following_url": "https://api.github.com/users/erikcs/following{/other_user}",
"gists_url": "https://api.github.com/users/erikcs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erikcs",
"id": 7185264,
"login": "erikcs",
"node_id": "MDQ6VXNlcjcxODUyNjQ=",
"organizations_url": "https://api.github.com/users/erikcs/orgs",
"received_events_url": "https://api.github.com/users/erikcs/received_events",
"repos_url": "https://api.github.com/users/erikcs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erikcs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erikcs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erikcs"
}
|
[
{
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2016-11-30T23:31:15Z | 2016-12-13T23:30:36Z | 2016-12-13T23:30:35Z |
CONTRIBUTOR
| null |
I had to massage some messy data recently, and a big bottleneck turned out to be [wide_to_long](https://github.com/pandas-dev/pandas/blob/4814823903b862c411caf527271e384df0d0d7e7/pandas/core/reshape.py#L878)
Some test data with many id variables and time variables
```python
import pandas as pd
import numpy as np
import string
vars = string.ascii_uppercase[0:4]
nyrs = 20
nidvars = 20
N = 5000
yrvars = []
for var in vars:
for yr in range(1, nyrs + 1):
yrvars.append( var + str(yr))
yearobs = dict(zip(yrvars, np.random.randn(len(yrvars), N)))
idobs = dict(zip(range(nidvars), np.random.rand(nidvars, N)))
frame = pd.concat([pd.DataFrame(idobs), pd.DataFrame(yearobs)], axis=1)
frame.shape
#(5000, 91)
```
Reshaping with `wide_to_long` takes around 2 secs.
```python
%%time
frame['id'] = frame.index
res1 = pd.wide_to_long(frame, list(vars), i='id', j='year')
#CPU times: user 1.89 s, sys: 210 ms, total: 2.1 s
#Wall time: 2.13 s
```
I modified `wide_to_long` slightly (regex on categorical column / avoid copying many "idvariables", postpone type coercion) and the runtime is now
```python
%%time
res2 = wide_to_long2(frame, list(vars), i='id', j='year')
#CPU times: user 112 ms, sys: 10.8 ms, total: 123 ms
#Wall time: 125 ms
```
The result is the same
```python
res1.equals(res2)
#True
```
#### Docstring clarification
The `wide_to_long` docstring also contains an unused last parameter `stubend : str`, which should be removed.
A docstring `Note` addtion about escaping special characters (with for example `re.escape`) in `stubnames` could also perhaps be informative, since if the user passes a dataframe with messy stubnames, the function fails with a pretty uninformative error message.
I can send a PR for this if that is wanted?
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: 06f26b51e97a0e81e8bd7fca4bba18e57659d963
python: 2.7.12.final.0
python-bits: 64
OS: Darwin
OS-release: 16.1.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.0+124.g06f26b5.dirty
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.6
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: 3.2.3.1
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
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/14778/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14778/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14779
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14779/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14779/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14779/events
|
https://github.com/pandas-dev/pandas/pull/14779
| 192,723,925 |
MDExOlB1bGxSZXF1ZXN0OTYwMDQzOTM=
| 14,779 |
ENH/DOC: wide_to_long performance and docstring clarification
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7185264?v=4",
"events_url": "https://api.github.com/users/erikcs/events{/privacy}",
"followers_url": "https://api.github.com/users/erikcs/followers",
"following_url": "https://api.github.com/users/erikcs/following{/other_user}",
"gists_url": "https://api.github.com/users/erikcs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erikcs",
"id": 7185264,
"login": "erikcs",
"node_id": "MDQ6VXNlcjcxODUyNjQ=",
"organizations_url": "https://api.github.com/users/erikcs/orgs",
"received_events_url": "https://api.github.com/users/erikcs/received_events",
"repos_url": "https://api.github.com/users/erikcs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erikcs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erikcs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erikcs"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 24 | 2016-12-01T00:43:09Z | 2016-12-13T23:32:07Z | 2016-12-13T23:30:36Z |
CONTRIBUTOR
| null |
- [x] closes #14778
- [x] tests passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Please see #14778 for details.
I make `wide_to_long` a bit faster (avoid slow regex search on long columns by first converting to Categorical, avoid melting all dataframes with all the id variables, and wait with trying to convert the "time" variable to `int` until last), and clear up the docstring.
|
{
"+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/14779/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14779/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14779.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14779",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14779.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14779"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14780
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14780/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14780/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14780/events
|
https://github.com/pandas-dev/pandas/pull/14780
| 192,776,206 |
MDExOlB1bGxSZXF1ZXN0OTYwNDA5MTA=
| 14,780 |
ENH: Pandas Series provide to_excel method
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
}
|
[
{
"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": "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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 7 | 2016-12-01T07:51:08Z | 2016-12-05T14:39:26Z | 2016-12-05T14:39:14Z |
CONTRIBUTOR
| null |
- [x] closes #8825
- [x] tests added / passed
- [ ] passes ``git diff upstream/master | 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/14780/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14780/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14780.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14780",
"merged_at": "2016-12-05T14:39:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14780.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14780"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14781
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14781/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14781/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14781/events
|
https://github.com/pandas-dev/pandas/issues/14781
| 192,904,772 |
MDU6SXNzdWUxOTI5MDQ3NzI=
| 14,781 |
API: Consider porting extension accessor from xarray
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4",
"events_url": "https://api.github.com/users/chris-b1/events{/privacy}",
"followers_url": "https://api.github.com/users/chris-b1/followers",
"following_url": "https://api.github.com/users/chris-b1/following{/other_user}",
"gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chris-b1",
"id": 1924092,
"login": "chris-b1",
"node_id": "MDQ6VXNlcjE5MjQwOTI=",
"organizations_url": "https://api.github.com/users/chris-b1/orgs",
"received_events_url": "https://api.github.com/users/chris-b1/received_events",
"repos_url": "https://api.github.com/users/chris-b1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chris-b1"
}
|
[
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2018-05-16T03:09:58Z",
"closed_issues": 1645,
"created_at": "2017-10-20T10:17:09Z",
"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": "after 0.22",
"due_on": "2018-05-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/53",
"id": 2853937,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53/labels",
"node_id": "MDk6TWlsZXN0b25lMjg1MzkzNw==",
"number": 53,
"open_issues": 0,
"state": "closed",
"title": "0.23.0",
"updated_at": "2018-08-20T06:48:57Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53"
}
| 7 | 2016-12-01T17:03:24Z | 2018-01-16T00:43:17Z | 2018-01-16T00:43:16Z |
CONTRIBUTOR
| null |
`xarray` provides a decorator to register a custom accessor on a `Dataset` - see docs [here](http://xarray.pydata.org/en/stable/internals.html#extending-xarray).
It's a bit of a blunt tool, in that it applies to all instances, but outside of that, I found it to be a nice alternative to subclassing or a composition class.
I haven't looked at the implementation, so not sure how hard it would be retrofit onto `DataFrame`
@shoyer - any thoughts or feedback from people using it?
|
{
"+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/14781/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14781/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14782
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14782/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14782/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14782/events
|
https://github.com/pandas-dev/pandas/issues/14782
| 192,909,024 |
MDU6SXNzdWUxOTI5MDkwMjQ=
| 14,782 |
read_csv crash if second input line is malformed
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3223986?v=4",
"events_url": "https://api.github.com/users/karlacio/events{/privacy}",
"followers_url": "https://api.github.com/users/karlacio/followers",
"following_url": "https://api.github.com/users/karlacio/following{/other_user}",
"gists_url": "https://api.github.com/users/karlacio/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/karlacio",
"id": 3223986,
"login": "karlacio",
"node_id": "MDQ6VXNlcjMyMjM5ODY=",
"organizations_url": "https://api.github.com/users/karlacio/orgs",
"received_events_url": "https://api.github.com/users/karlacio/received_events",
"repos_url": "https://api.github.com/users/karlacio/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/karlacio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/karlacio/subscriptions",
"type": "User",
"url": "https://api.github.com/users/karlacio"
}
|
[
{
"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": "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": "36ede0",
"default": false,
"description": "Non-Recoverable Error",
"id": 1121248195,
"name": "Segfault",
"node_id": "MDU6TGFiZWwxMTIxMjQ4MTk1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Segfault"
}
] |
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"
}
| 28 | 2016-12-01T17:20:12Z | 2021-03-16T14:37:46Z | 2021-03-15T20:16:25Z |
NONE
| null |
#### Problem description
**Added 2020/04/21**:
Similar issue as OP but segfaults (from [below](https://github.com/pandas-dev/pandas/issues/14782#issuecomment-617203992))!
~~~
import pandas
import io
pandas.read_csv(io.StringIO("\na\nb\n"), skip_blank_lines=False, header=1)
~~~
===
I'm usign read_csv to import files containing data in 9 columns.
Some lines have a 'time tag' composed by two columns (the first line is always a 'time tag').
Some lines are malformed in various ways.
I use read_csv to read data and skip bad lines just with a warn and usually it works.
Recently I found a file that crash my program and it seems caused by a bad formed second line (not 9 fields).
The code:
```python
import pandas as pd
print("before read_csv")
d = pd.read_csv("inputfile.txt",
header=0,
names=(11,22,33,44,55,66,77,88,99),
compression='infer',
error_bad_lines=False, warn_bad_lines=True)
print("after read_csv")
print(d)
```
works on input like this:
```
1,2
1,2,3,4,5,6,7,8,9
yunk
1,2,3,4,5,6,7,8,9
```
with output:
```
before read_csv
after read_csv
11 22 33 44 55 66 77 88 99
0 1 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0
1 yunk NaN NaN NaN NaN NaN NaN NaN NaN
2 1 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0
```
But fails on input like this:
```
1,2
yunk
1,2,3,4,5,6,7,8,9
1,2,3,4,5,6,7,8,9
```
with output:
```
before read_csv
b'Skipping line 3: expected 2 fields, saw 9\nSkipping line 4: expected 2 fields, saw 9\n'
Traceback (most recent call last):
File ".../bug_pandas.read_scv.py", line 42, in <module>
error_bad_lines=False, warn_bad_lines=True)
File ".../Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 645, in parser_f
return _read(filepath_or_buffer, kwds)
File ".../Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 400, in _read
data = parser.read()
File ".../Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 938, in read
ret = self._engine.read(nrows)
File ".../Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 1507, in read
data = self._reader.read(nrows)
File "pandas/parser.pyx", line 846, in pandas.parser.TextReader.read (pandas/parser.c:10364)
File "pandas/parser.pyx", line 868, in pandas.parser.TextReader._read_low_memory (pandas/parser.c:10640)
File "pandas/parser.pyx", line 945, in pandas.parser.TextReader._read_rows (pandas/parser.c:11677)
File "pandas/parser.pyx", line 1007, in pandas.parser.TextReader._convert_column_data (pandas/parser.c:12627)
pandas.io.common.CParserError: Too many columns specified: expected 9 and found 2
Process finished with exit code 1
```
The problem arises both on OSX and on CentOS 7.
I tried to find if it's an already known bug but I found nothing.
Sorry if it's already known.
Carlo.
#### Output of ``pd.show_versions()`` on OSX 10.11.6
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: en_US.UTF-8
pandas: 0.19.1
nose: 1.3.7
pip: 9.0.1
setuptools: 28.8.0
Cython: None
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.7
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
</details>
#### Output of ``pd.show_versions()`` on CentOS 7
<details>
pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.5.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-327.36.3.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.19.1
nose: 1.3.7
pip: 9.0.1
setuptools: 29.0.1
Cython: None
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.7
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 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/14782/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14782/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14783
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14783/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14783/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14783/events
|
https://github.com/pandas-dev/pandas/pull/14783
| 192,936,893 |
MDExOlB1bGxSZXF1ZXN0OTYxNTIwNjY=
| 14,783 |
ENH: merge_asof() has type specializations and can take multiple 'by' parameters (#13936)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4",
"events_url": "https://api.github.com/users/chrisaycock/events{/privacy}",
"followers_url": "https://api.github.com/users/chrisaycock/followers",
"following_url": "https://api.github.com/users/chrisaycock/following{/other_user}",
"gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrisaycock",
"id": 453745,
"login": "chrisaycock",
"node_id": "MDQ6VXNlcjQ1Mzc0NQ==",
"organizations_url": "https://api.github.com/users/chrisaycock/orgs",
"received_events_url": "https://api.github.com/users/chrisaycock/received_events",
"repos_url": "https://api.github.com/users/chrisaycock/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrisaycock"
}
|
[
{
"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",
"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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 27 | 2016-12-01T19:18:27Z | 2016-12-17T17:32:48Z | 2016-12-16T23:10:34Z |
CONTRIBUTOR
| null |
- [x] closes #13936
- [x] tests added / passed
- [x] passes ``git diff upstream/master | 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/14783/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14783/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14783.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14783",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14783.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14783"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14784
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14784/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14784/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14784/events
|
https://github.com/pandas-dev/pandas/issues/14784
| 192,992,116 |
MDU6SXNzdWUxOTI5OTIxMTY=
| 14,784 |
na_position doesn't work for sort_index() with MultiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7232535?v=4",
"events_url": "https://api.github.com/users/brandonmburroughs/events{/privacy}",
"followers_url": "https://api.github.com/users/brandonmburroughs/followers",
"following_url": "https://api.github.com/users/brandonmburroughs/following{/other_user}",
"gists_url": "https://api.github.com/users/brandonmburroughs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/brandonmburroughs",
"id": 7232535,
"login": "brandonmburroughs",
"node_id": "MDQ6VXNlcjcyMzI1MzU=",
"organizations_url": "https://api.github.com/users/brandonmburroughs/orgs",
"received_events_url": "https://api.github.com/users/brandonmburroughs/received_events",
"repos_url": "https://api.github.com/users/brandonmburroughs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/brandonmburroughs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brandonmburroughs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/brandonmburroughs"
}
|
[
{
"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,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 7 | 2016-12-01T23:28:41Z | 2017-04-20T08:30:48Z | 2017-04-19T22:29:29Z |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
In [1]: import numpy as np
In [2]: import pandas as pd
In [3]: pd.__version__
Out[3]: u'0.19.0'
In [4]: mi = pd.MultiIndex.from_tuples([[1, 1, 3], [1, 1, np.nan]], names=list('ABC'))
In [5]: df = pd.DataFrame([[1, 2], [3, 4]], mi)
In [6]: df.sort_index(na_position="first")
Out[6]:
0 1
A B C
1 1 NaN 3 4
3 1 2
In [7]: df.sort_index(na_position="last")
Out[7]:
0 1
A B C
1 1 NaN 3 4
3 1 2
```
#### Problem description
The `na_position` argument isn't used in `DataFrame.sort_index()` or `Series.sort_index()` due to the way we sort the `MultiIndex`. Whenever we create a `MultiIndex`, we store the labels as relative values. For instance, if we have the following `MultiIndex`:
```python
MultiIndex.from_tuples([[1, 1, 3], [1, 1, np.nan]], names=list('ABC'))
```
the values get stored as
```python
MultiIndex(levels=[[1], [1], [3]],
labels=[[0, 0], [0, 0], [0, -1]],
names=[u'A', u'B', u'C'])
```
with a `NaN` placeholder of -1.
These label values are what get passed to the sorting algorithm for both [DataFrames](https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L3334-L3337) and [Series](https://github.com/pandas-dev/pandas/blob/master/pandas/core/series.py#L1782). Since the sorting only happens on the `labels`, it has no notion of the `NaN`.
This has been discussed in #14015 and #14672 .
My original naive solution was to change [these lines](https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L3337-L3338) from:
```python
indexer = _lexsort_indexer(labels.labels, orders=ascending,
na_position=na_position)
```
to
```python
index_values_list = np.dstack(labels.get_values())[0].tolist()
indexer = _lexsort_indexer(index_values_list, orders=ascending,
na_position=na_position)
```
This didn't break any tests, but it isn't necessarily the best approach.
#### Expected Output
```python
In [7]: df.sort_index(na_position="last")
Out[7]:
0 1
A B C
1 1 3 1 2
NaN 3 4
```
#### Output of ``pd.show_versions()``
<details>
In [3]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 3.16.0-77-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.0
nose: 1.3.4
pip: 9.0.0
setuptools: 27.2.0
Cython: 0.21
numpy: 1.11.2
scipy: 0.16.1
statsmodels: 0.6.1
xarray: None
IPython: 4.0.0
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.5.0
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: 0.5.7
lxml: 3.4.0
bs4: 4.3.2
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.5
sqlalchemy: 0.9.7
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.7.3
boto: 2.32.1
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/14784/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14784/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14785
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14785/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14785/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14785/events
|
https://github.com/pandas-dev/pandas/pull/14785
| 193,008,680 |
MDExOlB1bGxSZXF1ZXN0OTYyMDQzOTg=
| 14,785 |
Fix a simple typo
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/507130?v=4",
"events_url": "https://api.github.com/users/dodysw/events{/privacy}",
"followers_url": "https://api.github.com/users/dodysw/followers",
"following_url": "https://api.github.com/users/dodysw/following{/other_user}",
"gists_url": "https://api.github.com/users/dodysw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dodysw",
"id": 507130,
"login": "dodysw",
"node_id": "MDQ6VXNlcjUwNzEzMA==",
"organizations_url": "https://api.github.com/users/dodysw/orgs",
"received_events_url": "https://api.github.com/users/dodysw/received_events",
"repos_url": "https://api.github.com/users/dodysw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dodysw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dodysw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dodysw"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-12-02T01:21:12Z | 2016-12-15T09:38:06Z | 2016-12-02T12:52:55Z |
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
Insignificant PR, it's just fixing a single typo on an exception.
|
{
"+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/14785/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14785/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14785.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14785",
"merged_at": "2016-12-02T12:52:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14785.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14785"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14786
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14786/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14786/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14786/events
|
https://github.com/pandas-dev/pandas/pull/14786
| 193,014,471 |
MDExOlB1bGxSZXF1ZXN0OTYyMDgyNDk=
| 14,786 |
API: add dtype param to read_excel
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4",
"events_url": "https://api.github.com/users/chris-b1/events{/privacy}",
"followers_url": "https://api.github.com/users/chris-b1/followers",
"following_url": "https://api.github.com/users/chris-b1/following{/other_user}",
"gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chris-b1",
"id": 1924092,
"login": "chris-b1",
"node_id": "MDQ6VXNlcjE5MjQwOTI=",
"organizations_url": "https://api.github.com/users/chris-b1/orgs",
"received_events_url": "https://api.github.com/users/chris-b1/received_events",
"repos_url": "https://api.github.com/users/chris-b1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chris-b1"
}
|
[
{
"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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-12-02T02:02:22Z | 2016-12-03T12:37:32Z | 2016-12-03T12:37:32Z |
CONTRIBUTOR
| null |
- [x] closes #8212
- [ ] tests added / passed
- [x] passes ``git diff upstream/master | 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/14786/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14786/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14786.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14786",
"merged_at": "2016-12-03T12:37:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14786.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14786"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14787
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14787/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14787/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14787/events
|
https://github.com/pandas-dev/pandas/pull/14787
| 193,030,212 |
MDExOlB1bGxSZXF1ZXN0OTYyMTkwMDM=
| 14,787 |
Fix typo at pandas/core/generic.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8201019?v=4",
"events_url": "https://api.github.com/users/tae-jun/events{/privacy}",
"followers_url": "https://api.github.com/users/tae-jun/followers",
"following_url": "https://api.github.com/users/tae-jun/following{/other_user}",
"gists_url": "https://api.github.com/users/tae-jun/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tae-jun",
"id": 8201019,
"login": "tae-jun",
"node_id": "MDQ6VXNlcjgyMDEwMTk=",
"organizations_url": "https://api.github.com/users/tae-jun/orgs",
"received_events_url": "https://api.github.com/users/tae-jun/received_events",
"repos_url": "https://api.github.com/users/tae-jun/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tae-jun/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tae-jun/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tae-jun"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-12-02T04:11:03Z | 2016-12-15T09:37:59Z | 2016-12-02T12:51:50Z |
CONTRIBUTOR
| null |
`indentifier` -> `identifier`
|
{
"+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/14787/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14787/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14787.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14787",
"merged_at": "2016-12-02T12:51:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14787.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14787"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14788
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14788/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14788/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14788/events
|
https://github.com/pandas-dev/pandas/pull/14788
| 193,073,087 |
MDExOlB1bGxSZXF1ZXN0OTYyNDgzNzc=
| 14,788 |
DOC: warning section on memory overflow when joining/merging dataframes on index with duplicate keys
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1189869?v=4",
"events_url": "https://api.github.com/users/xgdgsc/events{/privacy}",
"followers_url": "https://api.github.com/users/xgdgsc/followers",
"following_url": "https://api.github.com/users/xgdgsc/following{/other_user}",
"gists_url": "https://api.github.com/users/xgdgsc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xgdgsc",
"id": 1189869,
"login": "xgdgsc",
"node_id": "MDQ6VXNlcjExODk4Njk=",
"organizations_url": "https://api.github.com/users/xgdgsc/orgs",
"received_events_url": "https://api.github.com/users/xgdgsc/received_events",
"repos_url": "https://api.github.com/users/xgdgsc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xgdgsc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xgdgsc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xgdgsc"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 2 | 2016-12-02T09:41:58Z | 2016-12-11T20:26:55Z | 2016-12-11T20:26:35Z |
CONTRIBUTOR
| null |
- [ ] closes #14736
|
{
"+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/14788/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14788/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14788.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14788",
"merged_at": "2016-12-11T20:26:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14788.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14788"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14789
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14789/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14789/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14789/events
|
https://github.com/pandas-dev/pandas/pull/14789
| 193,195,567 |
MDExOlB1bGxSZXF1ZXN0OTYzMzY0NjM=
| 14,789 |
Small typos
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/494248?v=4",
"events_url": "https://api.github.com/users/thrasibule/events{/privacy}",
"followers_url": "https://api.github.com/users/thrasibule/followers",
"following_url": "https://api.github.com/users/thrasibule/following{/other_user}",
"gists_url": "https://api.github.com/users/thrasibule/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thrasibule",
"id": 494248,
"login": "thrasibule",
"node_id": "MDQ6VXNlcjQ5NDI0OA==",
"organizations_url": "https://api.github.com/users/thrasibule/orgs",
"received_events_url": "https://api.github.com/users/thrasibule/received_events",
"repos_url": "https://api.github.com/users/thrasibule/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thrasibule/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thrasibule/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thrasibule"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-12-02T19:18:56Z | 2016-12-02T22:27:35Z | 2016-12-02T22:27:27Z |
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/14789/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14789/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14789.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14789",
"merged_at": "2016-12-02T22:27:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14789.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14789"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/14790
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14790/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14790/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14790/events
|
https://github.com/pandas-dev/pandas/issues/14790
| 193,283,217 |
MDU6SXNzdWUxOTMyODMyMTc=
| 14,790 |
pd.read_sql throws TypeError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1297203?v=4",
"events_url": "https://api.github.com/users/fx86/events{/privacy}",
"followers_url": "https://api.github.com/users/fx86/followers",
"following_url": "https://api.github.com/users/fx86/following{/other_user}",
"gists_url": "https://api.github.com/users/fx86/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fx86",
"id": 1297203,
"login": "fx86",
"node_id": "MDQ6VXNlcjEyOTcyMDM=",
"organizations_url": "https://api.github.com/users/fx86/orgs",
"received_events_url": "https://api.github.com/users/fx86/received_events",
"repos_url": "https://api.github.com/users/fx86/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fx86/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fx86/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fx86"
}
|
[] |
closed
| false | null |
[] | null | 1 | 2016-12-03T12:07:07Z | 2016-12-03T12:23:59Z | 2016-12-03T12:08:46Z |
NONE
| null |
Trying to run a postgres query through `pd.read_sql` which throws a vexing `TypeError: 'dict' object does not support indexing`
Pandas version: 0.18.1
```
pd.read_sql('select extract(year from creationdate) as Year, count(id) as Count, \'c\' as Language from posts where "tags" like \'%<c>%\' group by year;', engine)
```
#### Expected Output
####
year | count | language
------+-------+----------
2008 | 1175 | C
2009 | 6812 | C
2010 | 15347 | C
2011 | 22726 | C
2012 | 31295 | C
2013 | 41057 | C
2014 | 42285 | C
2015 | 40960 | C
2016 | 24481 | C
<details>
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-189-c4bd24872e35> in <module>()
1 # pd.read_sql(pl_count_by_yr.format(tag).strip(), engine, chunksize=1000)
----> 2 pd.read_sql('select extract(year from creationdate) as Year, count(id) as Count, \'c\' as Language from posts where "tags" like \'%<c>%\' group by year;', engine)
c:\Anaconda\lib\site-packages\pandas\io\sql.pyc in read_sql(sql, con, index_col, coerce_float, params, parse_dates, columns, chunksize)
513 sql, index_col=index_col, params=params,
514 coerce_float=coerce_float, parse_dates=parse_dates,
--> 515 chunksize=chunksize)
516
517
c:\Anaconda\lib\site-packages\pandas\io\sql.pyc in read_query(self, sql, index_col, coerce_float, parse_dates, params, chunksize)
1188 args = _convert_params(sql, params)
1189
-> 1190 result = self.execute(*args)
1191 columns = result.keys()
1192
c:\Anaconda\lib\site-packages\pandas\io\sql.pyc in execute(self, *args, **kwargs)
1079 def execute(self, *args, **kwargs):
1080 """Simple passthrough to SQLAlchemy connectable"""
-> 1081 return self.connectable.execute(*args, **kwargs)
1082
1083 def read_table(self, table_name, index_col=None, coerce_float=True,
c:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in execute(self, statement, *multiparams, **params)
1989
1990 connection = self.contextual_connect(close_with_result=True)
-> 1991 return connection.execute(statement, *multiparams, **params)
1992
1993 def scalar(self, statement, *multiparams, **params):
c:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in execute(self, object, *multiparams, **params)
904 """
905 if isinstance(object, util.string_types[0]):
--> 906 return self._execute_text(object, multiparams, params)
907 try:
908 meth = object._execute_on_connection
c:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_text(self, statement, multiparams, params)
1052 statement,
1053 parameters,
-> 1054 statement, parameters
1055 )
1056 if self._has_events or self.engine._has_events:
c:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args)
1144 parameters,
1145 cursor,
-> 1146 context)
1147
1148 if self._has_events or self.engine._has_events:
c:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _handle_dbapi_exception(self, e, statement, parameters, cursor, context)
1342 )
1343 else:
-> 1344 util.reraise(*exc_info)
1345
1346 finally:
c:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args)
1137 statement,
1138 parameters,
-> 1139 context)
1140 except Exception as e:
1141 self._handle_dbapi_exception(
c:\Anaconda\lib\site-packages\sqlalchemy\engine\default.pyc in do_execute(self, cursor, statement, parameters, context)
448
449 def do_execute(self, cursor, statement, parameters, context=None):
--> 450 cursor.execute(statement, parameters)
451
452 def do_execute_no_params(self, cursor, statement, context=None):
TypeError: 'dict' object does not support indexing
</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/14790/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14790/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14791
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14791/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14791/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14791/events
|
https://github.com/pandas-dev/pandas/pull/14791
| 193,289,997 |
MDExOlB1bGxSZXF1ZXN0OTYzOTkzNzA=
| 14,791 |
BUG: multi-index HDFStore data_columns=True
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4",
"events_url": "https://api.github.com/users/chris-b1/events{/privacy}",
"followers_url": "https://api.github.com/users/chris-b1/followers",
"following_url": "https://api.github.com/users/chris-b1/following{/other_user}",
"gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chris-b1",
"id": 1924092,
"login": "chris-b1",
"node_id": "MDQ6VXNlcjE5MjQwOTI=",
"organizations_url": "https://api.github.com/users/chris-b1/orgs",
"received_events_url": "https://api.github.com/users/chris-b1/received_events",
"repos_url": "https://api.github.com/users/chris-b1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chris-b1"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 4 | 2016-12-03T14:31:51Z | 2016-12-04T17:22:52Z | 2016-12-04T17:22:51Z |
CONTRIBUTOR
| null |
- [x] closes #14435
- [ ] tests added / passed
- [x] passes ``git diff upstream/master | 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/14791/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14791/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14791.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14791",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14791.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14791"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14792
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14792/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14792/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14792/events
|
https://github.com/pandas-dev/pandas/issues/14792
| 193,301,836 |
MDU6SXNzdWUxOTMzMDE4MzY=
| 14,792 |
read_csv() doesn't parse correctly when `usecols` and `parse_dates` are both used
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10522158?v=4",
"events_url": "https://api.github.com/users/rubennj/events{/privacy}",
"followers_url": "https://api.github.com/users/rubennj/followers",
"following_url": "https://api.github.com/users/rubennj/following{/other_user}",
"gists_url": "https://api.github.com/users/rubennj/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rubennj",
"id": 10522158,
"login": "rubennj",
"node_id": "MDQ6VXNlcjEwNTIyMTU4",
"organizations_url": "https://api.github.com/users/rubennj/orgs",
"received_events_url": "https://api.github.com/users/rubennj/received_events",
"repos_url": "https://api.github.com/users/rubennj/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rubennj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rubennj/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rubennj"
}
|
[
{
"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 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": "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"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 3 | 2016-12-03T17:19:21Z | 2016-12-30T19:27:40Z | 2016-12-30T19:27:40Z |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
In [22]: s = """a,b,c,d,e,f,g,h,i,j
...: 2016/09/21,1,1,2,3,4,5,6,7,8"""
In [23]: pd.read_csv(StringIO(s), parse_dates=[0], usecols=['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']).info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 1 entries, 0 to 0
Data columns (total 10 columns):
a 1 non-null datetime64[ns]
b 1 non-null int64
c 1 non-null int64
d 1 non-null int64
e 1 non-null int64
f 1 non-null int64
g 1 non-null int64
h 1 non-null int64
i 1 non-null object <- !!
j 1 non-null int64
dtypes: datetime64[ns](1), int64(8), object(1)
memory usage: 160.0+ bytes
In [24]: pd.read_csv(StringIO(s), parse_dates=[[0, 1]], usecols=['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']).info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 1 entries, 0 to 0
Data columns (total 9 columns):
a_b 1 non-null object
c 1 non-null int64
d 1 non-null int64
e 1 non-null int64
f 1 non-null int64
g 1 non-null int64
h 1 non-null object <- !!
i 1 non-null object <- !!
j 1 non-null int64
dtypes: int64(6), object(3)
memory usage: 152.0+ bytes
```
#### Problem description
Since v0.18.1 `pd.read_csv()` doesn't parse correctly, and it occurs randomly at every run. It occurs only when `usecols` and `parse_dates` are both used.
#### Expected Output
All the columns parsed as int64 and not some randomly as object.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.1
nose: None
pip: 9.0.1
setuptools: 29.0.1.post20161201
Cython: None
numpy: 1.11.2
scipy: None
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: 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/14792/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14792/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14793
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14793/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14793/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14793/events
|
https://github.com/pandas-dev/pandas/issues/14793
| 193,308,385 |
MDU6SXNzdWUxOTMzMDgzODU=
| 14,793 |
can not run pandas unit tests without x11 connection
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16782213?v=4",
"events_url": "https://api.github.com/users/davidslac/events{/privacy}",
"followers_url": "https://api.github.com/users/davidslac/followers",
"following_url": "https://api.github.com/users/davidslac/following{/other_user}",
"gists_url": "https://api.github.com/users/davidslac/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davidslac",
"id": 16782213,
"login": "davidslac",
"node_id": "MDQ6VXNlcjE2NzgyMjEz",
"organizations_url": "https://api.github.com/users/davidslac/orgs",
"received_events_url": "https://api.github.com/users/davidslac/received_events",
"repos_url": "https://api.github.com/users/davidslac/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davidslac/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davidslac/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davidslac"
}
|
[
{
"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": "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"
}
| 6 | 2016-12-03T19:23:50Z | 2016-12-05T16:33:57Z | 2016-12-04T23:36:28Z |
NONE
| null |
I am working on automating the testing of conda environments that include pandas. I am unable to run the tests if I do not have a x11 connection setup correctly. Example:
```python
psdev105: ~ $ python -c "import pandas; pandas.test('fast',verbose=10)"
Running unit tests for pandas
pandas version 0.19.1
numpy version 1.11.2
pandas is installed in /reg/g/psdm/sw/conda/inst/miniconda2-dev-rhel6/envs/ana-1.0.6/lib/python2.7/site-packages/pandas
Python version 2.7.12 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:42:40) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
nose version 1.3.7
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
X11 connection rejected because of wrong authentication.
: cannot connect to X server localhost:15.0
```
Are there a set of tests I can run that do not include a x11 connection?
#### Output of ``pd.show_versions()``
<details>
(ana-1.0.6) psdev105: ~ $ python -c "import pandas; pandas.show_versions()"
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-504.16.2.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: C
LOCALE: None.None
pandas: 0.19.1
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: None
xarray: 0.8.2
IPython: 5.1.0
sphinx: 1.4.8
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: 1.1.0
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.4
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.43.0
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/14793/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14793/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14794
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14794/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14794/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14794/events
|
https://github.com/pandas-dev/pandas/issues/14794
| 193,312,414 |
MDU6SXNzdWUxOTMzMTI0MTQ=
| 14,794 |
Incorrect sequence handling with MultiIndex.from_tuples
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10678620?v=4",
"events_url": "https://api.github.com/users/groutr/events{/privacy}",
"followers_url": "https://api.github.com/users/groutr/followers",
"following_url": "https://api.github.com/users/groutr/following{/other_user}",
"gists_url": "https://api.github.com/users/groutr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/groutr",
"id": 10678620,
"login": "groutr",
"node_id": "MDQ6VXNlcjEwNjc4NjIw",
"organizations_url": "https://api.github.com/users/groutr/orgs",
"received_events_url": "https://api.github.com/users/groutr/received_events",
"repos_url": "https://api.github.com/users/groutr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/groutr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/groutr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/groutr"
}
|
[
{
"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,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
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 | 2016-12-03T20:45:48Z | 2019-10-21T19:52:17Z | null |
CONTRIBUTOR
| null |
```python
T = tuple(tuple(range(k)) for k in range(1, 8))
#Note: min(map(len, T)) == 1 and max(map(len, T)) == 7
bad = pd.MultiIndex.from_tuples(T)
bad.nlevels # == 1 ???
good = pd.MultiIndex.from_tuples(list(T))
good.nlevels # == 7
```
#### Problem description
The docstring leaves some ambiguity as to whether a tuple or list can be passed in. It does say a list of tuples at the top, but in the argument specification, it hints that tuples can be a list/sequence of tuple-likes. A tuple of tuples is a sequence of tuple-likes. I find it strange that my tuple of tuples was truncated to a single level MultiIndex, while my list of tuples was not.
Changing https://github.com/groutr/pandas/blob/master/pandas/indexes/multi.py#L983
to call `itertools.zip_longest` would fix the truncation issue.
I also don't understand why sometimes the arrays are transposed and every other case we don't transpose.
https://github.com/groutr/pandas/blob/master/pandas/indexes/multi.py#L980-L983
#### Expected Output
I would expect lists and tuples and other sequences of tuple-likes (sets, for example) to be treated the same. Do lists have a special meaning here?
This is in the latest master (588e29d23fa289916a8b057d093af62f35c6dcf6) and pandas 0.19.1.
I'd be happy to submit a PR if this is unintended behavior
|
{
"+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/14794/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14794/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14795
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14795/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14795/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14795/events
|
https://github.com/pandas-dev/pandas/issues/14795
| 193,320,261 |
MDU6SXNzdWUxOTMzMjAyNjE=
| 14,795 |
Append with two DateTimeIndex returns Index and not DateTimeIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11539619?v=4",
"events_url": "https://api.github.com/users/rsheftel/events{/privacy}",
"followers_url": "https://api.github.com/users/rsheftel/followers",
"following_url": "https://api.github.com/users/rsheftel/following{/other_user}",
"gists_url": "https://api.github.com/users/rsheftel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rsheftel",
"id": 11539619,
"login": "rsheftel",
"node_id": "MDQ6VXNlcjExNTM5NjE5",
"organizations_url": "https://api.github.com/users/rsheftel/orgs",
"received_events_url": "https://api.github.com/users/rsheftel/received_events",
"repos_url": "https://api.github.com/users/rsheftel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rsheftel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rsheftel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rsheftel"
}
|
[
{
"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": "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": 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 | 2016-12-03T23:27:28Z | 2016-12-04T16:50:27Z | 2016-12-04T16:50:12Z |
NONE
| null |
In 0.19.1 appending a DateTimeIndex to another DateTimeIndex where they have different time zones now returns an Index object. In 0.18.1 it would return a DateTimeIndex with a UTC time zone.
In 0.19.1 (and in 0.18.1) if the two DateTimeIndex have the same time zone a DateTimeIndex is returned. I believe the behavior in 0.18.1 of returning a DateTimeIndex with time zone UTC should be the correct behavior.
--- Example of the problem ---
```
import pandas as pd
df1 = pd.DataFrame({'a': [1, 2, 3]}, index=pd.date_range('1990-02-01 09:00:00', periods=3, freq='1min', tz='America/New_York'))
df2 = pd.DataFrame({'a': [4, 5, 6]}, index=pd.date_range('1990-02-01 08:03:00', periods=3, freq='1min', tz='America/Chicago'))
print(df1.index.tzinfo) # America/New_York
print(df2.index.tzinfo) # America/Chicago
result = df1.index.append(df2.index)
print(type(new_index))
print(type(result))
>> pandas 0.18.1 returns <class 'pandas.tseries.index.DatetimeIndex'>
>> pandas 0.19.1 returns <class 'pandas.indexes.base.Index'>
```
|
{
"+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/14795/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14795/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14796
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14796/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14796/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14796/events
|
https://github.com/pandas-dev/pandas/issues/14796
| 193,333,572 |
MDU6SXNzdWUxOTMzMzM1NzI=
| 14,796 |
ENH: Pandas `DataFrame.append` and `Series.append` methods should get an `inplace` kwag
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8196363?v=4",
"events_url": "https://api.github.com/users/dragonator4/events{/privacy}",
"followers_url": "https://api.github.com/users/dragonator4/followers",
"following_url": "https://api.github.com/users/dragonator4/following{/other_user}",
"gists_url": "https://api.github.com/users/dragonator4/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dragonator4",
"id": 8196363,
"login": "dragonator4",
"node_id": "MDQ6VXNlcjgxOTYzNjM=",
"organizations_url": "https://api.github.com/users/dragonator4/orgs",
"received_events_url": "https://api.github.com/users/dragonator4/received_events",
"repos_url": "https://api.github.com/users/dragonator4/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dragonator4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dragonator4/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dragonator4"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] |
closed
| false | null |
[] |
{
"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"
}
| 6 | 2016-12-04T05:50:35Z | 2020-11-16T05:32:49Z | 2016-12-04T16:15:17Z |
NONE
| null |
#### Problem description
Currently to append to a DataFrame, the following is the approach:
```
df = pd.DataFrame(np.random.rand(5,3), columns=list('abc'))
df = df.append(pd.DataFrame(np.random.rand(5,3), columns=list('abc')))
```
`append` is a DataFrame or Series method, and as such should be able to modify the DataFrame or Series in place. If in place modification is not required, one may use `concat` or set `inplace` kwag to `False`. It will avoid an explicit assignment operation which is quite slow in Python, as we all know. Further, it will make the expected behavior similar to Python lists, and avoid questions such as these: [1](http://stackoverflow.com/questions/16597265/appending-to-an-empty-data-frame-in-pandas), [2](http://stackoverflow.com/questions/37009287/using-pandas-append-within-for-loop)...
Additionally at present, `append` is full subset of `concat`, and as such it need not exist at all. Given the vast number of functions to append a DataFrame or Series to another in Pandas, it makes sense that each has it's merits and demerits. Gaining an `inplace` kwag will clearly distinguish `append` from `concat`, and simplify code.
I understand that this issue was raised in #2801 a long time ago. However, the conversation in that deviated from the simplification offered by the `inplace` kwag to performance enhancement. I (and many like me) are looking for ease of use, and not so much at performance. Also, we expect the data to fit in memory (which is a limitation even with current version of `append`).
#### Expected Code
```
df = pd.DataFrame(np.random.rand(5,3), columns=list('abc'))
df.append(pd.DataFrame(np.random.rand(5,3), columns=list('abc')), inplace=True)
```
|
{
"+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/14796/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14796/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14797
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14797/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14797/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14797/events
|
https://github.com/pandas-dev/pandas/issues/14797
| 193,363,872 |
MDU6SXNzdWUxOTMzNjM4NzI=
| 14,797 |
BLD: doc-build not updating
|
{
"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": "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": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 1 | 2016-12-04T17:41:20Z | 2016-12-12T01:32:05Z | 2016-12-12T01:32:05Z |
CONTRIBUTOR
| null |
https://travis-ci.org/pandas-dev/pandas/jobs/180943536
```
remote: Invalid username or password.
fatal: Authentication failed for 'https://[email protected]/pandas-docs/pandas-docs-travis/'
```
this is after I restored the original credentials.........
cc @wesm
cc @jorisvandenbossche
|
{
"+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/14797/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14797/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14798
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14798/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14798/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14798/events
|
https://github.com/pandas-dev/pandas/pull/14798
| 193,382,501 |
MDExOlB1bGxSZXF1ZXN0OTY0NTA3NDY=
| 14,798 |
allowing datetime and timedelta datatype in pd cut bins
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4158294?v=4",
"events_url": "https://api.github.com/users/aileronajay/events{/privacy}",
"followers_url": "https://api.github.com/users/aileronajay/followers",
"following_url": "https://api.github.com/users/aileronajay/following{/other_user}",
"gists_url": "https://api.github.com/users/aileronajay/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aileronajay",
"id": 4158294,
"login": "aileronajay",
"node_id": "MDQ6VXNlcjQxNTgyOTQ=",
"organizations_url": "https://api.github.com/users/aileronajay/orgs",
"received_events_url": "https://api.github.com/users/aileronajay/received_events",
"repos_url": "https://api.github.com/users/aileronajay/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aileronajay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aileronajay/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aileronajay"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 5 | 2016-12-04T22:52:49Z | 2016-12-22T11:37:03Z | 2016-12-22T11:37:01Z |
CONTRIBUTOR
| null |
xref #14714, follow-on to #14737
|
{
"+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/14798/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14798/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14798.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14798",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14798.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14798"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14799
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14799/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14799/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14799/events
|
https://github.com/pandas-dev/pandas/pull/14799
| 193,388,140 |
MDExOlB1bGxSZXF1ZXN0OTY0NTQ0MDY=
| 14,799 |
ENH: add timedelta as valid type for interpolate with method='time'
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4158294?v=4",
"events_url": "https://api.github.com/users/aileronajay/events{/privacy}",
"followers_url": "https://api.github.com/users/aileronajay/followers",
"following_url": "https://api.github.com/users/aileronajay/following{/other_user}",
"gists_url": "https://api.github.com/users/aileronajay/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aileronajay",
"id": 4158294,
"login": "aileronajay",
"node_id": "MDQ6VXNlcjQxNTgyOTQ=",
"organizations_url": "https://api.github.com/users/aileronajay/orgs",
"received_events_url": "https://api.github.com/users/aileronajay/received_events",
"repos_url": "https://api.github.com/users/aileronajay/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aileronajay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aileronajay/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aileronajay"
}
|
[
{
"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": "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": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 12 | 2016-12-05T00:24:22Z | 2016-12-10T11:20:03Z | 2016-12-10T11:19:49Z |
CONTRIBUTOR
| null |
- [x] closes #6424
- [x] tests added / passed
- [x] passes ``git diff upstream/master | 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/14799/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14799/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14799.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14799",
"merged_at": "2016-12-10T11:19:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14799.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14799"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14800
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14800/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14800/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14800/events
|
https://github.com/pandas-dev/pandas/issues/14800
| 193,388,938 |
MDU6SXNzdWUxOTMzODg5Mzg=
| 14,800 |
DEPR: relocate exceptions in pandas.core.common
|
{
"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": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 7 | 2016-12-05T00:36:52Z | 2017-04-03T21:52:14Z | 2017-04-03T21:52:14Z |
CONTRIBUTOR
| null |
move these to ``pandas.api.exceptions``
using ``pandas.util.depr_module`` this should be straightforward
|
{
"+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/14800/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14800/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/14801
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14801/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14801/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14801/events
|
https://github.com/pandas-dev/pandas/pull/14801
| 193,400,179 |
MDExOlB1bGxSZXF1ZXN0OTY0NjE4Nzg=
| 14,801 |
DOC: add section on groupby().rolling/expanding/resample
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17708295?v=4",
"events_url": "https://api.github.com/users/wandersoncferreira/events{/privacy}",
"followers_url": "https://api.github.com/users/wandersoncferreira/followers",
"following_url": "https://api.github.com/users/wandersoncferreira/following{/other_user}",
"gists_url": "https://api.github.com/users/wandersoncferreira/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wandersoncferreira",
"id": 17708295,
"login": "wandersoncferreira",
"node_id": "MDQ6VXNlcjE3NzA4Mjk1",
"organizations_url": "https://api.github.com/users/wandersoncferreira/orgs",
"received_events_url": "https://api.github.com/users/wandersoncferreira/received_events",
"repos_url": "https://api.github.com/users/wandersoncferreira/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wandersoncferreira/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wandersoncferreira/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wandersoncferreira"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 5 | 2016-12-05T02:52:52Z | 2016-12-10T11:21:49Z | 2016-12-10T11:12:01Z |
CONTRIBUTOR
| null |
- [x] closes #14759
This is my first PR here. Not sure about the missing entries in API reference. Need some guidance on that. The same doubt about the best place to put the xref in computation.rst and timeseries.rst
Thanks.
|
{
"+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/14801/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14801/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14801.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14801",
"merged_at": "2016-12-10T11:12:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14801.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14801"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14802
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14802/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14802/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14802/events
|
https://github.com/pandas-dev/pandas/pull/14802
| 193,409,482 |
MDExOlB1bGxSZXF1ZXN0OTY0Njc4Mzc=
| 14,802 |
DOC: minor format fix
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/666683?v=4",
"events_url": "https://api.github.com/users/swuecho/events{/privacy}",
"followers_url": "https://api.github.com/users/swuecho/followers",
"following_url": "https://api.github.com/users/swuecho/following{/other_user}",
"gists_url": "https://api.github.com/users/swuecho/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/swuecho",
"id": 666683,
"login": "swuecho",
"node_id": "MDQ6VXNlcjY2NjY4Mw==",
"organizations_url": "https://api.github.com/users/swuecho/orgs",
"received_events_url": "https://api.github.com/users/swuecho/received_events",
"repos_url": "https://api.github.com/users/swuecho/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/swuecho/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/swuecho/subscriptions",
"type": "User",
"url": "https://api.github.com/users/swuecho"
}
|
[
{
"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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 1 | 2016-12-05T04:28:29Z | 2016-12-05T08:57:14Z | 2016-12-05T08:57:01Z |
CONTRIBUTOR
| null |
in the original version.
dflow is not displayed.
see: http://pandas.pydata.org/pandas-docs/stable/cookbook.html#splitting
|
{
"+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/14802/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14802/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14802.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14802",
"merged_at": "2016-12-05T08:57:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14802.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14802"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14803
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14803/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14803/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14803/events
|
https://github.com/pandas-dev/pandas/pull/14803
| 193,425,114 |
MDExOlB1bGxSZXF1ZXN0OTY0NzgyNjM=
| 14,803 |
DOC: Fix grammar and formatting typos
|
{
"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": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 9 | 2016-12-05T07:00:13Z | 2016-12-08T16:42:00Z | 2016-12-08T16:41:52Z |
MEMBER
| null |
One grammatical typo, and the rest address small formatting typos when rendering online.
|
{
"+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/14803/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14803/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14803.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14803",
"merged_at": "2016-12-08T16:41:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14803.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14803"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14804
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14804/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14804/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14804/events
|
https://github.com/pandas-dev/pandas/pull/14804
| 193,646,573 |
MDExOlB1bGxSZXF1ZXN0OTY2MzU1MjY=
| 14,804 |
BUG: This should be a 64-bit int, not an 8-bit int
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/233655?v=4",
"events_url": "https://api.github.com/users/mikegraham/events{/privacy}",
"followers_url": "https://api.github.com/users/mikegraham/followers",
"following_url": "https://api.github.com/users/mikegraham/following{/other_user}",
"gists_url": "https://api.github.com/users/mikegraham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mikegraham",
"id": 233655,
"login": "mikegraham",
"node_id": "MDQ6VXNlcjIzMzY1NQ==",
"organizations_url": "https://api.github.com/users/mikegraham/orgs",
"received_events_url": "https://api.github.com/users/mikegraham/received_events",
"repos_url": "https://api.github.com/users/mikegraham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mikegraham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mikegraham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mikegraham"
}
|
[
{
"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": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false | null |
[] | null | 0 | 2016-12-06T00:02:47Z | 2016-12-06T13:15:08Z | 2016-12-06T13:15:08Z |
CONTRIBUTOR
| null |
See #14711
|
{
"+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/14804/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14804/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14804.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14804",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14804.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14804"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14805
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14805/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14805/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14805/events
|
https://github.com/pandas-dev/pandas/pull/14805
| 193,657,369 |
MDExOlB1bGxSZXF1ZXN0OTY2NDMxMjA=
| 14,805 |
BUG: fix hash collisions for from int overflow
|
{
"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": "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": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2016-12-24T22:50:46Z",
"closed_issues": 107,
"created_at": "2016-11-12T15:44:46Z",
"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": "after 0.19.1",
"due_on": "2016-12-24T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/45",
"id": 2131068,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==",
"number": 45,
"open_issues": 0,
"state": "closed",
"title": "0.19.2",
"updated_at": "2017-01-29T09:53:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45"
}
| 2 | 2016-12-06T01:18:20Z | 2016-12-06T13:15:08Z | 2016-12-06T13:15:08Z |
CONTRIBUTOR
| null |
hash collisions brought up: https://github.com/pandas-dev/pandas/issues/14711#issuecomment-264885726
closes #14804
|
{
"+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/14805/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14805/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14805.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14805",
"merged_at": "2016-12-06T13:15:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/14805.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14805"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14806
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14806/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14806/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14806/events
|
https://github.com/pandas-dev/pandas/pull/14806
| 193,704,129 |
MDExOlB1bGxSZXF1ZXN0OTY2NzU1NzQ=
| 14,806 |
BUG: MultiIndex truncated for some non-list arguments
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10678620?v=4",
"events_url": "https://api.github.com/users/groutr/events{/privacy}",
"followers_url": "https://api.github.com/users/groutr/followers",
"following_url": "https://api.github.com/users/groutr/following{/other_user}",
"gists_url": "https://api.github.com/users/groutr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/groutr",
"id": 10678620,
"login": "groutr",
"node_id": "MDQ6VXNlcjEwNjc4NjIw",
"organizations_url": "https://api.github.com/users/groutr/orgs",
"received_events_url": "https://api.github.com/users/groutr/received_events",
"repos_url": "https://api.github.com/users/groutr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/groutr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/groutr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/groutr"
}
|
[
{
"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,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
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 | 2016-12-06T07:46:37Z | 2016-12-11T20:41:27Z | 2016-12-08T04:37:38Z |
CONTRIBUTOR
| null |
closes #14794.
WIP. Discussion/suggestions welcome.
|
{
"+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/14806/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14806/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14806.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14806",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14806.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14806"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14807
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/14807/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14807/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/14807/events
|
https://github.com/pandas-dev/pandas/pull/14807
| 193,708,475 |
MDExOlB1bGxSZXF1ZXN0OTY2Nzg1NzE=
| 14,807 |
TST: Test pivot with categorical 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": "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": "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": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false | null |
[] |
{
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"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": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
}
| 5 | 2016-12-06T08:14:35Z | 2017-12-20T01:59:00Z | 2016-12-06T19:10:40Z |
MEMBER
| null |
closes #8860
closes #8731
closes #9534
Looks like the examples in these issues pass in the master branch. Added test to confirm.
|
{
"+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/14807/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/14807/timeline
| null | 0 |
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/14807.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/14807",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/14807.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14807"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.