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/13004 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13004/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13004/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13004/events | https://github.com/pandas-dev/pandas/pull/13004 | 151,260,358 | MDExOlB1bGxSZXF1ZXN0Njc5NzI3NzM= | 13,004 | DOC: more pd.to_datetime examples | {
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 5 | 2016-04-26T23:08:58Z | 2016-04-27T21:36:53Z | 2016-04-27T13:31:17Z | CONTRIBUTOR | null | xref #12996
| {
"+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/13004/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13004/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13004.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13004",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13004.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13004"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13005 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13005/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13005/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13005/events | https://github.com/pandas-dev/pandas/pull/13005 | 151,264,353 | MDExOlB1bGxSZXF1ZXN0Njc5NzU0NDc= | 13,005 | PERF: don't create the skiprows set if using the c-parser | {
"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": "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": "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-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 2 | 2016-04-26T23:38:06Z | 2016-04-27T12:29:55Z | 2016-04-27T12:29:55Z | CONTRIBUTOR | null | ```
In [4]: DataFrame(np.random.randn(1000000,1)).to_csv('test.csv',index=False)
```
branch
```
In [1]: %memit pd.read_csv('test.csv',skiprows=999999)
peak memory: 65.74 MiB, increment: 1.59 MiB
In [2]: %memit pd.read_csv('test.csv',skiprows=999999)
peak memory: 65.89 MiB, increment: 0.22 MiB
In [3]: %memit pd.read_csv('test.csv',skiprows=999999)
peak memory: 65.98 MiB, increment: 0.28 MiB
```
master
```
In [1]: %memit pd.read_csv('test.csv',skiprows=999999)
peak memory: 169.84 MiB, increment: 105.79 MiB
In [2]: %memit pd.read_csv('test.csv',skiprows=999999)
peak memory: 171.27 MiB, increment: 24.11 MiB
In [3]: %memit pd.read_csv('test.csv',skiprows=999999)
peak memory: 173.39 MiB, increment: 24.63 MiB
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13005/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13005/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13005.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13005",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13005.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13005"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13006 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13006/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13006/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13006/events | https://github.com/pandas-dev/pandas/issues/13006 | 151,268,829 | MDU6SXNzdWUxNTEyNjg4Mjk= | 13,006 | BUG: Type error when comparing numpy scalar to pandas series | {
"avatar_url": "https://avatars.githubusercontent.com/u/1490832?v=4",
"events_url": "https://api.github.com/users/rocurley/events{/privacy}",
"followers_url": "https://api.github.com/users/rocurley/followers",
"following_url": "https://api.github.com/users/rocurley/following{/other_user}",
"gists_url": "https://api.github.com/users/rocurley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rocurley",
"id": 1490832,
"login": "rocurley",
"node_id": "MDQ6VXNlcjE0OTA4MzI=",
"organizations_url": "https://api.github.com/users/rocurley/orgs",
"received_events_url": "https://api.github.com/users/rocurley/received_events",
"repos_url": "https://api.github.com/users/rocurley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rocurley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rocurley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rocurley"
} | [
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-04-27T00:15:47Z | 2016-06-03T15:04:18Z | 2016-06-03T15:04:18Z | NONE | null | Hi,
I'm getting strange results when comparing a numpy float to a pandas series. It seems to think that the numpy float is some sort of array...
``` python
import numpy as np
import pandas as pd
np.float64(0) < pd.Series([1,2,3],dtype=np.float64)
```
#### Expected Output
```
0 True
1 True
2 True
dtype: bool
```
#### Actual Output
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-0803a1472416> in <module>()
1 import numpy as np
2 import pandas as pd
----> 3 np.float64(0) < pd.Series([1,2,3],dtype=np.float64)
global np.float64 = <type 'numpy.float64'>
global pd.Series = <class 'pandas.core.series.Series'>
global dtype = undefined
/usr/local/lib/python2.7/dist-packages/pandas/core/ops.pyc in wrapper(self=0 1.0
1 2.0
2 3.0
dtype: float64, other=array(0.0), axis=None)
737 return NotImplemented
738 elif isinstance(other, (np.ndarray, pd.Index)):
--> 739 if len(self) != len(other):
global len = undefined
self = 0 1.0
1 2.0
2 3.0
dtype: float64
other = array(0.0)
740 raise ValueError('Lengths must match to compare')
741 return self._constructor(na_op(self.values, np.asarray(other)),
TypeError: len() of unsized object
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 4.3.0-040300-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0
nose: None
pip: 8.1.1
setuptools: 20.3.1
Cython: None
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.0.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: 0.8
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13006/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13006/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13007 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13007/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13007/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13007/events | https://github.com/pandas-dev/pandas/pull/13007 | 151,297,598 | MDExOlB1bGxSZXF1ZXN0Njc5OTU5ODU= | 13,007 | BUG: COMPAT:0.18 added scipy version check GH12887 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7530947?v=4",
"events_url": "https://api.github.com/users/jmwoloso/events{/privacy}",
"followers_url": "https://api.github.com/users/jmwoloso/followers",
"following_url": "https://api.github.com/users/jmwoloso/following{/other_user}",
"gists_url": "https://api.github.com/users/jmwoloso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jmwoloso",
"id": 7530947,
"login": "jmwoloso",
"node_id": "MDQ6VXNlcjc1MzA5NDc=",
"organizations_url": "https://api.github.com/users/jmwoloso/orgs",
"received_events_url": "https://api.github.com/users/jmwoloso/received_events",
"repos_url": "https://api.github.com/users/jmwoloso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jmwoloso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jmwoloso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jmwoloso"
} | [
{
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 27 | 2016-04-27T04:40:51Z | 2016-05-03T01:17:01Z | 2016-05-03T01:08:47Z | NONE | null | - [x] closes #12887
- [X] tests passed (Tests specific to this issue now pass with scipy dev and numpy dev versions that I was using when I opened the issue)
- [X] passes `git diff upstream/master | flake8 --diff`
- [X] whatsnew entry
@jreback @TomAugspurger
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13007/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13007/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13007.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13007",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13007.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13007"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13008 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13008/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13008/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13008/events | https://github.com/pandas-dev/pandas/pull/13008 | 151,367,027 | MDExOlB1bGxSZXF1ZXN0NjgwNDA1Mzg= | 13,008 | PERF: Improved performance for .str.encode/decode | {
"avatar_url": "https://avatars.githubusercontent.com/u/53390?v=4",
"events_url": "https://api.github.com/users/Winand/events{/privacy}",
"followers_url": "https://api.github.com/users/Winand/followers",
"following_url": "https://api.github.com/users/Winand/following{/other_user}",
"gists_url": "https://api.github.com/users/Winand/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Winand",
"id": 53390,
"login": "Winand",
"node_id": "MDQ6VXNlcjUzMzkw",
"organizations_url": "https://api.github.com/users/Winand/orgs",
"received_events_url": "https://api.github.com/users/Winand/received_events",
"repos_url": "https://api.github.com/users/Winand/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Winand/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Winand/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Winand"
} | [
{
"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": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 6 | 2016-04-27T11:53:48Z | 2016-04-28T13:40:00Z | 2016-04-28T13:39:57Z | CONTRIBUTOR | null | I need such a patch to read huge `sas` tables encoded in `cp1251`. I'm not experienced enough to determine if such a patch is really needed here, but well.. it gives some speed in certain situations.
Optimize string encoding-decoding, leave default implementation for CPython optimized encodings,
(see https://docs.python.org/3.4/library/codecs.html#standard-encodings)
string
```
import pandas as pd
s1 = pd.Series(pd.util.testing.makeStringIndex(k=100000)).astype('category')
encs = 'utf-8', 'utf-16', 'utf-32', 'latin1', 'iso-8859-1', 'mbcs', 'ascii', 'cp1251', 'cp1252'
for enc in encs:
s2 = s1.str.encode(enc).astype('category')
print(enc)
%timeit s1.str.encode(enc)
%timeit s2.str.decode(enc)
```
unicode
```
import pandas as pd
s1 = pd.Series(pd.util.testing.makeUnicodeIndex(k=100000)).astype('category')
encs = 'utf-8', 'utf-16', 'utf-32'
for enc in encs:
s2 = s1.str.encode(enc).astype('category')
print(enc)
%timeit s1.str.encode(enc)
%timeit s2.str.decode(enc)
```

("10 loops, best of 3: xxx ms per loop")
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13008/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13008/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13008.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13008",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13008.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13008"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13009 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13009/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13009/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13009/events | https://github.com/pandas-dev/pandas/pull/13009 | 151,372,921 | MDExOlB1bGxSZXF1ZXN0NjgwNDQ3MDE= | 13,009 | DOC: fix whatsnew | {
"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": "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-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 2 | 2016-04-27T12:28:23Z | 2016-04-27T13:33:34Z | 2016-04-27T13:33:18Z | MEMBER | null | Fixes few doc build warnings + small restructure of headings more consistent with previous releases)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13009/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13009/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13009.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13009",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13009.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13009"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13010 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13010/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13010/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13010/events | https://github.com/pandas-dev/pandas/pull/13010 | 151,407,190 | MDExOlB1bGxSZXF1ZXN0NjgwNjc4NjQ= | 13,010 | COMPAT: some compatibility fixes with new numpies | {
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 8 | 2016-04-27T14:57:16Z | 2016-04-27T18:32:25Z | 2016-04-27T18:32:25Z | 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/13010/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13010/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13010.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13010",
"merged_at": "2016-04-27T18:32:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13010.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13010"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/13011 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13011/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13011/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13011/events | https://github.com/pandas-dev/pandas/pull/13011 | 151,415,787 | MDExOlB1bGxSZXF1ZXN0NjgwNzM5MTA= | 13,011 | API, DOC: Clarify and Enforce Array to be 1-D during SparseArray Init Construction | {
"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": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 3 | 2016-04-27T15:29:39Z | 2016-04-28T14:04:38Z | 2016-04-28T14:04:31Z | MEMBER | null | Title is self-explanatory. Note that this behaviour was already implicitly enforced, but this makes the enforcement explicit. Closes #12794.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13011/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13011/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13011.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13011",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13011.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13011"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13012 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13012/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13012/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13012/events | https://github.com/pandas-dev/pandas/pull/13012 | 151,417,985 | MDExOlB1bGxSZXF1ZXN0NjgwNzU0ODQ= | 13,012 | API, DEPR: Raise and Deprecate Reshape for Pandas Objects | {
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 30 | 2016-04-27T15:38:35Z | 2016-07-14T10:21:38Z | 2016-07-14T10:21:25Z | MEMBER | null | `reshape` largely exists for compat reasons with `numpy` but in the interests of moving away from that, this PR will cause objects like `Series`, `Index`, and `Categorical` to deprecate OR raise when such a method is called.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13012/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13012/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13012.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13012",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13012.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13012"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13013 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13013/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13013/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13013/events | https://github.com/pandas-dev/pandas/issues/13013 | 151,501,494 | MDU6SXNzdWUxNTE1MDE0OTQ= | 13,013 | cannot truncate a timeseries without sorting it first | {
"avatar_url": "https://avatars.githubusercontent.com/u/17550021?v=4",
"events_url": "https://api.github.com/users/hshteingart/events{/privacy}",
"followers_url": "https://api.github.com/users/hshteingart/followers",
"following_url": "https://api.github.com/users/hshteingart/following{/other_user}",
"gists_url": "https://api.github.com/users/hshteingart/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hshteingart",
"id": 17550021,
"login": "hshteingart",
"node_id": "MDQ6VXNlcjE3NTUwMDIx",
"organizations_url": "https://api.github.com/users/hshteingart/orgs",
"received_events_url": "https://api.github.com/users/hshteingart/received_events",
"repos_url": "https://api.github.com/users/hshteingart/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hshteingart/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hshteingart/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hshteingart"
} | [
{
"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": "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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| null | 2 | 2016-04-27T22:00:26Z | 2016-04-27T22:55:02Z | 2016-04-27T22:54:52Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```
pd.Series(index=pd.to_datetime(['2016-04-15 21:18:04.683115', '2016-04-15 21:18:05.384231',
'2016-04-15 21:18:05.504638', '2016-04-15 21:18:05.510117',
'2016-04-15 21:18:05.370865', '2016-04-15 21:18:05.577177',
'2016-04-15 21:18:06.088652', '2016-04-15 21:18:05.865269',
'2016-04-15 21:18:05.867652', '2016-04-15 21:18:07.207526'])).truncate(before = '2016-04-15 21:18:03.577077', after ='2016-04-15 22:18:03.577077')
```
I get the error:
> ValueError: index must be monotonic increasing or decreasing \pandas\indexes\base.py", line 2791, in _searchsorted_monotonic
#### Expected Output
```
2016-04-15 21:18:04.683115 NaN
2016-04-15 21:18:05.384231 NaN
2016-04-15 21:18:05.504638 NaN
2016-04-15 21:18:05.510117 NaN
2016-04-15 21:18:05.370865 NaN
2016-04-15 21:18:05.577177 NaN
2016-04-15 21:18:06.088652 NaN
2016-04-15 21:18:05.865269 NaN
2016-04-15 21:18:05.867652 NaN
2016-04-15 21:18:07.207526 NaN
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.3
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: None
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
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: None
jinja2: 2.8
boto: 2.39.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/13013/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13013/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13014 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13014/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13014/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13014/events | https://github.com/pandas-dev/pandas/pull/13014 | 151,555,281 | MDExOlB1bGxSZXF1ZXN0NjgxNjc0ODE= | 13,014 | BUG: .isin(...) now coerces sets to lists | {
"avatar_url": "https://avatars.githubusercontent.com/u/1684060?v=4",
"events_url": "https://api.github.com/users/mao-liu/events{/privacy}",
"followers_url": "https://api.github.com/users/mao-liu/followers",
"following_url": "https://api.github.com/users/mao-liu/following{/other_user}",
"gists_url": "https://api.github.com/users/mao-liu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mao-liu",
"id": 1684060,
"login": "mao-liu",
"node_id": "MDQ6VXNlcjE2ODQwNjA=",
"organizations_url": "https://api.github.com/users/mao-liu/orgs",
"received_events_url": "https://api.github.com/users/mao-liu/received_events",
"repos_url": "https://api.github.com/users/mao-liu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mao-liu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mao-liu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mao-liu"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 8 | 2016-04-28T05:54:12Z | 2016-05-01T22:25:47Z | 2016-05-01T15:29:52Z | NONE | null | - [ ] closes #12988
- [ ] tests added, passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] `comp.isin(values)` now coerces `values` from a set into a list. This was failing when `comp` is a datetime dtype and `values` is a set, where `.isin` will try to run `to_datetime(values)` on the unordered set and fail.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13014/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13014/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13014.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13014",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13014.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13014"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13015 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13015/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13015/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13015/events | https://github.com/pandas-dev/pandas/issues/13015 | 151,564,999 | MDU6SXNzdWUxNTE1NjQ5OTk= | 13,015 | TST: Can't Seem to Run Individual Test Suites in pandas/io | {
"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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
]
| closed | false | null | []
| null | 5 | 2016-04-28T07:08:34Z | 2016-04-29T19:00:45Z | 2016-04-29T18:55:02Z | MEMBER | null | ```
$ python /home/user/Repositories/pandas/pandas/io/tests/test_data.py
Traceback (most recent call last):
File "/home/user/Repositories/pandas/pandas/io/tests/test_data.py", line 4, in <module>
from pandas import compat
File "/home/user/miniconda2/envs/pandas-dev/lib/python2.7/site-packages/pandas/__init__.py", line 39, in <module>
from pandas.core.api import *
File "/home/user/miniconda2/envs/pandas-dev/lib/python2.7/site-packages/pandas/core/api.py", line 10, in <module>
from pandas.core.groupby import Grouper
File "/home/user/miniconda2/envs/pandas-dev/lib/python2.7/site-packages/pandas/core/groupby.py", line 18, in <module>
from pandas.core.frame import DataFrame
File "/home/user/miniconda2/envs/pandas-dev/lib/python2.7/site-packages/pandas/core/frame.py", line 39, in <module>
from pandas.core.series import Series
File "/home/user/miniconda2/envs/pandas-dev/lib/python2.7/site-packages/pandas/core/series.py", line 2929, in <module>
import pandas.tools.plotting as _gfx # noqa
File "/home/user/miniconda2/envs/pandas-dev/lib/python2.7/site-packages/pandas/tools/plotting.py", line 25, in <module>
import pandas.tseries.converter as conv
File "/home/user/miniconda2/envs/pandas-dev/lib/python2.7/site-packages/pandas/tseries/converter.py", line 7, in <module>
import matplotlib.units as units
File "/home/user/miniconda2/envs/pandas-dev/lib/python2.7/site-packages/matplotlib/__init__.py", line 135, in <module>
__version__ = str(get_versions()['version'])
File "/home/user/miniconda2/envs/pandas-dev/lib/python2.7/site-packages/matplotlib/_version.py", line 21, in get_versions
return json.loads(version_json)
AttributeError: 'module' object has no attribute 'loads'
```
## INSTALLED VERSIONS
pandas: 0.18.0+174.g65ed3af
nose: 1.3.7
pip: 8.1.1
setuptools: 20.0
Cython: 0.23.4
numpy: 1.11.0
scipy: 0.17.0
statsmodels: 0.6.1
xarray: 0.7.2
IPython: None
sphinx: None
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: 2.3.3
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: 0.9999999
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.0
pandas_datareader: None
Somewhere in the last 32 commits or so to the `master` branch this broke because my branch for refactoring `test_parsers` was that many commits behind when it last worked. I also confirmed the breakage on `master` too.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13015/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13015/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13016 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13016/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13016/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13016/events | https://github.com/pandas-dev/pandas/issues/13016 | 151,646,081 | MDU6SXNzdWUxNTE2NDYwODE= | 13,016 | Pandas pytables interface doesn't create empty table datasets | {
"avatar_url": "https://avatars.githubusercontent.com/u/2169748?v=4",
"events_url": "https://api.github.com/users/damionw/events{/privacy}",
"followers_url": "https://api.github.com/users/damionw/followers",
"following_url": "https://api.github.com/users/damionw/following{/other_user}",
"gists_url": "https://api.github.com/users/damionw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/damionw",
"id": 2169748,
"login": "damionw",
"node_id": "MDQ6VXNlcjIxNjk3NDg=",
"organizations_url": "https://api.github.com/users/damionw/orgs",
"received_events_url": "https://api.github.com/users/damionw/received_events",
"repos_url": "https://api.github.com/users/damionw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/damionw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/damionw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/damionw"
} | [
{
"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"
}
]
| 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"
} | 27 | 2016-04-28T13:49:01Z | 2021-04-23T05:11:04Z | null | NONE | null | Pandas used to allow the writing of empty HDF5 datasets through its pytables interface code. However, after upgrading to 0.17 (from 0.11), we've discovered that this behaviour is intentionally
short circuited. The library behaves as though the dataset is being written, but simply ignores the request and the resulting HDF5 file doesn't contain the requested table.
The offending code is in pandas/io/pytables.py:_write_to_group()
```
# we don't want to store a table node at all if are object is 0-len
# as there are not dtypes
if getattr(value, 'empty', None) and (format == 'table' or append):
return
```
We've worked around it by patching our installed copy of pandas, but we'd like to know the provocation behind this code before submitting a pull request. The comment implies that the lack of dtypes in the dataset is the cause, however each pandas column has type information even if empty.
Any clarification would be appreciated
| {
"+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/13016/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13016/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13017 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13017/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13017/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13017/events | https://github.com/pandas-dev/pandas/issues/13017 | 151,649,448 | MDU6SXNzdWUxNTE2NDk0NDg= | 13,017 | Three or more unnamed fields block loc assignment | {
"avatar_url": "https://avatars.githubusercontent.com/u/4622202?v=4",
"events_url": "https://api.github.com/users/JakeCowton/events{/privacy}",
"followers_url": "https://api.github.com/users/JakeCowton/followers",
"following_url": "https://api.github.com/users/JakeCowton/following{/other_user}",
"gists_url": "https://api.github.com/users/JakeCowton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JakeCowton",
"id": 4622202,
"login": "JakeCowton",
"node_id": "MDQ6VXNlcjQ2MjIyMDI=",
"organizations_url": "https://api.github.com/users/JakeCowton/orgs",
"received_events_url": "https://api.github.com/users/JakeCowton/received_events",
"repos_url": "https://api.github.com/users/JakeCowton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JakeCowton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JakeCowton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JakeCowton"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"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": 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"
} | 10 | 2016-04-28T14:03:33Z | 2021-04-24T03:50:22Z | 2021-04-24T03:50:21Z | NONE | null | Writing a dataframe to csv using `df.to_csv("/path/to/file.csv")` causes the creation of an "unnamed" field containing the indexes of the rows. Continually writing/reading to/from this file will result in many "unnamed" fields. Once there are three unnamed fields you can no longer use loc to replace values, what's more, it fails silently.
```
In [2]: df = DataFrame({'A': [1,2,3],'B': [4,5,501]})
In [3]: df
Out[3]:
A B
0 1 4
1 2 5
2 3 501
In [4]: df.B.loc[df.B > 500]
Out[4]:
2 501
Name: B, dtype: int64
In [5]: df.B.loc[df.B > 500] = None
In [6]: df
Out[6]:
A B
0 1 4.0
1 2 5.0
2 3 NaN
```
So far so good, I was able to replace all values in `df.B` with `NaN`. I then write this out and read it back in
```
In [7]: df.to_csv("./test.csv")
In [8]: df = read_csv("./test.csv")
In [9]: df.columns
Out[9]: Index([u'Unnamed: 0', u'A', u'B'], dtype='object')
In [10]: df
Out[10]:
Unnamed: 0 A B
0 0 1 4.0
1 1 2 5.0
2 2 3 NaN
```
As you can see, this has create an unnamed field, but let's continue
```
In [14]: df.B.fillna(501, inplace=True)
```
This is jsut to get 501 in place of the `NaN` I created earlier which I forgot to do before writing out
```
In [15]: df.B
Out[15]:
0 4.0
1 5.0
2 501.0
Name: B, dtype: float64
In [16]: df.B.loc[df.B > 500]
Out[16]:
2 501.0
Name: B, dtype: float64
In [17]: df.B.loc[df.B > 500] = None
...SettingWithCopyWarning...
In [18]: df.B
Out[18]:
0 4.0
1 5.0
2 NaN
Name: B, dtype: float64
```
Everything working fine
```
In [19]: df.fillna(501, inplace=True)
In [20]: df.to_csv("./test.csv")
In [21]: df = read_csv("./test.csv")
In [22]: df.columns
Out[22]: Index([u'Unnamed: 0', u'Unnamed: 0.1', u'A', u'B'], dtype='object')
In [23]: df
Out[23]:
Unnamed: 0 Unnamed: 0.1 A B
0 0 0 1 4.0
1 1 1 2 5.0
2 2 2 3 501.0
```
Writing and reading again creates a 2nd unnamed field
```
In [24]: df.B.loc[df.B > 500]
Out[24]:
2 501.0
Name: B, dtype: float64
In [25]: df.B.loc[df.B > 500] = None
In [26]: df.B
Out[26]:
0 4.0
1 5.0
2 NaN
Name: B, dtype: float64
```
Which is no problem, everything still works so far...however
```
In [27]: df.fillna(501, inplace=True)
In [28]: df
Out[28]:
Unnamed: 0 Unnamed: 0.1 A B
0 0 0 1 4.0
1 1 1 2 5.0
2 2 2 3 501.0
In [29]: df.to_csv("./test.csv")
In [30]: df = read_csv("./test.csv")
In [31]: df.columns
Out[31]: Index([u'Unnamed: 0', u'Unnamed: 0.1', u'Unnamed: 0.1', u'A', u'B'], dtype='object')
In [32]: df
Out[32]:
Unnamed: 0 Unnamed: 0.1 Unnamed: 0.1 A B
0 0 0 0 1 4.0
1 1 1 1 2 5.0
2 2 2 2 3 501.0
```
We now have 3 unnamed fields
```
In [33]: df.B.loc[df.B > 500]
Out[33]:
2 501.0
Name: B, dtype: float64
In [34]: df.B.loc[df.B > 500] = None
In [35]: df.B
Out[35]:
0 4.0
1 5.0
2 501.0
Name: B, dtype: float64
```
The method of replacing all values over 500 with `Nan` no longer works but also throws no errors or warnings.
You CAN get around this using `df.loc[df.B > 500, 'B'] = None` but obviously you shouldn't have to.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13017/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13017/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13018 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13018/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13018/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13018/events | https://github.com/pandas-dev/pandas/issues/13018 | 151,674,728 | MDU6SXNzdWUxNTE2NzQ3Mjg= | 13,018 | Failed ri2py conversion of Vectors.ListVector object to Python dictionary | {
"avatar_url": "https://avatars.githubusercontent.com/u/13602663?v=4",
"events_url": "https://api.github.com/users/ParfaitG/events{/privacy}",
"followers_url": "https://api.github.com/users/ParfaitG/followers",
"following_url": "https://api.github.com/users/ParfaitG/following{/other_user}",
"gists_url": "https://api.github.com/users/ParfaitG/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ParfaitG",
"id": 13602663,
"login": "ParfaitG",
"node_id": "MDQ6VXNlcjEzNjAyNjYz",
"organizations_url": "https://api.github.com/users/ParfaitG/orgs",
"received_events_url": "https://api.github.com/users/ParfaitG/received_events",
"repos_url": "https://api.github.com/users/ParfaitG/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ParfaitG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ParfaitG/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ParfaitG"
} | [
{
"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"
} | 10 | 2016-04-28T15:36:02Z | 2017-01-16T16:22:36Z | 2016-04-28T15:46:22Z | CONTRIBUTOR | null | Current conversion of R objects into Python usng `pandas2ri.ri2py` does not work for the `<class 'rpy2.robjects.vectors.ListVector'>` object. As noted [here](http://pandas.pydata.org/pandas-docs/stable/r_interface.html), `pandas2ri.py2ri()` and `pandas2ri.ri2py()` are current methods to handle conversion. However, previous deprecated `com.convert_robj()` correctly converts the R object to Python dictionary:
``` python
import rpy2
from rpy2.robjects.numpy2ri import numpy2ri
from rpy2.robjects.packages import importr
import numpy as np
# FISHER EXACT TEST EXAMPLE
cont = np.reshape(np.arange(0,4), (2,2))
statspackage = importr('stats', robject_translations={'format_perc': '_format_perc'})
result = statspackage.fisher_test(numpy2ri(cont), simulate_p_value = True, B = 100)
# DEPRECATED CONVERSION
import pandas.rpy.common as com
pyresultdict = com.convert_robj(result)
print(type(pyresultdict)) # PYTHON DICTIONARY TYPE
# CURRENT CONVERSION
from rpy2.robjects import pandas2ri
pandas2ri.activate()
pyresultdict = pandas2ri.ri2py(result)
print(type(pyresultdict)) # REMAINS R LISTVECTOR TYPE
```
``` python
# Expected Output
<class 'dict'>
<class 'dict'>
```
```
# output of rpy2.__version__
2.5.4
# output of pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.1.final.0
python-bits: 64
OS: Windows
OS-release: 8
machine: AMD64
processor: Intel64 Family 6 Model 37 Stepping 2, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.0
nose: None
pip: 8.1.0
setuptools: 2.1
Cython: None
numpy: 1.10.4
scipy: 0.17.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/13018/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13018/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13019 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13019/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13019/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13019/events | https://github.com/pandas-dev/pandas/issues/13019 | 151,691,376 | MDU6SXNzdWUxNTE2OTEzNzY= | 13,019 | Categorical dtypes cause error when attempting stacked bar plot | {
"avatar_url": "https://avatars.githubusercontent.com/u/1315854?v=4",
"events_url": "https://api.github.com/users/msure/events{/privacy}",
"followers_url": "https://api.github.com/users/msure/followers",
"following_url": "https://api.github.com/users/msure/following{/other_user}",
"gists_url": "https://api.github.com/users/msure/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/msure",
"id": 1315854,
"login": "msure",
"node_id": "MDQ6VXNlcjEzMTU4NTQ=",
"organizations_url": "https://api.github.com/users/msure/orgs",
"received_events_url": "https://api.github.com/users/msure/received_events",
"repos_url": "https://api.github.com/users/msure/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/msure/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/msure/subscriptions",
"type": "User",
"url": "https://api.github.com/users/msure"
} | [
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"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": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 4 | 2016-04-28T16:49:51Z | 2016-04-30T14:25:43Z | 2016-04-30T14:25:43Z | NONE | null | #### Code Setup w/ Fake Dataset
``` python
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
# running this code in terminal/ipython
%matplotlib qt
import matplotlib.pylab
import matplotlib.pyplot as plt
geographies = ['north america', 'central/south america', 'europe', 'africa', 'asia', 'oceania']
geo_proportions = [0.35, 0.10, 0.30, 0.05, 0.15, 0.05]
task_proportions = [[0.3,0.7],[0.4,0.6],[0.3,0.7],[0.5,0.5],[0.7,0.3],[0.4,0.6]]
cats = ['unsuccessful','completed']
pieces = []
for geo, geo_prop, task_prop in zip(geographies,geo_proportions,task_proportions):
shape = int(geo_prop * 100000)
data = {'intl':np.repeat(geo,shape), 'task_completion':np.random.choice(cats, shape, p=task_prop)}
frame = DataFrame(data)
pieces.append(frame)
df = pd.concat(pieces, ignore_index=True)
```
Here's data frame at this point:
``` python
In [3]: df.info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 100000 entries, 0 to 99999
Data columns (total 2 columns):
intl 100000 non-null object
task_completion 100000 non-null object
dtypes: object(2)
memory usage: 2.3+ MB
```
#### Expected Output
``` python
# when running this code I expect the following chart
df.groupby(['task_completion','intl']).size().unstack(0).plot(kind='bar',stacked=True)
```

#### Error
However, my real dataset uses Categorical types:
``` python
df['intl'] = df['intl'].astype('category')
df['task_completion'] = df['task_completion'].astype('category')
df['task_completion'] = df['task_completion'].cat.set_categories(['unsuccessful','completed'], ordered=True)
```
Now frame is:
``` python
In [5]: df.info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 100000 entries, 0 to 99999
Data columns (total 2 columns):
intl 100000 non-null category
task_completion 100000 non-null category
dtypes: category(2)
memory usage: 976.6 KB
```
And I get the following error when trying to plot:
``` python
In [6]: df.groupby(['task_completion','intl']).size().unstack(0).plot(kind='bar',stacked=True)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-8d6e104892c4> in <module>()
----> 1 df.groupby(['task_completion','intl']).size().unstack(0).plot(kind='bar',stacked=True)
/Users/adrianpalacios/anaconda/lib/python3.4/site-packages/pandas/tools/plotting.py in __call__(self, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds)
3735 fontsize=fontsize, colormap=colormap, table=table,
3736 yerr=yerr, xerr=xerr, secondary_y=secondary_y,
-> 3737 sort_columns=sort_columns, **kwds)
3738 __call__.__doc__ = plot_frame.__doc__
3739
/Users/adrianpalacios/anaconda/lib/python3.4/site-packages/pandas/tools/plotting.py in plot_frame(data, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds)
2609 yerr=yerr, xerr=xerr,
2610 secondary_y=secondary_y, sort_columns=sort_columns,
-> 2611 **kwds)
2612
2613
/Users/adrianpalacios/anaconda/lib/python3.4/site-packages/pandas/tools/plotting.py in _plot(data, x, y, subplots, ax, kind, **kwds)
2436 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds)
2437
-> 2438 plot_obj.generate()
2439 plot_obj.draw()
2440 return plot_obj.result
/Users/adrianpalacios/anaconda/lib/python3.4/site-packages/pandas/tools/plotting.py in generate(self)
1023 self._compute_plot_data()
1024 self._setup_subplots()
-> 1025 self._make_plot()
1026 self._add_table()
1027 self._make_legend()
/Users/adrianpalacios/anaconda/lib/python3.4/site-packages/pandas/tools/plotting.py in _make_plot(self)
1959 rect = self._plot(ax, self.ax_pos + w, y, self.bar_width,
1960 start=start, label=label,
-> 1961 log=self.log, **kwds)
1962 pos_prior = pos_prior + np.where(mask, y, 0)
1963 neg_prior = neg_prior + np.where(mask, 0, y)
/Users/adrianpalacios/anaconda/lib/python3.4/site-packages/pandas/tools/plotting.py in _plot(cls, ax, x, y, w, start, log, **kwds)
1913 @classmethod
1914 def _plot(cls, ax, x, y, w, start=0, log=False, **kwds):
-> 1915 return ax.bar(x, y, w, bottom=start, log=log, **kwds)
1916
1917 @property
/Users/adrianpalacios/anaconda/lib/python3.4/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs)
1810 warnings.warn(msg % (label_namer, func.__name__),
1811 RuntimeWarning, stacklevel=2)
-> 1812 return func(ax, *args, **kwargs)
1813 pre_doc = inner.__doc__
1814 if pre_doc is None:
/Users/adrianpalacios/anaconda/lib/python3.4/site-packages/matplotlib/axes/_axes.py in bar(self, left, height, width, bottom, **kwargs)
2127 edgecolor=e,
2128 linewidth=lw,
-> 2129 label='_nolegend_'
2130 )
2131 r.update(kwargs)
/Users/adrianpalacios/anaconda/lib/python3.4/site-packages/matplotlib/patches.py in __init__(self, xy, width, height, angle, **kwargs)
640
641 self._x = float(xy[0])
--> 642 self._y = float(xy[1])
643 self._width = float(width)
644 self._height = float(height)
TypeError: only length-1 arrays can be converted to Python scalars
```
Interestingly, taking out the stacked kwarg works:
``` python
df.groupby(['task_completion','intl']).size().unstack(0).plot(kind='bar')
```
#### Output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.4.4.final.0
python-bits: 64
OS: Darwin
OS-release: 15.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.0
setuptools: 20.2.2
Cython: 0.22.1
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.0
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: None
httplib2: 0.9.1
apiclient: None
sqlalchemy: 1.0.5
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.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/13019/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13019/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13020 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13020/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13020/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13020/events | https://github.com/pandas-dev/pandas/issues/13020 | 151,717,849 | MDU6SXNzdWUxNTE3MTc4NDk= | 13,020 | Unclear error produced by resampling with NaT in Index | {
"avatar_url": "https://avatars.githubusercontent.com/u/1348834?v=4",
"events_url": "https://api.github.com/users/patricktokeeffe/events{/privacy}",
"followers_url": "https://api.github.com/users/patricktokeeffe/followers",
"following_url": "https://api.github.com/users/patricktokeeffe/following{/other_user}",
"gists_url": "https://api.github.com/users/patricktokeeffe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/patricktokeeffe",
"id": 1348834,
"login": "patricktokeeffe",
"node_id": "MDQ6VXNlcjEzNDg4MzQ=",
"organizations_url": "https://api.github.com/users/patricktokeeffe/orgs",
"received_events_url": "https://api.github.com/users/patricktokeeffe/received_events",
"repos_url": "https://api.github.com/users/patricktokeeffe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/patricktokeeffe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/patricktokeeffe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/patricktokeeffe"
} | [
{
"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"
},
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 2 | 2016-04-28T18:58:36Z | 2016-05-18T22:10:30Z | 2016-05-18T22:10:30Z | CONTRIBUTOR | null | Similar to #4746, trying to `resample` with an index containing `NaT` produces rather ambiguous error messages of the form:
> ValueError: Shape of passed values is (2, 5), indices imply (2, 4)
Something like `cannot resample from index containing Not-a-Time (NaT)` would be more helpful to users.
#### MWE
``` python
import pandas as pd
import numpy as np
times = pd.DatetimeIndex(['20160428T110000',
'20160428T110001',
'20160428T110002',
'20160428T110003',
'20160428T110004',
pd.NaT,
'20160428T110001',
'20160428T110002',
'20160428T110003',
'20160428T110004'])
df = pd.DataFrame(np.random.randn(10,2),
index=times,
columns=['A', 'B'])
df.resample('3s')
```
_This example index contains duplicate values, but results are the same w/ or w/o them._
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 32
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.15.2
nose: 1.3.4
Cython: 0.21.1
numpy: 1.8.2
scipy: 0.14.0
statsmodels: 0.6.1
IPython: 2.3.1
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.3
pytz: 2014.10
bottleneck: None
tables: 3.1.1
numexpr: 2.4
matplotlib: 1.4.2
openpyxl: None
xlrd: 0.9.3
xlwt: None
xlsxwriter: 0.6.4
lxml: 3.4.1
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
rpy2: 2.5.2
sqlalchemy: 0.9.8
pymysql: None
psycopg2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13020/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13020/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13021 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13021/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13021/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13021/events | https://github.com/pandas-dev/pandas/issues/13021 | 151,738,115 | MDU6SXNzdWUxNTE3MzgxMTU= | 13,021 | to_html formatter not called for float values in a mixed-type column | {
"avatar_url": "https://avatars.githubusercontent.com/u/4314666?v=4",
"events_url": "https://api.github.com/users/patricksurry/events{/privacy}",
"followers_url": "https://api.github.com/users/patricksurry/followers",
"following_url": "https://api.github.com/users/patricksurry/following{/other_user}",
"gists_url": "https://api.github.com/users/patricksurry/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/patricksurry",
"id": 4314666,
"login": "patricksurry",
"node_id": "MDQ6VXNlcjQzMTQ2NjY=",
"organizations_url": "https://api.github.com/users/patricksurry/orgs",
"received_events_url": "https://api.github.com/users/patricksurry/received_events",
"repos_url": "https://api.github.com/users/patricksurry/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/patricksurry/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/patricksurry/subscriptions",
"type": "User",
"url": "https://api.github.com/users/patricksurry"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
]
| 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"
} | 8 | 2016-04-28T20:40:37Z | 2021-04-24T03:52:09Z | null | NONE | null | #### When column x has float64 type, the custom formatter is applied to every value
```
t = pd.DataFrame([[0], [10.4], [3]], columns=['x'])
display(HTML(t.to_html(formatters=dict(x='xxx'.format))))
x
------
0 xxx
1 xxx
2 xxx
```
#### But when column x is mixed type, the formatter isn't called for (only) floating point values
```
t = pd.DataFrame([['a'], [0], [10.4], [3]], columns=['x'])
display(HTML(t.to_html(formatters=dict(x='xxx'.format))))
x
------
0 xxx
1 xxx
2 10.4
3 xxx
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.11.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
pandas: 0.18.0
nose: None
pip: 1.5.4
setuptools: 20.7.0
Cython: None
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.1.2
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2016.3
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: None
boto: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13021/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13021/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13022 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13022/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13022/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13022/events | https://github.com/pandas-dev/pandas/issues/13022 | 151,738,166 | MDU6SXNzdWUxNTE3MzgxNjY= | 13,022 | BUG: resample with TimedeltaIndex, fenceposts are off | {
"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": "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"
} | 3 | 2016-04-28T20:40:50Z | 2018-09-05T11:31:04Z | 2018-09-05T11:31:04Z | CONTRIBUTOR | null | brought up in #12925
some examples in #15167
Resampling fence posts are off when upsampling < 1 Day.
```
In [5]: df = DataFrame(data=[[1, 3], [-5, 10], [0, 0]],index=pd.timedelta_range('00:00:00','00:10:00',freq='5T'))
In [6]: df.resample('1T').asfreq()
Out[6]:
0 1
00:00:00 1.0 3.0
00:01:00 NaN NaN
00:02:00 NaN NaN
00:03:00 NaN NaN
00:04:00 NaN NaN
00:05:00 -5.0 10.0
00:06:00 NaN NaN
00:07:00 NaN NaN
00:08:00 NaN NaN
00:09:00 NaN NaN
In [8]: df.resample('1T').mean()
Out[8]:
0 1
00:00:00 1.0 3.0
00:01:00 NaN NaN
00:02:00 NaN NaN
00:03:00 NaN NaN
00:04:00 NaN NaN
00:05:00 -5.0 10.0
00:06:00 NaN NaN
00:07:00 NaN NaN
00:08:00 NaN NaN
00:09:00 NaN NaN
00:10:00 0.0 0.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/13022/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13022/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13023 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13023/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13023/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13023/events | https://github.com/pandas-dev/pandas/issues/13023 | 151,769,755 | MDU6SXNzdWUxNTE3Njk3NTU= | 13,023 | equals method of dataframe doesn't return the same as (df1 == df2).all().all() | {
"avatar_url": "https://avatars.githubusercontent.com/u/11671536?v=4",
"events_url": "https://api.github.com/users/d-chambers/events{/privacy}",
"followers_url": "https://api.github.com/users/d-chambers/followers",
"following_url": "https://api.github.com/users/d-chambers/following{/other_user}",
"gists_url": "https://api.github.com/users/d-chambers/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/d-chambers",
"id": 11671536,
"login": "d-chambers",
"node_id": "MDQ6VXNlcjExNjcxNTM2",
"organizations_url": "https://api.github.com/users/d-chambers/orgs",
"received_events_url": "https://api.github.com/users/d-chambers/received_events",
"repos_url": "https://api.github.com/users/d-chambers/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/d-chambers/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/d-chambers/subscriptions",
"type": "User",
"url": "https://api.github.com/users/d-chambers"
} | [
{
"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": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 2 | 2016-04-29T00:04:47Z | 2016-04-29T13:57:01Z | 2016-04-29T13:56:53Z | NONE | null | I have created two dataframes with earthquake data that I am trying to compare. The elements in the dataframes should be equal. The files are attached below.
[broken_df.zip](https://github.com/pydata/pandas/files/241604/broken_df.zip)
#### Code Sample, a copy-pastable example if possible
``` python
import pandas as pd
df1 = pd.read_pickle('d1.pkl') # these files are attached in the .zip
df2 = pd.read_pickle('d2.pkl')
df1.equals(df2) # returns False
(df1 == df2).all().all() # returns True
```
However, If I save the dataframes as csv files (also attached), load them and rerun the same code it returns True for both checks as expected.
#### Expected Output
``` Python
True
True
```
#### output of ``pd.show_versions()
## INSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-85-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 8.1.0
setuptools: 20.7.0
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: None
IPython: 4.0.3
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.6
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.5.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
Jinja2: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13023/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13023/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13024 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13024/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13024/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13024/events | https://github.com/pandas-dev/pandas/pull/13024 | 151,771,884 | MDExOlB1bGxSZXF1ZXN0NjgzMTA5Mzg= | 13,024 | Update truncate() documentation and testcases | {
"avatar_url": "https://avatars.githubusercontent.com/u/50109?v=4",
"events_url": "https://api.github.com/users/gliptak/events{/privacy}",
"followers_url": "https://api.github.com/users/gliptak/followers",
"following_url": "https://api.github.com/users/gliptak/following{/other_user}",
"gists_url": "https://api.github.com/users/gliptak/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gliptak",
"id": 50109,
"login": "gliptak",
"node_id": "MDQ6VXNlcjUwMTA5",
"organizations_url": "https://api.github.com/users/gliptak/orgs",
"received_events_url": "https://api.github.com/users/gliptak/received_events",
"repos_url": "https://api.github.com/users/gliptak/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gliptak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gliptak/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gliptak"
} | [
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 12 | 2016-04-29T00:25:06Z | 2016-05-07T22:41:26Z | 2016-05-07T16:53:42Z | CONTRIBUTOR | null | - [x] closes #11382
- [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/13024/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13024/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13024.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13024",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13024.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13024"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13025 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13025/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13025/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13025/events | https://github.com/pandas-dev/pandas/pull/13025 | 151,778,642 | MDExOlB1bGxSZXF1ZXN0NjgzMTU2Njk= | 13,025 | BUG:plot.bar misalignment when width=1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 4 | 2016-04-29T01:42:49Z | 2016-04-29T16:09:20Z | 2016-04-29T16:09:14Z | MEMBER | null | - [x] closes #12979
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Enabled true division. It also prevents differences between py2 / py3.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13025/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13025/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13025.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13025",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13025.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13025"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13026 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13026/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13026/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13026/events | https://github.com/pandas-dev/pandas/pull/13026 | 151,783,543 | MDExOlB1bGxSZXF1ZXN0NjgzMTg5Nzc= | 13,026 | BUG/TST: Calling shift on a DatetimeIndex of length 0 returns an Index in… | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 2 | 2016-04-29T02:48:16Z | 2016-04-29T15:59:42Z | 2016-04-29T15:59:08Z | MEMBER | null | - [x] closes #9903
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- ~~whatsnew entry~~
No what's new as the fixed timing is unclear.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13026/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13026/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13026.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13026",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13026.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13026"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13027 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13027/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13027/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13027/events | https://github.com/pandas-dev/pandas/issues/13027 | 151,785,732 | MDU6SXNzdWUxNTE3ODU3MzI= | 13,027 | DEPR: pd.Series.between | {
"avatar_url": "https://avatars.githubusercontent.com/u/3209516?v=4",
"events_url": "https://api.github.com/users/colinalexander/events{/privacy}",
"followers_url": "https://api.github.com/users/colinalexander/followers",
"following_url": "https://api.github.com/users/colinalexander/following{/other_user}",
"gists_url": "https://api.github.com/users/colinalexander/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/colinalexander",
"id": 3209516,
"login": "colinalexander",
"node_id": "MDQ6VXNlcjMyMDk1MTY=",
"organizations_url": "https://api.github.com/users/colinalexander/orgs",
"received_events_url": "https://api.github.com/users/colinalexander/received_events",
"repos_url": "https://api.github.com/users/colinalexander/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/colinalexander/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/colinalexander/subscriptions",
"type": "User",
"url": "https://api.github.com/users/colinalexander"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
]
| open | false | null | []
| {
"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-04-29T03:17:39Z | 2021-04-24T03:52:44Z | null | NONE | null | deprecate `between` in favor of other indexing options (e.g. `loc`)
xref: https://github.com/pydata/pandas/issues/12398, #12402 (not merged)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13027/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13027/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13028 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13028/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13028/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13028/events | https://github.com/pandas-dev/pandas/pull/13028 | 151,787,089 | MDExOlB1bGxSZXF1ZXN0NjgzMjExNzk= | 13,028 | BUG/TST: TimeGrouper has erroneous groups if key length is too short | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"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": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 0 | 2016-04-29T03:35:37Z | 2016-04-29T13:40:30Z | 2016-04-29T13:40:30Z | MEMBER | null | - [x] closes #8542
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- ~~whatsnew entry~~
No what's new as the fixed timing is unclear.
**NOTE** Different from `TimeGrouper` with single key, it doesn't interpolate missing datetimes between existing keys (same as current behavior of key length >= 3).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13028/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13028/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13028.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13028",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13028.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13028"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13029 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13029/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13029/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13029/events | https://github.com/pandas-dev/pandas/issues/13029 | 151,848,950 | MDU6SXNzdWUxNTE4NDg5NTA= | 13,029 | DOC: additional join examples in "10 Minutes to pandas" | {
"avatar_url": "https://avatars.githubusercontent.com/u/5917788?v=4",
"events_url": "https://api.github.com/users/DavidDobr/events{/privacy}",
"followers_url": "https://api.github.com/users/DavidDobr/followers",
"following_url": "https://api.github.com/users/DavidDobr/following{/other_user}",
"gists_url": "https://api.github.com/users/DavidDobr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DavidDobr",
"id": 5917788,
"login": "DavidDobr",
"node_id": "MDQ6VXNlcjU5MTc3ODg=",
"organizations_url": "https://api.github.com/users/DavidDobr/orgs",
"received_events_url": "https://api.github.com/users/DavidDobr/received_events",
"repos_url": "https://api.github.com/users/DavidDobr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DavidDobr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DavidDobr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DavidDobr"
} | [
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 1 | 2016-04-29T11:50:55Z | 2016-05-13T23:14:52Z | 2016-05-13T23:14:43Z | NONE | null | ---
Tutorial at [pandas.pydata.org/pandas-docs/stable/10min.html](http://pandas.pydata.org/pandas-docs/stable/10min.html) has the following code, where the obvious mistake is having only 1 key "foo" instead of 2 keys: "foo" and "bar" throughout the whole example
---
# Join
## SQL style merges. See the Database style joining
```
In [77]: left = pd.DataFrame({'key': ['foo', 'foo'], 'lval': [1, 2]})
In [78]: right = pd.DataFrame({'key': ['foo', 'foo'], 'rval': [4, 5]})
In [79]: left
Out[79]:
key lval
0 foo 1
1 foo 2
In [80]: right
Out[80]:
key rval
0 foo 4
1 foo 5
In [81]: pd.merge(left, right, on='key')
Out[81]:
key lval rval
0 foo 1 4
1 foo 1 5
2 foo 2 4
3 foo 2 5
```
Here is how it **should** be (replaced second 'foo' with 'bar':

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13029/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13029/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13030 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13030/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13030/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13030/events | https://github.com/pandas-dev/pandas/issues/13030 | 151,946,735 | MDU6SXNzdWUxNTE5NDY3MzU= | 13,030 | pd.to_datetime giving invalid output | {
"avatar_url": "https://avatars.githubusercontent.com/u/11199045?v=4",
"events_url": "https://api.github.com/users/sumitbinnani/events{/privacy}",
"followers_url": "https://api.github.com/users/sumitbinnani/followers",
"following_url": "https://api.github.com/users/sumitbinnani/following{/other_user}",
"gists_url": "https://api.github.com/users/sumitbinnani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sumitbinnani",
"id": 11199045,
"login": "sumitbinnani",
"node_id": "MDQ6VXNlcjExMTk5MDQ1",
"organizations_url": "https://api.github.com/users/sumitbinnani/orgs",
"received_events_url": "https://api.github.com/users/sumitbinnani/received_events",
"repos_url": "https://api.github.com/users/sumitbinnani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sumitbinnani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sumitbinnani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sumitbinnani"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "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-04-29T19:06:07Z | 2016-04-29T19:15:09Z | 2016-04-29T19:15:00Z | NONE | null | This works:
```
>>> pd.to_datetime(1, unit='D')
Timestamp('1970-01-02 00:00:00')
```
However, the following gives incorrect output:
```
>>> pd.to_datetime(1, unit='D', errors='coerce')
NaT
```
#### Details of Configuration:
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.3
Cython: 0.23.4
numpy: 1.10.4
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
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: None
jinja2: 2.8
boto: 2.39.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/13030/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13030/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13031 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13031/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13031/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13031/events | https://github.com/pandas-dev/pandas/issues/13031 | 151,961,832 | MDU6SXNzdWUxNTE5NjE4MzI= | 13,031 | Feature request: pandas.DataFrame.to_sas | {
"avatar_url": "https://avatars.githubusercontent.com/u/7373718?v=4",
"events_url": "https://api.github.com/users/mhooreman/events{/privacy}",
"followers_url": "https://api.github.com/users/mhooreman/followers",
"following_url": "https://api.github.com/users/mhooreman/following{/other_user}",
"gists_url": "https://api.github.com/users/mhooreman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mhooreman",
"id": 7373718,
"login": "mhooreman",
"node_id": "MDQ6VXNlcjczNzM3MTg=",
"organizations_url": "https://api.github.com/users/mhooreman/orgs",
"received_events_url": "https://api.github.com/users/mhooreman/received_events",
"repos_url": "https://api.github.com/users/mhooreman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mhooreman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mhooreman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mhooreman"
} | [
{
"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 | []
| null | 1 | 2016-04-29T20:28:29Z | 2016-04-29T20:40:35Z | 2016-04-29T20:40:31Z | NONE | null | Hello,
I find very usefull `pandas.read_sas` but, as I'm collaborating a lot with SAS users, I'm wondering if there are some plans to implement `pandas.DataFrame.to_sas`?
Up to now, the only possibility I see is to pass through common file formats like `pandas.DataFrame.to_csv`.
Thanks a lot for your help.
Best regards.
P.S.: Sorry to push that as an issue, but I don't find how to suggest new features.
| {
"+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/13031/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13031/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13032 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13032/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13032/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13032/events | https://github.com/pandas-dev/pandas/issues/13032 | 151,973,347 | MDU6SXNzdWUxNTE5NzMzNDc= | 13,032 | Justification is broken with to_string(index=False) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4",
"events_url": "https://api.github.com/users/evanpw/events{/privacy}",
"followers_url": "https://api.github.com/users/evanpw/followers",
"following_url": "https://api.github.com/users/evanpw/following{/other_user}",
"gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/evanpw",
"id": 1621449,
"login": "evanpw",
"node_id": "MDQ6VXNlcjE2MjE0NDk=",
"organizations_url": "https://api.github.com/users/evanpw/orgs",
"received_events_url": "https://api.github.com/users/evanpw/received_events",
"repos_url": "https://api.github.com/users/evanpw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/evanpw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/evanpw"
} | [
{
"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": "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 | []
| {
"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"
} | 7 | 2016-04-29T21:33:36Z | 2018-09-25T12:55:05Z | 2018-09-25T12:55:05Z | CONTRIBUTOR | null | With 0.17.1, justification is handled correctly:
```
In [3]: df = pd.DataFrame(np.random.randn(3, 3), columns=['one', 'two', 'three'])
In [4]: print df.to_string(index=False)
one two three
0.096065 -0.529437 -2.058535
0.588013 0.221911 -2.400129
0.848234 -0.093931 1.221708
```
But in 0.18.0, it's broken:
```
In [4]: print df.to_string(index=False)
one two three
1.164170 -0.027236 -0.114962
-1.405931 0.019395 0.743320
0.598321 0.655802 -1.061834
```
This is caused by PR #11942. The issue it was meant to fix (#11833) is actually caused by using the format string "% d" for formatting integers, which produces a leading space if the integer is positive (where the minus sign would go for a negative integer). My preferred solution would be to change the formatter to "%d" (and to revert #11942), which would have the added bonus of eliminating double spaces between some columns (see the first `to_string` output in #11833, for example). A bunch of formatting tests would have to be adjusted, though. Is there anyone who prefers the extra space?
| {
"+1": 4,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 4,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13032/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13032/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13033 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13033/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13033/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13033/events | https://github.com/pandas-dev/pandas/pull/13033 | 151,985,171 | MDExOlB1bGxSZXF1ZXN0Njg0NDU1MDU= | 13,033 | BUG: to_datetime when called with a unit and coerce is buggy | {
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"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": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 1 | 2016-04-29T23:01:27Z | 2016-04-30T18:47:41Z | 2016-04-30T18:47:41Z | CONTRIBUTOR | null | closes #11758
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13033/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13033/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13033.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13033",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13033.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13033"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13034 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13034/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13034/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13034/events | https://github.com/pandas-dev/pandas/issues/13034 | 151,989,700 | MDU6SXNzdWUxNTE5ODk3MDA= | 13,034 | BUG/COMPAT: Series bool type not promoted to object when introducing NaNs | {
"avatar_url": "https://avatars.githubusercontent.com/u/7263654?v=4",
"events_url": "https://api.github.com/users/domspad/events{/privacy}",
"followers_url": "https://api.github.com/users/domspad/followers",
"following_url": "https://api.github.com/users/domspad/following{/other_user}",
"gists_url": "https://api.github.com/users/domspad/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/domspad",
"id": 7263654,
"login": "domspad",
"node_id": "MDQ6VXNlcjcyNjM2NTQ=",
"organizations_url": "https://api.github.com/users/domspad/orgs",
"received_events_url": "https://api.github.com/users/domspad/received_events",
"repos_url": "https://api.github.com/users/domspad/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/domspad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/domspad/subscriptions",
"type": "User",
"url": "https://api.github.com/users/domspad"
} | [
{
"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"
} | 2 | 2016-04-29T23:49:03Z | 2021-05-12T13:27:56Z | 2021-05-12T13:27:56Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```
In [2]: import pandas as pd
In [3]: a = pd.Series([True,False,True])
In [4]: a
Out[4]:
0 True
1 False
2 True
dtype: bool
In [6]: a[0] = pd.np.nan
In [7]: a
Out[7]:
0 NaN
1 0.0
2 1.0
dtype: float64
```
#### Expected Output
based on type promotions mentioned [here](http://pandas.pydata.org/pandas-docs/stable/gotchas.html#nan-integer-na-values-and-na-type-promotions) I would expect the series to get promoted to `object` to allow for `NaN`s.
> When introducing NAs into an existing Series or DataFrame via reindex or some other means, boolean and integer types will be promoted to a different dtype in order to store the NAs. These are summarized by this table:
```
In [7]: a
Out[7]:
0 NaN
1 False
2 True
dtype: object
```
#### output of `pd.show_versions()`
``````
In [2]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 15.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.6.7
Cython: None
numpy: 1.10.4
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.1.2
sphinx: 1.3.5
patsy: None
dateutil: 2.5.2
pytz: 2016.3
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.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/13034/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13034/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13035 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13035/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13035/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13035/events | https://github.com/pandas-dev/pandas/issues/13035 | 151,991,584 | MDU6SXNzdWUxNTE5OTE1ODQ= | 13,035 | index.set_levels produces weird results when index is repetative | {
"avatar_url": "https://avatars.githubusercontent.com/u/1490832?v=4",
"events_url": "https://api.github.com/users/rocurley/events{/privacy}",
"followers_url": "https://api.github.com/users/rocurley/followers",
"following_url": "https://api.github.com/users/rocurley/following{/other_user}",
"gists_url": "https://api.github.com/users/rocurley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rocurley",
"id": 1490832,
"login": "rocurley",
"node_id": "MDQ6VXNlcjE0OTA4MzI=",
"organizations_url": "https://api.github.com/users/rocurley/orgs",
"received_events_url": "https://api.github.com/users/rocurley/received_events",
"repos_url": "https://api.github.com/users/rocurley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rocurley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rocurley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rocurley"
} | [
{
"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": 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-04-30T00:07:56Z | 2019-09-05T16:13:39Z | 2019-09-05T16:13:38Z | NONE | null | My understanding of how multiindexes work is fuzzy, but as far as I can tell set_levels isn't updating the labels properly. The example probably explains better than I can:
#### Code
``` python
df = pd.DataFrame(data = ["foo","bar"])
df2 = pd.concat([df,df,df],keys = ["a","b","c"])
print df2
newIndex = df2.index.get_level_values(0).map(lambda x:x + "!")
df2.index.set_levels(newIndex,level=0,inplace=True)
print df2
```
#### Expected Output
```
0
a 0 foo
1 bar
b 0 foo
1 bar
c 0 foo
1 bar
0
a! 0 foo
1 bar
b! 0 foo
1 bar
c! 0 foo
1 bar
```
#### Actual Output
```
0
a 0 foo
1 bar
b 0 foo
1 bar
c 0 foo
1 bar
0
a! 0 foo
1 bar
0 foo
1 bar
b! 0 foo
1 bar
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 4.3.0-040300-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0
nose: None
pip: 8.1.1
setuptools: 20.3.1
Cython: None
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.0.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: 0.8
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13035/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13035/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13036 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13036/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13036/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13036/events | https://github.com/pandas-dev/pandas/pull/13036 | 151,997,635 | MDExOlB1bGxSZXF1ZXN0Njg0NTMwNjg= | 13,036 | PERF: Sparse IntIndex.make_union / Numeric ops | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "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": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 6 | 2016-04-30T01:21:19Z | 2016-04-30T23:23:12Z | 2016-04-30T23:22:19Z | MEMBER | null | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Replace repeated `list.append` with `np.union1d` in `IntIndex.make_union`. `make_union` is used in numeric ops.
**NOTE:** It is also possible to fix `IntIndex.intersect` to use `np.intersect1d`, but it doesn't increase the performance (because the length of the result is smaller).
The below microbench assumes array's 90% is sparse.
```
import numpy as np
import pandas as pd
np.random.seed(1)
N = 1000000
a = np.array([np.nan] * N)
b = np.array([np.nan] * N)
indexer_a = np.unique(np.random.randint(0, N, N / 10))
indexer_b = np.unique(np.random.randint(0, N, N / 10))
a[indexer_a] = np.random.randint(0, 100, len(indexer_a))
b[indexer_b] = np.random.randint(0, 100, len(indexer_b))
sa = pd.SparseArray(a)
sb = pd.SparseArray(b)
```
#### on current master
```
%timeit sa.sp_index.make_union(sb.sp_index)
#10 loops, best of 3: 52.7 ms per loop
%timeit sa + sb
10 loops, best of 3: 47.8 ms per loop
```
#### After this PR
```
%timeit sa.sp_index.make_union(sb.sp_index)
100 loops, best of 3: 11.6 ms per loop
%timeit sa + sb
100 loops, best of 3: 15.3 ms per loop
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13036/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13036/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13036.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13036",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13036.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13036"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13037 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13037/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13037/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13037/events | https://github.com/pandas-dev/pandas/pull/13037 | 152,009,942 | MDExOlB1bGxSZXF1ZXN0Njg0NTg0Mzk= | 13,037 | BUG: subclassed .align returns normal DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 2 | 2016-04-30T04:59:59Z | 2016-04-30T14:56:46Z | 2016-04-30T14:56:43Z | MEMBER | null | - [x] closes #12983
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
Also fixed a bug which `Series.align(DataFrame)` raises `AttributeError`.
```
pd.Series([1, 2], index=['a', 'b']).align(pd.DataFrame([1, 2], index=['a', 'c']))
# AttributeError: 'Series' object has no attribute 'columns'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13037/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13037/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13037.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13037",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13037.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13037"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13038 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13038/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13038/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13038/events | https://github.com/pandas-dev/pandas/pull/13038 | 152,011,232 | MDExOlB1bGxSZXF1ZXN0Njg0NTg5Mjc= | 13,038 | TST/BUG: Categorical dtypes cause error when attempting stacked bar plot | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "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": "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": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 4 | 2016-04-30T05:27:16Z | 2016-04-30T14:33:26Z | 2016-04-30T14:25:43Z | MEMBER | null | - [x] closes #13019
- [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/13038/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13038/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13038.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13038",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13038.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13038"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13039 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13039/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13039/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13039/events | https://github.com/pandas-dev/pandas/pull/13039 | 152,012,350 | MDExOlB1bGxSZXF1ZXN0Njg0NTk0MTU= | 13,039 | TST/BUG: DataFrame truncated repr with DatetimeTz and NaT column | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "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"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "5319e7",
"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": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 1 | 2016-04-30T05:53:31Z | 2016-04-30T14:33:46Z | 2016-04-30T14:32:55Z | MEMBER | null | - [x] closes #12211
- [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/13039/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13039/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13039.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13039",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13039.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13039"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13040 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13040/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13040/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13040/events | https://github.com/pandas-dev/pandas/issues/13040 | 152,013,181 | MDU6SXNzdWUxNTIwMTMxODE= | 13,040 | API: use argument-free lambdas for injecting DataFrames columns as variables? | {
"avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4",
"events_url": "https://api.github.com/users/shoyer/events{/privacy}",
"followers_url": "https://api.github.com/users/shoyer/followers",
"following_url": "https://api.github.com/users/shoyer/following{/other_user}",
"gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shoyer",
"id": 1217238,
"login": "shoyer",
"node_id": "MDQ6VXNlcjEyMTcyMzg=",
"organizations_url": "https://api.github.com/users/shoyer/orgs",
"received_events_url": "https://api.github.com/users/shoyer/received_events",
"repos_url": "https://api.github.com/users/shoyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shoyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shoyer"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
]
| closed | false | null | []
| null | 20 | 2016-04-30T06:20:39Z | 2016-05-11T02:30:23Z | 2016-05-10T16:43:06Z | MEMBER | null | With [a little bit of magic](https://github.com/shoyer/pandas-magic/blob/master/pandas_magic/__init__.py#L13-L33), we could make the following syntax work:
``` python
(df[lambda: sepal_length > 3]
.groupby(lambda: pd.cut(sepal_width, 5))
.apply(lambda: petal_width.mean()))
```
Syntax like `df[lambda: sepal_length > 3]` is an alternative to more verbose alternatives like the recently added `df[lambda x: x.sepal_length > 3]` (https://github.com/pydata/pandas/issues/11485). Here we use `lambda` essentially in place of a macro that would allow for delayed evaluation (which of course are not supported by Python syntax).
My proposal is to add support for such "thunks" to every pandas method that accepts a callable function that currently must take a single argument work on DataFrames.
Under the covers, this works by (1) copying the `globals()` dictionary at evaluation time and (2) injecting the current DataFrame into it. We would further ensure that this only works on lambda functions, by checking `f.func_name == '<lambda>'`.
The main gotcha is that [it isn't possible to dynamically override ~~local~~ non-global variables](http://stackoverflow.com/questions/8028708/dynamically-set-local-variable-in-python) without [some true dark magic](https://gist.github.com/njsmith/2347382#file-inject-py-L40). This means that code like the following is going to behave contrary to expectations:
``` python
def x_plus_one(df):
x = 0
# uses x = 0 instead of df.x
return df.pipe(lambda: x + 1)
df = pd.DataFrame({'x': np.arange(100)})
result = x_plus_one(df) # all 1s, not range(1, 101)
```
Is this so bad? Shadowing variables in an outer scope is already poor design, but this is a pretty serious departure from expectations.
The other danger is that this could mask bugs, e.g., if a user mistakenly types `df.pipe(lambda: x)` instead of `df.pipe(lambda x: x)`. This is an unavoidable danger of spelling two APIs with similar syntax.
On the plus side, this proposal is safer than @njsmith's "true dark magic" context manager (see above) for injecting DataFrame columns, because there's no possibility of variable assignment inside a `lambda`.
Would this be a good idea for pandas?
| {
"+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/13040/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13040/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13041 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13041/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13041/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13041/events | https://github.com/pandas-dev/pandas/issues/13041 | 152,028,552 | MDU6SXNzdWUxNTIwMjg1NTI= | 13,041 | secondary_y sequence doesn't work | {
"avatar_url": "https://avatars.githubusercontent.com/u/2196196?v=4",
"events_url": "https://api.github.com/users/ohadle/events{/privacy}",
"followers_url": "https://api.github.com/users/ohadle/followers",
"following_url": "https://api.github.com/users/ohadle/following{/other_user}",
"gists_url": "https://api.github.com/users/ohadle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ohadle",
"id": 2196196,
"login": "ohadle",
"node_id": "MDQ6VXNlcjIxOTYxOTY=",
"organizations_url": "https://api.github.com/users/ohadle/orgs",
"received_events_url": "https://api.github.com/users/ohadle/received_events",
"repos_url": "https://api.github.com/users/ohadle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ohadle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ohadle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ohadle"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"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"
}
]
| open | false | null | []
| null | 4 | 2016-04-30T12:42:50Z | 2020-04-30T05:52:56Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
```
import pandas
df = pandas.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6], 'c': [7, 8, 9], 'd': [10, 11, 12]})
df.plot(y=['a', 'b'], secondary_y=['c', 'd'])
```
I only get the primary axis results:

Others seem to be using this - am I missing something?
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 15.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.7.0
Cython: 0.24
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.2
pytz: 2016.3
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.5
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
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13041/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13041/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13042 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13042/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13042/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13042/events | https://github.com/pandas-dev/pandas/pull/13042 | 152,030,043 | MDExOlB1bGxSZXF1ZXN0Njg0Njc4Njc= | 13,042 | BUG: Convert non-dates in xls date cells to number | {
"avatar_url": "https://avatars.githubusercontent.com/u/10603885?v=4",
"events_url": "https://api.github.com/users/kordek/events{/privacy}",
"followers_url": "https://api.github.com/users/kordek/followers",
"following_url": "https://api.github.com/users/kordek/following{/other_user}",
"gists_url": "https://api.github.com/users/kordek/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kordek",
"id": 10603885,
"login": "kordek",
"node_id": "MDQ6VXNlcjEwNjAzODg1",
"organizations_url": "https://api.github.com/users/kordek/orgs",
"received_events_url": "https://api.github.com/users/kordek/received_events",
"repos_url": "https://api.github.com/users/kordek/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kordek/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kordek/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kordek"
} | [
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 11 | 2016-04-30T13:22:19Z | 2016-05-06T12:11:02Z | 2016-05-06T12:10:40Z | CONTRIBUTOR | null | - [x ] closes #10001
- [x ] tests added / passed
- [x ] passes `git diff upstream/master | flake8 --diff`
- [x ] whatsnew entry
closes GH10001
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13042/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13042/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13042.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13042",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13042.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13042"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13043 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13043/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13043/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13043/events | https://github.com/pandas-dev/pandas/issues/13043 | 152,031,752 | MDU6SXNzdWUxNTIwMzE3NTI= | 13,043 | BUG: Series with datetime-like object ops raises TypeError | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "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": "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": "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"
},
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 1 | 2016-04-30T14:02:26Z | 2016-05-11T22:51:09Z | 2016-05-11T22:51:03Z | MEMBER | null | #### Code Sample, a copy-pastable example if possible
```
pd.Series([pd.Timestamp('2015-01-01', tz='US/Eastern'),
pd.Timestamp('2015-01-01', tz='Asia/Tokyo')]) + pd.Timedelta('1 days')
# TypeError: unsupported operand type(s) for +: 'numpy.ndarray' and 'Timedelta'
pd.Series([pd.Period('2015-01-01', freq='D')]) + pd.Timedelta('1 days')
# TypeError: unsupported operand type(s) for +: 'numpy.ndarray' and 'Timedelta'
```
#### Expected Output
ops must be applied to each elem
#### output of `pd.show_versions()`
current master.
**NOTE:** This works:
```
pd.Series([pd.Timestamp('2015-01-01', tz='US/Eastern'),
pd.Timestamp('2015-01-01', tz='Asia/Tokyo')]) + pd.tseries.offsets.Day()
#0 2015-01-02 00:00:00-05:00
#1 2015-01-02 00:00:00+09:00
# dtype: object
pd.Series([pd.Period('2015-01-01', freq='D')]) + pd.tseries.offsets.Day()
#0 2015-01-02
# dtype: object
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13043/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13043/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13044 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13044/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13044/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13044/events | https://github.com/pandas-dev/pandas/issues/13044 | 152,042,577 | MDU6SXNzdWUxNTIwNDI1Nzc= | 13,044 | COMPAT: should an empty string match a format (or just be NaT) | {
"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": "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 | {
"avatar_url": "https://avatars.githubusercontent.com/u/16943048?v=4",
"events_url": "https://api.github.com/users/fgebhart/events{/privacy}",
"followers_url": "https://api.github.com/users/fgebhart/followers",
"following_url": "https://api.github.com/users/fgebhart/following{/other_user}",
"gists_url": "https://api.github.com/users/fgebhart/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fgebhart",
"id": 16943048,
"login": "fgebhart",
"node_id": "MDQ6VXNlcjE2OTQzMDQ4",
"organizations_url": "https://api.github.com/users/fgebhart/orgs",
"received_events_url": "https://api.github.com/users/fgebhart/received_events",
"repos_url": "https://api.github.com/users/fgebhart/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fgebhart/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fgebhart/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fgebhart"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/16943048?v=4",
"events_url": "https://api.github.com/users/fgebhart/events{/privacy}",
"followers_url": "https://api.github.com/users/fgebhart/followers",
"following_url": "https://api.github.com/users/fgebhart/following{/other_user}",
"gists_url": "https://api.github.com/users/fgebhart/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fgebhart",
"id": 16943048,
"login": "fgebhart",
"node_id": "MDQ6VXNlcjE2OTQzMDQ4",
"organizations_url": "https://api.github.com/users/fgebhart/orgs",
"received_events_url": "https://api.github.com/users/fgebhart/received_events",
"repos_url": "https://api.github.com/users/fgebhart/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fgebhart/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fgebhart/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fgebhart"
}
]
| {
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
} | 3 | 2016-04-30T17:29:37Z | 2020-11-19T18:58:15Z | 2020-11-19T18:58:15Z | CONTRIBUTOR | null | after #13033
I left this alone, but should an empty string just be a `NaT` (like we do elsewhere), even when a `format`is present?
```
In [1]: td = pd.Series(['May 04', 'Jun 02', ''], index=[1, 2, 3])
In [2]: td
Out[2]:
1 May 04
2 Jun 02
3
dtype: object
In [3]: pd.to_datetime(td, format='%b %y', errors='coerce')
Out[3]:
1 2004-05-01
2 2002-06-01
3 NaT
dtype: datetime64[ns]
In [4]: pd.to_datetime(td, format='%b %y', errors='raise')
ValueError: time data '' does not match format '%b %y' (match)
```
related is that we don't coerce empty strings here either (and we have an odd error message).
```
In [1]: pd.to_datetime([1, ''], unit='s', errors='coerce')
Out[1]: DatetimeIndex(['1970-01-01 00:00:01', 'NaT'], dtype='datetime64[ns]', freq=None)
In [2]: pd.to_datetime([1, ''], unit='s')
ValueError: invalid literal for long() with base 10: ''
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13044/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13044/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13045 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13045/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13045/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13045/events | https://github.com/pandas-dev/pandas/pull/13045 | 152,048,471 | MDExOlB1bGxSZXF1ZXN0Njg0NzcwMzI= | 13,045 | DOC: Add tutorial link | {
"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": "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-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 3 | 2016-04-30T19:43:36Z | 2016-05-01T13:50:06Z | 2016-05-01T13:49:58Z | 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/13045/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13045/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13045.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13045",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13045.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13045"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/13046 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13046/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13046/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13046/events | https://github.com/pandas-dev/pandas/issues/13046 | 152,055,507 | MDU6SXNzdWUxNTIwNTU1MDc= | 13,046 | BUG: SeriesGroupBy.transform() tries to do dtype downcasting, NDFrameGroupBy.transform() - doesn't do this | {
"avatar_url": "https://avatars.githubusercontent.com/u/11424941?v=4",
"events_url": "https://api.github.com/users/maxu777/events{/privacy}",
"followers_url": "https://api.github.com/users/maxu777/followers",
"following_url": "https://api.github.com/users/maxu777/following{/other_user}",
"gists_url": "https://api.github.com/users/maxu777/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maxu777",
"id": 11424941,
"login": "maxu777",
"node_id": "MDQ6VXNlcjExNDI0OTQx",
"organizations_url": "https://api.github.com/users/maxu777/orgs",
"received_events_url": "https://api.github.com/users/maxu777/received_events",
"repos_url": "https://api.github.com/users/maxu777/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maxu777/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maxu777/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maxu777"
} | [
{
"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"
},
{
"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": "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-04-30T22:07:32Z | 2017-02-27T21:39:11Z | 2016-04-30T23:10:59Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
original: http://stackoverflow.com/questions/36960086/groupby-how-to-extract-seconds-from-datetime-with-diff
```
data = """
idx A ID3 DATETIME
0 B-028 b76cd912ff "2014-10-08 13:43:27"
1 B-054 4a57ed0b02 "2014-10-08 14:26:19"
2 B-076 1a682034f8 "2014-10-08 14:29:01"
3 B-023 b76cd912ff "2014-10-08 18:39:34"
4 B-023 f88g8d7sds "2014-10-08 18:40:18"
5 B-033 b76cd912ff "2014-10-08 18:44:30"
6 B-032 b76cd912ff "2014-10-08 18:46:00"
7 B-037 b76cd912ff "2014-10-08 18:52:15"
8 B-046 db959faf02 "2014-10-08 18:59:59"
9 B-053 b76cd912ff "2014-10-08 19:17:48"
10 B-065 b76cd912ff "2014-10-08 19:21:38"
"""
df = pd.read_csv(io.StringIO(data), delim_whitespace=True, index_col=[0], parse_dates=['DATETIME'])
In [237]: df.groupby('ID3')['DATETIME'].transform(lambda x: x.diff()).dtypes
Out[237]: dtype('<M8[ns]')
In [238]: df[['ID3','DATETIME']].groupby('ID3').transform(lambda x: x.diff()).dtypes
Out[238]:
DATETIME timedelta64[ns]
dtype: object
#### Expected Output
I would expect the same DTYPEs for both: `NDFrameGroupBy.transform()` and `SeriesGroupBy.transform()`
#### output of ``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 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.7.0
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.1.2
sphinx: 1.4
patsy: None
dateutil: 2.5.1
pytz: 2016.3
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.5
xlrd: 0.9.4
xlwt: None
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: 0.9999999
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13046/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13046/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13047 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13047/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13047/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13047/events | https://github.com/pandas-dev/pandas/pull/13047 | 152,057,496 | MDExOlB1bGxSZXF1ZXN0Njg0ODEzMjg= | 13,047 | COMPAT: ensure platform int on 32-bit | {
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 0 | 2016-04-30T22:53:14Z | 2016-04-30T23:15:55Z | 2016-04-30T23:15:55Z | CONTRIBUTOR | null | closes #12927
TST: use 32bit_repr when printing formatting of sparse
COMPAT: ensure consensus name when Indexes are union/intersected if possible
COMPAT: skip some coercion tests on 32-bit
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13047/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13047/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13047.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13047",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13047.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13047"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13048 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13048/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13048/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13048/events | https://github.com/pandas-dev/pandas/issues/13048 | 152,200,690 | MDU6SXNzdWUxNTIyMDA2OTA= | 13,048 | API: sparse.cumsum should default to stats axis | {
"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": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 7 | 2016-05-01T14:01:00Z | 2016-05-07T14:53:12Z | 2016-05-07T14:53:12Z | CONTRIBUTOR | null | xref #12810
```
In [1]: sp = pd.SparseDataFrame([1, 2, 3])
In [2]: np.cumsum(sp)
ValueError: No axis named None for object type <class 'pandas.sparse.frame.SparseDataFrame'>
In [3]: np.cumsum(sp, axis=0)
Out[3]:
0
0 1.0
1 3.0
2 6.0
In [4]: np.cumsum(sp, axis=1)
Out[4]:
0
0 1.0
1 2.0
2 3.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/13048/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13048/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13049 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13049/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13049/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13049/events | https://github.com/pandas-dev/pandas/issues/13049 | 152,331,931 | MDU6SXNzdWUxNTIzMzE5MzE= | 13,049 | Improve type handling in read_sql and read_sql_table | {
"avatar_url": "https://avatars.githubusercontent.com/u/3237939?v=4",
"events_url": "https://api.github.com/users/rsdenijs/events{/privacy}",
"followers_url": "https://api.github.com/users/rsdenijs/followers",
"following_url": "https://api.github.com/users/rsdenijs/following{/other_user}",
"gists_url": "https://api.github.com/users/rsdenijs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rsdenijs",
"id": 3237939,
"login": "rsdenijs",
"node_id": "MDQ6VXNlcjMyMzc5Mzk=",
"organizations_url": "https://api.github.com/users/rsdenijs/orgs",
"received_events_url": "https://api.github.com/users/rsdenijs/received_events",
"repos_url": "https://api.github.com/users/rsdenijs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rsdenijs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rsdenijs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rsdenijs"
} | [
{
"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": "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": "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"
}
]
| 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"
} | 14 | 2016-05-01T18:30:07Z | 2021-04-24T03:55:35Z | null | NONE | null | ### Problem
In _pd.read_sql_ and _pd.read_sql_table_ when the _chunksize_ parameter is set, Pandas builds a DataFrame with dtypes inferred from the data **in the chunk**. This can be a problem if an INTEGER colum contains null values in some chunks but not in others, leading the same column to be int64 in some cases and in others float64. A similar problem happens with strings.
In ETL processes or simply when dumping large queries to disk in HDF5 format, the user currently has the burden of explicitly having to handle the type conversions of potentially many columns.
### Solution?
Instead of guessing the type from a subset of the data, it should be possible to obtain the type information from the database and map it to the appropriate dtypes.
It is possible to obtain column information from Sqlalchemy when querying a full table by inspecting its metadata, but I was unsuccessfull in findind a way to do it for a general query.
Although I am unaware of all the possible type problems that can arise [DBAPI](https://www.python.org/dev/peps/pep-0249/#type-objects-and-constructors) does actually enforce the cursor.description to specify whether each result column is nullable.
Pandas could use this information (optionally) to always interpret nullable numeric columns as floats and strings as object columns.
| {
"+1": 7,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 7,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13049/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13049/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13050 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13050/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13050/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13050/events | https://github.com/pandas-dev/pandas/pull/13050 | 152,422,831 | MDExOlB1bGxSZXF1ZXN0Njg1MDY4NzA= | 13,050 | Convert to native datatypes for Series.tolist() | {
"avatar_url": "https://avatars.githubusercontent.com/u/50109?v=4",
"events_url": "https://api.github.com/users/gliptak/events{/privacy}",
"followers_url": "https://api.github.com/users/gliptak/followers",
"following_url": "https://api.github.com/users/gliptak/following{/other_user}",
"gists_url": "https://api.github.com/users/gliptak/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gliptak",
"id": 50109,
"login": "gliptak",
"node_id": "MDQ6VXNlcjUwMTA5",
"organizations_url": "https://api.github.com/users/gliptak/orgs",
"received_events_url": "https://api.github.com/users/gliptak/received_events",
"repos_url": "https://api.github.com/users/gliptak/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gliptak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gliptak/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gliptak"
} | [
{
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 7 | 2016-05-01T20:50:07Z | 2016-05-07T14:43:02Z | 2016-05-07T14:42:56Z | CONTRIBUTOR | null | - [x] closes #10904
- [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/13050/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13050/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13050.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13050",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13050.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13050"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13051 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13051/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13051/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13051/events | https://github.com/pandas-dev/pandas/issues/13051 | 152,455,217 | MDU6SXNzdWUxNTI0NTUyMTc= | 13,051 | BUG: coercion of mixed dt-aware data in Series constructor | {
"avatar_url": "https://avatars.githubusercontent.com/u/5619798?v=4",
"events_url": "https://api.github.com/users/frankcleary/events{/privacy}",
"followers_url": "https://api.github.com/users/frankcleary/followers",
"following_url": "https://api.github.com/users/frankcleary/following{/other_user}",
"gists_url": "https://api.github.com/users/frankcleary/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/frankcleary",
"id": 5619798,
"login": "frankcleary",
"node_id": "MDQ6VXNlcjU2MTk3OTg=",
"organizations_url": "https://api.github.com/users/frankcleary/orgs",
"received_events_url": "https://api.github.com/users/frankcleary/received_events",
"repos_url": "https://api.github.com/users/frankcleary/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/frankcleary/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/frankcleary/subscriptions",
"type": "User",
"url": "https://api.github.com/users/frankcleary"
} | [
{
"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": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| {
"closed_at": "2019-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"
} | 4 | 2016-05-01T21:40:16Z | 2018-06-28T10:23:02Z | 2018-06-28T10:23:02Z | CONTRIBUTOR | null | I ran into an issue where the behavior of `.apply()` changed from 0.16 to 0.17, causing different results on tz aware data. Extracting the hour of day from datetimes is different for `Series(x).apply(func)` vs `func(x)`. Below is a minimal example of the issue in 0.17, it seems the behavior is the same in 0.18 but different (though still not equal) on master, also shown below.
#### On 0.17.1 and 0.18.0:
``` python
>>> import pandas as pd
>>> def hour_of_day(dt):
... return dt.hour
...
>>> dt = pd.to_datetime(1462068217, unit='s')
>>> dt_localized = dt.tz_localize('UTC').tz_convert('US/Pacific')
>>> dt_list = [dt, dt_localized]
>>> apply_series = pd.Series(dt_list).apply(hour_of_day)
>>> map_series = pd.Series(map(hour_of_day, dt_list))
>>> print dt_list
[Timestamp('2016-05-01 02:03:37'), Timestamp('2016-04-30 19:03:37-0700', tz='US/Pacific')]
>>> print apply_series
0 2
1 2
dtype: int64
>>> print map_series
0 2
1 19
dtype: int64
>>> print apply_series - map_series
0 0
1 -17
dtype: int64
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 15.2.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 8.1.1
setuptools: 20.7.0
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.2
pytz: 2016.3
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.5
lxml: 3.6.0
bs4: 4.3.2
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: 0.6.7.None
psycopg2: None
Jinja2: None
```
#### On 0.16.2 (what I expected):
``` python
# Same setup as above
>>> print apply_series
0 2
1 19
dtype: int64
>>> print map_series
0 2
1 19
dtype: int64
>>> print apply_series - map_series
0 0
1 0
dtype: int64
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 15.2.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.2
nose: None
Cython: None
numpy: 1.10.4
scipy: None
statsmodels: None
IPython: 4.2.0
sphinx: None
patsy: None
dateutil: 2.5.2
pytz: 2016.3
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
```
#### On master:
``` python
# Same setup as above
>>> print apply_series
0 19
1 19
dtype: int32
>>> print map_series
0 2
1 19
dtype: int64
>>> print apply_series - map_series
0 17
1 0
dtype: int64
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: 05e734ab171be0fda838c6b12839c38fa588da2c
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 15.2.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0+203.g05e734a
nose: None
pip: 8.1.1
setuptools: 20.7.0
Cython: None
numpy: 1.10.4
scipy: None
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: None
patsy: None
dateutil: 2.5.2
pytz: 2016.3
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
```
#### Expected Output
I would expect the output to be [2, 19], as in 0.16, and matching map(f, data).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13051/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13051/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13052 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13052/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13052/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13052/events | https://github.com/pandas-dev/pandas/pull/13052 | 152,456,906 | MDExOlB1bGxSZXF1ZXN0Njg1MDg0NDE= | 13,052 | BUG/COMPAT: to_datetime | {
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 2 | 2016-05-01T21:44:32Z | 2016-05-03T00:38:26Z | 2016-05-01T22:59:20Z | CONTRIBUTOR | null | xref #11758, fix for bug in #13033
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13052/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13052/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13052.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13052",
"merged_at": "2016-05-01T22:59:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13052.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13052"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13053 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13053/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13053/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13053/events | https://github.com/pandas-dev/pandas/issues/13053 | 152,487,106 | MDU6SXNzdWUxNTI0ODcxMDY= | 13,053 | Extra empty row when saving to CSV with MultiIndex columns | {
"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"
} | []
| closed | false | null | []
| null | 1 | 2016-05-02T06:07:15Z | 2016-05-02T06:13:46Z | 2016-05-02T06:13:46Z | NONE | null | If using MultiIndex as columns, saving to CSV adds an extra line with no data between the column headers and the data. I couldn't find information that this is something that should happen so it was unexpected to me.
#### Code Sample, a copy-pastable example if possible
In IPython:
``` python
import pandas as pd
pd.DataFrame({('a','b'): [1, 2], ('c','d'): [3, 4]}).to_csv('temp.csv', index=False)
cat temp.csv
```
Outputs:
```
a,c
b,d
,
1,3
2,4
```
#### Expected Output
I expected not to have an empty row between column names and the data:
```
a,c
b,d
1,3
2,4
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.2-gnu-1
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_DK.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.10.1
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: 1.4
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: 1.0.12
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13053/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13053/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13054 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13054/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13054/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13054/events | https://github.com/pandas-dev/pandas/issues/13054 | 152,489,906 | MDU6SXNzdWUxNTI0ODk5MDY= | 13,054 | Unable to read MultiIndex columns from CSV if empty levels | {
"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": "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": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| open | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/23289083?v=4",
"events_url": "https://api.github.com/users/fpunny/events{/privacy}",
"followers_url": "https://api.github.com/users/fpunny/followers",
"following_url": "https://api.github.com/users/fpunny/following{/other_user}",
"gists_url": "https://api.github.com/users/fpunny/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fpunny",
"id": 23289083,
"login": "fpunny",
"node_id": "MDQ6VXNlcjIzMjg5MDgz",
"organizations_url": "https://api.github.com/users/fpunny/orgs",
"received_events_url": "https://api.github.com/users/fpunny/received_events",
"repos_url": "https://api.github.com/users/fpunny/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fpunny/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fpunny/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fpunny"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/23289083?v=4",
"events_url": "https://api.github.com/users/fpunny/events{/privacy}",
"followers_url": "https://api.github.com/users/fpunny/followers",
"following_url": "https://api.github.com/users/fpunny/following{/other_user}",
"gists_url": "https://api.github.com/users/fpunny/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fpunny",
"id": 23289083,
"login": "fpunny",
"node_id": "MDQ6VXNlcjIzMjg5MDgz",
"organizations_url": "https://api.github.com/users/fpunny/orgs",
"received_events_url": "https://api.github.com/users/fpunny/received_events",
"repos_url": "https://api.github.com/users/fpunny/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fpunny/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fpunny/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fpunny"
}
]
| {
"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-05-02T06:33:38Z | 2021-10-07T11:04:13Z | null | NONE | null | If I use MultiIndex columns and if a level happens to have empty values for all columns, the saved CSV file cannot be read. I expected to recover the dataframe from the saved CSV perfectly.
I believe #6618 might be related, because this is somehow related to how Pandas uses an empty data row to separate column names and actual data when using MultiIndex columns.
#### Code Sample, a copy-pastable example if possible
This works as expected:
``` ipython
In [1]: pd.DataFrame({('a','b'): [1, 2], ('c','d'): [3, 4]}).to_csv('temp.csv', index=False)
In [2]: pd.read_csv('temp.csv', header=[0,1])
Out[2]:
a c
b d
0 1 3
1 2 4
```
However, if a level is empty (i.e., all columns are `''` on that level), it doesn't work:
``` ipython
In [3]: pd.DataFrame({('a',''): [1, 2], ('c',''): [3, 4]}).to_csv('temp.csv', index=False)
In [4]: pd.read_csv('temp.csv', header=[0,1])
---------------------------------------------------------------------------
CParserError Traceback (most recent call last)
<ipython-input-73-9f097e07e5a9> in <module>()
----> 1 pd.read_csv('temp.csv', header=[0,1])
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision)
527 skip_blank_lines=skip_blank_lines)
528
--> 529 return _read(filepath_or_buffer, kwds)
530
531 parser_f.__name__ = name
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
293
294 # Create the parser.
--> 295 parser = TextFileReader(filepath_or_buffer, **kwds)
296
297 if (nrows is not None) and (chunksize is not None):
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in __init__(self, f, engine, **kwds)
610 self.options['has_index_names'] = kwds['has_index_names']
611
--> 612 self._make_engine(self.engine)
613
614 def _get_options_with_defaults(self, engine):
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in _make_engine(self, engine)
745 def _make_engine(self, engine='c'):
746 if engine == 'c':
--> 747 self._engine = CParserWrapper(self.f, **self.options)
748 else:
749 if engine == 'python':
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in __init__(self, src, **kwds)
1132 self._extract_multi_indexer_columns(
1133 self._reader.header, self.index_names, self.col_names,
-> 1134 passed_names
1135 )
1136 )
/usr/lib/python3.5/site-packages/pandas/io/parsers.py in _extract_multi_indexer_columns(self, header, index_names, col_names, passed_names)
906 "Passed header=[%s] are too many rows for this "
907 "multi_index of columns"
--> 908 % ','.join([str(x) for x in self.header])
909 )
910
CParserError: Passed header=[0,1] are too many rows for this multi_index of columns
```
#### Expected Output
Expected that the empty columns are read correctly because I had explicitly specified the rows to use as column index:
```
a c
0 1 3
1 2 4
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.2-gnu-1
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_DK.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.10.1
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: 1.4
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: 1.0.12
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13054/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13054/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13055 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13055/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13055/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13055/events | https://github.com/pandas-dev/pandas/pull/13055 | 152,551,234 | MDExOlB1bGxSZXF1ZXN0Njg1NTg3MTY= | 13,055 | CLN: move interpolation tests from test_generic to test_missing | {
"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": "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"
},
{
"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-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 0 | 2016-05-02T13:20:12Z | 2016-05-02T14:07:32Z | 2016-05-02T14:07:32Z | 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/13055/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13055/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13055.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13055",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13055.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13055"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/13056 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13056/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13056/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13056/events | https://github.com/pandas-dev/pandas/issues/13056 | 152,567,645 | MDU6SXNzdWUxNTI1Njc2NDU= | 13,056 | API: inconsistent return format of groupby apply | {
"avatar_url": "https://avatars.githubusercontent.com/u/12717769?v=4",
"events_url": "https://api.github.com/users/edfall/events{/privacy}",
"followers_url": "https://api.github.com/users/edfall/followers",
"following_url": "https://api.github.com/users/edfall/following{/other_user}",
"gists_url": "https://api.github.com/users/edfall/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/edfall",
"id": 12717769,
"login": "edfall",
"node_id": "MDQ6VXNlcjEyNzE3NzY5",
"organizations_url": "https://api.github.com/users/edfall/orgs",
"received_events_url": "https://api.github.com/users/edfall/received_events",
"repos_url": "https://api.github.com/users/edfall/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/edfall/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/edfall/subscriptions",
"type": "User",
"url": "https://api.github.com/users/edfall"
} | [
{
"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": "High level tracker for similar issues",
"id": 183784729,
"name": "Master Tracker",
"node_id": "MDU6TGFiZWwxODM3ODQ3Mjk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Master%20Tracker"
},
{
"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 | []
| null | 14 | 2016-05-02T14:42:09Z | 2021-06-11T13:08:21Z | null | NONE | null | related issues:
- [x] #13121
- [x] #5839
- [x] #9867
- [x] #13255
- [x] #20066
- [ ] #14927 (about detecting mutating functions)
_Thank you very much for provide us pandas which is really a good packages I have used!_
### There were several times when I use pandas but get inconsistent return format which finally leads to a break!
- for example:
``` python
import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randn(10,1), columns = ['x'])
df['y'] = 1
df.groupby('y').apply(lambda x: x.x)
#x 0 1 2 3 4 5 6 \
#y
#1 -1.12114 0.679616 -1.392863 0.032637 -0.051134 0.594201 -0.238833
#x 7 8 9
#y
#1 0.95173 1.07469 -0.062198
df2 = df.copy()
df2['y'] = np.random.randint(1,3,10)
# do something similar like above
df2.groupby('y').apply(lambda x: x.x)
#y
#1 3 0.032637
# 8 1.074690
#2 0 -1.121140
# 1 0.679616
# 2 -1.392863
# 4 -0.051134
# 5 0.594201
# 6 -0.238833
# 7 0.951730
# 9 -0.062198
#Name: x, dtype: float64
```
even though, I knew the way to avoid this issue, I still believe it is better to return the same format. It's really annoying when some inconsistent return format happened which force me to look backwards to use some awkward methods to avoid it.
So, if possible, I do suggest the above function will only return one kind of format.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13056/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13056/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13057 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13057/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13057/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13057/events | https://github.com/pandas-dev/pandas/issues/13057 | 152,584,127 | MDU6SXNzdWUxNTI1ODQxMjc= | 13,057 | ENH: add option to tz_localize to return NaT instead of raising a NonExistentTimeError | {
"avatar_url": "https://avatars.githubusercontent.com/u/405156?v=4",
"events_url": "https://api.github.com/users/dancsi/events{/privacy}",
"followers_url": "https://api.github.com/users/dancsi/followers",
"following_url": "https://api.github.com/users/dancsi/following{/other_user}",
"gists_url": "https://api.github.com/users/dancsi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dancsi",
"id": 405156,
"login": "dancsi",
"node_id": "MDQ6VXNlcjQwNTE1Ng==",
"organizations_url": "https://api.github.com/users/dancsi/orgs",
"received_events_url": "https://api.github.com/users/dancsi/received_events",
"repos_url": "https://api.github.com/users/dancsi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dancsi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dancsi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dancsi"
} | [
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "AD7FA8",
"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": "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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 7 | 2016-05-02T16:00:24Z | 2016-05-07T14:59:43Z | 2016-05-07T14:59:43Z | CONTRIBUTOR | null | It would be nice if the `tz_localize` function of a `DatetimeIndex` had an optional flag for silently returning `NaT` instead of throwing a `NonExistentTimeError`, if the timestamp is not valid in the given timezone (for example due to DST changes).
I ran into this problem while trying to `tz_localize` a large index, and it seems to me that this would be a much better solution than manually handling the exception with a lambda expression in a (slow) python loop.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13057/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13057/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13058 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13058/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13058/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13058/events | https://github.com/pandas-dev/pandas/pull/13058 | 152,640,376 | MDExOlB1bGxSZXF1ZXN0Njg2MTgxMzk= | 13,058 | ENH: Add an errors flag to tz_localize | {
"avatar_url": "https://avatars.githubusercontent.com/u/405156?v=4",
"events_url": "https://api.github.com/users/dancsi/events{/privacy}",
"followers_url": "https://api.github.com/users/dancsi/followers",
"following_url": "https://api.github.com/users/dancsi/following{/other_user}",
"gists_url": "https://api.github.com/users/dancsi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dancsi",
"id": 405156,
"login": "dancsi",
"node_id": "MDQ6VXNlcjQwNTE1Ng==",
"organizations_url": "https://api.github.com/users/dancsi/orgs",
"received_events_url": "https://api.github.com/users/dancsi/received_events",
"repos_url": "https://api.github.com/users/dancsi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dancsi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dancsi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dancsi"
} | [
{
"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": "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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 13 | 2016-05-02T20:42:59Z | 2016-05-07T15:00:19Z | 2016-05-07T14:59:43Z | CONTRIBUTOR | null | closes #13057
Author: dancsi [email protected]
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13058/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13058/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13058.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13058",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13058.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13058"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13059 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13059/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13059/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13059/events | https://github.com/pandas-dev/pandas/pull/13059 | 152,678,840 | MDExOlB1bGxSZXF1ZXN0Njg2NDUzNDM= | 13,059 | BUG: More followups on to_datetime exceptions, xref #13033 | {
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"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-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 2 | 2016-05-03T01:01:00Z | 2016-05-03T12:51:19Z | 2016-05-03T12:51:19Z | CONTRIBUTOR | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13059/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13059/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13059.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13059",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13059.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13059"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/13060 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13060/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13060/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13060/events | https://github.com/pandas-dev/pandas/pull/13060 | 152,688,611 | MDExOlB1bGxSZXF1ZXN0Njg2NTA5OTk= | 13,060 | DOC: add warning section in indexing docs. | {
"avatar_url": "https://avatars.githubusercontent.com/u/10690183?v=4",
"events_url": "https://api.github.com/users/zhangxiangnick/events{/privacy}",
"followers_url": "https://api.github.com/users/zhangxiangnick/followers",
"following_url": "https://api.github.com/users/zhangxiangnick/following{/other_user}",
"gists_url": "https://api.github.com/users/zhangxiangnick/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zhangxiangnick",
"id": 10690183,
"login": "zhangxiangnick",
"node_id": "MDQ6VXNlcjEwNjkwMTgz",
"organizations_url": "https://api.github.com/users/zhangxiangnick/orgs",
"received_events_url": "https://api.github.com/users/zhangxiangnick/received_events",
"repos_url": "https://api.github.com/users/zhangxiangnick/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zhangxiangnick/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zhangxiangnick/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zhangxiangnick"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| closed | false | null | []
| null | 3 | 2016-05-03T02:37:11Z | 2016-05-03T17:50:13Z | 2016-05-03T17:50:13Z | CONTRIBUTOR | null | Add warning section in indexing docs. Close #12947.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13060/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13060/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13060.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13060",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13060.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13060"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13061 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13061/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13061/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13061/events | https://github.com/pandas-dev/pandas/issues/13061 | 152,697,610 | MDU6SXNzdWUxNTI2OTc2MTA= | 13,061 | DOC: DataFrame.to_hdf() docstring does not mention data_columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 1 | 2016-05-03T04:31:17Z | 2016-08-19T10:49:54Z | 2016-08-19T10:49:54Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
To be able to do on-disk filtering per column, one needs to store not only in `table` format, but also create an index in the HDF file for the columns required to be indexed, or setting it to `True`, for all columns to be indexed.
This needs to be done by using the method parameter `data_columns`, which is completely missing from the docstring of `to_hdf`:
``` python
df.to_hdf('teststore.hdf', 'df',format='t', data_columns=True)
```
Docstring is [here](https://github.com/pydata/pandas/blob/e462ece64b7cb12fe7cad6e085f62f3bfe9785c6/pandas/core/generic.py#L1053-L1093)
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.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
pandas: 0.18.0
nose: None
pip: 8.1.1
setuptools: 20.7.0
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: 0.7.1
IPython: 4.2.0
sphinx: 1.4.1
patsy: None
dateutil: 2.5.2
pytz: 2016.3
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
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
| {
"+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/13061/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13061/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13062 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13062/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13062/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13062/events | https://github.com/pandas-dev/pandas/issues/13062 | 152,699,471 | MDU6SXNzdWUxNTI2OTk0NzE= | 13,062 | HDF query with long literal string fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [
{
"color": "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": "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 | []
| null | 6 | 2016-05-03T04:55:27Z | 2016-05-05T05:51:06Z | 2016-05-03T13:02:39Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
``` python
c_ids = ['50ef419195e6e40eac000001', '50ef419195e6e40eac000002', '50ef419195e6e40eac000003']
df = pd.DataFrame({'class_id':c_ids, 'a':range(3)})
df.to_hdf('teststore.hdf', 'df',format='t', data_columns=True)
print('with variable')
c_id = '50ef419195e6e40eac000001'
print(pd.read_hdf('teststore.hdf', 'df', where='class_id=c_id'), '\n')
print('with literal string')
print(pd.read_hdf('teststore.hdf', 'df', where='class_id=50ef419195e6e40eac000001'))
```
#### Actual output
``` bash
with variable
a class_id
0 0 50ef419195e6e40eac000001
with literal string
File "<unknown>", line 1
class_id ==50 ef419195e6e40eac000001
^
SyntaxError: invalid syntax
```
#### Expected Output
``` bash
with variable
a class_id
0 0 50ef419195e6e40eac000001
with literal string
a class_id
0 0 50ef419195e6e40eac000001
```
#### my own analysis
I figured it must have something to do with the length of the query, so I went down in class_id size to 14 characters, which is when it starts to work again:
``` python
c_ids = ['e6e40eac000001', 'e6e40eac000002', 'e6e40eac000003']
df = pd.DataFrame({'class_id':c_ids, 'a':range(3)})
df.to_hdf('teststore.hdf', 'df',format='t', data_columns=True)
print('with variable')
c_id = 'e6e40eac000001'
print(pd.read_hdf('teststore.hdf', 'df', where='class_id=c_id'), '\n')
print('with literal string')
print(pd.read_hdf('teststore.hdf', 'df', where='class_id=e6e40eac000001'))
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.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
pandas: 0.18.0
nose: None
pip: 8.1.1
setuptools: 20.7.0
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: 0.7.1
IPython: 4.2.0
sphinx: 1.4.1
patsy: None
dateutil: 2.5.2
pytz: 2016.3
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13062/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13062/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13063 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13063/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13063/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13063/events | https://github.com/pandas-dev/pandas/issues/13063 | 152,714,774 | MDU6SXNzdWUxNTI3MTQ3NzQ= | 13,063 | BUG: pd.read_csv not correctly parsing date/month field when set parse_date = ['column name'] | {
"avatar_url": "https://avatars.githubusercontent.com/u/6098052?v=4",
"events_url": "https://api.github.com/users/itsmesaranya/events{/privacy}",
"followers_url": "https://api.github.com/users/itsmesaranya/followers",
"following_url": "https://api.github.com/users/itsmesaranya/following{/other_user}",
"gists_url": "https://api.github.com/users/itsmesaranya/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/itsmesaranya",
"id": 6098052,
"login": "itsmesaranya",
"node_id": "MDQ6VXNlcjYwOTgwNTI=",
"organizations_url": "https://api.github.com/users/itsmesaranya/orgs",
"received_events_url": "https://api.github.com/users/itsmesaranya/received_events",
"repos_url": "https://api.github.com/users/itsmesaranya/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/itsmesaranya/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/itsmesaranya/subscriptions",
"type": "User",
"url": "https://api.github.com/users/itsmesaranya"
} | [
{
"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": "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"
} | 1 | 2016-05-03T07:22:43Z | 2016-05-03T09:03:49Z | 2016-05-03T09:03:03Z | NONE | null | I ran in to this bug while trying to parse the few dates through `parse_dates` of `pandas.read_csv()`. In the following code snippet, I'm trying to parse dates that have format `dd/mm/yy` which is resulting me an improper conversion. For some cases, the date field is considered as month and vice versa.
To keep it simple, for some cases `dd/mm/yy` get converted to `yyyy-dd-mm` instead of `yyyy-mm-dd`.
### Case 1:
```
04/10/96 is parsed as 1996-04-10, which is wrong.
```
### Case 2:
```
15/07/97 is parsed as 1997-07-15, which is correct.
```
### Case 3:
```
10/12/97 is parsed as 1997-10-12, which is wrong.
```
#### Code Sample
```
import pandas as pd
df = pd.read_csv('date_time.csv')
print 'Data in csv:'
print df
print df['start_date'].dtypes
print '----------------------------------------------'
df = pd.read_csv('date_time.csv', parse_dates = ['start_date'])
print 'Data after parsing:'
print df
print df['start_date'].dtypes
```
#### Current Output
<pre><code>----------------------
Data in csv:
----------------------
start_date
0 04/10/96
1 15/07/97
2 10/12/97
3 06/03/99
4 //1994
5 /02/1967
object
----------------------
Data after parsing:
----------------------
start_date
0 1996-04-10
1 1997-07-15
2 1997-10-12
3 1999-06-03
4 1994-01-01
5 1967-02-01
datetime64[ns]
</code></pre>
#### Expected Output
```
----------------------
Data in csv:
----------------------
start_date
0 04/10/96
1 15/07/97
2 10/12/97
3 06/03/99
4 //1994
5 /02/1967
object
----------------------
Data after parsing:
----------------------
start_date
0 1996-10-04
1 1997-07-15
2 1997-12-10
3 1999-03-06
4 1994-01-01
5 1967-02-01
datetime64[ns]
```
#### Output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 8.1
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US
pandas: 0.17.1
nose: 1.3.7
pip: 7.1.2
setuptools: 18.5
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.16.0
statsmodels: None
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.5.0
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.4.4
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
Jinja2: None
### More Comments:
I could use `date_parser` or `pandas.to_datetime()` to specify the proper format for date. But in my case, I have few date fields like ['//1997', '/02/1967'] for which I need to convert ['01/01/1997','01/02/1967']. The `parse_dates` helps me converting those type of date fields to the expected format without making me to write extra line of code.
[parse_date_bug.zip](https://github.com/pydata/pandas/files/246420/parse_date_bug.zip)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13063/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13063/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13064 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13064/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13064/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13064/events | https://github.com/pandas-dev/pandas/issues/13064 | 152,743,512 | MDU6SXNzdWUxNTI3NDM1MTI= | 13,064 | 0.16.2 : IndexError: index out of bounds | {
"avatar_url": "https://avatars.githubusercontent.com/u/1755025?v=4",
"events_url": "https://api.github.com/users/Skycrab/events{/privacy}",
"followers_url": "https://api.github.com/users/Skycrab/followers",
"following_url": "https://api.github.com/users/Skycrab/following{/other_user}",
"gists_url": "https://api.github.com/users/Skycrab/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Skycrab",
"id": 1755025,
"login": "Skycrab",
"node_id": "MDQ6VXNlcjE3NTUwMjU=",
"organizations_url": "https://api.github.com/users/Skycrab/orgs",
"received_events_url": "https://api.github.com/users/Skycrab/received_events",
"repos_url": "https://api.github.com/users/Skycrab/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Skycrab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Skycrab/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Skycrab"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| closed | false | null | []
| {
"closed_at": 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-05-03T10:31:13Z | 2016-05-03T13:01:29Z | 2016-05-03T13:01:29Z | NONE | null | Hi, i am use 0.16.2. I got the "IndexError: index out of bounds", the script is:
``` python
import pandas as pd
def test():
names = ['openid', 'clientid', 'roleid', 'rolename', 'school', 'IP', 'snid', 'rolelogin_time', 'amount', 'val', 'consume_sum', 'own_after', 'first_payment_time', 'last_payment_time', 'last_login_time', 'first_pay_level', 'level', 'vip_level']
df = pd.read_csv("2016-04-29.csv", names=names)
df_role = df.set_index(["openid", "clientid"], drop=False)
clientid_role = df_role.groupby("clientid").openid.nunique()
test()
```
here is the output:
```
Traceback (most recent call last):
File "test.py", line 11, in <module>
test()
File "test.py", line 7, in test
clientid_role = df_role.groupby("clientid").openid.nunique()
File "<string>", line 18, in nunique
File "/root/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 514, in __getattr__
if attr in self.obj:
File "/root/anaconda/lib/python2.7/site-packages/pandas/core/generic.py", line 704, in __contains__
return key in self._info_axis
File "/root/anaconda/lib/python2.7/site-packages/pandas/core/index.py", line 4521, in __contains__
self.get_loc(key)
File "/root/anaconda/lib/python2.7/site-packages/pandas/core/index.py", line 5055, in get_loc
loc = self._get_level_indexer(key, level=0)
File "/root/anaconda/lib/python2.7/site-packages/pandas/core/index.py", line 5291, in _get_level_indexer
loc = level_index.get_loc(key)
File "/root/anaconda/lib/python2.7/site-packages/pandas/core/index.py", line 1572, in get_loc
return self._engine.get_loc(_values_from_object(key))
File "pandas/index.pyx", line 134, in pandas.index.IndexEngine.get_loc (pandas/index.c:3824)
File "pandas/index.pyx", line 143, in pandas.index.IndexEngine.get_loc (pandas/index.c:3578)
File "pandas/src/util.pxd", line 41, in util.get_value_at (pandas/index.c:15287)
IndexError: index out of bounds
```
2016-04-29.csv is almost 760M, the code and csv can clone from [https://github.com/Skycrab/pandas_test](https://github.com/Skycrab/pandas_test)
see also [https://github.com/pydata/pandas/issues/5727](https://github.com/pydata/pandas/issues/5727)
#### output of `pd.show_versions()`
`In [4]: pd.show_versions()
## INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-431.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.2
nose: 1.3.7
Cython: 0.22.1
numpy: 1.9.2
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 3.2.0
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.4
bottleneck: 1.0.0
tables: 3.2.0
numexpr: 2.4.3
matplotlib: 1.4.3
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.5
pymysql: None
psycopg2: None`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13064/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13064/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13065 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13065/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13065/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13065/events | https://github.com/pandas-dev/pandas/pull/13065 | 152,749,001 | MDExOlB1bGxSZXF1ZXN0Njg2ODk3MDQ= | 13,065 | add data_columns to doc string | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [
{
"color": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 17 | 2016-05-03T11:07:21Z | 2016-08-19T11:53:36Z | 2016-08-19T11:53:17Z | CONTRIBUTOR | null | - [x] closes #13061
- [ ] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
How about this for #13061 ?
I don't think pandas has tests for each documented field, correct?
Do you want a whatsnew entry for this? If yes, how does that work? The guidelines don't talk about that.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13065/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13065/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13065.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13065",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13065.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13065"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13066 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13066/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13066/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13066/events | https://github.com/pandas-dev/pandas/pull/13066 | 152,807,437 | MDExOlB1bGxSZXF1ZXN0Njg3Mjc4MjA= | 13,066 | BUG: Default to stat axis for SparseDataFrame when axis=None | {
"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": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 9 | 2016-05-03T15:46:29Z | 2016-05-07T14:53:12Z | 2016-05-07T14:53:12Z | MEMBER | null | Title is self-explanatory. Closes #13048.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13066/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13066/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13066.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13066",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13066.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13066"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13067 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13067/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13067/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13067/events | https://github.com/pandas-dev/pandas/pull/13067 | 152,826,611 | MDExOlB1bGxSZXF1ZXN0Njg3NDA5Njc= | 13,067 | BUG: Period resample with length=0 doesn't set freq | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "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"
},
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 9 | 2016-05-03T17:11:46Z | 2016-05-05T16:14:29Z | 2016-05-05T16:14:28Z | MEMBER | null | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
given freq is not applied if data is empty.
```
s = pd.Series(index=pd.PeriodIndex([], freq='D'))
s.resample('M').mean()
# Series([], Freq: D, dtype: float64)
```
#### Expected
```
s.resample('M').mean()
# Series([], Freq: M, dtype: float64)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13067/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13067/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13067.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13067",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13067.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13067"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13068 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13068/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13068/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13068/events | https://github.com/pandas-dev/pandas/issues/13068 | 152,827,225 | MDU6SXNzdWUxNTI4MjcyMjU= | 13,068 | Python 3 writing to_csv file ignores encoding argument. | {
"avatar_url": "https://avatars.githubusercontent.com/u/413772?v=4",
"events_url": "https://api.github.com/users/graingert/events{/privacy}",
"followers_url": "https://api.github.com/users/graingert/followers",
"following_url": "https://api.github.com/users/graingert/following{/other_user}",
"gists_url": "https://api.github.com/users/graingert/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/graingert",
"id": 413772,
"login": "graingert",
"node_id": "MDQ6VXNlcjQxMzc3Mg==",
"organizations_url": "https://api.github.com/users/graingert/orgs",
"received_events_url": "https://api.github.com/users/graingert/received_events",
"repos_url": "https://api.github.com/users/graingert/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/graingert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/graingert/subscriptions",
"type": "User",
"url": "https://api.github.com/users/graingert"
} | [
{
"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": "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": "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": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
} | 32 | 2016-05-03T17:13:57Z | 2020-08-07T11:53:10Z | 2020-08-07T11:53:10Z | CONTRIBUTOR | null | ``` python
# is missing the UTF8 BOM (encoded with default encoding UTF8)
with open('path_to_f', 'w') as f:
df.to_csv(f, encoding='utf-8-sig')
# is not missing the UTF8 BOM (encoded with passed encoding utf-8-sig)
df.to_csv('path_to_f', encoding='utf-8-sig')
```
I expect:
``` python
with open('path_to_f', 'w') as f:
df.to_csv(f, encoding='utf-8-sig')
```
To crash with `TypeError: write() argument must be str, not bytes`
and I expect:
``` python
with open('path_to_f', 'wb') as f:
df.to_csv(f, encoding='utf-8-sig')
```
To write the file correctly.
### Copy pasta
``` python
#!/usr/bin/env python3
import pandas as pd
df = pd.DataFrame()
with open('file_one', 'w') as f:
df.to_csv(f, encoding='utf-8-sig')
assert open('file_one', 'rb').read() == b'""\n'
# is not missing the UTF8 BOM (encoded with passed encoding utf-8-sig)
df.to_csv('file_two', encoding='utf-8-sig')
assert open('file_two', 'rb').read() == b'\xef\xbb\xbf""\n'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13068/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13068/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13069 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13069/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13069/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13069/events | https://github.com/pandas-dev/pandas/pull/13069 | 152,828,048 | MDExOlB1bGxSZXF1ZXN0Njg3NDE3NjQ= | 13,069 | BUG: Addition raises TypeError if Period is on rhs | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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"
},
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2016-05-03T17:17:24Z | 2016-05-07T18:54:14Z | 2016-05-07T18:53:51Z | MEMBER | null | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
`Period` addition raises `TypeError` if `Period` is on right hand side.
```
1 + pd.Period('2011-01', freq='M')
# TypeError: unsupported operand type(s) for +: 'int' and 'pandas._period.Period'
```
#### Expected
```
1 + pd.Period('2011-01', freq='M')
# Period('2011-02', 'M')
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13069/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13069/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13069.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13069",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13069.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13069"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13070 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13070/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13070/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13070/events | https://github.com/pandas-dev/pandas/pull/13070 | 152,834,554 | MDExOlB1bGxSZXF1ZXN0Njg3NDYzMjI= | 13,070 | DOC: add warning section in indexing docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/10690183?v=4",
"events_url": "https://api.github.com/users/zhangxiangnick/events{/privacy}",
"followers_url": "https://api.github.com/users/zhangxiangnick/followers",
"following_url": "https://api.github.com/users/zhangxiangnick/following{/other_user}",
"gists_url": "https://api.github.com/users/zhangxiangnick/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zhangxiangnick",
"id": 10690183,
"login": "zhangxiangnick",
"node_id": "MDQ6VXNlcjEwNjkwMTgz",
"organizations_url": "https://api.github.com/users/zhangxiangnick/orgs",
"received_events_url": "https://api.github.com/users/zhangxiangnick/received_events",
"repos_url": "https://api.github.com/users/zhangxiangnick/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zhangxiangnick/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zhangxiangnick/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zhangxiangnick"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 1 | 2016-05-03T17:48:35Z | 2016-05-07T14:51:43Z | 2016-05-07T14:51:35Z | CONTRIBUTOR | null | Replace PR #13060 and close #12947.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13070/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13070/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13070.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13070",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13070.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13070"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13071 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13071/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13071/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13071/events | https://github.com/pandas-dev/pandas/pull/13071 | 152,835,127 | MDExOlB1bGxSZXF1ZXN0Njg3NDY3Mzg= | 13,071 | BUG: PeriodIndex and Period subtraction error | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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"
},
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 15 | 2016-05-03T17:51:08Z | 2016-05-06T11:50:06Z | 2016-05-06T11:50:06Z | MEMBER | null | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Similar to #5202. `PeriodIndex` subtraction raises `AttributeError` either side is `Period` (scalar).
```
pd.PeriodIndex(['2011-01', '2011-02'], freq='M') - pd.Period('2011-01', freq='M')
# AttributeError: 'PeriodIndex' object has no attribute 'ordinal'
```
#### Expected
If `Period(NaT)` is included in either side, result is `Float64Index` to hold `nan`.
```
pd.PeriodIndex(['2011-01', '2011-02'], freq='M') - pd.Period('2011-01', freq='M')
# Int64Index([0, 1], dtype='int64')
pd.PeriodIndex(['2011-01', 'NaT'], freq='M') - pd.Period('2011-01', freq='M')
Float64Index([0.0, nan], dtype='float64')
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13071/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13071/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13071.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13071",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13071.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13071"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13072 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13072/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13072/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13072/events | https://github.com/pandas-dev/pandas/pull/13072 | 152,838,584 | MDExOlB1bGxSZXF1ZXN0Njg3NDkyNzg= | 13,072 | BUG: Series ops with object dtype may incorrectly fail | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 1 | 2016-05-03T18:08:54Z | 2016-05-11T22:51:03Z | 2016-05-11T22:51:03Z | MEMBER | null | - [x] closes #13043
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
This must be after #13069.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13072/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13072/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13072.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13072",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13072.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13072"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13073 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13073/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13073/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13073/events | https://github.com/pandas-dev/pandas/pull/13073 | 152,858,260 | MDExOlB1bGxSZXF1ZXN0Njg3NjMxODU= | 13,073 | BUG: Respect Filtered Categorical in Crosstab | {
"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": "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": 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"
} | 15 | 2016-05-03T19:44:07Z | 2016-05-13T00:43:14Z | 2016-05-13T00:20:25Z | MEMBER | null | Closes #12298 by stripping the `Categorical` elements of their original categories so that only their included values are considered during the counting / aggregation.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13073/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13073/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13073.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13073",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13073.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13073"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13074 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13074/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13074/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13074/events | https://github.com/pandas-dev/pandas/issues/13074 | 152,881,094 | MDU6SXNzdWUxNTI4ODEwOTQ= | 13,074 | Add .tobytes() method to categorical type | {
"avatar_url": "https://avatars.githubusercontent.com/u/5126549?v=4",
"events_url": "https://api.github.com/users/lminer/events{/privacy}",
"followers_url": "https://api.github.com/users/lminer/followers",
"following_url": "https://api.github.com/users/lminer/following{/other_user}",
"gists_url": "https://api.github.com/users/lminer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lminer",
"id": 5126549,
"login": "lminer",
"node_id": "MDQ6VXNlcjUxMjY1NDk=",
"organizations_url": "https://api.github.com/users/lminer/orgs",
"received_events_url": "https://api.github.com/users/lminer/received_events",
"repos_url": "https://api.github.com/users/lminer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lminer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lminer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lminer"
} | [
{
"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": "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 | []
| null | 8 | 2016-05-03T21:40:49Z | 2016-05-03T21:57:04Z | 2016-05-03T21:54:31Z | NONE | null | It would be nice to have this implemented so that a parallel apply using `dask` could be used on dataframes with `Categorical` type columns.
Right now if I try to use `Dask` for a parallelized apply like so:
``` python
import dask.dataframe as dd
df_test = pd.DataFrame({'id': ['a', 'a', 'a', 'b', 'b'],
'cat': ['t','h','t','h','t']})
df_test['cat'] = df_test['cat'].astype('category')
df_test = dd.from_pandas(df_test, npartitions=20)
dd_result = df_test.groupby('id').apply(lambda x: (x['cat'] == 't').sum())
pd_result = dd_result.compute()
```
I get the following error:
``` python
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-19-3dadd485a741> in <module>()
3 dfd = dd.from_pandas(df, npartitions=20)
4 dd_result = dfd.groupby('item').apply(gen_will_nsf) # or whatever
----> 5 pd_result = dd_result.compute()
/usr/local/lib/python2.7/dist-packages/dask/base.pyc in compute(self, **kwargs)
35
36 def compute(self, **kwargs):
---> 37 return compute(self, **kwargs)[0]
38
39 @classmethod
/usr/local/lib/python2.7/dist-packages/dask/base.pyc in compute(*args, **kwargs)
108 for opt, val in groups.items()])
109 keys = [var._keys() for var in variables]
--> 110 results = get(dsk, keys, **kwargs)
111
112 results_iter = iter(results)
/usr/local/lib/python2.7/dist-packages/dask/threaded.pyc in get(dsk, result, cache, num_workers, **kwargs)
55 results = get_async(pool.apply_async, len(pool._pool), dsk, result,
56 cache=cache, queue=queue, get_id=_thread_get_id,
---> 57 **kwargs)
58
59 return results
/usr/local/lib/python2.7/dist-packages/dask/async.pyc in get_async(apply_async, num_workers, dsk, result, cache, queue, get_id, raise_on_exception, rerun_exceptions_locally, callbacks, **kwargs)
479 _execute_task(task, data) # Re-execute locally
480 else:
--> 481 raise(remote_exception(res, tb))
482 state['cache'][key] = res
483 finish_task(dsk, key, state, results, keyorder.get)
AttributeError: 'Categorical' object has no attribute 'tobytes'
Traceback
---------
File "/usr/local/lib/python2.7/dist-packages/dask/async.py", line 264, in execute_task
result = _execute_task(task, data)
File "/usr/local/lib/python2.7/dist-packages/dask/async.py", line 246, in _execute_task
return func(*args2)
File "/usr/local/lib/python2.7/dist-packages/dask/dataframe/shuffle.py", line 256, in partition
p.append(d)
File "/usr/local/lib/python2.7/dist-packages/partd/encode.py", line 23, in append
data = valmap(self.encode, data)
File "/usr/local/lib/python2.7/dist-packages/toolz/dicttoolz.py", line 84, in valmap
rv.update(zip(iterkeys(d), map(func, itervalues(d))))
File "/usr/local/lib/python2.7/dist-packages/partd/pandas.py", line 108, in serialize
for block in blocks] # this can be slightly faster if we merge both operations
File "/usr/local/lib/python2.7/dist-packages/partd/numpy.py", line 101, in serialize
return x.tobytes()
```
## INSTALLED VERSIONS
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-76-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0
nose: 1.3.1
pip: 8.1.1
setuptools: 19.1.1
Cython: 0.23.4
numpy: 1.10.2
scipy: 0.16.1
statsmodels: 0.6.1
xarray: None
IPython: 4.0.2
sphinx: 1.2.2
patsy: 0.4.1
dateutil: 2.5.2
pytz: 2016.3
blosc: None
bottleneck: 1.0.0
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: 0.7.5
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13074/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13074/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13075 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13075/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13075/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13075/events | https://github.com/pandas-dev/pandas/issues/13075 | 152,888,735 | MDU6SXNzdWUxNTI4ODg3MzU= | 13,075 | More comprehensive testing for interp methods 'piecewise_polynomial' / 'from_derivatives' | {
"avatar_url": "https://avatars.githubusercontent.com/u/7530947?v=4",
"events_url": "https://api.github.com/users/jmwoloso/events{/privacy}",
"followers_url": "https://api.github.com/users/jmwoloso/followers",
"following_url": "https://api.github.com/users/jmwoloso/following{/other_user}",
"gists_url": "https://api.github.com/users/jmwoloso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jmwoloso",
"id": 7530947,
"login": "jmwoloso",
"node_id": "MDQ6VXNlcjc1MzA5NDc=",
"organizations_url": "https://api.github.com/users/jmwoloso/orgs",
"received_events_url": "https://api.github.com/users/jmwoloso/received_events",
"repos_url": "https://api.github.com/users/jmwoloso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jmwoloso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jmwoloso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jmwoloso"
} | [
{
"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": "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"
}
]
| 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-05-03T22:26:58Z | 2021-04-24T03:59:34Z | null | NONE | null | @jreback Just opening this up as the next step after pydata/pandas#12887.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13075/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13075/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13076 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13076/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13076/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13076/events | https://github.com/pandas-dev/pandas/issues/13076 | 152,897,251 | MDU6SXNzdWUxNTI4OTcyNTE= | 13,076 | TST: assert_series/frame not comparing for categoricals | {
"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": "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": "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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 5 | 2016-05-03T23:27:27Z | 2016-05-21T23:58:25Z | 2016-05-21T23:58:25Z | CONTRIBUTOR | null | xref https://github.com/dask/partd/pull/7
```
In [1]: df1 = DataFrame({'A' : Series(list('aba')).astype('category', categories=list('ab'), ordered=True)})
In [2]: df2 = DataFrame({'A' : Series(list('aba')).astype('category', categories=list('ba'), ordered=True)})
In [3]: tm.assert_frame_equal(df1, df2)
In [11]: df2 = DataFrame({'A' : Series(list('aba')).astype('category', categories=list('ab'), ordered=False)})
In [12]: tm.assert_frame_equal(df1, df2)
In [13]: df2 = DataFrame({'A' : Series(list('aba')).astype('category', categories=list('ba'), ordered=False)})
In [14]: tm.assert_frame_equal(df1, df2)
```
all of these should fail as the ordered categoricals don't compare equal in the categories, and ordered is not being compared (nor categories)
Furthermore the `assert_series_equal` fail for the same.
`assert_categorical_equal` DOES the right thing, but not being called here. (not that this _should_ say `categories` are not equal?)
```
In [17]: tm.assert_categorical_equal(df1.A.values, df2.A.values)
AssertionError: Index are different
Index values are different (100.0 %)
[left]: Index([u'a', u'b'], dtype='object')
[right]: Index([u'b', u'a'], dtype='object')
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13076/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13076/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13077 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13077/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13077/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13077/events | https://github.com/pandas-dev/pandas/issues/13077 | 152,912,518 | MDU6SXNzdWUxNTI5MTI1MTg= | 13,077 | ENH/API: Decide what to return Period - Period subtraction | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "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": "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-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-05-04T01:49:30Z | 2018-06-29T00:45:49Z | 2018-06-29T00:45:49Z | MEMBER | null | #### Code Sample, a copy-pastable example if possible
Split from #13071. Currently it returns int and loses freq info.
```
pd.Period('2011-03', freq='M') - pd.Period('2011-01', freq='M')
#2
```
#### Expected Output
Current ideas are:
1. Return `Timedelta` adding support of `Monthly` freq.
2. Return `Perioddelta` newly created.
3. Return `DateOffset`.
#### output of `pd.show_versions()`
on current master.
CC: @jreback @MaximilianR
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13077/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13077/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13078 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13078/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13078/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13078/events | https://github.com/pandas-dev/pandas/issues/13078 | 152,912,833 | MDU6SXNzdWUxNTI5MTI4MzM= | 13,078 | BUG/ERR: DatetimeIndex - Period shows ununderstandable error | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "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": "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": "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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-05-04T01:53:08Z | 2016-07-10T21:02:56Z | 2016-07-10T21:02:56Z | MEMBER | null | #### Code Sample, a copy-pastable example if possible
Split from #13071. `DatetimeIndex` - `Period` is not supported ATM, but errors are not understandable.
```
pd.DatetimeIndex(['2011-01-01', '2011-02-01']) - pd.Period('2011-01-01', freq='D')
# ValueError: Cannot do arithmetic with non-conforming periods
pd.DatetimeIndex(['2011-01-01', '2011-01-02'], freq='D') - pd.Period('2011-01-01', freq='D')
# AttributeError: 'DatetimeIndex' object has no attribute 'ordinal'
```
#### Expected Output
show understandable error message.
Or it should be supported converting `Period` to `Timestamp`.
```
pd.DatetimeIndex(['2011-01-01', '2011-02-01']) - pd.Period('2011-01-01', freq='D').to_timestamp()
# TimedeltaIndex(['0 days', '31 days'], dtype='timedelta64[ns]', freq=None)
```
#### output of `pd.show_versions()`
on current master
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13078/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13078/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13079 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13079/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13079/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13079/events | https://github.com/pandas-dev/pandas/pull/13079 | 152,919,578 | MDExOlB1bGxSZXF1ZXN0Njg4MDQ4Nzk= | 13,079 | BUG: Empty PeriodIndex issues | {
"avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4",
"events_url": "https://api.github.com/users/max-sixty/events{/privacy}",
"followers_url": "https://api.github.com/users/max-sixty/followers",
"following_url": "https://api.github.com/users/max-sixty/following{/other_user}",
"gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/max-sixty",
"id": 5635139,
"login": "max-sixty",
"node_id": "MDQ6VXNlcjU2MzUxMzk=",
"organizations_url": "https://api.github.com/users/max-sixty/orgs",
"received_events_url": "https://api.github.com/users/max-sixty/received_events",
"repos_url": "https://api.github.com/users/max-sixty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/max-sixty"
} | [
{
"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": "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"
},
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 17 | 2016-05-04T02:52:47Z | 2016-05-21T14:53:09Z | 2016-05-21T14:12:53Z | CONTRIBUTOR | null | - [x] closes #13067 (existing PR)
- [x] tests added / passed
- [X] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
closes #13067
closes #13212
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13079/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13079/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13079.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13079",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13079.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13079"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13080 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13080/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13080/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13080/events | https://github.com/pandas-dev/pandas/pull/13080 | 152,928,065 | MDExOlB1bGxSZXF1ZXN0Njg4MTAzMTM= | 13,080 | TST: fix assert_categorical_equal message | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "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": "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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 1 | 2016-05-04T04:40:04Z | 2016-05-11T22:41:43Z | 2016-05-11T22:41:36Z | MEMBER | null | - [x] stage 1 of #13076
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] no whatsnew as it is internal test method
```
a = pd.Categorical([1, 2, 3, 4])
b = pd.Categorical([1, 2, 3, 5])
tm.assert_categorical_equal(a, b)
# Categorical.categories are different
# ...
a = pd.Categorical([1, 2, 4, 3], categories=[1, 2, 3, 4])
b = pd.Categorical([1, 2, 3, 4], categories=[1, 2, 3, 4])
tm.assert_categorical_equal(a, b)
# Categorical.codes values are different (50.0 %)
# ...
```
This must be after #13088.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13080/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13080/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13080.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13080",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13080.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13080"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13081 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13081/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13081/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13081/events | https://github.com/pandas-dev/pandas/pull/13081 | 152,998,566 | MDExOlB1bGxSZXF1ZXN0Njg4NTMxNzA= | 13,081 | TST/CLN: Cleanup test_pickle | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 2 | 2016-05-04T12:25:01Z | 2016-05-04T13:57:14Z | 2016-05-04T13:57:14Z | MEMBER | null | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
Merging comparison dispatch logic.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13081/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13081/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13081.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13081",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13081.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13081"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13082 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13082/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13082/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13082/events | https://github.com/pandas-dev/pandas/pull/13082 | 152,999,808 | MDExOlB1bGxSZXF1ZXN0Njg4NTQwMzA= | 13,082 | PERF: Sparse ops speedup | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-05-04T12:32:14Z | 2016-05-05T12:03:46Z | 2016-05-05T12:03:38Z | MEMBER | null | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Follow-up for #13036. Perf improvements are not significant because the number of previous `list.append` call is not so large.
```
import numpy as np
import pandas as pd
np.random.seed(1)
N = 1000000
a = np.array([np.nan] * N)
b = np.array([np.nan] * N)
indexer_a = np.unique(np.random.randint(0, N, N / 10))
indexer_b = np.unique(np.random.randint(0, N, N / 10))
a[indexer_a] = np.random.randint(0, 100, len(indexer_a))
b[indexer_b] = np.random.randint(0, 100, len(indexer_b))
sa = pd.SparseArray(a)
sb = pd.SparseArray(b)
%timeit a.sp_index.intersect(sb.sp_index0)
# before
#100 loops, best of 3: 3.04 ms per loop
# after
#100 loops, best of 3: 2.11 ms per loop
```
```
def make_sparse_array(length, num_blocks, block_size, fill_value):
a = np.array([fill_value] * length)
for block in range(num_blocks):
i = np.random.randint(0, length)
a[i:i + block_size] = np.random.randint(0, 100, len(a[i:i + block_size]))
return pd.SparseArray(a, fill_value=fill_value)
N = 1000000
B = 10000
BS = 10
a = make_sparse_array(length=N, num_blocks=B, block_size=BS, fill_value=np.nan)
b = make_sparse_array(length=N, num_blocks=B, block_size=BS, fill_value=np.nan)
%timeit a + b
# before
#10 loops, best of 3: 70.8 ms per loop
# after
#10 loops, best of 3: 66 ms per loop
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13082/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13082/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13082.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13082",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13082.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13082"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13083 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13083/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13083/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13083/events | https://github.com/pandas-dev/pandas/issues/13083 | 153,005,819 | MDU6SXNzdWUxNTMwMDU4MTk= | 13,083 | ohlc resampling returns a different type depending on upsampling vs downsampling | {
"avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4",
"events_url": "https://api.github.com/users/max-sixty/events{/privacy}",
"followers_url": "https://api.github.com/users/max-sixty/followers",
"following_url": "https://api.github.com/users/max-sixty/following{/other_user}",
"gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/max-sixty",
"id": 5635139,
"login": "max-sixty",
"node_id": "MDQ6VXNlcjU2MzUxMzk=",
"organizations_url": "https://api.github.com/users/max-sixty/orgs",
"received_events_url": "https://api.github.com/users/max-sixty/received_events",
"repos_url": "https://api.github.com/users/max-sixty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/max-sixty"
} | [
{
"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"
},
{
"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-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"
} | 1 | 2016-05-04T13:01:38Z | 2017-10-01T14:55:33Z | 2017-10-01T14:55:33Z | CONTRIBUTOR | null | Upsampling returns a Series, Downsampling returns a DataFrame. Is this valid?
``` python
In [80]: series=pd.Series(range(10), index=pd.PeriodIndex(start='2000', freq='D', periods=10))
In [81]: series
Out[81]:
2000-01-01 0
2000-01-02 1
2000-01-03 2
2000-01-04 3
2000-01-05 4
2000-01-06 5
2000-01-07 6
2000-01-08 7
2000-01-09 8
2000-01-10 9
Freq: D, dtype: int64
In [83]: series.resample('M').ohlc()
Out[83]:
open high low close
2000-01 0 9 0 9
# returns a DataFrame
In [84]: series.resample('H').ohlc()
Out[84]:
2000-01-01 00:00 0.0
...
2000-01-10 23:00 NaN
Freq: H, dtype: float64
# returns a series
```
on master
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13083/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13083/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13084 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13084/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13084/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13084/events | https://github.com/pandas-dev/pandas/issues/13084 | 153,031,868 | MDU6SXNzdWUxNTMwMzE4Njg= | 13,084 | ERR: concat of non-unique join axes should have better error | {
"avatar_url": "https://avatars.githubusercontent.com/u/9390695?v=4",
"events_url": "https://api.github.com/users/gregsifr/events{/privacy}",
"followers_url": "https://api.github.com/users/gregsifr/followers",
"following_url": "https://api.github.com/users/gregsifr/following{/other_user}",
"gists_url": "https://api.github.com/users/gregsifr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gregsifr",
"id": 9390695,
"login": "gregsifr",
"node_id": "MDQ6VXNlcjkzOTA2OTU=",
"organizations_url": "https://api.github.com/users/gregsifr/orgs",
"received_events_url": "https://api.github.com/users/gregsifr/received_events",
"repos_url": "https://api.github.com/users/gregsifr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gregsifr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gregsifr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gregsifr"
} | [
{
"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": "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": 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"
} | 6 | 2016-05-04T14:52:24Z | 2020-01-07T11:49:58Z | 2020-01-07T11:49:58Z | NONE | null | You get a confusing error message when trying to concat on non-unique (but also non-exactly-equal) indices. Small example:
```
In [57]: df1 = pd.DataFrame({'col1': [1, 2, 3]}, index=[0, 0, 1])
...: df2 = pd.DataFrame({'col2': [1, 2, 3]}, index=[0, 1, 2])
In [59]: pd.concat([df1, df2], axis=1)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-59-756087e4d415> in <module>()
----> 1 pd.concat([df1, df2], axis=1)
/home/joris/scipy/pandas/pandas/tools/concat.py in concat(objs, axis, join, join_axes, ignore_index, keys, levels, names, verify_integrity, copy)
205 verify_integrity=verify_integrity,
206 copy=copy)
--> 207 return op.get_result()
208
209
/home/joris/scipy/pandas/pandas/tools/concat.py in get_result(self)
405 new_data = concatenate_block_managers(
406 mgrs_indexers, self.new_axes, concat_axis=self.axis,
--> 407 copy=self.copy)
408 if not self.copy:
409 new_data._consolidate_inplace()
/home/joris/scipy/pandas/pandas/core/internals.py in concatenate_block_managers(mgrs_indexers, axes, concat_axis, copy)
4849 placement=placement) for placement, join_units in concat_plan]
4850
-> 4851 return BlockManager(blocks, axes)
4852
4853
/home/joris/scipy/pandas/pandas/core/internals.py in __init__(self, blocks, axes, do_integrity_check, fastpath)
2784
2785 if do_integrity_check:
-> 2786 self._verify_integrity()
2787
2788 self._consolidate_check()
/home/joris/scipy/pandas/pandas/core/internals.py in _verify_integrity(self)
2994 for block in self.blocks:
2995 if block._verify_integrity and block.shape[1:] != mgr_shape[1:]:
-> 2996 construction_error(tot_items, block.shape[1:], self.axes)
2997 if len(self.items) != tot_items:
2998 raise AssertionError('Number of manager items must equal union of '
/home/joris/scipy/pandas/pandas/core/internals.py in construction_error(tot_items, block_shape, axes, e)
4258 raise ValueError("Empty data passed with indices specified.")
4259 raise ValueError("Shape of passed values is {0}, indices imply {1}".format(
-> 4260 passed, implied))
4261
4262
ValueError: Shape of passed values is (2, 6), indices imply (2, 4)
```
---
Original reported issue by @gregsifr :
<details>
I am working with a large dataframe of customers which I was unable to concat. After spending some time I narrowed the problem area down to the below (pickled) dataframes and code.
When trying to concat the dataframes using the following code the error shown below is returned:
```
import pandas as pd
import pickle
df1 = pickle.loads('ccopy_reg\n_reconstructor\np1\n(cpandas.core.frame\nDataFrame\np2\nc__builtin__\nobject\np3\nNtRp4\n(dp5\nS\'_metadata\'\np6\n(lp7\nsS\'_typ\'\np8\nS\'dataframe\'\np9\nsS\'_data\'\np10\ng1\n(cpandas.core.internals\nBlockManager\np11\ng3\nNtRp12\n((lp13\ncpandas.core.index\n_new_Index\np14\n(cpandas.core.index\nMultiIndex\np15\n(dp16\nS\'labels\'\np17\n(lp18\ncnumpy.core.multiarray\n_reconstruct\np19\n(cpandas.core.base\nFrozenNDArray\np20\n(I0\ntS\'b\'\ntRp21\n(I1\n(L2L\ntcnumpy\ndtype\np22\n(S\'i1\'\nI0\nI1\ntRp23\n(I3\nS\'|\'\nNNNI-1\nI-1\nI0\ntbI00\nS\'\\x00\\x00\'\ntbag19\n(g20\n(I0\ntS\'b\'\ntRp24\n(I1\n(L2L\ntg23\nI00\nS\'\\x00\\x01\'\ntbasS\'names\'\np25\n(lp26\nNaNasS\'levels\'\np27\n(lp28\ng14\n(cpandas.core.index\nIndex\np29\n(dp30\nS\'data\'\np31\ng19\n(cnumpy\nndarray\np32\n(I0\ntS\'b\'\ntRp33\n(I1\n(L1L\ntg22\n(S\'O8\'\nI0\nI1\ntRp34\n(I3\nS\'|\'\nNNNI-1\nI-1\nI63\ntbI00\n(lp35\nVCUSTOMER_A\np36\natbsS\'name\'\np37\nNstRp38\nag14\n(g29\n(dp39\ng31\ng19\n(g32\n(I0\ntS\'b\'\ntRp40\n(I1\n(L2L\ntg34\nI00\n(lp41\nVVISIT_DT\np42\naVPURCHASE\np43\natbsg37\nNstRp44\nasS\'sortorder\'\np45\nNstRp46\nacpandas.tseries.index\n_new_DatetimeIndex\np47\n(cpandas.tseries.index\nDatetimeIndex\np48\n(dp49\nS\'tz\'\np50\nNsS\'freq\'\np51\nNsg31\ng19\n(g32\n(I0\ntS\'b\'\ntRp52\n(I1\n(L22L\ntg22\n(S\'M8\'\nI0\nI1\ntRp53\n(I4\nS\'<\'\nNNNI-1\nI-1\nI0\n((d(S\'ns\'\nI1\nI1\nI1\ntttbI00\nS\'\\x00\\x00\\x1c\\xca\\xf9\\xceO\\x10\\x00\\x00k[\\x8e\\x1dP\\x10\\x00\\x00\\xba\\xec"lP\\x10\\x00\\x00\\t~\\xb7\\xbaP\\x10\\x00\\x00X\\x0fL\\tQ\\x10\\x00\\x00\\xa7\\xa0\\xe0WQ\\x10\\x00\\x00\\x94T\\x9eCR\\x10\\x00\\x00\\xe3\\xe52\\x92R\\x10\\x00\\x002w\\xc7\\xe0R\\x10\\x00\\x00\\x81\\x08\\\\/S\\x10\\x00\\x00\\xd0\\x99\\xf0}S\\x10\\x00\\x00\\xbdM\\xaeiT\\x10\\x00\\x00\\x0c\\xdfB\\xb8T\\x10\\x00\\x00[p\\xd7\\x06U\\x10\\x00\\x00\\xaa\\x01lUU\\x10\\x00\\x00\\xf9\\x92\\x00\\xa4U\\x10\\x00\\x00\\xe6F\\xbe\\x8fV\\x10\\x00\\x005\\xd8R\\xdeV\\x10\\x00\\x00\\x84i\\xe7,W\\x10\\x00\\x00\\xd3\\xfa{{W\\x10\\x00\\x00"\\x8c\\x10\\xcaW\\x10\\x00\\x00\\x0f@\\xce\\xb5X\\x10\'\ntbsg37\nS\'date\'\np54\nstRp55\na(lp56\ng19\n(g32\n(I0\ntS\'b\'\ntRp57\n(I1\n(L2L\nL22L\ntg22\n(S\'f8\'\nI0\nI1\ntRp58\n(I3\nS\'<\'\nNNNI-1\nI-1\nI0\ntbI00\nS\'\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\'\ntba(lp59\ng14\n(g15\n(dp60\ng17\n(lp61\ng19\n(g20\n(I0\ntS\'b\'\ntRp62\n(I1\n(L2L\ntg23\nI00\nS\'\\x00\\x00\'\ntbag19\n(g20\n(I0\ntS\'b\'\ntRp63\n(I1\n(L2L\ntg23\nI00\nS\'\\x00\\x01\'\ntbasg25\n(lp64\nNaNasg27\n(lp65\ng14\n(g29\n(dp66\ng31\ng19\n(g32\n(I0\ntS\'b\'\ntRp67\n(I1\n(L1L\ntg34\nI00\n(lp68\ng36\natbsg37\nNstRp69\nag14\n(g29\n(dp70\ng31\ng19\n(g32\n(I0\ntS\'b\'\ntRp71\n(I1\n(L2L\ntg34\nI00\n(lp72\ng42\nag43\natbsg37\nNstRp73\nasg45\nNstRp74\na(dp75\nS\'0.14.1\'\np76\n(dp77\nS\'axes\'\np78\ng13\nsS\'blocks\'\np79\n(lp80\n(dp81\nS\'mgr_locs\'\np82\nc__builtin__\nslice\np83\n(I0\nI2\nL1L\ntRp84\nsS\'values\'\np85\ng57\nsasstbsb.')
df2 = pickle.loads('ccopy_reg\n_reconstructor\np1\n(cpandas.core.frame\nDataFrame\np2\nc__builtin__\nobject\np3\nNtRp4\n(dp5\nS\'_metadata\'\np6\n(lp7\nsS\'_typ\'\np8\nS\'dataframe\'\np9\nsS\'_data\'\np10\ng1\n(cpandas.core.internals\nBlockManager\np11\ng3\nNtRp12\n((lp13\ncpandas.core.index\n_new_Index\np14\n(cpandas.core.index\nMultiIndex\np15\n(dp16\nS\'labels\'\np17\n(lp18\ncnumpy.core.multiarray\n_reconstruct\np19\n(cpandas.core.base\nFrozenNDArray\np20\n(I0\ntS\'b\'\ntRp21\n(I1\n(L2L\ntcnumpy\ndtype\np22\n(S\'i1\'\nI0\nI1\ntRp23\n(I3\nS\'|\'\nNNNI-1\nI-1\nI0\ntbI00\nS\'\\x00\\x00\'\ntbag19\n(g20\n(I0\ntS\'b\'\ntRp24\n(I1\n(L2L\ntg23\nI00\nS\'\\x00\\x01\'\ntbasS\'names\'\np25\n(lp26\nNaNasS\'levels\'\np27\n(lp28\ng14\n(cpandas.core.index\nIndex\np29\n(dp30\nS\'data\'\np31\ng19\n(cnumpy\nndarray\np32\n(I0\ntS\'b\'\ntRp33\n(I1\n(L1L\ntg22\n(S\'O8\'\nI0\nI1\ntRp34\n(I3\nS\'|\'\nNNNI-1\nI-1\nI63\ntbI00\n(lp35\nVCUSTOMER_B\np36\natbsS\'name\'\np37\nNstRp38\nag14\n(g29\n(dp39\ng31\ng19\n(g32\n(I0\ntS\'b\'\ntRp40\n(I1\n(L2L\ntg34\nI00\n(lp41\nVVISIT_DT\np42\naVPURCHASE\np43\natbsg37\nNstRp44\nasS\'sortorder\'\np45\nNstRp46\nacpandas.tseries.index\n_new_DatetimeIndex\np47\n(cpandas.tseries.index\nDatetimeIndex\np48\n(dp49\nS\'tz\'\np50\nNsS\'freq\'\np51\nNsg31\ng19\n(g32\n(I0\ntS\'b\'\ntRp52\n(I1\n(L24L\ntg22\n(S\'M8\'\nI0\nI1\ntRp53\n(I4\nS\'<\'\nNNNI-1\nI-1\nI0\n((d(S\'ns\'\nI1\nI1\nI1\ntttbI00\nS\'\\x00\\x00k[\\x8e\\x1dP\\x10\\x00\\x00\\xba\\xec"lP\\x10\\x00\\x00\\t~\\xb7\\xbaP\\x10\\x00\\x00X\\x0fL\\tQ\\x10\\x00\\x00\\xa7\\xa0\\xe0WQ\\x10\\x00\\x00\\x94T\\x9eCR\\x10\\x00\\x00\\xe3\\xe52\\x92R\\x10\\x00\\x002w\\xc7\\xe0R\\x10\\x00\\x00\\x81\\x08\\\\/S\\x10\\x00\\x00\\xd0\\x99\\xf0}S\\x10\\x00\\x00\\xbdM\\xaeiT\\x10\\x00\\x00\\x0c\\xdfB\\xb8T\\x10\\x00\\x00[p\\xd7\\x06U\\x10\\x00\\x00\\xaa\\x01lUU\\x10\\x00\\x00\\xf9\\x92\\x00\\xa4U\\x10\\x00\\x00\\xe6F\\xbe\\x8fV\\x10\\x00\\x005\\xd8R\\xdeV\\x10\\x00\\x00\\x84i\\xe7,W\\x10\\x00\\x00\\xd3\\xfa{{W\\x10\\x00\\x00"\\x8c\\x10\\xcaW\\x10\\x00\\x00\\xc0\\xae9gX\\x10\\x00\\x00\\xc0\\xae9gX\\x10\\x00\\x00\\xc0\\xae9gX\\x10\\x00\\x00\\x0f@\\xce\\xb5X\\x10\'\ntbsg37\nS\'date\'\np54\nstRp55\na(lp56\ng19\n(g32\n(I0\ntS\'b\'\ntRp57\n(I1\n(L2L\nL24L\ntg22\n(S\'f8\'\nI0\nI1\ntRp58\n(I3\nS\'<\'\nNNNI-1\nI-1\nI0\ntbI00\nS\'\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\xf0\\x0c$sA\\x00\\x00\\x00\\xf0\\x0c$sA\\x00\\x00\\x00\\xf0\\x0c$sA\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\\x00\\x00\\x00\\x00\\x00\\x00\\xf8\\x7f\'\ntba(lp59\ng14\n(g15\n(dp60\ng17\n(lp61\ng19\n(g20\n(I0\ntS\'b\'\ntRp62\n(I1\n(L2L\ntg23\nI00\nS\'\\x00\\x00\'\ntbag19\n(g20\n(I0\ntS\'b\'\ntRp63\n(I1\n(L2L\ntg23\nI00\nS\'\\x00\\x01\'\ntbasg25\n(lp64\nNaNasg27\n(lp65\ng14\n(g29\n(dp66\ng31\ng19\n(g32\n(I0\ntS\'b\'\ntRp67\n(I1\n(L1L\ntg34\nI00\n(lp68\ng36\natbsg37\nNstRp69\nag14\n(g29\n(dp70\ng31\ng19\n(g32\n(I0\ntS\'b\'\ntRp71\n(I1\n(L2L\ntg34\nI00\n(lp72\ng42\nag43\natbsg37\nNstRp73\nasg45\nNstRp74\na(dp75\nS\'0.14.1\'\np76\n(dp77\nS\'axes\'\np78\ng13\nsS\'blocks\'\np79\n(lp80\n(dp81\nS\'mgr_locs\'\np82\nc__builtin__\nslice\np83\n(I0\nI2\nL1L\ntRp84\nsS\'values\'\np85\ng57\nsasstbsb.')
customers, tables = ['CUSTOMER_A', 'CUSTOMER_B'], [df1.iloc[:], df2.iloc[:]]
tables = pd.concat(tables, keys=customers, axis=1)
```
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-22-8096f8962dec> in <module>()
6
7 customers, tables = ['CUSTOMER_A', 'CUSTOMER_B'], [df1.iloc[:], df2.iloc[:]]
----> 8 tables = pd.concat(tables, keys=customers, axis=1)
/home/code/anaconda2/lib/python2.7/site-packages/pandas/tools/merge.pyc in concat(objs, axis, join, join_axes, ignore_index, keys, levels, names, verify_integrity, copy)
833 verify_integrity=verify_integrity,
834 copy=copy)
--> 835 return op.get_result()
836
837
/home/code/anaconda2/lib/python2.7/site-packages/pandas/tools/merge.pyc in get_result(self)
1023 new_data = concatenate_block_managers(
1024 mgrs_indexers, self.new_axes,
-> 1025 concat_axis=self.axis, copy=self.copy)
1026 if not self.copy:
1027 new_data._consolidate_inplace()
/home/code/anaconda2/lib/python2.7/site-packages/pandas/core/internals.pyc in concatenate_block_managers(mgrs_indexers, axes, concat_axis, copy)
4474 for placement, join_units in concat_plan]
4475
-> 4476 return BlockManager(blocks, axes)
4477
4478
/home/code/anaconda2/lib/python2.7/site-packages/pandas/core/internals.pyc in __init__(self, blocks, axes, do_integrity_check, fastpath)
2535
2536 if do_integrity_check:
-> 2537 self._verify_integrity()
2538
2539 self._consolidate_check()
/home/code/anaconda2/lib/python2.7/site-packages/pandas/core/internals.pyc in _verify_integrity(self)
2745 for block in self.blocks:
2746 if block._verify_integrity and block.shape[1:] != mgr_shape[1:]:
-> 2747 construction_error(tot_items, block.shape[1:], self.axes)
2748 if len(self.items) != tot_items:
2749 raise AssertionError('Number of manager items must equal union of '
/home/code/anaconda2/lib/python2.7/site-packages/pandas/core/internals.pyc in construction_error(tot_items, block_shape, axes, e)
3897 raise ValueError("Empty data passed with indices specified.")
3898 raise ValueError("Shape of passed values is {0}, indices imply {1}".format(
-> 3899 passed, implied))
3900
3901
ValueError: Shape of passed values is (4, 31), indices imply (4, 25)
```
However if the dataframes are sliced e.g. [:10] OR [10:], the concat works:
```
customers, tables = ['CUSTOMER_A', 'CUSTOMER_B'], [df1.iloc[:20], df2.iloc[:20]]
tables = pd.concat(tables, keys=customers, axis=1)
tables
```
Output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 3.19.0-58-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_AU.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.6.7
Cython: 0.24
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.2
pytz: 2016.3
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
```
</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/13084/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13084/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13085 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13085/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13085/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13085/events | https://github.com/pandas-dev/pandas/issues/13085 | 153,138,599 | MDU6SXNzdWUxNTMxMzg1OTk= | 13,085 | pip/PyPI not updated with 0.18.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1776358?v=4",
"events_url": "https://api.github.com/users/MattDMo/events{/privacy}",
"followers_url": "https://api.github.com/users/MattDMo/followers",
"following_url": "https://api.github.com/users/MattDMo/following{/other_user}",
"gists_url": "https://api.github.com/users/MattDMo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MattDMo",
"id": 1776358,
"login": "MattDMo",
"node_id": "MDQ6VXNlcjE3NzYzNTg=",
"organizations_url": "https://api.github.com/users/MattDMo/orgs",
"received_events_url": "https://api.github.com/users/MattDMo/received_events",
"repos_url": "https://api.github.com/users/MattDMo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MattDMo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MattDMo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MattDMo"
} | [
{
"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-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 2 | 2016-05-04T23:27:19Z | 2016-05-05T00:35:19Z | 2016-05-04T23:28:30Z | NONE | null | I was on PyPI just now, and the [only versions](https://pypi.python.org/pypi/pandas) of pandas available are 0.17.1 and 0.18.0. Trying https://pypi.python.org/pypi/pandas/0.18.1 leads to a 404 page. I tried installing via `pip`, and it can't find 0.18.1 either. Is there an issue communicating with PyPI, or is something else going on?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13085/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13085/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13086 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13086/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13086/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13086/events | https://github.com/pandas-dev/pandas/issues/13086 | 153,150,258 | MDU6SXNzdWUxNTMxNTAyNTg= | 13,086 | COMPAT: gbq schema compat | {
"avatar_url": "https://avatars.githubusercontent.com/u/3899812?v=4",
"events_url": "https://api.github.com/users/medullaskyline/events{/privacy}",
"followers_url": "https://api.github.com/users/medullaskyline/followers",
"following_url": "https://api.github.com/users/medullaskyline/following{/other_user}",
"gists_url": "https://api.github.com/users/medullaskyline/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/medullaskyline",
"id": 3899812,
"login": "medullaskyline",
"node_id": "MDQ6VXNlcjM4OTk4MTI=",
"organizations_url": "https://api.github.com/users/medullaskyline/orgs",
"received_events_url": "https://api.github.com/users/medullaskyline/received_events",
"repos_url": "https://api.github.com/users/medullaskyline/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/medullaskyline/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/medullaskyline/subscriptions",
"type": "User",
"url": "https://api.github.com/users/medullaskyline"
} | [
{
"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"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| 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-05-05T01:19:37Z | 2017-02-26T20:25:55Z | 2017-02-26T20:12:44Z | NONE | null | #### Code Sample
```
def get_user_account_credentials(): # https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L160
from oauth2client.client import OAuth2WebServerFlow
from oauth2client.file import Storage
from oauth2client.tools import run_flow, argparser
reauth = False
flow = OAuth2WebServerFlow(
client_id=('495642085510-k0tmvj2m941jhre2nbqka17vqpjfddtd'
'.apps.googleusercontent.com'),
client_secret='kOc9wMptUtxkcIFbtZCcrEAc',
scope=['https://www.googleapis.com/auth/bigquery'],
redirect_uri='urn:ietf:wg:oauth:2.0:oob')
storage = Storage('bigquery_credentials.dat')
credentials = storage.get()
if credentials is None or credentials.invalid or reauth:
credentials = run_flow(flow, storage, argparser.parse_args([]))
return credentials
def _generate_bq_schema(df, default_type='STRING'): # https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L735
""" Given a passed df, generate the associated Google BigQuery schema.
Parameters
----------
df : DataFrame
default_type : string
The default big query type in case the type of the column
does not exist in the schema.
"""
type_mapping = {
'i': 'INTEGER',
'b': 'BOOLEAN',
'f': 'FLOAT',
'O': 'STRING',
'S': 'STRING',
'U': 'STRING',
'M': 'TIMESTAMP'
}
fields = []
for column_name, dtype in df.dtypes.iteritems():
fields.append({'name': column_name,
'type': type_mapping.get(dtype.kind, default_type)})
return {'fields': fields}
def get_service(): # https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L267
from apiclient.discovery import build
import httplib2
http = httplib2.Http()
credentials = get_user_account_credentials()
http = credentials.authorize(http)
return build('bigquery', 'v2', http=http)
def verify_schema(dataset_id, table_id, schema): # https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L476
from apiclient.errors import HttpError
bigquery_service = get_service()
try:
return (bigquery_service.tables().get(
projectId='publicdata',
datasetId=dataset_id,
tableId=table_id
).execute()['schema']) == schema
except HttpError as ex:
pass
# self.process_http_error(ex)
def main():
shakespeare_df = pd.DataFrame({'word': 'foo', 'word_count': [1], 'corpus': 'bar', 'corpus_date': [2016]},
columns=['word', 'word_count', 'corpus', 'corpus_date'])
table_schema = _generate_bq_schema(shakespeare_df)
print 'Is the schema verified?'
print verify_schema('samples', 'shakespeare', table_schema)
if __name__ == '__main__':
main()
```
#### Expected Output
We want `verify_schema` to return True since the dataframe's columns are in the correct order, are named correctly, and have the correct types. The BigQuery table schema, however, has `description` and `mode` in addition to `name` and `type`.
Therefore `verify_schema` should remove `description` and `mode` from the BigQuery table schema when comparing it to the dataframe's schema.
#### Solution:
```
def get_user_account_credentials(): # https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L160
from oauth2client.client import OAuth2WebServerFlow
from oauth2client.file import Storage
from oauth2client.tools import run_flow, argparser
reauth = False
flow = OAuth2WebServerFlow(
client_id=('495642085510-k0tmvj2m941jhre2nbqka17vqpjfddtd'
'.apps.googleusercontent.com'),
client_secret='kOc9wMptUtxkcIFbtZCcrEAc',
scope=['https://www.googleapis.com/auth/bigquery'],
redirect_uri='urn:ietf:wg:oauth:2.0:oob')
storage = Storage('bigquery_credentials.dat')
credentials = storage.get()
if credentials is None or credentials.invalid or reauth:
credentials = run_flow(flow, storage, argparser.parse_args([]))
return credentials
def _generate_bq_schema(df, default_type='STRING'): # https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L735
""" Given a passed df, generate the associated Google BigQuery schema.
Parameters
----------
df : DataFrame
default_type : string
The default big query type in case the type of the column
does not exist in the schema.
"""
type_mapping = {
'i': 'INTEGER',
'b': 'BOOLEAN',
'f': 'FLOAT',
'O': 'STRING',
'S': 'STRING',
'U': 'STRING',
'M': 'TIMESTAMP'
}
fields = []
for column_name, dtype in df.dtypes.iteritems():
fields.append({'name': column_name,
'type': type_mapping.get(dtype.kind, default_type)})
return {'fields': fields}
def get_service(): # https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L267
from apiclient.discovery import build
import httplib2
http = httplib2.Http()
credentials = get_user_account_credentials()
http = credentials.authorize(http)
return build('bigquery', 'v2', http=http)
def verify_schema(dataset_id, table_id, schema): # https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L476
from apiclient.errors import HttpError
bigquery_service = get_service()
try:
return (bigquery_service.tables().get(
projectId='publicdata',
datasetId=dataset_id,
tableId=table_id
).execute()['schema']) == schema
except HttpError as ex:
pass
# self.process_http_error(ex)
def verify_schema_modified(dataset_id, table_id, schema):
from apiclient.errors import HttpError
bigquery_service = get_service()
try:
original_schema = bigquery_service.tables().get(
projectId='publicdata',
datasetId=dataset_id,
tableId=table_id
).execute()['schema']
modified_schema_list = [{key:field[key] for key in field if key != 'mode' and key != 'description'}
for field in original_schema['fields']]
return {'fields': modified_schema_list} == schema
except HttpError as ex:
pass
#self.process_http_error(ex)
def main():
shakespeare_df = pd.DataFrame({'word': 'foo', 'word_count': [1], 'corpus': 'bar', 'corpus_date': [2016]},
columns=['word', 'word_count', 'corpus', 'corpus_date'])
table_schema = _generate_bq_schema(shakespeare_df)
print 'Is the schema verified?'
print verify_schema('samples', 'shakespeare', table_schema)
print verify_schema_modified('samples', 'shakespeare', table_schema)
if __name__ == '__main__':
main()
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: 5fd6ed036324f5de28816e2b66348e8a56b96f04
python: 2.7.10.final.0
python-bits: 64
OS: Darwin
OS-release: 15.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1+8.g5fd6ed0
nose: 1.3.6
pip: 8.1.1
setuptools: 20.8.1
Cython: 0.22
numpy: 1.11.0
scipy: 0.13.0b1
statsmodels: None
xarray: None
IPython: 4.0.0
sphinx: 1.3.1
patsy: None
dateutil: 2.5.2
pytz: 2016.3
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.3.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13086/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13086/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13087 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13087/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13087/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13087/events | https://github.com/pandas-dev/pandas/pull/13087 | 153,151,804 | MDExOlB1bGxSZXF1ZXN0Njg5NTcwODA= | 13,087 | modified schema field list | {
"avatar_url": "https://avatars.githubusercontent.com/u/3899812?v=4",
"events_url": "https://api.github.com/users/medullaskyline/events{/privacy}",
"followers_url": "https://api.github.com/users/medullaskyline/followers",
"following_url": "https://api.github.com/users/medullaskyline/following{/other_user}",
"gists_url": "https://api.github.com/users/medullaskyline/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/medullaskyline",
"id": 3899812,
"login": "medullaskyline",
"node_id": "MDQ6VXNlcjM4OTk4MTI=",
"organizations_url": "https://api.github.com/users/medullaskyline/orgs",
"received_events_url": "https://api.github.com/users/medullaskyline/received_events",
"repos_url": "https://api.github.com/users/medullaskyline/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/medullaskyline/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/medullaskyline/subscriptions",
"type": "User",
"url": "https://api.github.com/users/medullaskyline"
} | [
{
"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"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| null | 28 | 2016-05-05T01:37:38Z | 2017-01-21T23:14:36Z | 2017-01-21T23:14:36Z | NONE | null | - [x] closes #13086
- [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/13087/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13087/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13087.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13087",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13087.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13087"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13088 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13088/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13088/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13088/events | https://github.com/pandas-dev/pandas/pull/13088 | 153,168,909 | MDExOlB1bGxSZXF1ZXN0Njg5NjY5Mjg= | 13,088 | TST: Check ndarray dtype by default | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "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": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-05-05T05:10:49Z | 2016-05-07T17:08:16Z | 2016-05-07T17:08:11Z | MEMBER | null | - [x] split from #13080
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
Also did little cleanup of `testing.pyx` and `testing.py`.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13088/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13088/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13088.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13088",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13088.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13088"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13089 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13089/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13089/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13089/events | https://github.com/pandas-dev/pandas/pull/13089 | 153,177,876 | MDExOlB1bGxSZXF1ZXN0Njg5NzE5NTA= | 13,089 | sas7bdat date/datetime formats | {
"avatar_url": "https://avatars.githubusercontent.com/u/53390?v=4",
"events_url": "https://api.github.com/users/Winand/events{/privacy}",
"followers_url": "https://api.github.com/users/Winand/followers",
"following_url": "https://api.github.com/users/Winand/following{/other_user}",
"gists_url": "https://api.github.com/users/Winand/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Winand",
"id": 53390,
"login": "Winand",
"node_id": "MDQ6VXNlcjUzMzkw",
"organizations_url": "https://api.github.com/users/Winand/orgs",
"received_events_url": "https://api.github.com/users/Winand/received_events",
"repos_url": "https://api.github.com/users/Winand/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Winand/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Winand/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Winand"
} | [
{
"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": "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 | []
| null | 5 | 2016-05-05T06:47:00Z | 2016-08-10T16:29:17Z | 2016-08-09T23:25:11Z | CONTRIBUTOR | null | Support more date and datetime formats
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13089/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13089/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13089.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13089",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13089.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13089"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13090 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13090/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13090/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13090/events | https://github.com/pandas-dev/pandas/issues/13090 | 153,212,445 | MDU6SXNzdWUxNTMyMTI0NDU= | 13,090 | Slicing on DatetimeIndex throws KeyError: [int] not found | {
"avatar_url": "https://avatars.githubusercontent.com/u/674200?v=4",
"events_url": "https://api.github.com/users/twiecki/events{/privacy}",
"followers_url": "https://api.github.com/users/twiecki/followers",
"following_url": "https://api.github.com/users/twiecki/following{/other_user}",
"gists_url": "https://api.github.com/users/twiecki/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twiecki",
"id": 674200,
"login": "twiecki",
"node_id": "MDQ6VXNlcjY3NDIwMA==",
"organizations_url": "https://api.github.com/users/twiecki/orgs",
"received_events_url": "https://api.github.com/users/twiecki/received_events",
"repos_url": "https://api.github.com/users/twiecki/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twiecki/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twiecki/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twiecki"
} | [
{
"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": "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": "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"
}
]
| 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"
} | 9 | 2016-05-05T11:17:10Z | 2021-04-24T04:02:47Z | null | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
Unfortunately can't reproduce it with other examples. Only this which I load from csv.

`txn.loc[pd.Timestamp('2014-06-04 00:00:00'):]`
``` ---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-35-ce3d2db63a82> in <module>()
----> 1 txn.loc[pd.Timestamp('2014-06-04 00:00:00'):]
/opt/miniconda/lib/python2.7/site-packages/pandas/core/indexing.py in __getitem__(self, key)
1284 return self._getitem_tuple(key)
1285 else:
-> 1286 return self._getitem_axis(key, axis=0)
1287
1288 def _getitem_axis(self, key, axis=0):
/opt/miniconda/lib/python2.7/site-packages/pandas/core/indexing.py in _getitem_axis(self, key, axis)
1398 if isinstance(key, slice):
1399 self._has_valid_type(key, axis)
-> 1400 return self._get_slice_axis(key, axis=axis)
1401 elif is_bool_indexer(key):
1402 return self._getbool_axis(key, axis=axis)
/opt/miniconda/lib/python2.7/site-packages/pandas/core/indexing.py in _get_slice_axis(self, slice_obj, axis)
1306 labels = obj._get_axis(axis)
1307 indexer = labels.slice_indexer(slice_obj.start, slice_obj.stop,
-> 1308 slice_obj.step, kind=self.name)
1309
1310 if isinstance(indexer, slice):
/opt/miniconda/lib/python2.7/site-packages/pandas/tseries/index.py in slice_indexer(self, start, end, step, kind)
1503
1504 try:
-> 1505 return Index.slice_indexer(self, start, end, step, kind=kind)
1506 except KeyError:
1507 # For historical reasons DatetimeIndex by default supports
/opt/miniconda/lib/python2.7/site-packages/pandas/indexes/base.py in slice_indexer(self, start, end, step, kind)
2698 """
2699 start_slice, end_slice = self.slice_locs(start, end, step=step,
-> 2700 kind=kind)
2701
2702 # return a slice
/opt/miniconda/lib/python2.7/site-packages/pandas/indexes/base.py in slice_locs(self, start, end, step, kind)
2877 start_slice = None
2878 if start is not None:
-> 2879 start_slice = self.get_slice_bound(start, 'left', kind)
2880 if start_slice is None:
2881 start_slice = 0
/opt/miniconda/lib/python2.7/site-packages/pandas/indexes/base.py in get_slice_bound(self, label, side, kind)
2826 except ValueError:
2827 # raise the original KeyError
-> 2828 raise err
2829
2830 if isinstance(slc, np.ndarray):
KeyError: 1401840000000000000
```
#### Expected Output
Slice of everything after '2014-06-04 00:00:00'.
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-77-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.7.0
Cython: 0.23.4
numpy: 1.11.0
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 3.2.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.3
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.8
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext)
jinja2: 2.8
boto: 2.30.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/13090/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13090/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13091 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13091/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13091/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13091/events | https://github.com/pandas-dev/pandas/pull/13091 | 153,222,910 | MDExOlB1bGxSZXF1ZXN0NjkwMDA3OTk= | 13,091 | TST: Fix assertNotIsInstance msg | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"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": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-05-05T12:31:50Z | 2016-05-06T11:42:22Z | 2016-05-06T11:42:22Z | MEMBER | null | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
The current error message below is confusing.
```
tm.assertNotIsInstance(pd.Series([1]), pd.Series)
# AssertionError: Expected object to be of type <class 'pandas.core.series.Series'>, found <class 'pandas.core.series.Series'> instead
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13091/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13091/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13091.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13091",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13091.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13091"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13092 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13092/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13092/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13092/events | https://github.com/pandas-dev/pandas/issues/13092 | 153,227,403 | MDU6SXNzdWUxNTMyMjc0MDM= | 13,092 | ENH: pd.read_feather/to_feather | {
"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": "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-05-05T13:04:21Z | 2016-12-26T22:49:17Z | 2016-12-26T22:49:17Z | CONTRIBUTOR | null | conda packages are now available [here](https://github.com/wesm/feather/issues/134)
so this should be straightforward. a couple of things to note.
- should support the `LocalPath/PathLib` objects (easy as we do this in other `read_*`)
- non-supported on windows ATM. need to skip for testing. `feather-format` will just raise an `ImportError` for now.
- catch and re-raise for non-supported things, mainly object dtypes that are not all strings. Alternatively / maybe better to introspect these columns (via `lib.infer_dtype`) to prevent in the first place
- test unicode support / encoding (not sure supported as of yet)
- biggest issue is how / if to support `Series` and a `DataFrame` with a non-default index. As we need a facility to write/read meta-data within feather [see here](https://github.com/wesm/feather/issues/74). Both these can simply `.reset_index()`, but the problem is they can be stored but we don't know on read-back what to `.set_index()`. Can just raise for now.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13092/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13092/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13093 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13093/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13093/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13093/events | https://github.com/pandas-dev/pandas/pull/13093 | 153,263,329 | MDExOlB1bGxSZXF1ZXN0NjkwMjc3ODk= | 13,093 | Improve error message for category dtype in HDF5, format="fixed" store. | {
"avatar_url": "https://avatars.githubusercontent.com/u/632858?v=4",
"events_url": "https://api.github.com/users/chrish42/events{/privacy}",
"followers_url": "https://api.github.com/users/chrish42/followers",
"following_url": "https://api.github.com/users/chrish42/following{/other_user}",
"gists_url": "https://api.github.com/users/chrish42/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrish42",
"id": 632858,
"login": "chrish42",
"node_id": "MDQ6VXNlcjYzMjg1OA==",
"organizations_url": "https://api.github.com/users/chrish42/orgs",
"received_events_url": "https://api.github.com/users/chrish42/received_events",
"repos_url": "https://api.github.com/users/chrish42/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrish42/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrish42/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrish42"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 1 | 2016-05-05T15:58:48Z | 2016-05-05T17:20:38Z | 2016-05-05T17:20:38Z | CONTRIBUTOR | null | A more explicit (and helpful) error message would have helped me discover sooner that format="table" supported categorical data.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13093/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13093/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13093.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13093",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13093.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13093"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13094 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13094/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13094/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13094/events | https://github.com/pandas-dev/pandas/issues/13094 | 153,267,853 | MDU6SXNzdWUxNTMyNjc4NTM= | 13,094 | ERR: warning on merging on unequal levels for an Index | {
"avatar_url": "https://avatars.githubusercontent.com/u/1564485?v=4",
"events_url": "https://api.github.com/users/l736x/events{/privacy}",
"followers_url": "https://api.github.com/users/l736x/followers",
"following_url": "https://api.github.com/users/l736x/following{/other_user}",
"gists_url": "https://api.github.com/users/l736x/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/l736x",
"id": 1564485,
"login": "l736x",
"node_id": "MDQ6VXNlcjE1NjQ0ODU=",
"organizations_url": "https://api.github.com/users/l736x/orgs",
"received_events_url": "https://api.github.com/users/l736x/received_events",
"repos_url": "https://api.github.com/users/l736x/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/l736x/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/l736x/subscriptions",
"type": "User",
"url": "https://api.github.com/users/l736x"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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"
}
]
| open | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/37227058?v=4",
"events_url": "https://api.github.com/users/SeeminSyed/events{/privacy}",
"followers_url": "https://api.github.com/users/SeeminSyed/followers",
"following_url": "https://api.github.com/users/SeeminSyed/following{/other_user}",
"gists_url": "https://api.github.com/users/SeeminSyed/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SeeminSyed",
"id": 37227058,
"login": "SeeminSyed",
"node_id": "MDQ6VXNlcjM3MjI3MDU4",
"organizations_url": "https://api.github.com/users/SeeminSyed/orgs",
"received_events_url": "https://api.github.com/users/SeeminSyed/received_events",
"repos_url": "https://api.github.com/users/SeeminSyed/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SeeminSyed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SeeminSyed/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SeeminSyed"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/37227058?v=4",
"events_url": "https://api.github.com/users/SeeminSyed/events{/privacy}",
"followers_url": "https://api.github.com/users/SeeminSyed/followers",
"following_url": "https://api.github.com/users/SeeminSyed/following{/other_user}",
"gists_url": "https://api.github.com/users/SeeminSyed/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SeeminSyed",
"id": 37227058,
"login": "SeeminSyed",
"node_id": "MDQ6VXNlcjM3MjI3MDU4",
"organizations_url": "https://api.github.com/users/SeeminSyed/orgs",
"received_events_url": "https://api.github.com/users/SeeminSyed/received_events",
"repos_url": "https://api.github.com/users/SeeminSyed/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SeeminSyed/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SeeminSyed/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SeeminSyed"
}
]
| {
"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"
} | 6 | 2016-05-05T16:20:59Z | 2021-04-24T04:04:25Z | null | CONTRIBUTOR | null | I found what seems to me a behavior that might be wrong when joining a simple index df with a multiindex df.
I'm admittedly not an SQL expert and I'm not sure this is really a bug.
Consider the case:
``` python
X = pd.DataFrame([[2, 3], [5, 7]], columns=['a','p']).set_index('a')
Y = pd.DataFrame([[1, 2, 3], [3, 4, 8], [5, 6, 9]],
columns=['a','b','c']).set_index(['a','b'])
X
# p
# a
#2 3
#5 7
Y
# c
# a b
#1 2 3
#3 4 8
#5 6 9
X.join(Y, how='left')
# p c
# a b
#5 6 7 9
```
I see the rational for not returning the line indexed by `a=2` in `X`: since there is no value for the level `b` to associate to this line it is discarded.
But I'm wondering if this output would not be also reasonable:
```
p c
a b
2 Nan 3 Nan
5 6 7 9
```
In SQL the result of (where I replace `X` by `X.reset_index()` and similarly for `Y`):
``` sql
select *
from X, Y
where Y.a = X.a (+)
```
would contain the line
```
a b p c
2 Nan 3 Nan
```
Any thought?
For completeness, the same issue is present for `how='outer'`.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13094/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13094/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13095 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13095/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13095/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13095/events | https://github.com/pandas-dev/pandas/issues/13095 | 153,279,348 | MDU6SXNzdWUxNTMyNzkzNDg= | 13,095 | Problems installing pandas using pip | {
"avatar_url": "https://avatars.githubusercontent.com/u/10706519?v=4",
"events_url": "https://api.github.com/users/lherstix/events{/privacy}",
"followers_url": "https://api.github.com/users/lherstix/followers",
"following_url": "https://api.github.com/users/lherstix/following{/other_user}",
"gists_url": "https://api.github.com/users/lherstix/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lherstix",
"id": 10706519,
"login": "lherstix",
"node_id": "MDQ6VXNlcjEwNzA2NTE5",
"organizations_url": "https://api.github.com/users/lherstix/orgs",
"received_events_url": "https://api.github.com/users/lherstix/received_events",
"repos_url": "https://api.github.com/users/lherstix/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lherstix/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lherstix/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lherstix"
} | [
{
"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": 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"
} | 12 | 2016-05-05T17:20:47Z | 2016-05-11T07:34:15Z | 2016-05-05T17:36:14Z | NONE | null | Hey everyone,
I installed pandas via pip git
`pip install git+git://github.com/pydata/pandas.git`
and during the installation it says:
`Running setup.py install for pandas ... done
Successfully installed pandas-0.18.0+207.gc6110e2`
But when I want to import it, it gives an error
`C extension: hashtable not built.
If you want to import pandas from the source directory, you may need to run
'python setup.py build_ext --inplace' to build the C extensions first.`
I already tried to run this but the response is always:
`python: can't open file 'setup.py': [Errno 2] No such file or directory`
Maybe I am in the wrong directory. So in which I am suppose to run it?
Also I looked in site-packages but can't find pandas or something similar.
I am confused since it said it runs the setup.py during the installation...
Can anyone help? What I am doing wrong?
Thanks in advance
Leni
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13095/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13095/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13096 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13096/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13096/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13096/events | https://github.com/pandas-dev/pandas/pull/13096 | 153,281,660 | MDExOlB1bGxSZXF1ZXN0NjkwNDAyMzc= | 13,096 | add --force to pandas build error message | {
"avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4",
"events_url": "https://api.github.com/users/max-sixty/events{/privacy}",
"followers_url": "https://api.github.com/users/max-sixty/followers",
"following_url": "https://api.github.com/users/max-sixty/following{/other_user}",
"gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/max-sixty",
"id": 5635139,
"login": "max-sixty",
"node_id": "MDQ6VXNlcjU2MzUxMzk=",
"organizations_url": "https://api.github.com/users/max-sixty/orgs",
"received_events_url": "https://api.github.com/users/max-sixty/received_events",
"repos_url": "https://api.github.com/users/max-sixty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/max-sixty"
} | [
{
"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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 2 | 2016-05-05T17:31:59Z | 2016-05-05T17:36:14Z | 2016-05-05T17:36:14Z | CONTRIBUTOR | null | - [x] closes #13095
- [ ] 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/13096/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13096/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13096.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13096",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13096.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13096"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13097 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13097/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13097/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13097/events | https://github.com/pandas-dev/pandas/issues/13097 | 153,295,585 | MDU6SXNzdWUxNTMyOTU1ODU= | 13,097 | TST: Start using py.test | {
"avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4",
"events_url": "https://api.github.com/users/max-sixty/events{/privacy}",
"followers_url": "https://api.github.com/users/max-sixty/followers",
"following_url": "https://api.github.com/users/max-sixty/following{/other_user}",
"gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/max-sixty",
"id": 5635139,
"login": "max-sixty",
"node_id": "MDQ6VXNlcjU2MzUxMzk=",
"organizations_url": "https://api.github.com/users/max-sixty/orgs",
"received_events_url": "https://api.github.com/users/max-sixty/received_events",
"repos_url": "https://api.github.com/users/max-sixty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/max-sixty"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"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": "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-05-05T18:39:59Z | 2017-02-10T15:52:09Z | 2017-02-10T15:52:09Z | CONTRIBUTOR | null | from https://github.com/pydata/pandas/pull/13091
Currently _most_ of the tests pass with pytest, but there are 69 that don't. Most of these look like they're pickle or SQL / external resources issues.
pytest output here: https://gist.github.com/MaximilianR/225a071337e335ebdcc1d17637126126
So this does need a champion who could work through those issues. That's probably not me at the moment, but you have my moral support!
mpl is converting!
https://github.com/matplotlib/matplotlib/pull/5405
| {
"+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/13097/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13097/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13098 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13098/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13098/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13098/events | https://github.com/pandas-dev/pandas/issues/13098 | 153,298,994 | MDU6SXNzdWUxNTMyOTg5OTQ= | 13,098 | REGRP: Series.quantile returns NaN | {
"avatar_url": "https://avatars.githubusercontent.com/u/11636051?v=4",
"events_url": "https://api.github.com/users/gieseke/events{/privacy}",
"followers_url": "https://api.github.com/users/gieseke/followers",
"following_url": "https://api.github.com/users/gieseke/following{/other_user}",
"gists_url": "https://api.github.com/users/gieseke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gieseke",
"id": 11636051,
"login": "gieseke",
"node_id": "MDQ6VXNlcjExNjM2MDUx",
"organizations_url": "https://api.github.com/users/gieseke/orgs",
"received_events_url": "https://api.github.com/users/gieseke/received_events",
"repos_url": "https://api.github.com/users/gieseke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gieseke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gieseke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gieseke"
} | [
{
"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": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 2 | 2016-05-05T18:56:45Z | 2016-05-12T13:12:58Z | 2016-05-12T13:12:58Z | NONE | null | #### Code Sample, a copy-pastable example if possible
``` python
import pandas as pd
import numpy
s = pd.Series([1, 2, 3, 4, numpy.nan])
s.quantile(0.5)
nan
```
#### Expected Output
I would expect 2.5 as output (as with version 0.17.1).
#### output of `pd.show_versions()`
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-85-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: de_DE.UTF-8
pandas: 0.18.1
nose: None
pip: 1.5.4
setuptools: 2.2
Cython: None
numpy: 1.11.0
scipy: 0.16.1
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13098/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13098/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13099 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13099/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13099/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13099/events | https://github.com/pandas-dev/pandas/pull/13099 | 153,324,625 | MDExOlB1bGxSZXF1ZXN0NjkwNjkzOTc= | 13,099 | COMPAT: add 0.17.0 pickle/msgpacks | {
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 0 | 2016-05-05T20:58:03Z | 2016-05-06T11:39:51Z | 2016-05-06T11:39:51Z | CONTRIBUTOR | null | for completeness
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13099/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13099/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13099.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13099",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13099.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13099"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13100 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13100/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13100/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13100/events | https://github.com/pandas-dev/pandas/issues/13100 | 153,340,524 | MDU6SXNzdWUxNTMzNDA1MjQ= | 13,100 | AttributeError when trying to freeze pandas.io.sql.read_sql() with cx_freeze | {
"avatar_url": "https://avatars.githubusercontent.com/u/5386897?v=4",
"events_url": "https://api.github.com/users/dougthor42/events{/privacy}",
"followers_url": "https://api.github.com/users/dougthor42/followers",
"following_url": "https://api.github.com/users/dougthor42/following{/other_user}",
"gists_url": "https://api.github.com/users/dougthor42/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dougthor42",
"id": 5386897,
"login": "dougthor42",
"node_id": "MDQ6VXNlcjUzODY4OTc=",
"organizations_url": "https://api.github.com/users/dougthor42/orgs",
"received_events_url": "https://api.github.com/users/dougthor42/received_events",
"repos_url": "https://api.github.com/users/dougthor42/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dougthor42/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dougthor42/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dougthor42"
} | []
| closed | false | null | []
| null | 3 | 2016-05-05T22:27:30Z | 2016-05-05T23:44:29Z | 2016-05-05T22:37:44Z | NONE | null | #### Summary
When freezing an application that uses `pandas.io.sql.read_sql()` (alias: `pd.read_sql()`) via cx_freeze, the build succeeds but the execution fails with `AttributeError: 'str' object has no attribute 'cursor'`.
#### Code
Below are the minimum requirements to recreate the issue. Put both files in an empty directory and run `python build_exe.py build`. Then execute `.\build\exe.win-amd64-3.4\test.exe`. An error will be displayed (text below).
```
# test.py
import pandas as pd
URL = <redacted> # mysql+pyodbc://...
QUERY = <redacted>
print(pd.read_sql(QUERY, URL).tail()) # comment this line for a successful build+execute
print("got to the end")
```
```
# build_exe.py $ python build_exe.py build
from cx_Freeze import setup, Executable
setup(
name="a",
version="0.0.1",
description="a",
options={
"build_exe": {
"packages": ["sqlalchemy.dialects.mysql", ],
"silent": True,
}
},
executables=[
Executable(
"test.py",
base=None,
),
],
)
```
#### Error output:
```
Traceback (most recent call last):
File "C:\WinPython34_x64\python-3.4.3.amd64\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module>
exec(code, m.__dict__)
File "test.py", line 16, in <module>
File "C:\WinPython34_x64\python-3.4.3.amd64\lib\site-packages\pandas\io\sql.py", line 499, in read_sql
chunksize=chunksize)
File "C:\WinPython34_x64\python-3.4.3.amd64\lib\site-packages\pandas\io\sql.py", line 1599, in read_query
cursor = self.execute(*args)
File "C:\WinPython34_x64\python-3.4.3.amd64\lib\site-packages\pandas\io\sql.py", line 1559, in execute
cur = self.con.cursor()
AttributeError: 'str' object has no attribute 'cursor'
```
#### Expected Output
N/A
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.1
setuptools: 21.0.0
Cython: 0.22
numpy: 1.11.0
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: 3.1.1
numexpr: 2.4
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: 0.8.6
lxml: None
bs4: 4.4.1
html5lib: 0.9999999
httplib2: 0.9.1
apiclient: 1.4.1
sqlalchemy: 1.0.12
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: None
pandas_datareader: None
```
#### Other Versions:
```
cx_freeze: 4.3.4
pyodbc: 3.0.10
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13100/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13100/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13101 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13101/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13101/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13101/events | https://github.com/pandas-dev/pandas/issues/13101 | 153,396,150 | MDU6SXNzdWUxNTMzOTYxNTA= | 13,101 | BUG: .filter with unicode labels when can't encode | {
"avatar_url": "https://avatars.githubusercontent.com/u/7665678?v=4",
"events_url": "https://api.github.com/users/griai/events{/privacy}",
"followers_url": "https://api.github.com/users/griai/followers",
"following_url": "https://api.github.com/users/griai/following{/other_user}",
"gists_url": "https://api.github.com/users/griai/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/griai",
"id": 7665678,
"login": "griai",
"node_id": "MDQ6VXNlcjc2NjU2Nzg=",
"organizations_url": "https://api.github.com/users/griai/orgs",
"received_events_url": "https://api.github.com/users/griai/received_events",
"repos_url": "https://api.github.com/users/griai/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/griai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/griai/subscriptions",
"type": "User",
"url": "https://api.github.com/users/griai"
} | [
{
"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": "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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
]
| closed | false | null | []
| {
"closed_at": "2017-12-13T13:05:41Z",
"closed_issues": 160,
"created_at": "2017-10-02T10:21:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2017-12-12T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/52",
"id": 2806806,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/52/labels",
"node_id": "MDk6TWlsZXN0b25lMjgwNjgwNg==",
"number": 52,
"open_issues": 0,
"state": "closed",
"title": "0.21.1",
"updated_at": "2018-02-19T22:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/52"
} | 2 | 2016-05-06T07:41:01Z | 2017-11-22T02:03:52Z | 2017-11-22T02:03:52Z | NONE | null | Edit #10506 breaks if the DataFrame contains unicode column names with non-ASCII characters.
```
import pandas as pd
df = pd.DataFrame({u'a': [1, 2, 3], u'ä': [4, 5, 6]})
df.filter(regex=u'a')
```
throws me a
```
---------------------------------------------------------------------------
UnicodeEncodeError Traceback (most recent call last)
<ipython-input-10-9de5a19c260e> in <module>()
----> 1 df.filter(regex=u'a')
C:\Users\...\AppData\Local\Continuum\32bit\Anaconda\envs\test\lib\site-packages\pandas\core\generic.pyc in filter(self, items, like, regex, axis)
2013 matcher = re.compile(regex)
2014 return self.select(lambda x: matcher.search(str(x)) is not None,
-> 2015 axis=axis_name)
2016 else:
2017 raise TypeError('Must pass either `items`, `like`, or `regex`')
C:\Users\...\AppData\Local\Continuum\32bit\Anaconda\envs\test\lib\site-packages\pandas\core\generic.pyc in select(self, crit, axis)
1545 if len(axis_values) > 0:
1546 new_axis = axis_values[
-> 1547 np.asarray([bool(crit(label)) for label in axis_values])]
1548 else:
1549 new_axis = axis_values
C:\Users\...\AppData\Local\Continuum\32bit\Anaconda\envs\test\lib\site-packages\pandas\core\generic.pyc in <lambda>(x)
2012 elif regex:
2013 matcher = re.compile(regex)
-> 2014 return self.select(lambda x: matcher.search(str(x)) is not None,
2015 axis=axis_name)
2016 else:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 0: ordinal not in range(128)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13101/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13101/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13102 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13102/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13102/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13102/events | https://github.com/pandas-dev/pandas/issues/13102 | 153,398,493 | MDU6SXNzdWUxNTMzOTg0OTM= | 13,102 | BUG: plot(kind='kde') no longer works | {
"avatar_url": "https://avatars.githubusercontent.com/u/14347878?v=4",
"events_url": "https://api.github.com/users/hermanc1/events{/privacy}",
"followers_url": "https://api.github.com/users/hermanc1/followers",
"following_url": "https://api.github.com/users/hermanc1/following{/other_user}",
"gists_url": "https://api.github.com/users/hermanc1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hermanc1",
"id": 14347878,
"login": "hermanc1",
"node_id": "MDQ6VXNlcjE0MzQ3ODc4",
"organizations_url": "https://api.github.com/users/hermanc1/orgs",
"received_events_url": "https://api.github.com/users/hermanc1/received_events",
"repos_url": "https://api.github.com/users/hermanc1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hermanc1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hermanc1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hermanc1"
} | [
{
"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 | []
| null | 4 | 2016-05-06T07:58:45Z | 2016-05-06T14:34:38Z | 2016-05-06T14:32:54Z | NONE | null | #### Code Sample, a copy-pastable example if possible
``` python
import pandas as pd
import numpy as np
df=pd.DataFrame({'a':np.random.normal(5,1,1000)})
df.a.plot(kind='kde')
```
#### Expected Output
In previous versions, a kde plot was shown. Now I get a "Kernel died unexpectedly" error.
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.8-040408-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_ZA.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.1
setuptools: 20.7.0
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
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.5
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.0
pandas_datareader: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13102/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13102/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13103 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13103/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13103/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13103/events | https://github.com/pandas-dev/pandas/issues/13103 | 153,470,582 | MDU6SXNzdWUxNTM0NzA1ODI= | 13,103 | .transform not respecting axis=1 in combine stage of group-apply-combine | {
"avatar_url": "https://avatars.githubusercontent.com/u/10658783?v=4",
"events_url": "https://api.github.com/users/erbian/events{/privacy}",
"followers_url": "https://api.github.com/users/erbian/followers",
"following_url": "https://api.github.com/users/erbian/following{/other_user}",
"gists_url": "https://api.github.com/users/erbian/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erbian",
"id": 10658783,
"login": "erbian",
"node_id": "MDQ6VXNlcjEwNjU4Nzgz",
"organizations_url": "https://api.github.com/users/erbian/orgs",
"received_events_url": "https://api.github.com/users/erbian/received_events",
"repos_url": "https://api.github.com/users/erbian/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erbian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erbian/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erbian"
} | [
{
"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": "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"
} | 1 | 2016-05-06T15:00:40Z | 2016-05-06T15:07:33Z | 2016-05-06T15:07:09Z | CONTRIBUTOR | null | `.transform` does not appear to be respecting the axis argument of the groupby in the combine stage. The code below yields:
`ValueError: Length mismatch: Expected axis has 4 elements, new values have 5 elements`
```
#### Code Sample, a copy-pastable example if possible
import pandas as pd
df = pd.DataFrame(pd.np.arange(20).reshape(4,5))
df.groupby(lambda x: x <= 3, axis=1).transform(lambda x: x)
#### Expected Output
0 1 2 3 4
0 0 1 2 3 4
1 5 6 7 8 9
2 10 11 12 13 14
3 15 16 17 18 19
#### output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-74-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 1.5.4
setuptools: 20.1.1
Cython: None
numpy: 1.11.0
scipy: 0.17.0
statsmodels: 0.6.1
IPython: 4.1.1
sphinx: None
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: None
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: 2.3.3
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: None
lxml: 3.5.0
bs4: None
html5lib: 0.999
httplib2: 0.9.2
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
Jinja2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13103/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13103/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.