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/14008
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14008/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14008/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14008/events
https://github.com/pandas-dev/pandas/issues/14008
171,310,138
MDU6SXNzdWUxNzEzMTAxMzg=
14,008
BUG: PeriodIndexGrouper fails with Grouper selection
{ "avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4", "events_url": "https://api.github.com/users/chris-b1/events{/privacy}", "followers_url": "https://api.github.com/users/chris-b1/followers", "following_url": "https://api.github.com/users/chris-b1/following{/other_user}", "gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chris-b1", "id": 1924092, "login": "chris-b1", "node_id": "MDQ6VXNlcjE5MjQwOTI=", "organizations_url": "https://api.github.com/users/chris-b1/orgs", "received_events_url": "https://api.github.com/users/chris-b1/received_events", "repos_url": "https://api.github.com/users/chris-b1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions", "type": "User", "url": "https://api.github.com/users/chris-b1" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "eb6420", "default": false, "description": "Period d...
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-08-16T02:42:01Z
2021-05-01T23:16:39Z
null
CONTRIBUTOR
null
xref #13961 ``` In [3]: df = pd.DataFrame({'date': pd.period_range('2015-01-01', freq='D', periods=5), ...: 'a': np.arange(5)}, ...: index=pd.MultiIndex.from_arrays([ ...: [1,2,3,4,5], ...: pd.period_range('2015-01-01', freq='D', periods=5)], ...: names=['v','d'])) In [4]: df Out[4]: a date v d 1 2015-01-01 0 2015-01-01 2 2015-01-02 1 2015-01-02 3 2015-01-03 2 2015-01-03 4 2015-01-04 3 2015-01-04 5 2015-01-05 4 2015-01-05 In [5]: df.groupby(pd.Grouper(key='date', freq='2D')).sum() --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-5-7d905f24cc6a> in <module>() ----> 1 df.groupby(pd.Grouper(key='date', freq='2D')).sum() C:\Users\Chris\Documents\python-dev\pandas\pandas\core\generic.py in groupby(self, by, axis, level, as_index, sort, group_keys, squeeze, **kwargs) 3962 return groupby(self, by=by, axis=axis, level=level, as_index=as_index, 3963 sort=sort, group_keys=group_keys, squeeze=squeeze, -> 3964 **kwargs) 3965 3966 def asfreq(self, freq, method=None, how=None, normalize=False): C:\Users\Chris\Documents\python-dev\pandas\pandas\core\groupby.py in groupby(obj, by, **kwds) 1495 raise TypeError('invalid type: %s' % type(obj)) 1496 -> 1497 return klass(obj, by, **kwds) 1498 1499 C:\Users\Chris\Documents\python-dev\pandas\pandas\core\groupby.py in __init__(self, obj, keys, axis, level, grouper, exclusions, selection, as_index, sort, group_keys, squeeze, **kwargs) 365 level=level, 366 sort=sort, --> 367 mutated=self.mutated) 368 369 self.obj = obj C:\Users\Chris\Documents\python-dev\pandas\pandas\core\groupby.py in _get_grouper(obj, key, axis, level, sort, mutated) 2381 # a passed-in Grouper, directly convert 2382 if isinstance(key, Grouper): -> 2383 binner, grouper, obj = key._get_grouper(obj) 2384 if key.key is None: 2385 return grouper, [], obj C:\Users\Chris\Documents\python-dev\pandas\pandas\tseries\resample.py in _get_grouper(self, obj) 1027 def _get_grouper(self, obj): 1028 # create the resampler and return our binner -> 1029 r = self._get_resampler(obj) 1030 r._set_binner() 1031 return r.binner, r.grouper, r.obj C:\Users\Chris\Documents\python-dev\pandas\pandas\tseries\resample.py in _get_resampler(self, obj, kind) 1015 groupby=self, 1016 kind=kind, -> 1017 axis=self.axis) 1018 elif isinstance(ax, TimedeltaIndex): 1019 return TimedeltaIndexResampler(obj, C:\Users\Chris\Documents\python-dev\pandas\pandas\tseries\resample.py in __init__(self, obj, groupby, axis, kind, **kwargs) 88 89 if self.groupby is not None: ---> 90 self.groupby._set_grouper(self._convert_obj(obj), sort=True) 91 92 def __unicode__(self): C:\Users\Chris\Documents\python-dev\pandas\pandas\tseries\resample.py in _convert_obj(self, obj) 764 # convert to timestamp 765 if not (self.kind is None or self.kind == 'period'): --> 766 obj = obj.to_timestamp(how=self.convention) 767 return obj 768 C:\Users\Chris\Documents\python-dev\pandas\pandas\core\frame.py in to_timestamp(self, freq, how, axis, copy) 5174 axis = self._get_axis_number(axis) 5175 if axis == 0: -> 5176 new_data.set_axis(1, self.index.to_timestamp(freq=freq, how=how)) 5177 elif axis == 1: 5178 new_data.set_axis(0, self.columns.to_timestamp(freq=freq, how=how)) AttributeError: 'MultiIndex' object has no attribute 'to_timestamp' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14008/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14008/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14009
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14009/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14009/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14009/events
https://github.com/pandas-dev/pandas/issues/14009
171,386,005
MDU6SXNzdWUxNzEzODYwMDU=
14,009
'items' can not be the column name of a DataFrame?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1535530?v=4", "events_url": "https://api.github.com/users/frusciante/events{/privacy}", "followers_url": "https://api.github.com/users/frusciante/followers", "following_url": "https://api.github.com/users/frusciante/following{/other_user}", "gists_url": "https://api.github.com/users/frusciante/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/frusciante", "id": 1535530, "login": "frusciante", "node_id": "MDQ6VXNlcjE1MzU1MzA=", "organizations_url": "https://api.github.com/users/frusciante/orgs", "received_events_url": "https://api.github.com/users/frusciante/received_events", "repos_url": "https://api.github.com/users/frusciante/repos", "site_admin": false, "starred_url": "https://api.github.com/users/frusciante/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/frusciante/subscriptions", "type": "User", "url": "https://api.github.com/users/frusciante" }
[ { "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-08-16T11:31:25Z
2016-08-16T13:19:04Z
2016-08-16T13:19:00Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` df = pd.DataFrame({'items':[1,2,3], 'test': [2,3,4]}) df.items ``` #### Expected Output ``` 0 1 1 2 2 3 Name: items, dtype: int64 ``` #### Given Output `AttributeError: 'DataFrame' object has no attribute 'items'` #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.17.0 nose: 1.3.7 pip: 8.1.2 setuptools: 7.0 Cython: 0.24.1 numpy: 1.9.3 scipy: 0.16.0 statsmodels: 0.6.1 IPython: 5.0.0 sphinx: 1.4.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.4.4 matplotlib: 1.4.3 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.1 bs4: 4.3.2 html5lib: 0.9999999 httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: 0.6.6.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/14009/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14009/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14010
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14010/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14010/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14010/events
https://github.com/pandas-dev/pandas/pull/14010
171,417,376
MDExOlB1bGxSZXF1ZXN0ODE0NzYxMzI=
14,010
TST: add comprehensive coercion tests
{ "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", "d...
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-08-16T13:57:56Z
2016-08-17T10:33:41Z
2016-08-17T10:33:24Z
MEMBER
null
- [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` 1st attempt to make dtype related tests more comprehensive. Validate whether tests classes have test methods covering dtype and Series/Index. Some of them are empty yet, going to add it gradually.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14010/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14010/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14010.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14010", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14010.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14010" }
https://api.github.com/repos/pandas-dev/pandas/issues/14011
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14011/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14011/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14011/events
https://github.com/pandas-dev/pandas/issues/14011
171,462,081
MDU6SXNzdWUxNzE0NjIwODE=
14,011
DataFrame with one column, which is categorical: single rows convert to scalars
{ "avatar_url": "https://avatars.githubusercontent.com/u/57271?v=4", "events_url": "https://api.github.com/users/ChickenProp/events{/privacy}", "followers_url": "https://api.github.com/users/ChickenProp/followers", "following_url": "https://api.github.com/users/ChickenProp/following{/other_user}", "gists_url": "https://api.github.com/users/ChickenProp/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ChickenProp", "id": 57271, "login": "ChickenProp", "node_id": "MDQ6VXNlcjU3Mjcx", "organizations_url": "https://api.github.com/users/ChickenProp/orgs", "received_events_url": "https://api.github.com/users/ChickenProp/received_events", "repos_url": "https://api.github.com/users/ChickenProp/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ChickenProp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ChickenProp/subscriptions", "type": "User", "url": "https://api.github.com/users/ChickenProp" }
[ { "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, "de...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
2
2016-08-16T16:41:16Z
2019-11-10T19:11:28Z
2019-11-10T19:11:28Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` python In [2]: pd.DataFrame({'x': pd.Categorical('a b c d e'.split())}).iloc[0] Out[2]: 'a' ``` #### Expected Output I think this should be a Series with one element: ``` python 0 a dtype: category Categories (5, object): [a, b, c, d, e] ``` by analogy with the non-Categorical case: ``` python In [3]: pd.DataFrame({'x': 'a b c d e'.split()}).iloc[0] Out[3]: x a Name: 0, dtype: object ``` This bug also exhibits with `.loc[0]` and `.ix[0]`. It doesn't happen if the original dataframe has more than one column, even if they're all categorical. #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 64 OS: Darwin OS-release: 15.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 18.5 Cython: 0.23.4 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 4.0.1 sphinx: 1.3.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.6.0 matplotlib: 1.5.1 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: 2.8 boto: 2.40.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/14011/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14011/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14012
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14012/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14012/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14012/events
https://github.com/pandas-dev/pandas/issues/14012
171,473,817
MDU6SXNzdWUxNzE0NzM4MTc=
14,012
read_csv treats \x00 as EOL instead of null value
{ "avatar_url": "https://avatars.githubusercontent.com/u/89573?v=4", "events_url": "https://api.github.com/users/spillz/events{/privacy}", "followers_url": "https://api.github.com/users/spillz/followers", "following_url": "https://api.github.com/users/spillz/following{/other_user}", "gists_url": "https://api.github.com/users/spillz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/spillz", "id": 89573, "login": "spillz", "node_id": "MDQ6VXNlcjg5NTcz", "organizations_url": "https://api.github.com/users/spillz/orgs", "received_events_url": "https://api.github.com/users/spillz/received_events", "repos_url": "https://api.github.com/users/spillz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/spillz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/spillz/subscriptions", "type": "User", "url": "https://api.github.com/users/spillz" }
[ { "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", "...
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-08-16T17:35:10Z
2016-08-17T10:26:54Z
2016-08-17T10:26:53Z
NONE
null
Not sure if this is a bug, but it took me a long time to figure out what was going on in a much bigger datafile than the sample one below. #### Code Sample, a copy-pastable example if possible import pandas import StringIO data='''var1,var2,var3 1,2,0 2,\x00,0 3,4,0 4,5,0 ''' print pandas.read_csv(StringIO.StringIO(data)) #### Expected Output A table with 4 rows instead of 5, or an error. #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 20.3 Cython: 0.23.4 numpy: 1.11.0 scipy: 0.17.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.5 patsy: 0.4.0 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.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 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/14012/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14012/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14013
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14013/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14013/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14013/events
https://github.com/pandas-dev/pandas/issues/14013
171,489,750
MDU6SXNzdWUxNzE0ODk3NTA=
14,013
Rolling groupby should not maintain the by column in the resulting DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4", "events_url": "https://api.github.com/users/chrisaycock/events{/privacy}", "followers_url": "https://api.github.com/users/chrisaycock/followers", "following_url": "https://api.github.com/users/chrisaycock/following{/other_user}", "gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chrisaycock", "id": 453745, "login": "chrisaycock", "node_id": "MDQ6VXNlcjQ1Mzc0NQ==", "organizations_url": "https://api.github.com/users/chrisaycock/orgs", "received_events_url": "https://api.github.com/users/chrisaycock/received_events", "repos_url": "https://api.github.com/users/chrisaycock/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions", "type": "User", "url": "https://api.github.com/users/chrisaycock" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, ...
closed
false
null
[]
{ "closed_at": "2018-05-16T03:09:58Z", "closed_issues": 1645, "created_at": "2017-10-20T10:17:09Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.22", "due_on": "2018-05-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/53", "id": 2853937, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53/labels", "node_id": "MDk6TWlsZXN0b25lMjg1MzkzNw==", "number": 53, "open_issues": 0, "state": "closed", "title": "0.23.0", "updated_at": "2018-08-20T06:48:57Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53" }
10
2016-08-16T18:50:15Z
2020-02-20T14:14:13Z
2018-05-09T10:24:38Z
CONTRIBUTOR
null
I found another oddity while digging through #13966. Begin with the initial DataFrame in that issue: ``` df = pd.DataFrame({'A': [1] * 20 + [2] * 12 + [3] * 8, 'B': np.arange(40)}) ``` Save the grouping: ``` In [215]: g = df.groupby('A') ``` Compute the rolling sum: ``` In [216]: r = g.rolling(4) In [217]: r.sum() Out[217]: A B A 1 0 NaN NaN 1 NaN NaN 2 NaN NaN 3 4.0 6.0 4 4.0 10.0 5 4.0 14.0 6 4.0 18.0 7 4.0 22.0 8 4.0 26.0 9 4.0 30.0 ... ... ... 2 30 8.0 114.0 31 8.0 118.0 3 32 NaN NaN 33 NaN NaN 34 NaN NaN 35 12.0 134.0 36 12.0 138.0 37 12.0 142.0 38 12.0 146.0 39 12.0 150.0 [40 rows x 2 columns] ``` It maintains the `by` column (`A`)! That column should not be in the resulting DataFrame. It gets weirder if I compute the sum over the entire grouping and then re-do the rolling calculation. Now `by` column is gone as expected: ``` In [218]: g.sum() Out[218]: B A 1 190 2 306 3 284 In [219]: r.sum() Out[219]: B A 1 0 NaN 1 NaN 2 NaN 3 6.0 4 10.0 5 14.0 6 18.0 7 22.0 8 26.0 9 30.0 ... ... 2 30 114.0 31 118.0 3 32 NaN 33 NaN 34 NaN 35 134.0 36 138.0 37 142.0 38 146.0 39 150.0 [40 rows x 1 columns] ``` So the grouping summation has some sort of side effect.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14013/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14013/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14014
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14014/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14014/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14014/events
https://github.com/pandas-dev/pandas/issues/14014
171,501,126
MDU6SXNzdWUxNzE1MDExMjY=
14,014
.groupby() .value_counts() incompatible with .reset_index() in 0.18.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/13989647?v=4", "events_url": "https://api.github.com/users/dcroote/events{/privacy}", "followers_url": "https://api.github.com/users/dcroote/followers", "following_url": "https://api.github.com/users/dcroote/following{/other_user}", "gists_url": "https://api.github.com/users/dcroote/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dcroote", "id": 13989647, "login": "dcroote", "node_id": "MDQ6VXNlcjEzOTg5NjQ3", "organizations_url": "https://api.github.com/users/dcroote/orgs", "received_events_url": "https://api.github.com/users/dcroote/received_events", "repos_url": "https://api.github.com/users/dcroote/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dcroote/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dcroote/subscriptions", "type": "User", "url": "https://api.github.com/users/dcroote" }
[ { "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-08-16T19:46:37Z
2016-08-16T20:43:04Z
2016-08-16T20:43:03Z
NONE
null
#### Code Sample ``` python df = pd.DataFrame([[0,1],[0,1],[0,2],[1,1]], columns=['a','b']) df a b 0 0 1 1 0 1 2 0 2 3 1 1 df.groupby('a').b.value_counts().reset_index() ValueError: cannot insert b, already exists ``` #### Expected Output In version 0.18.0, the output was: ``` python a b 0 0 0 1 2 1 0 2 1 2 1 1 1 dtype: int64 ``` The difference is that now the groupby() value_counts() operation returns a Series named equivalently to the column on which value_counts() was computed. ``` python df.groupby('a').b.value_counts() ``` 0.18.0 ``` python a b 0 1 2 2 1 1 1 1 dtype: int64 ``` 0.18.1 (including 0.18.1+367.g6b7857b) ``` python a b 0 1 2 2 1 1 1 1 Name: b, dtype: int64 ``` This change in behavior is not completely unexpected given that outside of groupby(), value_counts() has historically returned a Series named equivalently to the column the operation was performed on: ``` python df.a.value_counts() 0 3 1 1 Name: a, dtype: int64 ``` A manual workaround would be to rename the Series before reset_index() as follows: ``` python g = df.groupby('a').b.value_counts() g.name = 0 g.reset_index() a b 0 0 0 1 2 1 0 2 1 2 1 1 1 ``` However, the one-line functionality was much appreciated. Being able to pass a new name to value_counts() could solve this issue? #### output of `pd.show_versions()` <pre> INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-21-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 (also verified with 0.18.1+367.g6b7857b) nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: None xarray: None IPython: 5.0.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: 3.2.3.1 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </pre>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14014/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14014/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14015
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14015/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14015/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14015/events
https://github.com/pandas-dev/pandas/issues/14015
171,526,646
MDU6SXNzdWUxNzE1MjY2NDY=
14,015
BUG: multi-indexing sorting on axis=1 on >0 levels
{ "avatar_url": "https://avatars.githubusercontent.com/u/21068567?v=4", "events_url": "https://api.github.com/users/WindJunkie/events{/privacy}", "followers_url": "https://api.github.com/users/WindJunkie/followers", "following_url": "https://api.github.com/users/WindJunkie/following{/other_user}", "gists_url": "https://api.github.com/users/WindJunkie/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WindJunkie", "id": 21068567, "login": "WindJunkie", "node_id": "MDQ6VXNlcjIxMDY4NTY3", "organizations_url": "https://api.github.com/users/WindJunkie/orgs", "received_events_url": "https://api.github.com/users/WindJunkie/received_events", "repos_url": "https://api.github.com/users/WindJunkie/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WindJunkie/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WindJunkie/subscriptions", "type": "User", "url": "https://api.github.com/users/WindJunkie" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on s...
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
12
2016-08-16T21:50:27Z
2017-04-07T15:18:25Z
2017-04-07T15:18:24Z
NONE
null
In a DataFrame with MultiIndex, sorting on the level with date values does not do anything (order remains unchanged). This happens for both row and column indexes. In my case I am starting with a string index, converting that to datetime index, have not tried with datetime values at the start. #### Code Sample, a copy-pastable example if possible ``` df = pd.DataFrame([[1, 2], [6, 7]]) df.columns = pd.MultiIndex.from_tuples([(0, '8/11/2016 12:00:00 AM'), (0, '8/9/2016 12:00:00 AM')], names=['l1', 'Date']) df.columns.set_levels(df.columns.levels[1].to_datetime(), level=1, inplace=True) df.sort_index(axis=1, level=1) ``` #### Expected Output Columns ordered by date is the expected output. ``` Date 2016-08-09 00:00:00 2016-08-11 00:00:00 0 2 1 1 7 6 ``` Actual output are columns in the original sort order (not even lexicographically sorted). #### 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 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.1 setuptools: 20.3 Cython: 0.23.4 numpy: 1.11.0 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.1 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.6.0 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 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/14015/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14015/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14016
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14016/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14016/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14016/events
https://github.com/pandas-dev/pandas/issues/14016
171,537,794
MDU6SXNzdWUxNzE1Mzc3OTQ=
14,016
BUG: concat with categorical keys doesn't preserve categorical dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/9507544?v=4", "events_url": "https://api.github.com/users/pijucha/events{/privacy}", "followers_url": "https://api.github.com/users/pijucha/followers", "following_url": "https://api.github.com/users/pijucha/following{/other_user}", "gists_url": "https://api.github.com/users/pijucha/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pijucha", "id": 9507544, "login": "pijucha", "node_id": "MDQ6VXNlcjk1MDc1NDQ=", "organizations_url": "https://api.github.com/users/pijucha/orgs", "received_events_url": "https://api.github.com/users/pijucha/received_events", "repos_url": "https://api.github.com/users/pijucha/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pijucha/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pijucha/subscriptions", "type": "User", "url": "https://api.github.com/users/pijucha" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
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" }
1
2016-08-16T23:00:03Z
2019-10-21T19:52:16Z
null
CONTRIBUTOR
null
This is a follow-up issue to #13854. #### Code Sample, a copy-pastable example if possible ``` python cidx = pd.CategoricalIndex(['y', 'x'], categories=list("xyz"), ordered=True) df = pd.DataFrame([[10, 11, 12]]) pd.concat([df, df], keys=cidx).index.levels[0] Out[32]: Index(['y', 'x'], dtype='object') ``` #### Expected Output ``` CategoricalIndex(['y', 'x'], categories=['x', 'y', 'z'], ordered=True, dtype='category') ``` I decided to put it separately because a fix requires more changes than just a factorization introduced in #13854.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14016/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14016/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14017
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14017/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14017/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14017/events
https://github.com/pandas-dev/pandas/issues/14017
171,542,622
MDU6SXNzdWUxNzE1NDI2MjI=
14,017
BUG: Inconsistency in make_axis_dummies (and/or Panel.to_frame()) with categorical index level
{ "avatar_url": "https://avatars.githubusercontent.com/u/9507544?v=4", "events_url": "https://api.github.com/users/pijucha/events{/privacy}", "followers_url": "https://api.github.com/users/pijucha/followers", "following_url": "https://api.github.com/users/pijucha/following{/other_user}", "gists_url": "https://api.github.com/users/pijucha/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pijucha", "id": 9507544, "login": "pijucha", "node_id": "MDQ6VXNlcjk1MDc1NDQ=", "organizations_url": "https://api.github.com/users/pijucha/orgs", "received_events_url": "https://api.github.com/users/pijucha/received_events", "repos_url": "https://api.github.com/users/pijucha/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pijucha/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pijucha/subscriptions", "type": "User", "url": "https://api.github.com/users/pijucha" }
[ { "color": "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", "de...
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" }
3
2016-08-16T23:37:04Z
2019-10-14T00:39:14Z
2019-10-14T00:39:13Z
CONTRIBUTOR
null
`make_axis_dummies` has some problems with an axis containing a `CategoricalIndex` with extra categories. #### Code Sample, a copy-pastable example if possible ``` python # category `z` is not used cidx = pd.CategoricalIndex(list("xy"), categories=list("xyz")) df = pd.DataFrame([[10, 11]], columns=cidx) ldf = pd.Panel({'A': df, 'B': df}).to_frame() from pandas.core.reshape import make_axis_dummies make_axis_dummies(ldf) Out[9]: minor x y major minor 0 x 1.0 0.0 y 0.0 1.0 make_axis_dummies(ldf, transform=lambda x: x) Out[10]: x y z major minor 0 x 1.0 0.0 0.0 y 0.0 1.0 0.0 ``` #### Expected Output I believe `make_axis_dummies(ldf)` and `make_axis_dummies(ldf, transform=lambda x: x)` should be equal. #### output of `pd.show_versions()` ``` pd.show_versions() INSTALLED VERSIONS ------------------ commit: 5d791cc7d955c0b074ad602eb03fa32bd3e17503 python: 3.5.1.final.0 python-bits: 64 OS: Linux OS-release: 4.1.20-1 machine: x86_64 processor: Intel(R)_Core(TM)_i5-2520M_CPU_@_2.50GHz byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.18.1+368.g5d791cc nose: 1.3.7 pip: 8.1.2 setuptools: 21.0.0 Cython: 0.24 numpy: 1.11.0 ... ``` In fact, this may be an issue with `Panel.to_frame()` rather than `make_axis_dummies`: ``` python ldf.index.levels[1] Out[13]: CategoricalIndex(['x', 'y'], categories=['x', 'y', 'z'], ordered=False, name='minor', dtype='category') ``` I'd expect this level should contain all categories: `CategoricalIndex(['x', 'y', 'z'], categories=['x', 'y', 'z'], ...)` - even if `'z'` is not used. If it had then the both outputs of `make_axis_dummies` would be as in `Out[10]`. (Somewhat related to #13854.)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14017/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14017/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14018
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14018/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14018/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14018/events
https://github.com/pandas-dev/pandas/issues/14018
171,545,350
MDU6SXNzdWUxNzE1NDUzNTA=
14,018
BUG: unstack doesn't preserve categorical dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/9507544?v=4", "events_url": "https://api.github.com/users/pijucha/events{/privacy}", "followers_url": "https://api.github.com/users/pijucha/followers", "following_url": "https://api.github.com/users/pijucha/following{/other_user}", "gists_url": "https://api.github.com/users/pijucha/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pijucha", "id": 9507544, "login": "pijucha", "node_id": "MDQ6VXNlcjk1MDc1NDQ=", "organizations_url": "https://api.github.com/users/pijucha/orgs", "received_events_url": "https://api.github.com/users/pijucha/received_events", "repos_url": "https://api.github.com/users/pijucha/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pijucha/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pijucha/subscriptions", "type": "User", "url": "https://api.github.com/users/pijucha" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "0e8a16", "de...
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" }
10
2016-08-16T23:57:54Z
2021-05-17T15:17:30Z
2021-05-17T15:17:30Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ``` python idx = pd.MultiIndex.from_product([['A'], [0, 1]]) df = pd.DataFrame({'cat': pd.Categorical(['a', 'b'])}, index=idx) df Out[19]: cat A 0 a 1 b df.unstack() Out[21]: cat 0 1 A a b ``` Categorical dtype is lost: ``` python df.unstack().dtypes Out[22]: cat 0 object 1 object dtype: object ``` But it works ok for a Series: ``` python df['cat'].unstack() Out[24]: 0 1 A a b df['cat'].unstack().dtypes Out[25]: 0 category 1 category dtype: object ``` #### Expected Output I believe `df.unstack()` should preserve categorical dtypes as `df['cat'].unstack()` does. #### output of `pd.show_versions()` ``` pd.show_versions() INSTALLED VERSIONS ------------------ commit: 5d791cc7d955c0b074ad602eb03fa32bd3e17503 python: 3.5.1.final.0 python-bits: 64 OS: Linux OS-release: 4.1.20-1 machine: x86_64 processor: Intel(R)_Core(TM)_i5-2520M_CPU_@_2.50GHz byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.18.1+368.g5d791cc nose: 1.3.7 pip: 8.1.2 setuptools: 21.0.0 Cython: 0.24 numpy: 1.11.0 ... ``` This is related to #13743 (and PR #13854), though a bit more difficult to fix.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14018/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14018/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14019
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14019/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14019/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14019/events
https://github.com/pandas-dev/pandas/pull/14019
171,570,854
MDExOlB1bGxSZXF1ZXN0ODE1ODE4NTE=
14,019
BUG: Parse NULL char as null value
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "...
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-08-17T04:15:09Z
2016-08-17T10:27:04Z
2016-08-17T10:26:54Z
MEMBER
null
Fixes bug in C parser in which the `NULL` character (`'\x00'`) was being interpreted as a true line terminator, escape character, or comment character because it was used to indicate that a user had not specified these values. As a result, if the data contains this value, it was being incorrectly parsed. It should be parsed as `NULL`. Closes #14012.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14019/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14019/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14019.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14019", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14019.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14019" }
https://api.github.com/repos/pandas-dev/pandas/issues/14020
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14020/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14020/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14020/events
https://github.com/pandas-dev/pandas/issues/14020
171,654,083
MDU6SXNzdWUxNzE2NTQwODM=
14,020
gbq.py: silently downcasting INTEGER columns to FLOAT is problematic
{ "avatar_url": "https://avatars.githubusercontent.com/u/124129?v=4", "events_url": "https://api.github.com/users/aschmolck/events{/privacy}", "followers_url": "https://api.github.com/users/aschmolck/followers", "following_url": "https://api.github.com/users/aschmolck/following{/other_user}", "gists_url": "https://api.github.com/users/aschmolck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aschmolck", "id": 124129, "login": "aschmolck", "node_id": "MDQ6VXNlcjEyNDEyOQ==", "organizations_url": "https://api.github.com/users/aschmolck/orgs", "received_events_url": "https://api.github.com/users/aschmolck/received_events", "repos_url": "https://api.github.com/users/aschmolck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aschmolck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aschmolck/subscriptions", "type": "User", "url": "https://api.github.com/users/aschmolck" }
[ { "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": "005...
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
4
2016-08-17T13:14:35Z
2017-02-09T17:11:31Z
2017-02-09T17:11:31Z
NONE
null
In many cases INTEGER columns in bigquery are used to store IDs. Such IDs are then likely to be silently corrupted on conversion to dataframe. There seems no good way around this, even if it's clear a priori that the query result will only return non-null INTEGER columns. I understand the motivation (the ability to represent NULL values easily and efficiently), but this both seems an undesirable situation (at the very least pandas should give a warning for integers that are not exactly convertible to floats) and inconsistent to how sql queries work in pandas. I tried to see if it would be possible to consider the 'mode' (NULLABLE or not) of the field when doing the conversion, but that part of the schema information turns out to be of very limited value in bigquery since even trivial projections turn REQUIRED fields into NULLABLE. I'm not sure what the best solution is, but I think bpq and sql should behave identically with respect to NULLs and that at the very least there should be a warning on information losing integer->float conversions. So my preference would be to check the returned json query data for nulls and use np.dtype(int64) if there are none in the INTEGER column, and otherwise 'object'. Where that's deemed to inefficient, I think it's better to add a `read_csv` style dtypes argument to allow users to explicitly request float representation for a particular column (or just cast directly in the pseudo-SQL query itself). I'd rather have my code be slower (and possibly see a runtime warning to that effect) than unwittingly corrupt data (without any warning).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14020/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14020/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14021
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14021/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14021/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14021/events
https://github.com/pandas-dev/pandas/issues/14021
171,664,159
MDU6SXNzdWUxNzE2NjQxNTk=
14,021
Better error message when fillna is used with NaN with category dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/2741256?v=4", "events_url": "https://api.github.com/users/hnykda/events{/privacy}", "followers_url": "https://api.github.com/users/hnykda/followers", "following_url": "https://api.github.com/users/hnykda/following{/other_user}", "gists_url": "https://api.github.com/users/hnykda/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hnykda", "id": 2741256, "login": "hnykda", "node_id": "MDQ6VXNlcjI3NDEyNTY=", "organizations_url": "https://api.github.com/users/hnykda/orgs", "received_events_url": "https://api.github.com/users/hnykda/received_events", "repos_url": "https://api.github.com/users/hnykda/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hnykda/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hnykda/subscriptions", "type": "User", "url": "https://api.github.com/users/hnykda" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, d...
closed
false
null
[]
{ "closed_at": "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-08-17T13:56:40Z
2016-08-26T20:50:24Z
2016-08-26T20:50:24Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ``` import numpy as np tst = pd.DataFrame({'a':[1,2,1,np.nan],'b':[np.nan, np.nan, np.nan, np.nan]}, dtype='category') tst.fillna(value=tst.median()) # here second column median is evaluated to np.nan ``` and the result is: ``` --------------------------------------------------------------------------- KeyError Traceback (most recent call last) /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/indexes/base.py in get_loc(self, key, method, tolerance) 1875 try: -> 1876 return self._engine.get_loc(key) 1877 except KeyError: pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4027)() pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:3891)() pandas/hashtable.pyx in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12408)() pandas/hashtable.pyx in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12359)() KeyError: <class 'object'> During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) <ipython-input-127-6817ed5716b0> in <module>() 2 tst = pd.DataFrame({'a':[1,2,1,np.nan], 3 'b':[np.nan, np.nan, np.nan, np.nan]}, dtype='category') ----> 4 tst.fillna(value=tst.median()) /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/core/frame.py in fillna(self, value, method, axis, inplace, limit, downcast, **kwargs) 2754 self).fillna(value=value, method=method, axis=axis, 2755 inplace=inplace, limit=limit, -> 2756 downcast=downcast, **kwargs) 2757 2758 @Appender(_shared_docs['shift'] % _shared_doc_kwargs) /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/core/generic.py in fillna(self, value, method, axis, inplace, limit, downcast) 3164 continue 3165 obj = result[k] -> 3166 obj.fillna(v, limit=limit, inplace=True) 3167 return result 3168 elif not com.is_list_like(value): /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/core/series.py in fillna(self, value, method, axis, inplace, limit, downcast, **kwargs) 2350 axis=axis, inplace=inplace, 2351 limit=limit, downcast=downcast, -> 2352 **kwargs) 2353 2354 @Appender(generic._shared_docs['shift'] % _shared_doc_kwargs) /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/core/generic.py in fillna(self, value, method, axis, inplace, limit, downcast) 3151 new_data = self._data.fillna(value=value, limit=limit, 3152 inplace=inplace, -> 3153 downcast=downcast) 3154 3155 elif isinstance(value, (dict, com.ABCSeries)): /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/core/internals.py in fillna(self, **kwargs) 2865 2866 def fillna(self, **kwargs): -> 2867 return self.apply('fillna', **kwargs) 2868 2869 def downcast(self, **kwargs): /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/core/internals.py in apply(self, f, axes, filter, do_integrity_check, consolidate, **kwargs) 2830 2831 kwargs['mgr'] = self -> 2832 applied = getattr(b, f)(**kwargs) 2833 result_blocks = _extend_blocks(applied, result_blocks) 2834 /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/core/internals.py in fillna(self, value, limit, inplace, downcast, mgr) 1884 values = self.values if inplace else self.values.copy() 1885 values = self._try_coerce_result(values.fillna(value=value, -> 1886 limit=limit)) 1887 return [self.make_block(values=values)] 1888 /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/util/decorators.py in wrapper(*args, **kwargs) 89 else: 90 kwargs[new_arg_name] = new_arg_value ---> 91 return func(*args, **kwargs) 92 return wrapper 93 return _deprecate_kwarg /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/core/categorical.py in fillna(self, value, method, limit) 1415 if mask.any(): 1416 values = values.copy() -> 1417 values[mask] = self.categories.get_loc(value) 1418 1419 return Categorical(values, categories=self.categories, /home/dan/.local/opt/miniconda3/envs/mathbs/lib/python3.5/site-packages/pandas/indexes/base.py in get_loc(self, key, method, tolerance) 1876 return self._engine.get_loc(key) 1877 except KeyError: -> 1878 return self._engine.get_loc(self._maybe_cast_indexer(key)) 1879 1880 indexer = self.get_indexer([key], method=method, tolerance=tolerance) pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4027)() pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:3891)() pandas/hashtable.pyx in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12408)() pandas/hashtable.pyx in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12359)() KeyError: <class 'object'> ``` When trying the above with float, it works as expected (nans are "replaced" by nans). #### Expected Output ``` a b 0 1.0 NaN 1 2.0 NaN 2 1.0 NaN 3 1.0 NaN ``` #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Linux OS-release: 4.7.0-1-ARCH machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.0 nose: 1.3.7 pip: 8.1.1 setuptools: 20.3 Cython: 0.24.1 numpy: 1.10.4 scipy: 0.17.0 statsmodels: None xarray: None IPython: 4.1.2 sphinx: 1.4.1 patsy: None dateutil: 2.5.2 pytz: 2016.3 blosc: None bottleneck: None tables: 3.2.2 numexpr: 2.5.1 matplotlib: 1.5.1 openpyxl: None xlrd: 1.0.0 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: 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/14021/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14021/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14022
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14022/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14022/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14022/events
https://github.com/pandas-dev/pandas/issues/14022
171,675,171
MDU6SXNzdWUxNzE2NzUxNzE=
14,022
wrong addition between Series of type datetime64 and timedelta when tz is set and different from UTC
{ "avatar_url": "https://avatars.githubusercontent.com/u/1304950?v=4", "events_url": "https://api.github.com/users/sdementen/events{/privacy}", "followers_url": "https://api.github.com/users/sdementen/followers", "following_url": "https://api.github.com/users/sdementen/following{/other_user}", "gists_url": "https://api.github.com/users/sdementen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sdementen", "id": 1304950, "login": "sdementen", "node_id": "MDQ6VXNlcjEzMDQ5NTA=", "organizations_url": "https://api.github.com/users/sdementen/orgs", "received_events_url": "https://api.github.com/users/sdementen/received_events", "repos_url": "https://api.github.com/users/sdementen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sdementen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sdementen/subscriptions", "type": "User", "url": "https://api.github.com/users/sdementen" }
[ { "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" }, { "color": "006b75", ...
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-08-17T14:39:35Z
2016-08-18T06:55:11Z
2016-08-17T18:55:23Z
CONTRIBUTOR
null
It seems there is an issue when adding a timedelta to a Series of type datetime64[ns, some tz]. There seems to be an issue with the offset/DST. #### Code Sample, a copy-pastable example if possible ``` import pandas sr = pandas.Series(pandas.DatetimeIndex(["2016-11-03 16:00:00+01:00", "2016-10-25 17:00:00+02:00"]).tz_localize("UTC").tz_convert(tz="Europe/Brussels")) print(sr) print(sr + pandas.to_timedelta(0, unit='h')) ``` #### Actual Output ``` 0 2016-11-03 16:00:00+01:00 1 2016-10-25 17:00:00+02:00 dtype: datetime64[ns, Europe/Brussels] 0 2016-11-03 16:00:00+01:00 1 2016-10-25 16:00:00+02:00 dtype: datetime64[ns, Europe/Brussels] ``` #### Expected Output ``` 0 2016-11-03 16:00:00+01:00 1 2016-10-25 17:00:00+02:00 dtype: datetime64[ns, Europe/Brussels] 0 2016-11-03 16:00:00+01:00 1 2016-10-25 17:00:00+02:00 dtype: datetime64[ns, Europe/Brussels] ``` #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 23.0.0 Cython: None numpy: 1.11.0 scipy: 0.17.1 statsmodels: None xarray: None IPython: 4.2.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: None numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: None xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: None html5lib: None httplib2: 0.9.2 apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext) jinja2: 2.8 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/14022/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14022/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14023
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14023/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14023/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14023/events
https://github.com/pandas-dev/pandas/issues/14023
171,725,517
MDU6SXNzdWUxNzE3MjU1MTc=
14,023
Feature request: Save Jupyter rendering of pd.DataFrame as a .png or .pdf
{ "avatar_url": "https://avatars.githubusercontent.com/u/9061708?v=4", "events_url": "https://api.github.com/users/jolespin/events{/privacy}", "followers_url": "https://api.github.com/users/jolespin/followers", "following_url": "https://api.github.com/users/jolespin/following{/other_user}", "gists_url": "https://api.github.com/users/jolespin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jolespin", "id": 9061708, "login": "jolespin", "node_id": "MDQ6VXNlcjkwNjE3MDg=", "organizations_url": "https://api.github.com/users/jolespin/orgs", "received_events_url": "https://api.github.com/users/jolespin/received_events", "repos_url": "https://api.github.com/users/jolespin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jolespin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jolespin/subscriptions", "type": "User", "url": "https://api.github.com/users/jolespin" }
[ { "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": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
5
2016-08-17T18:18:22Z
2019-05-20T00:27:59Z
2016-08-17T21:26:57Z
NONE
null
I've been screenshotting the dataframes from Jupyter in my notes but it would be really cool if you could save the actual renderings. I looked it up and I think this guy figured out how to do it http://stackoverflow.com/questions/19726663/how-to-save-the-pandas-dataframe-series-data-as-a-figure Feature request: DF = pd.DataFrame(somedata) DF.to_render(path/to/file, format = "pdf") or something along those lines to get something like: ![screen shot 2016-08-05 at 8 49 06 am](https://cloud.githubusercontent.com/assets/9061708/17748015/49b460de-646c-11e6-9fa5-ab7472b21b78.png)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14023/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14023/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14024
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14024/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14024/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14024/events
https://github.com/pandas-dev/pandas/issues/14024
171,749,128
MDU6SXNzdWUxNzE3NDkxMjg=
14,024
BUG: Truncated "Y" conversion with to_timedelta
{ "avatar_url": "https://avatars.githubusercontent.com/u/3869734?v=4", "events_url": "https://api.github.com/users/agartland/events{/privacy}", "followers_url": "https://api.github.com/users/agartland/followers", "following_url": "https://api.github.com/users/agartland/following{/other_user}", "gists_url": "https://api.github.com/users/agartland/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/agartland", "id": 3869734, "login": "agartland", "node_id": "MDQ6VXNlcjM4Njk3MzQ=", "organizations_url": "https://api.github.com/users/agartland/orgs", "received_events_url": "https://api.github.com/users/agartland/received_events", "repos_url": "https://api.github.com/users/agartland/repos", "site_admin": false, "starred_url": "https://api.github.com/users/agartland/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agartland/subscriptions", "type": "User", "url": "https://api.github.com/users/agartland" }
[ { "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": "AD7FA8", "default": false, "description": null, "id": 35818298,...
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-08-17T20:11:46Z
2017-05-12T16:25:19Z
2017-05-12T16:25:18Z
CONTRIBUTOR
null
When converting a fractional year to a `Timedelta` object the float is truncated: ``` print pd.to_timedelta(1., unit='Y') 365 days 05:49:12 print pd.to_timedelta(1.5, unit='Y') 365 days 05:49:12 print pd.to_timedelta(0.5, unit='Y') 0 days 00:00:00 print pd.to_timedelta(0.9, unit='Y') 0 days 00:00:00 ``` Using a float with the hour unit is OK: ``` print pd.to_timedelta(0.9, unit='H') 0 days 00:54:00 print pd.to_timedelta(1., unit='H') 0 days 01:00:00 ``` Pandas version: ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.11.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 8.1.1 setuptools: 21.2.1 Cython: 0.20.1 numpy: 1.11.0 scipy: 0.16.0 statsmodels: 0.7.0.dev-51faa1a xarray: None IPython: 4.2.0 sphinx: 1.2.2 patsy: 0.3.0 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: 3.1.1 numexpr: 2.4.4 matplotlib: 1.5.1 openpyxl: 2.0.2 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.5.5 lxml: 3.3.5 bs4: 4.3.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 0.9.4 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.28.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/14024/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14024/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14025
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14025/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14025/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14025/events
https://github.com/pandas-dev/pandas/pull/14025
171,793,239
MDExOlB1bGxSZXF1ZXN0ODE3NDEwNTM=
14,025
TST: Fix test_coercion for period dtype
{ "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" } ]
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-08-18T00:46:19Z
2016-08-18T10:00:32Z
2016-08-18T10:00:32Z
MEMBER
null
- [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` fix test to meet period dtype #13941.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14025/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14025/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14025.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14025", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14025.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14025" }
https://api.github.com/repos/pandas-dev/pandas/issues/14026
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14026/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14026/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14026/events
https://github.com/pandas-dev/pandas/pull/14026
171,799,946
MDExOlB1bGxSZXF1ZXN0ODE3NDUwMDU=
14,026
ENH: Add groupby().ngroup() method to count groups (#11642)
{ "avatar_url": "https://avatars.githubusercontent.com/u/980054?v=4", "events_url": "https://api.github.com/users/dsm054/events{/privacy}", "followers_url": "https://api.github.com/users/dsm054/followers", "following_url": "https://api.github.com/users/dsm054/following{/other_user}", "gists_url": "https://api.github.com/users/dsm054/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsm054", "id": 980054, "login": "dsm054", "node_id": "MDQ6VXNlcjk4MDA1NA==", "organizations_url": "https://api.github.com/users/dsm054/orgs", "received_events_url": "https://api.github.com/users/dsm054/received_events", "repos_url": "https://api.github.com/users/dsm054/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsm054/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsm054/subscriptions", "type": "User", "url": "https://api.github.com/users/dsm054" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "729FCF", "default": false, "description": null, ...
closed
false
null
[]
{ "closed_at": "2017-06-07T21:25:14Z", "closed_issues": 117, "created_at": "2017-05-05T11:47:57Z", "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-06-06T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/50", "id": 2502169, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/50/labels", "node_id": "MDk6TWlsZXN0b25lMjUwMjE2OQ==", "number": 50, "open_issues": 0, "state": "closed", "title": "0.20.2", "updated_at": "2017-06-08T11:19:35Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/50" }
22
2016-08-18T01:44:22Z
2017-06-04T17:02:55Z
2017-06-01T22:12:15Z
CONTRIBUTOR
null
This basically adds a method to give access to the coding returned by `grouper.group_info[0]`, i.e. the number of the group that each row is in. This is a natural parallel to cumcount(), and while it's not the world's most important feature it's come in handy for me from time to time and deserves a public method, IMHO. - [X] closes #11642 - [X] 9 tests added / passed - [X] passes `git diff upstream/master | flake8 --diff` - [X] whatsnew entry
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14026/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14026/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14026.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14026", "merged_at": "2017-06-01T22:12:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14026.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14026" }
https://api.github.com/repos/pandas-dev/pandas/issues/14027
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14027/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14027/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14027/events
https://github.com/pandas-dev/pandas/pull/14027
171,807,033
MDExOlB1bGxSZXF1ZXN0ODE3NDk3MzA=
14,027
BUG: Categoricals shouldn't allow non-strings when object dtype is passed (#13919)
{ "avatar_url": "https://avatars.githubusercontent.com/u/13247590?v=4", "events_url": "https://api.github.com/users/wcwagner/events{/privacy}", "followers_url": "https://api.github.com/users/wcwagner/followers", "following_url": "https://api.github.com/users/wcwagner/following{/other_user}", "gists_url": "https://api.github.com/users/wcwagner/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wcwagner", "id": 13247590, "login": "wcwagner", "node_id": "MDQ6VXNlcjEzMjQ3NTkw", "organizations_url": "https://api.github.com/users/wcwagner/orgs", "received_events_url": "https://api.github.com/users/wcwagner/received_events", "repos_url": "https://api.github.com/users/wcwagner/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wcwagner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wcwagner/subscriptions", "type": "User", "url": "https://api.github.com/users/wcwagner" }
[ { "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": "ffa...
closed
false
null
[]
null
0
2016-08-18T02:55:24Z
2016-08-19T12:41:42Z
2016-08-18T03:27:20Z
CONTRIBUTOR
null
- [ ] closes #13919 - [ ] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry **Why this change is needed:** Categorical variables are by definition single types, so to allow them to take on various different kinds of values is misleading. Object dtypes should only be allowed when ALL strings or ALL periods are passed (due to the way there are handled internally). **The result of this PR** will raise a `TypeError` when a categorical is created that has an object dtype but doesn't contain all `string` or all `period` values. I have a couple questions: When using `MultiIndex.from_arrays`, it creates Categories [here](https://github.com/pydata/pandas/blob/master/pandas/indexes/multi.py#L867), which can have mixed dtypes, and unfortunately my code disallows this. Any tips on how to circumvent this? Also, [this test in `test_constructor`](https://github.com/pydata/pandas/blob/master/pandas/tests/test_categorical.py#L209) is problematic bc it converts the catergories `dtype` to `object` if `NaN` is in the categories (although this is deprecated). Should I change my code to allow this, or can I assert that this produces a TypeError Any feedback is appreciated, thanks
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14027/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14027/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14027.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14027", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14027.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14027" }
https://api.github.com/repos/pandas-dev/pandas/issues/14028
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14028/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14028/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14028/events
https://github.com/pandas-dev/pandas/pull/14028
171,812,048
MDExOlB1bGxSZXF1ZXN0ODE3NTMxNDE=
14,028
BUG: read_fwf inference should respect skiprows (#11256)
{ "avatar_url": "https://avatars.githubusercontent.com/u/980054?v=4", "events_url": "https://api.github.com/users/dsm054/events{/privacy}", "followers_url": "https://api.github.com/users/dsm054/followers", "following_url": "https://api.github.com/users/dsm054/following{/other_user}", "gists_url": "https://api.github.com/users/dsm054/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsm054", "id": 980054, "login": "dsm054", "node_id": "MDQ6VXNlcjk4MDA1NA==", "organizations_url": "https://api.github.com/users/dsm054/orgs", "received_events_url": "https://api.github.com/users/dsm054/received_events", "repos_url": "https://api.github.com/users/dsm054/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsm054/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsm054/subscriptions", "type": "User", "url": "https://api.github.com/users/dsm054" }
[ { "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": "r...
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" }
6
2016-08-18T03:47:55Z
2017-01-10T13:19:30Z
2017-01-10T13:18:21Z
CONTRIBUTOR
null
Fix the fact that we don't skip the rows when inferring colspecs by passing skiprows down the chain until it's needed. - [X] closes #11256 - [X] 3 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/14028/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14028/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14028.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14028", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14028.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14028" }
https://api.github.com/repos/pandas-dev/pandas/issues/14029
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14029/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14029/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14029/events
https://github.com/pandas-dev/pandas/issues/14029
171,828,155
MDU6SXNzdWUxNzE4MjgxNTU=
14,029
proposal: new sorting order for columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/4782857?v=4", "events_url": "https://api.github.com/users/SamuraiT/events{/privacy}", "followers_url": "https://api.github.com/users/SamuraiT/followers", "following_url": "https://api.github.com/users/SamuraiT/following{/other_user}", "gists_url": "https://api.github.com/users/SamuraiT/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/SamuraiT", "id": 4782857, "login": "SamuraiT", "node_id": "MDQ6VXNlcjQ3ODI4NTc=", "organizations_url": "https://api.github.com/users/SamuraiT/orgs", "received_events_url": "https://api.github.com/users/SamuraiT/received_events", "repos_url": "https://api.github.com/users/SamuraiT/repos", "site_admin": false, "starred_url": "https://api.github.com/users/SamuraiT/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SamuraiT/subscriptions", "type": "User", "url": "https://api.github.com/users/SamuraiT" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "0052cc", "de...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2016-08-18T06:38:00Z
2016-08-19T02:07:49Z
2016-08-18T10:04:45Z
NONE
null
when I want to sort one of the columns with a specific order, there is the only way to do this right now. example, we have this dataframe ``` python import pandas as pd df = pd.DataFrame({'good': [10], 'excellent': [20], 'bad': [10]}) df.head() bad excellent good 0 10 20 10 ``` and If I want to sort the columns with the `good excellent bad` order, there is the only way ``` py pd.DataFrame(df, columns=['good', 'excellent', 'bad']) good excellent bad 0 10 20 10 ``` but this is ugly. can you consider this way of solution? ``` py import pandas as pd df = pd.DataFrame({'good': [10], 'excellent': [20], 'bad': [10]}) df.sort_columns(specific_order=['good', excellent', 'bad']) good excellent bad 0 10 20 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/14029/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14029/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14030
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14030/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14030/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14030/events
https://github.com/pandas-dev/pandas/pull/14030
171,841,065
MDExOlB1bGxSZXF1ZXN0ODE3NzI3MTQ=
14,030
DOC: update docs for read_csv().na_values and keep_default_na
{ "avatar_url": "https://avatars.githubusercontent.com/u/8815664?v=4", "events_url": "https://api.github.com/users/OXPHOS/events{/privacy}", "followers_url": "https://api.github.com/users/OXPHOS/followers", "following_url": "https://api.github.com/users/OXPHOS/following{/other_user}", "gists_url": "https://api.github.com/users/OXPHOS/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/OXPHOS", "id": 8815664, "login": "OXPHOS", "node_id": "MDQ6VXNlcjg4MTU2NjQ=", "organizations_url": "https://api.github.com/users/OXPHOS/orgs", "received_events_url": "https://api.github.com/users/OXPHOS/received_events", "repos_url": "https://api.github.com/users/OXPHOS/repos", "site_admin": false, "starred_url": "https://api.github.com/users/OXPHOS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OXPHOS/subscriptions", "type": "User", "url": "https://api.github.com/users/OXPHOS" }
[ { "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": "bfe5bf", "default": false, "description": "read_excel, to_excel"...
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-08-18T08:05:13Z
2016-08-22T05:56:42Z
2016-08-20T13:25:01Z
CONTRIBUTOR
null
- [x] closes #13967 - [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/14030/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14030/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14030.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14030", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14030.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14030" }
https://api.github.com/repos/pandas-dev/pandas/issues/14031
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14031/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14031/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14031/events
https://github.com/pandas-dev/pandas/pull/14031
171,841,164
MDExOlB1bGxSZXF1ZXN0ODE3NzI3ODI=
14,031
Require a problem description in PRs
{ "avatar_url": "https://avatars.githubusercontent.com/u/890156?v=4", "events_url": "https://api.github.com/users/jankatins/events{/privacy}", "followers_url": "https://api.github.com/users/jankatins/followers", "following_url": "https://api.github.com/users/jankatins/following{/other_user}", "gists_url": "https://api.github.com/users/jankatins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jankatins", "id": 890156, "login": "jankatins", "node_id": "MDQ6VXNlcjg5MDE1Ng==", "organizations_url": "https://api.github.com/users/jankatins/orgs", "received_events_url": "https://api.github.com/users/jankatins/received_events", "repos_url": "https://api.github.com/users/jankatins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jankatins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jankatins/subscriptions", "type": "User", "url": "https://api.github.com/users/jankatins" }
[]
closed
false
null
[]
null
12
2016-08-18T08:05:49Z
2016-11-25T14:40:49Z
2016-11-25T14:40:49Z
CONTRIBUTOR
null
A lot of time I can't find out why a change in a commit was made because it either has no proper commit message or the commit message just says what was changed, but not why. Add text to the PR template to require such a problem description, so that one can comprehend why a change was made even years later.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14031/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14031/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14031.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14031", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14031.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14031" }
https://api.github.com/repos/pandas-dev/pandas/issues/14032
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14032/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14032/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14032/events
https://github.com/pandas-dev/pandas/pull/14032
171,843,616
MDExOlB1bGxSZXF1ZXN0ODE3NzQ0ODM=
14,032
Require a problem description in issues
{ "avatar_url": "https://avatars.githubusercontent.com/u/890156?v=4", "events_url": "https://api.github.com/users/jankatins/events{/privacy}", "followers_url": "https://api.github.com/users/jankatins/followers", "following_url": "https://api.github.com/users/jankatins/following{/other_user}", "gists_url": "https://api.github.com/users/jankatins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jankatins", "id": 890156, "login": "jankatins", "node_id": "MDQ6VXNlcjg5MDE1Ng==", "organizations_url": "https://api.github.com/users/jankatins/orgs", "received_events_url": "https://api.github.com/users/jankatins/received_events", "repos_url": "https://api.github.com/users/jankatins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jankatins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jankatins/subscriptions", "type": "User", "url": "https://api.github.com/users/jankatins" }
[]
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" }
6
2016-08-18T08:19:38Z
2016-12-14T16:45:20Z
2016-11-18T22:54:23Z
CONTRIBUTOR
null
Currently some issues are just code examples without a description **why** a change should be done. This leads to problems when (years later) the current behaviour is questioned and no one can remember why it was changed.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 1, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14032/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14032/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14032.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14032", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14032.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14032" }
https://api.github.com/repos/pandas-dev/pandas/issues/14033
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14033/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14033/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14033/events
https://github.com/pandas-dev/pandas/issues/14033
171,857,674
MDU6SXNzdWUxNzE4NTc2NzQ=
14,033
BUG: Outer join on multiple date time columns results in nan keys
{ "avatar_url": "https://avatars.githubusercontent.com/u/21100302?v=4", "events_url": "https://api.github.com/users/nosniborj/events{/privacy}", "followers_url": "https://api.github.com/users/nosniborj/followers", "following_url": "https://api.github.com/users/nosniborj/following{/other_user}", "gists_url": "https://api.github.com/users/nosniborj/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nosniborj", "id": 21100302, "login": "nosniborj", "node_id": "MDQ6VXNlcjIxMTAwMzAy", "organizations_url": "https://api.github.com/users/nosniborj/orgs", "received_events_url": "https://api.github.com/users/nosniborj/received_events", "repos_url": "https://api.github.com/users/nosniborj/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nosniborj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nosniborj/subscriptions", "type": "User", "url": "https://api.github.com/users/nosniborj" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "0052cc", "de...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
5
2016-08-18T09:31:23Z
2016-08-18T11:38:20Z
2016-08-18T10:33:13Z
NONE
null
I have tried to reduce this problem as small as possible, two data frames attached each with 291 rows. [pickles.zip](https://github.com/pydata/pandas/files/424538/pickles.zip) ``` df1 = pd.read_pickle('df1.pkl') df2 = pd.read_pickle('df2.pkl') merged = df1.merge(df2, how='outer', on=['DateTime', 'valid_datetime']) #this results in nan values on the join keys merged.shape[0] == merged[['DateTime', 'valid_datetime']].dropna().shape[0] ``` Note that if the DateTime and valid_datetime columns are converted to strings then this works fine.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14033/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14033/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14034
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14034/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14034/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14034/events
https://github.com/pandas-dev/pandas/issues/14034
171,908,309
MDU6SXNzdWUxNzE5MDgzMDk=
14,034
tz_localize issue within DatetimeTZBlock
{ "avatar_url": "https://avatars.githubusercontent.com/u/1304950?v=4", "events_url": "https://api.github.com/users/sdementen/events{/privacy}", "followers_url": "https://api.github.com/users/sdementen/followers", "following_url": "https://api.github.com/users/sdementen/following{/other_user}", "gists_url": "https://api.github.com/users/sdementen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sdementen", "id": 1304950, "login": "sdementen", "node_id": "MDQ6VXNlcjEzMDQ5NTA=", "organizations_url": "https://api.github.com/users/sdementen/orgs", "received_events_url": "https://api.github.com/users/sdementen/received_events", "repos_url": "https://api.github.com/users/sdementen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sdementen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sdementen/subscriptions", "type": "User", "url": "https://api.github.com/users/sdementen" }
[ { "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": "00...
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-08-18T14:01:10Z
2016-08-18T14:39:13Z
2016-08-18T14:38:51Z
CONTRIBUTOR
null
Using the .where operation on a localized DataFrame Column may raise an exception due to a failure to tz_localize the result of the operation in DatetimeTZBlock #### Code Sample, a copy-pastable example if possible ``` import pandas import pytz TZ = pytz.timezone("Europe/Brussels") # TZ = None # <== with TZ = None, there is no exception d = datetime(2012, 3, 24, 16, tzinfo=TZ) # d = pytz.timezone(TZ).localize(d) idx = pandas.date_range("2012/03/24", "2012/03/26", tz=TZ, freq='H') df = pandas.Series(None, index=idx, name="d").to_frame() df["d"] = idx print("following line is OK") df["d"].where(df["d"] > d, d) df["d"] = idx[::-1] # tz_localize will fail print("following line raises exception") df["d"].where(df["d"] > d, d) ``` #### Actual Output ``` following line is OK following line raises exception ==> raises exception "pytz.exceptions.NonExistentTimeError: 2012-03-25 02:00:00" / "TypeError: Could not operate [1332607320000000000] with block values [2012-03-25 02:00:00]" ``` #### Expected Output ``` following line is OK following line raises exception [no exception raised] ``` #### output of `pd.show_versions()` INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 23.0.0 Cython: None numpy: 1.11.0 scipy: 0.17.1 statsmodels: None xarray: None IPython: 4.2.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: None numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: None xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: None html5lib: None httplib2: 0.9.2 apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext) jinja2: 2.8 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/14034/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14034/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14035
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14035/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14035/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14035/events
https://github.com/pandas-dev/pandas/pull/14035
171,924,878
MDExOlB1bGxSZXF1ZXN0ODE4MzI4MTE=
14,035
BUG: #14016. Preserve categorical keys through concat
{ "avatar_url": "https://avatars.githubusercontent.com/u/20444824?v=4", "events_url": "https://api.github.com/users/tom-bird/events{/privacy}", "followers_url": "https://api.github.com/users/tom-bird/followers", "following_url": "https://api.github.com/users/tom-bird/following{/other_user}", "gists_url": "https://api.github.com/users/tom-bird/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tom-bird", "id": 20444824, "login": "tom-bird", "node_id": "MDQ6VXNlcjIwNDQ0ODI0", "organizations_url": "https://api.github.com/users/tom-bird/orgs", "received_events_url": "https://api.github.com/users/tom-bird/received_events", "repos_url": "https://api.github.com/users/tom-bird/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tom-bird/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tom-bird/subscriptions", "type": "User", "url": "https://api.github.com/users/tom-bird" }
[ { "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", "de...
closed
false
null
[]
null
7
2016-08-18T15:08:37Z
2017-05-13T21:36:48Z
2017-05-13T21:36:48Z
CONTRIBUTOR
null
- [x] closes #14016 - [x] tests added / passed - [ ] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14035/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14035/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14035.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14035", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14035.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14035" }
https://api.github.com/repos/pandas-dev/pandas/issues/14036
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14036/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14036/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14036/events
https://github.com/pandas-dev/pandas/issues/14036
171,965,049
MDU6SXNzdWUxNzE5NjUwNDk=
14,036
0.18.1 to_csv ignoring columns argument
{ "avatar_url": "https://avatars.githubusercontent.com/u/17226731?v=4", "events_url": "https://api.github.com/users/jonathanlandy/events{/privacy}", "followers_url": "https://api.github.com/users/jonathanlandy/followers", "following_url": "https://api.github.com/users/jonathanlandy/following{/other_user}", "gists_url": "https://api.github.com/users/jonathanlandy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jonathanlandy", "id": 17226731, "login": "jonathanlandy", "node_id": "MDQ6VXNlcjE3MjI2NzMx", "organizations_url": "https://api.github.com/users/jonathanlandy/orgs", "received_events_url": "https://api.github.com/users/jonathanlandy/received_events", "repos_url": "https://api.github.com/users/jonathanlandy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jonathanlandy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonathanlandy/subscriptions", "type": "User", "url": "https://api.github.com/users/jonathanlandy" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-08-18T18:11:19Z
2016-08-18T20:27:07Z
2016-08-18T18:55:56Z
NONE
null
The issue discussed [here](https://github.com/pydata/pandas/issues/3454) is occurring for me in 0.18.1: The columns optional argument of to_csv is being ignored.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14036/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14036/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14037
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14037/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14037/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14037/events
https://github.com/pandas-dev/pandas/pull/14037
171,998,612
MDExOlB1bGxSZXF1ZXN0ODE4ODY0ODU=
14,037
DOC: unpin IPython version (GH13639)
{ "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-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-08-18T20:55:34Z
2016-08-27T13:34:27Z
2016-08-27T13:34:27Z
MEMBER
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14037/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14037/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14037.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14037", "merged_at": "2016-08-27T13:34:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14037.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14037" }
https://api.github.com/repos/pandas-dev/pandas/issues/14038
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14038/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14038/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14038/events
https://github.com/pandas-dev/pandas/pull/14038
172,036,875
MDExOlB1bGxSZXF1ZXN0ODE5MTQ0NDM=
14,038
BUG: iloc fails with non lex-sorted MultiIndex #13797
{ "avatar_url": "https://avatars.githubusercontent.com/u/20615034?v=4", "events_url": "https://api.github.com/users/ygriku/events{/privacy}", "followers_url": "https://api.github.com/users/ygriku/followers", "following_url": "https://api.github.com/users/ygriku/following{/other_user}", "gists_url": "https://api.github.com/users/ygriku/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ygriku", "id": 20615034, "login": "ygriku", "node_id": "MDQ6VXNlcjIwNjE1MDM0", "organizations_url": "https://api.github.com/users/ygriku/orgs", "received_events_url": "https://api.github.com/users/ygriku/received_events", "repos_url": "https://api.github.com/users/ygriku/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ygriku/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ygriku/subscriptions", "type": "User", "url": "https://api.github.com/users/ygriku" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on s...
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-08-19T01:34:07Z
2018-08-24T09:18:30Z
2016-09-13T22:25:32Z
CONTRIBUTOR
null
- [x] closes #13797 - [x] tests added / passed pandas/tests/test_multilevel.py - [x] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry corrected how iloc handles tuple-keys for multiindex
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14038/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14038/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14038.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14038", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14038.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14038" }
https://api.github.com/repos/pandas-dev/pandas/issues/14039
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14039/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14039/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14039/events
https://github.com/pandas-dev/pandas/pull/14039
172,041,832
MDExOlB1bGxSZXF1ZXN0ODE5MTc3NTM=
14,039
CLN: Removed DataFrame.to_wide
{ "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": "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" }
4
2016-08-19T02:26:41Z
2016-08-19T21:37:45Z
2016-08-19T21:36:29Z
MEMBER
null
`to_wide` was deprecated since 2011 (https://github.com/pydata/pandas/commit/1134c9f6c40398d8eba37c312c88ce294e31c6c5) xref https://github.com/pydata/pandas/issues/13777 No tests for this deprecation beforehand to remove :disappointed:
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14039/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14039/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14039.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14039", "merged_at": "2016-08-19T21:36:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14039.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14039" }
https://api.github.com/repos/pandas-dev/pandas/issues/14040
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14040/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14040/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14040/events
https://github.com/pandas-dev/pandas/issues/14040
172,043,981
MDU6SXNzdWUxNzIwNDM5ODE=
14,040
BUG: dataframe concat method error when using join='inner'
{ "avatar_url": "https://avatars.githubusercontent.com/u/19316800?v=4", "events_url": "https://api.github.com/users/joonpark72/events{/privacy}", "followers_url": "https://api.github.com/users/joonpark72/followers", "following_url": "https://api.github.com/users/joonpark72/following{/other_user}", "gists_url": "https://api.github.com/users/joonpark72/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/joonpark72", "id": 19316800, "login": "joonpark72", "node_id": "MDQ6VXNlcjE5MzE2ODAw", "organizations_url": "https://api.github.com/users/joonpark72/orgs", "received_events_url": "https://api.github.com/users/joonpark72/received_events", "repos_url": "https://api.github.com/users/joonpark72/repos", "site_admin": false, "starred_url": "https://api.github.com/users/joonpark72/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joonpark72/subscriptions", "type": "User", "url": "https://api.github.com/users/joonpark72" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
closed
false
null
[]
{ "closed_at": 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-08-19T02:50:53Z
2016-08-19T10:08:54Z
2016-08-19T10:08:21Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` df1 = pd.DataFrame(np.arange(9).reshape(3, 3), columns=['a', 'b', 'c']) df3 = pd.DataFrame(np.arange(20, 26).reshape(3, 2), columns=['a', 'd'], index=[2, 3, 4]) pd.concat([df1, df3], axis=1, join='inner') a b c a d 0 0 1 2 NaN NaN 1 3 4 5 NaN NaN ``` #### Expected Output ``` a b c a d 2 6.0 7.0 8.0 20.0 21.0 ``` #### output of `pd.show_versions()` ``` ### INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: 0.24 numpy: 1.11.1 scipy: 0.17.1 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: 1.1.0 tables: 3.2.2 numexpr: 2.6.0 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: 4.4.1 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.40.0 pandas_datareader: 0.2.1 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14040/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14040/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14041
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14041/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14041/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14041/events
https://github.com/pandas-dev/pandas/pull/14041
172,060,545
MDExOlB1bGxSZXF1ZXN0ODE5MzAzOTM=
14,041
CLN: Drop lags parameter from Panel.shift
{ "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": "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-08-19T06:00:38Z
2016-08-19T09:02:54Z
2016-08-19T09:02:46Z
MEMBER
null
Title is self-explanatory. xref #6928
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14041/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14041/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14041.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14041", "merged_at": "2016-08-19T09:02:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14041.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14041" }
https://api.github.com/repos/pandas-dev/pandas/issues/14042
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14042/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14042/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14042/events
https://github.com/pandas-dev/pandas/issues/14042
172,067,750
MDU6SXNzdWUxNzIwNjc3NTA=
14,042
numpy.split on non-UTC, tz-aware data undergoes UTC roundtrip
{ "avatar_url": "https://avatars.githubusercontent.com/u/5709580?v=4", "events_url": "https://api.github.com/users/isacarnekvist/events{/privacy}", "followers_url": "https://api.github.com/users/isacarnekvist/followers", "following_url": "https://api.github.com/users/isacarnekvist/following{/other_user}", "gists_url": "https://api.github.com/users/isacarnekvist/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/isacarnekvist", "id": 5709580, "login": "isacarnekvist", "node_id": "MDQ6VXNlcjU3MDk1ODA=", "organizations_url": "https://api.github.com/users/isacarnekvist/orgs", "received_events_url": "https://api.github.com/users/isacarnekvist/received_events", "repos_url": "https://api.github.com/users/isacarnekvist/repos", "site_admin": false, "starred_url": "https://api.github.com/users/isacarnekvist/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/isacarnekvist/subscriptions", "type": "User", "url": "https://api.github.com/users/isacarnekvist" }
[ { "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, "de...
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2016-08-19T07:04:29Z
2020-03-21T20:19:05Z
2020-03-21T20:19:05Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` import pandas as pd import numpy as np indices = pd.date_range('2016-01-01 00:00:00+0200', freq='S', periods=10) np.split(indices, indices_or_sections=[]) Out: [DatetimeIndex(['2015-12-31 20:00:00+02:00', '2015-12-31 20:00:01+02:00', '2015-12-31 20:00:02+02:00', '2015-12-31 20:00:03+02:00', '2015-12-31 20:00:04+02:00', '2015-12-31 20:00:05+02:00', '2015-12-31 20:00:06+02:00', '2015-12-31 20:00:07+02:00', '2015-12-31 20:00:08+02:00', '2015-12-31 20:00:09+02:00'], dtype='datetime64[ns, pytz.FixedOffset(120)]', freq='S')] ``` #### Expected Output ``` [DatetimeIndex(['2016-01-01 00:00:00+02:00', '2016-01-01 00:00:01+02:00', '2016-01-01 00:00:02+02:00', '2016-01-01 00:00:03+02:00', '2016-01-01 00:00:04+02:00', '2016-01-01 00:00:05+02:00', '2016-01-01 00:00:06+02:00', '2016-01-01 00:00:07+02:00', '2016-01-01 00:00:08+02:00', '2016-01-01 00:00:09+02:00'], dtype='datetime64[ns, pytz.FixedOffset(120)]', freq='S')] ``` #### output of `pd.show_versions()` ``` In [16]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 4.2.0-38-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 25.2.0 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: None xarray: None IPython: 1.2.1 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: 3.1.1 numexpr: 2.6.1 matplotlib: 1.3.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: 0.999 httplib2: 0.8 apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None boto: 2.42.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/14042/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14042/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14043
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14043/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14043/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14043/events
https://github.com/pandas-dev/pandas/issues/14043
172,075,026
MDU6SXNzdWUxNzIwNzUwMjY=
14,043
TypeError: 'NoneType' object is not callable
{ "avatar_url": "https://avatars.githubusercontent.com/u/2221844?v=4", "events_url": "https://api.github.com/users/0-wiz-0/events{/privacy}", "followers_url": "https://api.github.com/users/0-wiz-0/followers", "following_url": "https://api.github.com/users/0-wiz-0/following{/other_user}", "gists_url": "https://api.github.com/users/0-wiz-0/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/0-wiz-0", "id": 2221844, "login": "0-wiz-0", "node_id": "MDQ6VXNlcjIyMjE4NDQ=", "organizations_url": "https://api.github.com/users/0-wiz-0/orgs", "received_events_url": "https://api.github.com/users/0-wiz-0/received_events", "repos_url": "https://api.github.com/users/0-wiz-0/repos", "site_admin": false, "starred_url": "https://api.github.com/users/0-wiz-0/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/0-wiz-0/subscriptions", "type": "User", "url": "https://api.github.com/users/0-wiz-0" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
null
3
2016-08-19T07:55:36Z
2019-10-07T01:34:07Z
2019-10-07T01:34:07Z
NONE
null
When running the 0.18.1 self tests with python-3.5.2 on NetBSD, I see a couple of test failures. One is tracked in #12337, here's the log for the others: ``` ====================================================================== ERROR: test_secondary_kde (pandas.tseries.tests.test_plotting.TestTSPlot) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tseries/tests/test_plotting.py", line 611, in test_secondary_kde ax = ser.plot(secondary_y=True, kind='density') File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__ **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_df_legend_labels (pandas.tests.test_graphics.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 2675, in test_df_legend_labels ax = df.plot(kind=kind, legend=True) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__ sort_columns=sort_columns, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_kde_colors (pandas.tests.test_graphics.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3020, in test_kde_colors ax = df.plot.kde(color=custom_colors) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3855, in kde return self(kind='kde', **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__ sort_columns=sort_columns, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_kde_colors_and_styles_subplots (pandas.tests.test_graphics.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3043, in test_kde_colors_and_styles_subplots axes = df.plot(kind='kde', subplots=True) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__ sort_columns=sort_columns, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_kde_df (pandas.tests.test_graphics.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 2491, in test_kde_df ax = _check_plot_works(df.plot, kind='kde') File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works ret = f(**kwargs) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__ sort_columns=sort_columns, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_kde_missing_vals (pandas.tests.test_graphics.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 2512, in test_kde_missing_vals _check_plot_works(df.plot, kind='kde') File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works ret = f(**kwargs) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__ sort_columns=sort_columns, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_kind_both_ways (pandas.tests.test_graphics.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3186, in test_kind_both_ways df.plot(kind=kind) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__ sort_columns=sort_columns, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_memory_leak (pandas.tests.test_graphics.TestDataFramePlots) Check that every plot type gets properly collected. ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3647, in test_memory_leak results[kind] = weakref.proxy(df.plot(kind=kind, **args)) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__ sort_columns=sort_columns, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_no_legend (pandas.tests.test_graphics.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 2765, in test_no_legend ax = df.plot(kind=kind, legend=False) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__ sort_columns=sort_columns, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_plot (pandas.tests.test_graphics.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1322, in test_plot df.plot.line(blarg=True) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3760, in line return self(kind='line', x=x, y=y, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__ sort_columns=sort_columns, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1707, in _make_plot **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1722, in _plot lines = MPLPlot._plot(ax, x, y_values, style=style, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1342, in _plot return ax.plot(*args, **kwds) File "/usr/pkg/lib/python3.5/site-packages/matplotlib/__init__.py", line 1819, in inner return func(ax, *args, **kwargs) File "/usr/pkg/lib/python3.5/site-packages/matplotlib/axes/_axes.py", line 1382, in plot for line in self._get_lines(*args, **kwargs): File "/usr/pkg/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 381, in _grab_next_args for seg in self._plot_args(remaining, kwargs): File "/usr/pkg/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 369, in _plot_args seg = func(x[:, j % ncx], y[:, j % ncy], kw, kwargs) File "/usr/pkg/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 276, in _makeline seg = mlines.Line2D(x, y, **kw) File "/usr/pkg/lib/python3.5/site-packages/matplotlib/lines.py", line 380, in __init__ self.update(kwargs) File "/usr/pkg/lib/python3.5/site-packages/matplotlib/artist.py", line 859, in update raise AttributeError('Unknown property %s' % k) AttributeError: Unknown property blarg ====================================================================== ERROR: test_hist_kde (pandas.tests.test_graphics.TestSeriesPlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1023, in test_hist_kde _check_plot_works(self.ts.plot.kde) File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works ret = f(**kwargs) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3671, in kde return self(kind='kde', **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__ **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_hist_kde_color (pandas.tests.test_graphics.TestSeriesPlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1078, in test_hist_kde_color ax = self.ts.plot.kde(logy=True, color='r') File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3671, in kde return self(kind='kde', **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__ **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_kde_kwargs (pandas.tests.test_graphics.TestSeriesPlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1038, in test_kde_kwargs ind=linspace(-100, 100, 20)) File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works ret = f(**kwargs) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3671, in kde return self(kind='kde', **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__ **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_kde_missing_vals (pandas.tests.test_graphics.TestSeriesPlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1052, in test_kde_missing_vals _check_plot_works(s.plot.kde) File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works ret = f(**kwargs) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3671, in kde return self(kind='kde', **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__ **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_kind_both_ways (pandas.tests.test_graphics.TestSeriesPlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1099, in test_kind_both_ways s.plot(kind=kind) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__ **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_plot (pandas.tests.test_graphics.TestSeriesPlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 557, in test_plot _check_plot_works(self.series[:5].plot, kind=kind) File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works ret = f(**kwargs) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__ **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_series_grid_settings (pandas.tests.test_graphics.TestSeriesPlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1193, in test_series_grid_settings plotting._common_kinds) File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 480, in _check_grid_settings obj.plot(kind=kind, **kws) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__ **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_valid_object_plot (pandas.tests.test_graphics.TestSeriesPlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1117, in test_valid_object_plot _check_plot_works(s.plot, kind=kind) File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works ret = f(**kwargs) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__ **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot stacking_id=stacking_id, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot gkde = gaussian_kde(y, bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ====================================================================== ERROR: test_scatter_plot_legacy (pandas.tests.test_graphics_others.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../pandas-0.18.1/pandas/tests/test_graphics_others.py", line 408, in test_scatter_plot_legacy _check_plot_works(scat, diagonal='kde') File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works ret = f(**kwargs) File ".../pandas-0.18.1/pandas/tests/test_graphics_others.py", line 402, in scat return plotting.scatter_matrix(df, **kwds) File ".../pandas-0.18.1/pandas/tools/plotting.py", line 370, in scatter_matrix gkde = gaussian_kde(y) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__ self.set_bandwidth(bw_method=bw_method) File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth self._compute_covariance() File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det a_det, info = fdet(a1, overwrite_a=overwrite_a) TypeError: 'NoneType' object is not callable ---------------------------------------------------------------------- Ran 10272 tests in 1498.940s FAILED (errors=20, skipped=572) ``` Any ideas what could cause this? Missing dependency, missing support in libc, something else?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14043/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14043/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14044
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14044/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14044/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14044/events
https://github.com/pandas-dev/pandas/pull/14044
172,089,485
MDExOlB1bGxSZXF1ZXN0ODE5NTA2MTI=
14,044
BUG: DataFrame.to_records() bug in converting datetime64 index
{ "avatar_url": "https://avatars.githubusercontent.com/u/10204255?v=4", "events_url": "https://api.github.com/users/amolkahat/events{/privacy}", "followers_url": "https://api.github.com/users/amolkahat/followers", "following_url": "https://api.github.com/users/amolkahat/following{/other_user}", "gists_url": "https://api.github.com/users/amolkahat/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amolkahat", "id": 10204255, "login": "amolkahat", "node_id": "MDQ6VXNlcjEwMjA0MjU1", "organizations_url": "https://api.github.com/users/amolkahat/orgs", "received_events_url": "https://api.github.com/users/amolkahat/received_events", "repos_url": "https://api.github.com/users/amolkahat/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amolkahat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amolkahat/subscriptions", "type": "User", "url": "https://api.github.com/users/amolkahat" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
closed
false
null
[]
null
8
2016-08-19T09:21:24Z
2016-10-18T12:31:50Z
2016-10-18T12:31:50Z
CONTRIBUTOR
null
BUG: DataFrame.to_records() bug in converting datetime64 index with timezone #13937
{ "+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/14044/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14044/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14044.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14044", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14044.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14044" }
https://api.github.com/repos/pandas-dev/pandas/issues/14045
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14045/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14045/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14045/events
https://github.com/pandas-dev/pandas/pull/14045
172,101,629
MDExOlB1bGxSZXF1ZXN0ODE5NTk0MzE=
14,045
unique docstring extend #13565 unique datetime tz issue
{ "avatar_url": "https://avatars.githubusercontent.com/u/8334424?v=4", "events_url": "https://api.github.com/users/paulgueltekin/events{/privacy}", "followers_url": "https://api.github.com/users/paulgueltekin/followers", "following_url": "https://api.github.com/users/paulgueltekin/following{/other_user}", "gists_url": "https://api.github.com/users/paulgueltekin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/paulgueltekin", "id": 8334424, "login": "paulgueltekin", "node_id": "MDQ6VXNlcjgzMzQ0MjQ=", "organizations_url": "https://api.github.com/users/paulgueltekin/orgs", "received_events_url": "https://api.github.com/users/paulgueltekin/received_events", "repos_url": "https://api.github.com/users/paulgueltekin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/paulgueltekin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/paulgueltekin/subscriptions", "type": "User", "url": "https://api.github.com/users/paulgueltekin" }
[]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
4
2016-08-19T10:27:52Z
2016-08-21T14:15:14Z
2016-08-19T10:29:32Z
NONE
null
closes #13565 whatsnew extended doc string for unique addressing the issue with timezone aware datetimes ( see #13565 )
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14045/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14045/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14045.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14045", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14045.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14045" }
https://api.github.com/repos/pandas-dev/pandas/issues/14046
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14046/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14046/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14046/events
https://github.com/pandas-dev/pandas/pull/14046
172,114,854
MDExOlB1bGxSZXF1ZXN0ODE5NjkxMjA=
14,046
DOC: add data_columns to doc string of to_hdf and HDFStore.append
{ "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-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-08-19T11:52:41Z
2016-08-19T21:00:26Z
2016-08-19T20:41:37Z
MEMBER
null
Follow-up of #13951, rebase of PR #13065
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14046/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14046/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14046.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14046", "merged_at": "2016-08-19T20:41:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14046.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14046" }
https://api.github.com/repos/pandas-dev/pandas/issues/14047
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14047/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14047/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14047/events
https://github.com/pandas-dev/pandas/pull/14047
172,126,957
MDExOlB1bGxSZXF1ZXN0ODE5Nzc3MTM=
14,047
BUG: Categoricals shouldn't allow non-strings when object dtype is passed (#13919)
{ "avatar_url": "https://avatars.githubusercontent.com/u/13247590?v=4", "events_url": "https://api.github.com/users/wcwagner/events{/privacy}", "followers_url": "https://api.github.com/users/wcwagner/followers", "following_url": "https://api.github.com/users/wcwagner/following{/other_user}", "gists_url": "https://api.github.com/users/wcwagner/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wcwagner", "id": 13247590, "login": "wcwagner", "node_id": "MDQ6VXNlcjEzMjQ3NTkw", "organizations_url": "https://api.github.com/users/wcwagner/orgs", "received_events_url": "https://api.github.com/users/wcwagner/received_events", "repos_url": "https://api.github.com/users/wcwagner/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wcwagner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wcwagner/subscriptions", "type": "User", "url": "https://api.github.com/users/wcwagner" }
[ { "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": "AD7...
closed
false
null
[]
null
13
2016-08-19T13:04:32Z
2016-09-13T22:55:03Z
2016-09-11T20:26:01Z
CONTRIBUTOR
null
- [ ] closes #13919 - [ ] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry **Why this change is needed:** Categorical variables are by definition single types, so to allow them to take on different types of values is misleading. Object dtypes should only be allowed when ALL strings or ALL periods are passed (due to the way there are handled internally). **The result of this PR** will raise a `TypeError` when a categorical is created that has an object dtype but doesn't contain all `string` or all `period` values.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14047/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14047/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14047.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14047", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14047.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14047" }
https://api.github.com/repos/pandas-dev/pandas/issues/14048
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14048/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14048/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14048/events
https://github.com/pandas-dev/pandas/issues/14048
172,134,070
MDU6SXNzdWUxNzIxMzQwNzA=
14,048
BUG/API PeriodIndex handles int list/array differently
{ "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": "AD7FA8", "default": false, "description": null, "id": 35818298,...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
4
2016-08-19T13:42:54Z
2018-10-25T13:33:20Z
2018-10-25T13:33:15Z
MEMBER
null
When we pass a list of numbers, it parsed as date as it is. The same values is regarded as `ordinal` if it is passed as an array. #### Code Sample, a copy-pastable example if possible ``` raw = [2005, 2007, 2009] pd.PeriodIndex(raw, freq='A') # PeriodIndex(['2005', '2007', '2009'], dtype='period[A-DEC]', freq='A-DEC') pd.PeriodIndex(np.array(raw), freq='A') # PeriodIndex(['3975', '3977', '3979'], dtype='period[A-DEC]', freq='A-DEC') ``` #### Expected Output Because `PeriodIndex` has a `data` and `ordinal` arg, it should be regarded as: - date if it is passed via `data` kwd - `ordinal` if it is passed via `ordinal` kwd #### 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/14048/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14048/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14049
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14049/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14049/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14049/events
https://github.com/pandas-dev/pandas/issues/14049
172,153,378
MDU6SXNzdWUxNzIxNTMzNzg=
14,049
Partial datetime indexing of Multiindex by year only
{ "avatar_url": "https://avatars.githubusercontent.com/u/10682573?v=4", "events_url": "https://api.github.com/users/jesrael/events{/privacy}", "followers_url": "https://api.github.com/users/jesrael/followers", "following_url": "https://api.github.com/users/jesrael/following{/other_user}", "gists_url": "https://api.github.com/users/jesrael/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jesrael", "id": 10682573, "login": "jesrael", "node_id": "MDQ6VXNlcjEwNjgyNTcz", "organizations_url": "https://api.github.com/users/jesrael/orgs", "received_events_url": "https://api.github.com/users/jesrael/received_events", "repos_url": "https://api.github.com/users/jesrael/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jesrael/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jesrael/subscriptions", "type": "User", "url": "https://api.github.com/users/jesrael" }
[ { "color": "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 t...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
5
2016-08-19T15:09:14Z
2016-08-20T13:09:47Z
2016-08-20T13:09:35Z
NONE
null
I have DataFrame: ``` import pandas as pd import numpy as np rng = pd.date_range('01-01-1988',periods=130000,freq='H') long_df = pd.DataFrame(np.random.randn(130000,4),index = rng, columns=['bar','baz','foo','zoo']) dfmi = long_df.stack().sort_index() ``` --- ``` print (dfmi) 1988-01-01 00:00:00 bar -1.129213 baz 1.405388 foo 0.482324 zoo -2.315226 1988-01-01 01:00:00 bar -0.533171 baz 1.906526 foo -0.745095 zoo 0.351300 1988-01-01 02:00:00 bar -0.162411 baz -0.218296 foo 0.327074 zoo -0.508463 1988-01-01 03:00:00 bar -0.676780 baz -1.137270 foo 0.389457 zoo -0.517306 1988-01-01 04:00:00 bar 1.368110 baz 1.106048 foo 1.342662 zoo -0.215235 1988-01-01 05:00:00 bar -1.284003 baz 0.216028 foo 0.889421 zoo -0.965881 1988-01-01 06:00:00 bar 1.522085 baz 0.436332 foo 0.114714 zoo 0.342456 1988-01-01 07:00:00 bar -0.176803 baz -0.365471 2002-10-30 08:00:00 foo -1.196314 zoo 1.245414 2002-10-30 09:00:00 bar 1.271792 baz -0.688911 foo -0.852729 zoo 0.869926 2002-10-30 10:00:00 bar -0.487386 baz -0.161470 foo 0.593564 zoo -0.440397 2002-10-30 11:00:00 bar 0.856882 baz -0.297341 foo 2.106393 zoo 0.186903 2002-10-30 12:00:00 bar 1.551650 baz 1.152780 foo 0.726544 zoo -0.334287 2002-10-30 13:00:00 bar 0.483035 baz 1.573808 foo -0.734948 zoo 0.005149 2002-10-30 14:00:00 bar 0.077451 baz 0.783963 foo -0.111543 zoo -0.637871 2002-10-30 15:00:00 bar 0.383890 baz -0.368546 foo 0.503162 zoo 0.324679 dtype: float64 ``` --- ``` print (dfmi.index.get_level_values(0)) DatetimeIndex(['1988-01-01 00:00:00', '1988-01-01 00:00:00', '1988-01-01 00:00:00', '1988-01-01 00:00:00', '1988-01-01 01:00:00', '1988-01-01 01:00:00', '1988-01-01 01:00:00', '1988-01-01 01:00:00', '1988-01-01 02:00:00', '1988-01-01 02:00:00', ... '2002-10-30 13:00:00', '2002-10-30 13:00:00', '2002-10-30 14:00:00', '2002-10-30 14:00:00', '2002-10-30 14:00:00', '2002-10-30 14:00:00', '2002-10-30 15:00:00', '2002-10-30 15:00:00', '2002-10-30 15:00:00', '2002-10-30 15:00:00'], dtype='datetime64[ns]', length=520000, freq='H') ``` If select by **year**, **month** and **day**, it works nice: ``` print (dfmi.loc['2001-01-01']) 2001-01-01 00:00:00 bar -0.349633 baz -1.945182 foo 0.422883 zoo -1.183061 2001-01-01 01:00:00 bar -0.014788 baz -0.646235 foo -1.449877 zoo 0.422516 2001-01-01 02:00:00 bar 0.197731 baz -0.307682 foo -1.293725 zoo 0.283953 2001-01-01 03:00:00 bar 0.725005 baz 1.182862 foo -0.349092 zoo 1.354510 2001-01-01 04:00:00 bar -0.516522 baz 0.582963 foo -0.577522 zoo 0.710188 2001-01-01 05:00:00 bar -0.453547 baz -1.054144 foo 0.911428 zoo -0.417231 2001-01-01 06:00:00 bar -1.117797 baz -0.315343 foo 1.441117 zoo 1.135960 2001-01-01 07:00:00 bar -0.607946 baz 1.210047 ... 2001-01-01 16:00:00 foo -1.435443 zoo 0.045783 2001-01-01 17:00:00 bar -0.590686 baz 1.115333 foo -0.558769 zoo -0.522037 2001-01-01 18:00:00 bar -0.862442 baz 0.917343 foo 0.759948 zoo -0.004601 2001-01-01 19:00:00 bar -1.901064 baz 0.281404 foo -0.704072 zoo -0.104176 2001-01-01 20:00:00 bar -0.703224 baz -0.170848 foo 0.547919 zoo 1.199431 2001-01-01 21:00:00 bar 1.198095 baz -0.416019 foo 1.551871 zoo -0.472543 2001-01-01 22:00:00 bar -0.239550 baz -0.401000 foo 0.959729 zoo 0.783011 2001-01-01 23:00:00 bar 0.415624 baz 0.093273 foo 0.712913 zoo -1.026016 dtype: float64 ``` But if select by **year** or **year** and **month**, it return all DataFrame, there is not slicing. ``` print (dfmi.loc['2001-01']) print (dfmi.loc['2001']) ``` Is it bug or not implemented yet? Thank you. ``` print (pd.show_versions()) INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: sk_SK pandas: 0.18.1 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: 0.999 httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.39.0 pandas_datareader: 0.2.1 None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14049/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14049/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14050
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14050/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14050/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14050/events
https://github.com/pandas-dev/pandas/issues/14050
172,205,129
MDU6SXNzdWUxNzIyMDUxMjk=
14,050
verbose = False cause to_gbq() to fail
{ "avatar_url": "https://avatars.githubusercontent.com/u/12443574?v=4", "events_url": "https://api.github.com/users/dgendlernyt/events{/privacy}", "followers_url": "https://api.github.com/users/dgendlernyt/followers", "following_url": "https://api.github.com/users/dgendlernyt/following{/other_user}", "gists_url": "https://api.github.com/users/dgendlernyt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dgendlernyt", "id": 12443574, "login": "dgendlernyt", "node_id": "MDQ6VXNlcjEyNDQzNTc0", "organizations_url": "https://api.github.com/users/dgendlernyt/orgs", "received_events_url": "https://api.github.com/users/dgendlernyt/received_events", "repos_url": "https://api.github.com/users/dgendlernyt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dgendlernyt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dgendlernyt/subscriptions", "type": "User", "url": "https://api.github.com/users/dgendlernyt" }
[ { "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": "009800", "default": false, "description": "Duplicate issue or pull ...
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-08-19T19:39:00Z
2016-08-19T20:44:48Z
2016-08-19T20:44:27Z
NONE
null
total_rows is only set in to_gbq() if verbose = True. If verbose = False, it is reference before assignment. #### Code Sample, a copy-pastable example if possible data.to_gbq('ANYTABLE',project_id ='ANYPROJECT',verbose = False,if_exists = 'append') 'UnboundLocalError: local variable 'total_rows' referenced before assignment' #### Expected Output Expected output is a successful upload to GBQ. #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 64 OS: Darwin OS-release: 15.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 19.4 Cython: None numpy: 1.11.0 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.2.0 sphinx: 1.4.2 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: 0.9.2 apiclient: 1.5.1 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 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/14050/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14050/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14051
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14051/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14051/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14051/events
https://github.com/pandas-dev/pandas/pull/14051
172,230,457
MDExOlB1bGxSZXF1ZXN0ODIwNTMyNzU=
14,051
BUG: Dataframe.fillna with np.nan for dtype=category(GH 14021)
{ "avatar_url": "https://avatars.githubusercontent.com/u/20844595?v=4", "events_url": "https://api.github.com/users/conquistador1492/events{/privacy}", "followers_url": "https://api.github.com/users/conquistador1492/followers", "following_url": "https://api.github.com/users/conquistador1492/following{/other_user}", "gists_url": "https://api.github.com/users/conquistador1492/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/conquistador1492", "id": 20844595, "login": "conquistador1492", "node_id": "MDQ6VXNlcjIwODQ0NTk1", "organizations_url": "https://api.github.com/users/conquistador1492/orgs", "received_events_url": "https://api.github.com/users/conquistador1492/received_events", "repos_url": "https://api.github.com/users/conquistador1492/repos", "site_admin": false, "starred_url": "https://api.github.com/users/conquistador1492/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/conquistador1492/subscriptions", "type": "User", "url": "https://api.github.com/users/conquistador1492" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, d...
closed
false
null
[]
{ "closed_at": "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-08-19T22:13:18Z
2016-11-15T22:20:35Z
2016-08-26T20:50:24Z
CONTRIBUTOR
null
- [x] closes #14021 - [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/14051/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14051/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14051.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14051", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14051.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14051" }
https://api.github.com/repos/pandas-dev/pandas/issues/14052
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14052/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14052/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14052/events
https://github.com/pandas-dev/pandas/issues/14052
172,272,637
MDU6SXNzdWUxNzIyNzI2Mzc=
14,052
Inconsistent .values for tz-aware columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/1304950?v=4", "events_url": "https://api.github.com/users/sdementen/events{/privacy}", "followers_url": "https://api.github.com/users/sdementen/followers", "following_url": "https://api.github.com/users/sdementen/following{/other_user}", "gists_url": "https://api.github.com/users/sdementen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sdementen", "id": 1304950, "login": "sdementen", "node_id": "MDQ6VXNlcjEzMDQ5NTA=", "organizations_url": "https://api.github.com/users/sdementen/orgs", "received_events_url": "https://api.github.com/users/sdementen/received_events", "repos_url": "https://api.github.com/users/sdementen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sdementen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sdementen/subscriptions", "type": "User", "url": "https://api.github.com/users/sdementen" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user...
{ "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" }
34
2016-08-20T14:05:04Z
2019-07-05T00:46:58Z
2019-07-05T00:46:58Z
CONTRIBUTOR
null
When getting the values of a dataframe with multiple columns with a single type datetime64[ns,UTC], it returns a numpy array with dtype=object instead of dtype=datetime64[ns,UTC]. When returning a single column with dtype=datetime64[ns,UTC] or returning a multiple columns of dtype=datetime64[ns] (ie without tz), it works. Looking at the code, it appears that SingleBlockManager.is_mixed_type returns False in the first case (datetime64[ns,UTC]) and True in the two other cases (single datetime64[ns,UTC] or multiple datetime64[ns]). #### Code Sample, a copy-pastable example if possible ``` import pandas idx = pandas.date_range("2010", "2011", tz="UTC") df = pandas.DataFrame(index=idx) df["A"] = idx df["B"] = idx print(df[["B"]].values.dtype) print(df[["A", "B"]].values.dtype) ``` #### Actual Output ``` datetime64[ns, UTC] object ``` #### Expected Output ``` datetime64[ns, UTC] datetime64[ns, UTC] ``` #### output of `pd.show_versions()` INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 23.0.0 Cython: None numpy: 1.11.0 scipy: 0.17.1 statsmodels: None xarray: None IPython: 4.2.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: None numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: None xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: None html5lib: None httplib2: 0.9.2 apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext) jinja2: 2.8 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/14052/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14052/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14053
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14053/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14053/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14053/events
https://github.com/pandas-dev/pandas/pull/14053
172,274,230
MDExOlB1bGxSZXF1ZXN0ODIwODAzNTg=
14,053
BUG: GH11847 Unstack with mixed dtypes coerces everything to object
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
7
2016-08-20T14:45:54Z
2016-12-10T15:38:17Z
2016-12-10T15:38:14Z
CONTRIBUTOR
null
- [x] closes #11847 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry Changed the way in which the original data frame is copied (dropped use of .values, since it does not preserve dtypes).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14053/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14053/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14053.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14053", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14053.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14053" }
https://api.github.com/repos/pandas-dev/pandas/issues/14054
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14054/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14054/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14054/events
https://github.com/pandas-dev/pandas/issues/14054
172,280,627
MDU6SXNzdWUxNzIyODA2Mjc=
14,054
keep consistency in calling to_csv either dataframe or series
{ "avatar_url": "https://avatars.githubusercontent.com/u/11390679?v=4", "events_url": "https://api.github.com/users/FrankMN/events{/privacy}", "followers_url": "https://api.github.com/users/FrankMN/followers", "following_url": "https://api.github.com/users/FrankMN/following{/other_user}", "gists_url": "https://api.github.com/users/FrankMN/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/FrankMN", "id": 11390679, "login": "FrankMN", "node_id": "MDQ6VXNlcjExMzkwNjc5", "organizations_url": "https://api.github.com/users/FrankMN/orgs", "received_events_url": "https://api.github.com/users/FrankMN/received_events", "repos_url": "https://api.github.com/users/FrankMN/repos", "site_admin": false, "starred_url": "https://api.github.com/users/FrankMN/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/FrankMN/subscriptions", "type": "User", "url": "https://api.github.com/users/FrankMN" }
[ { "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-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-08-20T17:09:15Z
2016-08-24T23:28:45Z
2016-08-24T23:28:45Z
NONE
null
When I call to_csv of dataframe object, I am not required to explicitly set path parameter. The default one is None and will return a string. I thought the same thing for series object. This time the path parameter becomes explicitly required. I wonder if it is better to keep consistency between them.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14054/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14054/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14055
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14055/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14055/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14055/events
https://github.com/pandas-dev/pandas/pull/14055
172,283,084
MDExOlB1bGxSZXF1ZXN0ODIwODUzODM=
14,055
BUG: Don't error when usecols is a numpy array
{ "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" }
[]
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-08-20T18:06:24Z
2016-08-21T14:18:05Z
2016-08-21T14:17:47Z
MEMBER
null
Converts `usecols` to a `set` just like we do on the C engine side. Closes #12546.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14055/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14055/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14055.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14055", "merged_at": "2016-08-21T14:17:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14055.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14055" }
https://api.github.com/repos/pandas-dev/pandas/issues/14056
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14056/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14056/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14056/events
https://github.com/pandas-dev/pandas/pull/14056
172,301,796
MDExOlB1bGxSZXF1ZXN0ODIwOTU0NjM=
14,056
BUG, DOC: Fix inconsistencies with scalar na_values in read_csv
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "3465A4", "default": false, "description": null, "id": 134699, ...
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-08-21T02:56:25Z
2016-08-21T19:34:47Z
2016-08-21T19:34:41Z
MEMBER
null
1) Update documentation to state that scalars are accepted for `na_values` 2) Accept scalars for the values when a dictionary is passed in for `na_values` Closes #12224.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14056/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14056/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14056.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14056", "merged_at": "2016-08-21T19:34:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14056.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14056" }
https://api.github.com/repos/pandas-dev/pandas/issues/14057
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14057/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14057/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14057/events
https://github.com/pandas-dev/pandas/issues/14057
172,321,589
MDU6SXNzdWUxNzIzMjE1ODk=
14,057
TST/CLN: some RunTimeWarnings
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "207de5", "d...
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" }
8
2016-08-21T13:40:55Z
2021-05-01T23:20:10Z
2021-05-01T23:20:10Z
CONTRIBUTOR
null
after #13145 some RunTimeWarnings remain in the codebase. We should look at these and silence (using `np.errstate`), or fix if we are testing something odd. (running the full test suite will show these; I have extracted them, some are showing a level too low in the stack). - [ ] `pandas/pandas/tseries/index.py:526: RuntimeWarning: overflow encountered in long_scalars return lambda x: Timestamp(x, freq=self.offset, tz=self.tz)` - [ ] `pandas/pandas/tseries/tests/test_tslib.py:453: RuntimeWarning: overflow encountered in long_scalar self.assertIs(ts.tz_localize(tz, errors='coerce'),` - [ ] `pandas/pandas/core/internals.py:2341: RuntimeWarning: overflow encountered in long_scalar f = lambda x: lib.Timestamp(x, tz=self.values.tz)` - [ ] `pandas/pandas/core/internals.py:4753: ComplexWarning: Casting complex values to real discards the imaginary part nn_at = nn.astype(v.dtype)` - [ ] `pandas/pandas/tests/test_algos.py:735: RuntimeWarning: overflow encountered in long_scalars np.array([pd.Timestamp(d, tz='US/Eastern') for d in dt]),` - [ ] `pandas/pandas/core/ops.py:650: RuntimeWarning: invalid value encountered in double_scalars lambda x: op(x, rvalues))`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14057/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14057/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14058
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14058/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14058/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14058/events
https://github.com/pandas-dev/pandas/issues/14058
172,322,828
MDU6SXNzdWUxNzIzMjI4Mjg=
14,058
Categorical.from_codes should validate ordered argument
{ "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": "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": "e11d...
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-08-21T14:11:36Z
2016-08-21T19:53:49Z
2016-08-21T19:53:49Z
CONTRIBUTOR
null
I ran into this when I accidentally passed my codes to the `ordered` argument #### Code Sample, a copy-pastable example if possible ``` python In [2]: pd.Categorical.from_codes([0, 0, 1], categories=['a', 'b', 'c'], ordered=np.array([0, 1, 2])) Out[2]: --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/IPython/core/formatters.py in __call__(self, obj) 668 type_pprinters=self.type_printers, 669 deferred_pprinters=self.deferred_printers) --> 670 printer.pretty(obj) 671 printer.flush() 672 return stream.getvalue() /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/IPython/lib/pretty.py in pretty(self, obj) 381 if callable(meth): 382 return meth(obj, self, cycle) --> 383 return _default_pprint(obj, self, cycle) 384 finally: 385 self.end_group() /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/IPython/lib/pretty.py in _default_pprint(obj, p, cycle) 501 if _safe_getattr(klass, '__repr__', None) not in _baseclass_reprs: 502 # A user-provided repr. Find newlines and replace them with p.break_() --> 503 _repr_pprint(obj, p, cycle) 504 return 505 p.begin_group(1, '<') /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/IPython/lib/pretty.py in _repr_pprint(obj, p, cycle) 692 """A pprint that just redirects to the normal repr function.""" 693 # Find newlines and replace them with p.break_() --> 694 output = repr(obj) 695 for idx,output_line in enumerate(output.splitlines()): 696 if idx: /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/pandas/core/base.py in __repr__(self) 70 Yields Bytestring in Py2, Unicode String in py3. 71 """ ---> 72 return str(self) 73 74 /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/pandas/core/base.py in __str__(self) 49 50 if compat.PY3: ---> 51 return self.__unicode__() 52 return self.__bytes__() 53 /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/pandas/core/categorical.py in __unicode__(self) 1571 result = self._tidy_repr(_maxlen) 1572 elif len(self._codes) > 0: -> 1573 result = self._get_repr(length=len(self) > _maxlen) 1574 else: 1575 result = ('[], %s' % /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/pandas/core/categorical.py in _get_repr(self, length, na_rep, footer) 1562 formatter = fmt.CategoricalFormatter(self, length=length, 1563 na_rep=na_rep, footer=footer) -> 1564 result = formatter.to_string() 1565 return compat.text_type(result) 1566 /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/pandas/formats/format.py in to_string(self) 134 result = [u('[') + result + u(']')] 135 if self.footer: --> 136 footer = self._get_footer() 137 if footer: 138 result.append(footer) /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/pandas/formats/format.py in _get_footer(self) 105 footer += "Length: %d" % len(self.categorical) 106 --> 107 level_info = self.categorical._repr_categories_info() 108 109 # Levels are added in a newline /Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/pandas/core/categorical.py in _repr_categories_info(self) 1540 start = True 1541 cur_col_len = len(levheader) # header -> 1542 sep_len, sep = (3, " < ") if self.ordered else (2, ", ") 1543 linesep = sep.rstrip() + "\n" # remove whitespace 1544 for val in category_strs: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() ``` If you look through the traceback, the error happens in the `repr`, not at construction time. The regular `Categorical` constructor does catch this (error message could be improved though). #### Expected Output `TypeError("`ordered`must be a boolean, got {!r} instead")` #### output of `pd.show_versions()` 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/14058/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14058/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14059
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14059/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14059/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14059/events
https://github.com/pandas-dev/pandas/pull/14059
172,331,653
MDExOlB1bGxSZXF1ZXN0ODIxMTE1NTI=
14,059
BUG: Validate the ordered parameter for Categorical
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "e11d...
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-08-21T17:39:12Z
2016-08-21T19:59:15Z
2016-08-21T19:53:49Z
MEMBER
null
Title is self-explanatory. Closes #14058.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14059/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14059/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14059.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14059", "merged_at": "2016-08-21T19:53:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14059.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14059" }
https://api.github.com/repos/pandas-dev/pandas/issues/14060
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14060/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14060/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14060/events
https://github.com/pandas-dev/pandas/pull/14060
172,340,465
MDExOlB1bGxSZXF1ZXN0ODIxMTY2MTk=
14,060
Fix/read csv utf aliases
{ "avatar_url": "https://avatars.githubusercontent.com/u/10804060?v=4", "events_url": "https://api.github.com/users/nateGeorge/events{/privacy}", "followers_url": "https://api.github.com/users/nateGeorge/followers", "following_url": "https://api.github.com/users/nateGeorge/following{/other_user}", "gists_url": "https://api.github.com/users/nateGeorge/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nateGeorge", "id": 10804060, "login": "nateGeorge", "node_id": "MDQ6VXNlcjEwODA0MDYw", "organizations_url": "https://api.github.com/users/nateGeorge/orgs", "received_events_url": "https://api.github.com/users/nateGeorge/received_events", "repos_url": "https://api.github.com/users/nateGeorge/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nateGeorge/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nateGeorge/subscriptions", "type": "User", "url": "https://api.github.com/users/nateGeorge" }
[ { "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", "i...
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-08-21T20:45:32Z
2016-08-22T20:51:44Z
2016-08-22T20:47:18Z
CONTRIBUTOR
null
- [x] closes #13549 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry -read_csv with engine=c throws error when encoding=UTF_16 (anything other than utf-16) -improved nosetests and moved to in pandas/io/tests/common.py -passes `pep8radius upstream/master --diff` and `git diff upstream/master | flake8 --diff` -put what's new entry in 0.19.0 in accordance with milestone posted on issue
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14060/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14060/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14060.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14060", "merged_at": "2016-08-22T20:47:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14060.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14060" }
https://api.github.com/repos/pandas-dev/pandas/issues/14061
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14061/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14061/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14061/events
https://github.com/pandas-dev/pandas/pull/14061
172,352,006
MDExOlB1bGxSZXF1ZXN0ODIxMjI5ODU=
14,061
ENH: add parameter to to_html for HTML border
{ "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": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "006b7...
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-08-22T00:53:20Z
2017-04-05T02:08:04Z
2016-08-31T08:07:31Z
CONTRIBUTOR
null
Closes https://github.com/pydata/pandas/issues/11563 Previously this was hardcoded to `<table border="1" ...>`. Now we allow an option to `to_html`. The only controversial bit here may be the option. I really don't like having options control output, but given that this is essentially a repr I think it's OK. It's also the only way to expose it to the user since `_repr_html_` can't take any arguments. I also selfishly need this [for my own library](https://github.com/tomaugspurger/stitch), where the user wouldn't be able to pass an option 😄 Interestingly, the `border="0"` is seemingly redundant in the notebook: ![screen shot 2016-08-21 at 7 51 02 pm](https://cloud.githubusercontent.com/assets/1312546/17840966/c4942c98-67d8-11e6-8359-90f46dbb8cb7.png) Looking at the CSS, I see jupyter applying a border-width of 0.909091px in their style, though I can't remember if I've adjusted the default CSS on this computer; will check later.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14061/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14061/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14061.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14061", "merged_at": "2016-08-31T08:07:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14061.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14061" }
https://api.github.com/repos/pandas-dev/pandas/issues/14062
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14062/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14062/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14062/events
https://github.com/pandas-dev/pandas/pull/14062
172,356,026
MDExOlB1bGxSZXF1ZXN0ODIxMjU0MTI=
14,062
WIP: add sort_levels to MultiIndex.from_product
{ "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": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
null
2
2016-08-22T01:55:01Z
2016-11-16T21:29:30Z
2016-11-16T21:29:30Z
MEMBER
null
Currently, `from_product` always sorts levels in the resulting MultiIndex. This means that the result does not necessarily have lexsorted labels/codes. This PR adds an option to not sort levels when calling `from_product`. Using this option yields a few benefits: 1. It's simpler -- resulting levels on the MultiIndex are exactly those you passed in. 2. It's marginally faster -- you don't need to sort the levels. 3. The resulting MultiIndex is always lex-sorted. This is handy if you want to be able to index it effeciently. The downside is that the result can be a little less intuitive, because levels and labels do not have the same sort order (#14015). I'm suggesting this option because it would be useful for xarray (to fix https://github.com/pydata/xarray/issues/980) -- otherwise we would simply put it in our own utility function. I'm not certain that this is the best argument name, or that I've described it in a way that is clear if you don't understand MultiIndex internals. - [ ] tests added / passed - [ ] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14062/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14062/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14062.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14062", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14062.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14062" }
https://api.github.com/repos/pandas-dev/pandas/issues/14063
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14063/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14063/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14063/events
https://github.com/pandas-dev/pandas/pull/14063
172,365,227
MDExOlB1bGxSZXF1ZXN0ODIxMzE0MTI=
14,063
BUG: Align to_csv signatures with DataFrame and Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
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-08-22T03:56:09Z
2016-08-24T23:28:49Z
2016-08-24T23:28:45Z
MEMBER
null
Default `path=None` in `Series.to_csv()` for consistency with `DataFrame.to_csv()`. Closes #14054.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14063/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14063/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14063.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14063", "merged_at": "2016-08-24T23:28:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14063.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14063" }
https://api.github.com/repos/pandas-dev/pandas/issues/14064
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14064/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14064/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14064/events
https://github.com/pandas-dev/pandas/pull/14064
172,469,840
MDExOlB1bGxSZXF1ZXN0ODIyMDI5NDE=
14,064
BUG: fix read_gbq lost precision for longs above 2^53 and floats above 10k
{ "avatar_url": "https://avatars.githubusercontent.com/u/12720209?v=4", "events_url": "https://api.github.com/users/tworec/events{/privacy}", "followers_url": "https://api.github.com/users/tworec/followers", "following_url": "https://api.github.com/users/tworec/following{/other_user}", "gists_url": "https://api.github.com/users/tworec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tworec", "id": 12720209, "login": "tworec", "node_id": "MDQ6VXNlcjEyNzIwMjA5", "organizations_url": "https://api.github.com/users/tworec/orgs", "received_events_url": "https://api.github.com/users/tworec/received_events", "repos_url": "https://api.github.com/users/tworec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tworec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tworec/subscriptions", "type": "User", "url": "https://api.github.com/users/tworec" }
[ { "color": "0052cc", "default": false, "description": "pandas-gbq compatability", "id": 57351315, "name": "IO Google", "node_id": "MDU6TGFiZWw1NzM1MTMxNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
30
2016-08-22T14:39:57Z
2017-02-09T17:12:17Z
2017-02-09T17:11:31Z
NONE
null
fixes: - lost precision for longs above 2^53 - and floats above 10^4 Also contains `test_gbq.py` clean up - [x] closes #14020, #14305 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] updated docs - [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/14064/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14064/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14064.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14064", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14064.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14064" }
https://api.github.com/repos/pandas-dev/pandas/issues/14065
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14065/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14065/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14065/events
https://github.com/pandas-dev/pandas/issues/14065
172,533,704
MDU6SXNzdWUxNzI1MzM3MDQ=
14,065
Unicode char as delimiter won't use C engine
{ "avatar_url": "https://avatars.githubusercontent.com/u/4616123?v=4", "events_url": "https://api.github.com/users/schodge/events{/privacy}", "followers_url": "https://api.github.com/users/schodge/followers", "following_url": "https://api.github.com/users/schodge/following{/other_user}", "gists_url": "https://api.github.com/users/schodge/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/schodge", "id": 4616123, "login": "schodge", "node_id": "MDQ6VXNlcjQ2MTYxMjM=", "organizations_url": "https://api.github.com/users/schodge/orgs", "received_events_url": "https://api.github.com/users/schodge/received_events", "repos_url": "https://api.github.com/users/schodge/repos", "site_admin": false, "starred_url": "https://api.github.com/users/schodge/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/schodge/subscriptions", "type": "User", "url": "https://api.github.com/users/schodge" }
[ { "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": "5319e7", "default": false, "description...
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-08-22T19:27:03Z
2016-08-31T16:10:31Z
2016-08-31T16:10:31Z
NONE
null
I have the following code: `dfEL = pd.read_csv(IN_PATH, delimiter='\\u00A7', encoding='utf-8')` which I've also tried with other ways of writing the delimiter, e.g.: `dfEL = pd.read_csv(IN_PATH, delimiter='§', encoding='utf-8')` These other methods don't work, and generate a `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 10: unexpected end of data`. The first method, though, won't use the C regex engine: ``` dfEL = pd.read_csv(IN_PATH, delimiter='\\u00A7', encoding='utf-8') C:\Anaconda3\lib\site-packages\ipykernel\__main__.py:1: ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support regex separators (separators > 1 char and different from '\s+' are interpreted as regex); you can avoid this warning by specifying engine='python'. if __name__ == '__main__': ``` Shouldn't this only be considered one character and still use (the I presume faster) C engine? Sample data - there's a lot of messiness in the rightmost column, which is why an unusual separator was used: ``` foo§1457431587429§$request_details.bar foo§1457431587429§$request_details.foo.bar foo§1457431587429§$request_details.foo.foo.bar foo§1457431587429§null foo§1457431587429§null foo§1457431587429§null foo§1457431587429§$request_type foo§1457431587429§$additional_details foo§1457431587429§$Generic_Params.success_msg_folder+$request_type.action+'_'+$request_type.object §1459972605829§$Path §1459972605829§$Name §1441995198746§$original.original §1441995198746§null ``` ``` 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 61 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 8.1.1 setuptools: 20.3 Cython: 0.23.4 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.1 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: 0.9.2 apiclient: 1.5.0 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/14065/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14065/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14066
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14066/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14066/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14066/events
https://github.com/pandas-dev/pandas/issues/14066
172,562,229
MDU6SXNzdWUxNzI1NjIyMjk=
14,066
read_csv: European numbers do not work with dates
{ "avatar_url": "https://avatars.githubusercontent.com/u/8660305?v=4", "events_url": "https://api.github.com/users/dacoex/events{/privacy}", "followers_url": "https://api.github.com/users/dacoex/followers", "following_url": "https://api.github.com/users/dacoex/following{/other_user}", "gists_url": "https://api.github.com/users/dacoex/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dacoex", "id": 8660305, "login": "dacoex", "node_id": "MDQ6VXNlcjg2NjAzMDU=", "organizations_url": "https://api.github.com/users/dacoex/orgs", "received_events_url": "https://api.github.com/users/dacoex/received_events", "repos_url": "https://api.github.com/users/dacoex/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dacoex/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dacoex/subscriptions", "type": "User", "url": "https://api.github.com/users/dacoex" }
[ { "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", "...
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" }
10
2016-08-22T21:42:16Z
2016-09-13T19:45:06Z
2016-08-27T13:31:30Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible Using the following reader leads to omission of the dates resulting in no index: ``` file_, index_col=0, header=4, sep=';', quoting=1, parse_dates=True, encoding='latin-1', dayfirst=True, # decimal=',', thousands='.' ``` #### Expected Output dataframe with pyhon numeric data and datecol as index #### output of `pd.show_versions()` ``` pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-31-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: de_DE.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: 0.24 numpy: 1.11.1 scipy: 0.17.1 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.1.0 tables: 3.2.2 numexpr: 2.6.0 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.40.0 pandas_datareader: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14066/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14066/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14067
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14067/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14067/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14067/events
https://github.com/pandas-dev/pandas/issues/14067
172,571,818
MDU6SXNzdWUxNzI1NzE4MTg=
14,067
to_sql: Does not produce a hierarchical index when using SQLAlchemy as the dbAPI
{ "avatar_url": "https://avatars.githubusercontent.com/u/7818077?v=4", "events_url": "https://api.github.com/users/ifiddes/events{/privacy}", "followers_url": "https://api.github.com/users/ifiddes/followers", "following_url": "https://api.github.com/users/ifiddes/following{/other_user}", "gists_url": "https://api.github.com/users/ifiddes/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ifiddes", "id": 7818077, "login": "ifiddes", "node_id": "MDQ6VXNlcjc4MTgwNzc=", "organizations_url": "https://api.github.com/users/ifiddes/orgs", "received_events_url": "https://api.github.com/users/ifiddes/received_events", "repos_url": "https://api.github.com/users/ifiddes/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ifiddes/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ifiddes/subscriptions", "type": "User", "url": "https://api.github.com/users/ifiddes" }
[ { "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": "to_sql, read_sql, read_s...
open
false
null
[]
null
0
2016-08-22T22:38:26Z
2020-05-16T03:46:56Z
null
NONE
null
Based on this post here: http://stackoverflow.com/questions/39089513/pandas-sqlalchemy-engine-does-not-produce-hierarchical-index-but-legacy-mode-do #### data ('test.csv'): ``` AlignmentId,Classifier,Value aln1,classifier1,True aln1,classifier2,False aln2,classifier1,True ``` #### Sample code: ``` import pandas as pd import sqlalchemy import sqlite3 sqla_con = sqlalchemy.create_engine('sqlite:///test.db') legacy_con = sqlite3.connect('test.db') df = pd.read_csv('test.csv', index_col=[0, 1]) df.to_sql('legacy', legacy_con) df.to_sql('sqlalchemy', sqla_con) ``` #### Output (inspecting the resulting sqlite database): ``` $sqlite3 SQLite version 3.13.0 2016-05-18 10:57:30 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite> .open test.db sqlite> .schema CREATE TABLE "legacy" ( "AlignmentId" TEXT, "Classifier" TEXT, "Value" INTEGER ); CREATE INDEX "ix_legacy_AlignmentId_Classifier"ON "legacy" ("AlignmentId","Classifier"); CREATE TABLE sqlalchemy ( "AlignmentId" TEXT, "Classifier" TEXT, "Value" BOOLEAN, CHECK ("Value" IN (0, 1)) ); CREATE INDEX "ix_sqlalchemy_Classifier" ON sqlalchemy ("Classifier"); CREATE INDEX "ix_sqlalchemy_AlignmentId" ON sqlalchemy ("AlignmentId"); ``` #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 64 OS: Linux OS-release: 2.6.32-504.3.3.el6.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: 0.24 numpy: 1.11.1 scipy: 0.17.1 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: 1.0.0 tables: 3.2.2 numexpr: 2.6.0 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.40.0 pandas_datareader: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14067/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14067/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14068
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14068/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14068/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14068/events
https://github.com/pandas-dev/pandas/issues/14068
172,576,542
MDU6SXNzdWUxNzI1NzY1NDI=
14,068
TimedeltaIndex + Timestamp -> no overflow error
{ "avatar_url": "https://avatars.githubusercontent.com/u/10194086?v=4", "events_url": "https://api.github.com/users/mathause/events{/privacy}", "followers_url": "https://api.github.com/users/mathause/followers", "following_url": "https://api.github.com/users/mathause/following{/other_user}", "gists_url": "https://api.github.com/users/mathause/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mathause", "id": 10194086, "login": "mathause", "node_id": "MDQ6VXNlcjEwMTk0MDg2", "organizations_url": "https://api.github.com/users/mathause/orgs", "received_events_url": "https://api.github.com/users/mathause/received_events", "repos_url": "https://api.github.com/users/mathause/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mathause/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mathause/subscriptions", "type": "User", "url": "https://api.github.com/users/mathause" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timedelta data type", ...
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-08-22T23:11:42Z
2016-09-27T10:43:45Z
2016-09-27T10:43:45Z
CONTRIBUTOR
null
When adding a TimedeltaIndex and a Timestamp this overflows instead of raising (pydata/xarray#975). ``` import pandas as pd # overflow error (correct) pd.to_timedelta(106580, 'D') + pd.Timestamp('2000') # no overflow error (?) pd.to_timedelta([106580], 'D') + pd.Timestamp('2000') ``` #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-24-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 25.1.6 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: 0.7.2-73-g584e703 IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.1.0 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: 2.8 boto: None pandas_datareader: None edit: 'D' as unit
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14068/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14068/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14069
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14069/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14069/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14069/events
https://github.com/pandas-dev/pandas/pull/14069
172,597,107
MDExOlB1bGxSZXF1ZXN0ODIyOTMyNjk=
14,069
TST: Add tests for internal EOF in read_csv
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "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-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-08-23T02:13:48Z
2016-08-24T23:27:49Z
2016-08-24T23:27:45Z
MEMBER
null
Title is self-explanatory. Closes #5500.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14069/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14069/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14069.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14069", "merged_at": "2016-08-24T23:27:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14069.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14069" }
https://api.github.com/repos/pandas-dev/pandas/issues/14070
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14070/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14070/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14070/events
https://github.com/pandas-dev/pandas/issues/14070
172,611,747
MDU6SXNzdWUxNzI2MTE3NDc=
14,070
DatetimeIndex.to_period does not support multiple of frequencies
{ "avatar_url": "https://avatars.githubusercontent.com/u/1304950?v=4", "events_url": "https://api.github.com/users/sdementen/events{/privacy}", "followers_url": "https://api.github.com/users/sdementen/followers", "following_url": "https://api.github.com/users/sdementen/following{/other_user}", "gists_url": "https://api.github.com/users/sdementen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sdementen", "id": 1304950, "login": "sdementen", "node_id": "MDQ6VXNlcjEzMDQ5NTA=", "organizations_url": "https://api.github.com/users/sdementen/orgs", "received_events_url": "https://api.github.com/users/sdementen/received_events", "repos_url": "https://api.github.com/users/sdementen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sdementen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sdementen/subscriptions", "type": "User", "url": "https://api.github.com/users/sdementen" }
[ { "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, ...
open
false
null
[]
null
4
2016-08-23T04:50:53Z
2021-05-01T23:21:41Z
null
CONTRIBUTOR
null
The code below is the simplest way I found to "snap" a DateTimeIndex to some "frequency" (is there any better way?). I would have expected the to_period method to work as flexibly as the resample method that accepts any rule (like 15T, 2H, ...) but the to_period method does not appear to handle properly multiples of frequencies (and neither raises an exception). #### Code Sample, a copy-pastable example if possible ``` import pandas import datetime dt=pandas.date_range('2016-01-01 00:00','2016-01-01 05:00',freq='15T',closed="left") print(dt.to_period('H').start_time) # snap to the hour : OK print(dt.to_period('2H').start_time) # snap to even hours : not OK ``` #### Actual Output ``` DatetimeIndex(['2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 01:00:00', '2016-01-01 01:00:00', '2016-01-01 01:00:00', '2016-01-01 01:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 03:00:00', '2016-01-01 03:00:00', '2016-01-01 03:00:00', '2016-01-01 03:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00'], dtype='datetime64[ns]', freq=None) DatetimeIndex(['2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 01:00:00', '2016-01-01 01:00:00', '2016-01-01 01:00:00', '2016-01-01 01:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 03:00:00', '2016-01-01 03:00:00', '2016-01-01 03:00:00', '2016-01-01 03:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00'], dtype='datetime64[ns]', freq=None) ``` #### Expected Output ``` DatetimeIndex(['2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 01:00:00', '2016-01-01 01:00:00', '2016-01-01 01:00:00', '2016-01-01 01:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 03:00:00', '2016-01-01 03:00:00', '2016-01-01 03:00:00', '2016-01-01 03:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00'], dtype='datetime64[ns]', freq=None) DatetimeIndex(['2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 00:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 02:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00', '2016-01-01 04:00:00'], dtype='datetime64[ns]', freq=None) ``` #### output of `pd.show_versions()` INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 23.0.0 Cython: None numpy: 1.11.0 scipy: 0.17.1 statsmodels: None xarray: None IPython: 4.2.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: None numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: None xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: None html5lib: None httplib2: 0.9.2 apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext) jinja2: 2.8 boto: None pandas_datareader: None
{ "+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/14070/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14070/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14071
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14071/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14071/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14071/events
https://github.com/pandas-dev/pandas/issues/14071
172,681,976
MDU6SXNzdWUxNzI2ODE5NzY=
14,071
DatetimeIndex periods: Change in behavior between 0.17.1 and 0.18.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/10504477?v=4", "events_url": "https://api.github.com/users/JohnNapier/events{/privacy}", "followers_url": "https://api.github.com/users/JohnNapier/followers", "following_url": "https://api.github.com/users/JohnNapier/following{/other_user}", "gists_url": "https://api.github.com/users/JohnNapier/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JohnNapier", "id": 10504477, "login": "JohnNapier", "node_id": "MDQ6VXNlcjEwNTA0NDc3", "organizations_url": "https://api.github.com/users/JohnNapier/orgs", "received_events_url": "https://api.github.com/users/JohnNapier/received_events", "repos_url": "https://api.github.com/users/JohnNapier/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JohnNapier/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JohnNapier/subscriptions", "type": "User", "url": "https://api.github.com/users/JohnNapier" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840...
closed
false
null
[]
{ "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-08-23T12:05:58Z
2016-08-24T23:26:32Z
2016-08-24T23:26:10Z
NONE
null
This is not necessarily a bug, but a change in behavior that could not find reported elsewhere. ``` python import pandas as pd,datetime as dt pd.DatetimeIndex(freq=pd.tseries.offsets.DateOffset(months=6),end=dt.date(2016,1,1), closed='right',periods=3) ``` In version 0.17.1 you get ``` python DatetimeIndex(['2015-07-01', '2016-01-01'], dtype='datetime64[ns]', freq='<DateOffset: kwds={'months': 6}>') ``` however, in version 0.18.1 you get ``` python DatetimeIndex(['2015-01-01', '2015-07-01', '2016-01-01'], dtype='datetime64[ns]', freq='<DateOffset: kwds={'months': 6}>') ``` The new behavior seems more intuitive. Is this change documented anywhere? Thanks!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14071/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14071/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14072
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14072/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14072/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14072/events
https://github.com/pandas-dev/pandas/issues/14072
172,724,859
MDU6SXNzdWUxNzI3MjQ4NTk=
14,072
pivot_table margins bottom-left total does not correspond to other content when dropna=False
{ "avatar_url": "https://avatars.githubusercontent.com/u/966185?v=4", "events_url": "https://api.github.com/users/Tuzoff/events{/privacy}", "followers_url": "https://api.github.com/users/Tuzoff/followers", "following_url": "https://api.github.com/users/Tuzoff/following{/other_user}", "gists_url": "https://api.github.com/users/Tuzoff/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tuzoff", "id": 966185, "login": "Tuzoff", "node_id": "MDQ6VXNlcjk2NjE4NQ==", "organizations_url": "https://api.github.com/users/Tuzoff/orgs", "received_events_url": "https://api.github.com/users/Tuzoff/received_events", "repos_url": "https://api.github.com/users/Tuzoff/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tuzoff/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tuzoff/subscriptions", "type": "User", "url": "https://api.github.com/users/Tuzoff" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2016-08-23T15:07:00Z
2016-09-13T22:10:38Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible In: M = pd.DataFrame([ [1, 'a', 'A'], [1, 'b', 'B'], [1, 'c', None]], columns=['x', 'y', 'z']) P = M.pivot_table(values='x', index='y', columns='z', aggfunc='sum', fill_value=0, margins=True, dropna=False) P Out: | z | A | B | All | | --- | --- | --- | --- | | y | | | | | a | 1.0 | 0.0 | 1.0 | | b | 0.0 | 1.0 | 1.0 | | All | 1.0 | 1.0 | 3.0 | #### Expected Output Either | z | A | B | All | | --- | --- | --- | --- | | y | | | | | a | 1.0 | 0.0 | 1.0 | | b | 0.0 | 1.0 | 1.0 | | All | 1.0 | 1.0 | 2.0 | or | z | A | B | None | All | | --- | --- | --- | --- | --- | | y | | | | | | a | 1.0 | 0.0 | 0.0 | 1.0 | | b | 0.0 | 1.0 | 0.0 | 1.0 | | c | 0.0 | 0.0 | 1.0 | 1.0 | | All | 1.0 | 1.0 | 1.0 | 3.0 | depending on dropna's meaning for this case #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 3.4.3.final.0 python-bits: 64 OS: Linux OS-release: 4.2.0-36-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.1 pip: 8.1.2 setuptools: 22.0.5 Cython: 0.20.1post0 numpy: 1.11.0 scipy: 0.17.1 statsmodels: None xarray: None IPython: 4.2.0 sphinx: None patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: None numexpr: 2.6.0 matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.5.1 html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 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/14072/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14072/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14073
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14073/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14073/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14073/events
https://github.com/pandas-dev/pandas/pull/14073
172,773,910
MDExOlB1bGxSZXF1ZXN0ODI0MTc3OTU=
14,073
DOC: split docstring into multiple lines in excel.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/8815664?v=4", "events_url": "https://api.github.com/users/OXPHOS/events{/privacy}", "followers_url": "https://api.github.com/users/OXPHOS/followers", "following_url": "https://api.github.com/users/OXPHOS/following{/other_user}", "gists_url": "https://api.github.com/users/OXPHOS/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/OXPHOS", "id": 8815664, "login": "OXPHOS", "node_id": "MDQ6VXNlcjg4MTU2NjQ=", "organizations_url": "https://api.github.com/users/OXPHOS/orgs", "received_events_url": "https://api.github.com/users/OXPHOS/received_events", "repos_url": "https://api.github.com/users/OXPHOS/repos", "site_admin": false, "starred_url": "https://api.github.com/users/OXPHOS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OXPHOS/subscriptions", "type": "User", "url": "https://api.github.com/users/OXPHOS" }
[ { "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" }
10
2016-08-23T18:36:41Z
2016-09-15T14:59:32Z
2016-09-15T14:59:32Z
CONTRIBUTOR
null
- [x] closes #13967 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry A follow-up on #14030. Not sure whether this is the good way to do it - this seems too verbose. I will add it to `parsers.py` or move it to `common.py` once it's done. I also thought about moving the function to `Appender` to fix the length problem for good if necessary.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14073/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14073/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14073.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14073", "merged_at": "2016-09-15T14:59:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14073.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14073" }
https://api.github.com/repos/pandas-dev/pandas/issues/14074
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14074/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14074/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14074/events
https://github.com/pandas-dev/pandas/issues/14074
172,826,679
MDU6SXNzdWUxNzI4MjY2Nzk=
14,074
Pandas does not respect shared axes in matplotlib
{ "avatar_url": "https://avatars.githubusercontent.com/u/616139?v=4", "events_url": "https://api.github.com/users/danfrankj/events{/privacy}", "followers_url": "https://api.github.com/users/danfrankj/followers", "following_url": "https://api.github.com/users/danfrankj/following{/other_user}", "gists_url": "https://api.github.com/users/danfrankj/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/danfrankj", "id": 616139, "login": "danfrankj", "node_id": "MDQ6VXNlcjYxNjEzOQ==", "organizations_url": "https://api.github.com/users/danfrankj/orgs", "received_events_url": "https://api.github.com/users/danfrankj/received_events", "repos_url": "https://api.github.com/users/danfrankj/repos", "site_admin": false, "starred_url": "https://api.github.com/users/danfrankj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danfrankj/subscriptions", "type": "User", "url": "https://api.github.com/users/danfrankj" }
[ { "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, ...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2016-08-23T22:55:13Z
2021-05-01T23:24:00Z
null
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible x axis truncated by second call ``` ser1 = pd.Series({0:1, 1:2, 2:3}) ser2 = pd.Series({0:.5, 1:.1}) _, axes = plt.subplots(1, 2, sharex=True, sharey=True) ser1.plot(ax=axes[0]) ser2.plot(ax=axes[1]) ``` ![image](https://cloud.githubusercontent.com/assets/616139/17912487/c7c800da-6948-11e6-9a40-2a18b737fb98.png) #### Expected Output Using only matplotlib: ``` ser1 = pd.Series({0:1, 1:2, 2:3}) ser2 = pd.Series({0:.5, 1:.1}) _, axes = plt.subplots(1, 2, sharex=True, sharey=True) axes[0].plot(ser1.index, ser1.values) axes[1].plot(ser2.index, ser2.values) ``` ![image](https://cloud.githubusercontent.com/assets/616139/17912473/aae07ad8-6948-11e6-871e-fbedbec94b1f.png) #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.10.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.1 nose: 1.3.7 pip: 8.1.2 setuptools: 25.1.0 Cython: 0.24 numpy: 1.11.1 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.2.1 sphinx: 1.3.5 patsy: 0.4.1 dateutil: 2.2 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: 2.4.6 matplotlib: 1.5.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.14 pymysql: None psycopg2: None jinja2: 2.8 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/14074/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14074/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14075
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14075/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14075/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14075/events
https://github.com/pandas-dev/pandas/pull/14075
172,851,109
MDExOlB1bGxSZXF1ZXN0ODI0NzI0Mjg=
14,075
add utility methods get_groups() and iter_groups() to class _GroupBy
{ "avatar_url": "https://avatars.githubusercontent.com/u/3013304?v=4", "events_url": "https://api.github.com/users/smoofra/events{/privacy}", "followers_url": "https://api.github.com/users/smoofra/followers", "following_url": "https://api.github.com/users/smoofra/following{/other_user}", "gists_url": "https://api.github.com/users/smoofra/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/smoofra", "id": 3013304, "login": "smoofra", "node_id": "MDQ6VXNlcjMwMTMzMDQ=", "organizations_url": "https://api.github.com/users/smoofra/orgs", "received_events_url": "https://api.github.com/users/smoofra/received_events", "repos_url": "https://api.github.com/users/smoofra/repos", "site_admin": false, "starred_url": "https://api.github.com/users/smoofra/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smoofra/subscriptions", "type": "User", "url": "https://api.github.com/users/smoofra" }
[ { "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-08-24T02:32:16Z
2016-08-25T01:45:10Z
2016-08-25T00:44:25Z
NONE
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry added utility methods get_groups() and iter_groups() to groupby objects
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14075/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14075/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14075.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14075", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14075.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14075" }
https://api.github.com/repos/pandas-dev/pandas/issues/14076
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14076/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14076/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14076/events
https://github.com/pandas-dev/pandas/issues/14076
172,859,725
MDU6SXNzdWUxNzI4NTk3MjU=
14,076
pandas merge appear non-existent value the column b should not have value '1'
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
open
false
null
[]
null
1
2016-08-24T04:01:57Z
2016-11-30T20:20:13Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible t = [1, 2, 3, 4, 5] tt = [2, 3, 4, 5, 7] d1 = DataFrame(t, columns=['a'], index=t) d2 = DataFrame(tt, columns=['b']) r = pd.merge(d1, d2, how='left', left_index=True, right_on='b', copy=False) print(r) pd.show_versions() #### Expected Output /usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/bin/python3.5 /var/root/finalworkspace/python/daas/core/process_data.py a b 4 1 1.0 0 2 2.0 1 3 3.0 2 4 4.0 3 5 5.0 #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 3.5.0.final.0 python-bits: 64 OS: Darwin OS-release: 14.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 25.1.4 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None 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: 0.6.7.None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None Process finished with exit code 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/14076/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14076/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14077
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14077/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14077/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14077/events
https://github.com/pandas-dev/pandas/pull/14077
172,888,121
MDExOlB1bGxSZXF1ZXN0ODI0OTczMjE=
14,077
BUG: Don't parse index column as numeric when parse_dates=True
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "...
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-08-24T07:57:28Z
2016-08-27T13:31:37Z
2016-08-27T13:31:30Z
MEMBER
null
When a thousands parameter is specified, if the index column data contains that thousands value for date purposes (e.g. '.'), do not interpret those characters as the thousands parameter. Closes #14066.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14077/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14077/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14077.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14077", "merged_at": "2016-08-27T13:31:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14077.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14077" }
https://api.github.com/repos/pandas-dev/pandas/issues/14078
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14078/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14078/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14078/events
https://github.com/pandas-dev/pandas/issues/14078
172,945,826
MDU6SXNzdWUxNzI5NDU4MjY=
14,078
groupby aggregate: class as `arg` value
{ "avatar_url": "https://avatars.githubusercontent.com/u/847329?v=4", "events_url": "https://api.github.com/users/timdiels/events{/privacy}", "followers_url": "https://api.github.com/users/timdiels/followers", "following_url": "https://api.github.com/users/timdiels/following{/other_user}", "gists_url": "https://api.github.com/users/timdiels/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/timdiels", "id": 847329, "login": "timdiels", "node_id": "MDQ6VXNlcjg0NzMyOQ==", "organizations_url": "https://api.github.com/users/timdiels/orgs", "received_events_url": "https://api.github.com/users/timdiels/received_events", "repos_url": "https://api.github.com/users/timdiels/repos", "site_admin": false, "starred_url": "https://api.github.com/users/timdiels/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/timdiels/subscriptions", "type": "User", "url": "https://api.github.com/users/timdiels" }
[ { "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": ...
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-08-24T13:03:49Z
2016-08-25T10:14:42Z
2016-08-24T22:42:24Z
NONE
null
Feature request: it would be nice if `aggregate` allowed classes as an argument, using its constructor as the function to aggregate by. In the code sample it recognises `frozenset` as an iterable because it happens to have such an instance method. I'd suggest a check like: ``` python >>> inspect.isclass(frozenset) True >>> inspect.isclass(frozenset()) False ``` (I don't think a sane person would make a class with a `@staticmethod __iter__` returning the functions to aggregate by) #### Code Sample, a copy-pastable example if possible ``` python >>> pd.DataFrame(np.ones((2,2)), columns=[0,1]).groupby(1)[[0]].agg(frozenset) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/limyreth/.local/lib/python3.5/site-packages/pandas/core/groupby.py", line 3597, in aggregate return super(DataFrameGroupBy, self).aggregate(arg, *args, **kwargs) File "/home/limyreth/.local/lib/python3.5/site-packages/pandas/core/groupby.py", line 3114, in aggregate result, how = self._aggregate(arg, _level=_level, *args, **kwargs) File "/home/limyreth/.local/lib/python3.5/site-packages/pandas/core/base.py", line 564, in _aggregate return self._aggregate_multiple_funcs(arg, _level=_level), None File "/home/limyreth/.local/lib/python3.5/site-packages/pandas/core/base.py", line 616, in _aggregate_multiple_funcs return concat(results, keys=keys, axis=1) File "/home/limyreth/.local/lib/python3.5/site-packages/pandas/tools/merge.py", line 845, in concat copy=copy) File "/home/limyreth/.local/lib/python3.5/site-packages/pandas/tools/merge.py", line 878, in __init__ raise ValueError('No objects to concatenate') ValueError: No objects to concatenate ``` It can be worked around by using a lambda: ``` python pd.DataFrame(np.ones((2,2)), columns=[0,1]).groupby(1)[[0]].agg(lambda x: frozenset(x)) ``` #### Expected Output ``` python 0 1 1.0 (1.0) ``` #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.6.4-1-ARCH machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.1 setuptools: 20.6.7 Cython: None numpy: 1.11.1 scipy: 0.18.0 statsmodels: None xarray: None IPython: None sphinx: 1.4.5 patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.0.0 tables: None numexpr: 2.4.6 matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.1.0b2 pymysql: None psycopg2: None jinja2: 2.8 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/14078/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14078/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14079
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14079/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14079/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14079/events
https://github.com/pandas-dev/pandas/issues/14079
172,989,572
MDU6SXNzdWUxNzI5ODk1NzI=
14,079
Improve poor performance of groupby resampling
{ "avatar_url": "https://avatars.githubusercontent.com/u/89573?v=4", "events_url": "https://api.github.com/users/spillz/events{/privacy}", "followers_url": "https://api.github.com/users/spillz/followers", "following_url": "https://api.github.com/users/spillz/following{/other_user}", "gists_url": "https://api.github.com/users/spillz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/spillz", "id": 89573, "login": "spillz", "node_id": "MDQ6VXNlcjg5NTcz", "organizations_url": "https://api.github.com/users/spillz/orgs", "received_events_url": "https://api.github.com/users/spillz/received_events", "repos_url": "https://api.github.com/users/spillz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/spillz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/spillz/subscriptions", "type": "User", "url": "https://api.github.com/users/spillz" }
[ { "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": "a10c02", "default": false, "description": "Memory or execu...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
5
2016-08-24T15:48:46Z
2021-05-25T01:56:58Z
2016-08-24T22:56:36Z
NONE
null
When trying to resample transactions data where there are infrequent transactions for a large number of people, I get horrible performance. Compare the function annualize with the clunkier but faster annualize2 below. Ideally resample should be able to handle multiindex data and resample on 1 of the dimensions without the need to resort to groupby. #### Code Sample, a copy-pastable example if possible ``` import pandas import numpy as np def annualize(df): def resample(df): df = df.set_index('DATE') df = df.resample('A').ffill() df = df.reset_index() return df df = df.groupby('ID', as_index = False).apply(resample) df['YEAR'] = df['DATE'].dt.year df = df.reset_index(drop = True) return df def annualize2(df): #DF must be sorted by ID then DATE df = df.sort_values(['ID','DATE']).reset_index(drop = True) #Extract the year from the date and keep last observation from each year df['YEAR'] = df['DATE'].dt.year df = df.drop_duplicates(subset = ['ID','YEAR'], keep = 'last') #Get the YEAR and ID of the next record down ndf = df[['ID', 'YEAR']].shift(-1) #Want to duplicate records where ID's between record pairs match and spacing is more than year match = (ndf['ID'] == df['ID']) reps = np.array(np.maximum(match*(ndf['YEAR'] - df['YEAR']),1), dtype = int) reps[-1] = 1 # the last value will by -inf #Do the duplication df = df.loc[np.repeat(df.index, reps)] #Now we need to fix the year field cs = np.ones(len(df)) cs[np.cumsum(reps[:-1])] -= reps[:-1] df['YEAR'] = df['YEAR'] + np.cumsum(cs)-1 df = df.reset_index(drop = True) return df if __name__ == '__main__': import StringIO import timeit #Generate some transaction record data data='''ID,DATE,STATUS 1,3/1/2005,A 1,4/30/2005,B 1,6/30/2010,C 1,8/20/2010,D ''' df = pandas.read_csv(StringIO.StringIO(data)) df['DATE'] = pandas.to_datetime(df['DATE']) print(annualize(df)) print(annualize2(df)) #then repeat the rows of the table to get a more realistic sample size for measuring performance df = df.loc[np.tile(df.index.values, 10000)] df['ID'] = np.repeat(np.arange(10000), 4) print('annualize') print(timeit.timeit('annualize(df)', setup = 'from __main__ import annualize, df', number = 1)) print('annualize2') print(timeit.timeit('annualize2(df)', setup = 'from __main__ import annualize2, df', number = 1)) ``` #### Expected Output ``` DATE ID STATUS YEAR 0 2005-12-31 1 B 2005 1 2006-12-31 1 B 2006 2 2007-12-31 1 B 2007 3 2008-12-31 1 B 2008 4 2009-12-31 1 B 2009 5 2010-12-31 1 D 2010 ID DATE STATUS YEAR 0 1 2005-04-30 B 2005.0 1 1 2005-04-30 B 2006.0 2 1 2005-04-30 B 2007.0 3 1 2005-04-30 B 2008.0 4 1 2005-04-30 B 2009.0 5 1 2010-08-20 D 2010.0 annualize 26.4788940619 annualize2 0.0899452309903 ``` #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 20.3 Cython: 0.23.4 numpy: 1.11.0 scipy: 0.17.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.5 patsy: 0.4.0 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.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 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/14079/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14079/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14080
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14080/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14080/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14080/events
https://github.com/pandas-dev/pandas/issues/14080
172,992,293
MDU6SXNzdWUxNzI5OTIyOTM=
14,080
Adding big offset to timedelta generates a python crash
{ "avatar_url": "https://avatars.githubusercontent.com/u/9467904?v=4", "events_url": "https://api.github.com/users/geoffroy-destaintot/events{/privacy}", "followers_url": "https://api.github.com/users/geoffroy-destaintot/followers", "following_url": "https://api.github.com/users/geoffroy-destaintot/following{/other_user}", "gists_url": "https://api.github.com/users/geoffroy-destaintot/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/geoffroy-destaintot", "id": 9467904, "login": "geoffroy-destaintot", "node_id": "MDQ6VXNlcjk0Njc5MDQ=", "organizations_url": "https://api.github.com/users/geoffroy-destaintot/orgs", "received_events_url": "https://api.github.com/users/geoffroy-destaintot/received_events", "repos_url": "https://api.github.com/users/geoffroy-destaintot/repos", "site_admin": false, "starred_url": "https://api.github.com/users/geoffroy-destaintot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/geoffroy-destaintot/subscriptions", "type": "User", "url": "https://api.github.com/users/geoffroy-destaintot" }
[ { "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": "0e8a16", "default": true, "desc...
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" }
10
2016-08-24T15:59:39Z
2018-11-18T21:56:56Z
2018-11-18T21:56:56Z
NONE
null
#### Code Sample, a copy-pastable example if possible ##### In: ``` import pandas as pd from pandas.tseries.frequencies import to_offset d = pd.Timestamp("2000/1/1") d + to_offset("D")*100**25 ``` ##### Out: **=> python crash** Fatal Python error: Cannot recover from stack overflow. Current thread 0x00002b00 (most recent call first): File "C:\Users\geoffroy.destaintot\Miniconda3\envs\pd-0.18\lib\site-packages\pandas\tseries\offsets.py", line 2526 in delta File "C:\Users\geoffroy.destaintot\Miniconda3\envs\pd-0.18\lib\site-packages\pandas\tseries\offsets.py", line 2535 in apply File "C:\Users\geoffroy.destaintot\Miniconda3\envs\pd-0.18\lib\site-packages\pandas\tseries\offsets.py", line 2493 in **add** File "C:\Users\geoffroy.destaintot\Miniconda3\envs\pd-0.18\lib\site-packages\pandas\tseries\offsets.py", line 390 in **radd** File "C:\Users\geoffroy.destaintot\Miniconda3\envs\pd-0.18\lib\site-packages\pandas\tseries\offsets.py", line 2535 in apply File "C:\Users\geoffroy.destaintot\Miniconda3\envs\pd-0.18\lib\site-packages\pandas\tseries\offsets.py", line 2493 in **add** File "C:\Users\geoffroy.destaintot\Miniconda3\envs\pd-0.18\lib\site-packages\pandas\tseries\offsets.py", line 390 in **radd** ... #### Expected Output Satisfactory behaviour when using python timedeltas: ##### In: ``` import datetime as dt import pandas as pd from pandas.tseries.frequencies import to_offset d = pd.Timestamp("2000/1/1") d + dt.timedelta(days=1)*100**25 ``` ##### Out: **=> python error** Traceback (most recent call last): File "C:/Users/geoffroy.destaintot/Documents/Local/Informatique/Projets/2016-08-django-debug/to_offset_bug.py", line 11, in <module> d + dt.timedelta(days=1)_100_*25 OverflowError: Python int too large to convert to C long #### output of `pd.show_versions()` (same behaviour with pandas 0.17.1, 0.16.2, 0.15.2) ## INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 25.1.6 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 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
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14080/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14080/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14081
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14081/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14081/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14081/events
https://github.com/pandas-dev/pandas/issues/14081
172,995,419
MDU6SXNzdWUxNzI5OTU0MTk=
14,081
ValueError plotting bar plot from DataFrame with existing Axes
{ "avatar_url": "https://avatars.githubusercontent.com/u/779022?v=4", "events_url": "https://api.github.com/users/swails/events{/privacy}", "followers_url": "https://api.github.com/users/swails/followers", "following_url": "https://api.github.com/users/swails/following{/other_user}", "gists_url": "https://api.github.com/users/swails/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/swails", "id": 779022, "login": "swails", "node_id": "MDQ6VXNlcjc3OTAyMg==", "organizations_url": "https://api.github.com/users/swails/orgs", "received_events_url": "https://api.github.com/users/swails/received_events", "repos_url": "https://api.github.com/users/swails/repos", "site_admin": false, "starred_url": "https://api.github.com/users/swails/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/swails/subscriptions", "type": "User", "url": "https://api.github.com/users/swails" }
[ { "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
3
2016-08-24T16:11:21Z
2016-08-24T16:37:11Z
2016-08-24T16:34:25Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible The following code works, and when pasted in a Jupyter Notebook or QT console yields the expected bar plot: ``` python %matplotlib inline import pandas as pd import matplotlib.pyplot as plt # Create some data to plot df = pd.DataFrame( dict(Feature1=[10, 20, 30, 20, 10], Feature2=[3, 2, 3, 2, 3]), index=['a', 'b', 'c', 'd', 'e'] ) _ = df.plot(kind='bar', legend=False, y='Feature1', yerr='Feature2', rot=0) ``` However, as soon as I try to supply a custom `Axes` instance (so the plot gets put where I want it), it throws an error. Running the following code after the above example throws an error: ``` python fig = plt.figure(0) ax = fig.add_subplot(111) _ = df.plot(kind='bar', legend=False, y='Feature1', yerr='Feature2', rot=0, axes=ax) ``` Here is the traceback: ``` Traceback (most recent call last): File "<stdin>", line 12, in <module> File "/usr/local/miniconda3/lib/python3.5/site-packages/pandas/tools/plotting.py", line 3740, in __call__ sort_columns=sort_columns, **kwds) File "/usr/local/miniconda3/lib/python3.5/site-packages/pandas/tools/plotting.py", line 2614, in plot_frame **kwds) File "/usr/local/miniconda3/lib/python3.5/site-packages/pandas/tools/plotting.py", line 2441, in _plot plot_obj.generate() File "/usr/local/miniconda3/lib/python3.5/site-packages/pandas/tools/plotting.py", line 1028, in generate self._make_plot() File "/usr/local/miniconda3/lib/python3.5/site-packages/pandas/tools/plotting.py", line 1971, in _make_plot log=self.log, **kwds) File "/usr/local/miniconda3/lib/python3.5/site-packages/pandas/tools/plotting.py", line 1918, in _plot return ax.bar(x, y, w, bottom=start, log=log, **kwds) File "/usr/local/miniconda3/lib/python3.5/site-packages/matplotlib/__init__.py", line 1812, in inner return func(ax, *args, **kwargs) File "/usr/local/miniconda3/lib/python3.5/site-packages/matplotlib/axes/_axes.py", line 2134, in bar self.add_patch(r) File "/usr/local/miniconda3/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 1780, in add_patch self._set_artist_props(p) File "/usr/local/miniconda3/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 865, in _set_artist_props a.axes = self File "/usr/local/miniconda3/lib/python3.5/site-packages/matplotlib/artist.py", line 237, in axes raise ValueError("Can not reset the axes. You are " ValueError: Can not reset the axes. You are probably trying to re-use an artist in more than one Axes which is not supported ``` #### Expected Output I would expect the second plot to work identically to the first plot in this example. #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.6-gentoo machine: x86_64 processor: Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz byteorder: little LC_ALL: None LANG: en_US.utf8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 25.1.6 Cython: None numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: 3.2.3.1 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: None xlrd: 1.0.0 xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: 2.6.1 (dt dec pq3 ext) jinja2: 2.8 boto: None pandas_datareader: None ``` (FWIW, I just built and tried the latest version of pandas and got the same behavior: ``` pandas: 0.18.1+391.g6645b2b ``` )
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14081/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14081/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14082
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14082/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14082/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14082/events
https://github.com/pandas-dev/pandas/issues/14082
173,014,700
MDU6SXNzdWUxNzMwMTQ3MDA=
14,082
DataFrame construction breaks python on numpy empty_like
{ "avatar_url": "https://avatars.githubusercontent.com/u/1978117?v=4", "events_url": "https://api.github.com/users/asishm/events{/privacy}", "followers_url": "https://api.github.com/users/asishm/followers", "following_url": "https://api.github.com/users/asishm/following{/other_user}", "gists_url": "https://api.github.com/users/asishm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/asishm", "id": 1978117, "login": "asishm", "node_id": "MDQ6VXNlcjE5NzgxMTc=", "organizations_url": "https://api.github.com/users/asishm/orgs", "received_events_url": "https://api.github.com/users/asishm/received_events", "repos_url": "https://api.github.com/users/asishm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/asishm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/asishm/subscriptions", "type": "User", "url": "https://api.github.com/users/asishm" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
closed
false
null
[]
{ "closed_at": 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-08-24T17:41:43Z
2016-08-24T17:53:38Z
2016-08-24T17:53:11Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible http://stackoverflow.com/questions/39129419/why-does-dataframe-construction-break-python-on-numpy-empty-like ``` import numpy as np import pandas as pd a = np.array([None, None], dtype=object) print(a) # [None None] dfa = pd.DataFrame(a) print(dfa) # 0 #0 None #1 None b = np.empty_like(a) print(b) #[None None] (a == b).all() #True dfb = pd.DataFrame(b) # Fine so far print(dfb.values) #[[None] #[None]] print(dfb) #Crash ``` #### Expected Output #### 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 61 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 18.2 Cython: None numpy: 1.11.1 scipy: 0.17.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: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.5.0 html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 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/14082/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14082/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14083
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14083/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14083/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14083/events
https://github.com/pandas-dev/pandas/issues/14083
173,063,525
MDU6SXNzdWUxNzMwNjM1MjU=
14,083
Enabling auto-collapsing of Excel dumped from df
{ "avatar_url": "https://avatars.githubusercontent.com/u/16563798?v=4", "events_url": "https://api.github.com/users/tkauffmann/events{/privacy}", "followers_url": "https://api.github.com/users/tkauffmann/followers", "following_url": "https://api.github.com/users/tkauffmann/following{/other_user}", "gists_url": "https://api.github.com/users/tkauffmann/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tkauffmann", "id": 16563798, "login": "tkauffmann", "node_id": "MDQ6VXNlcjE2NTYzNzk4", "organizations_url": "https://api.github.com/users/tkauffmann/orgs", "received_events_url": "https://api.github.com/users/tkauffmann/received_events", "repos_url": "https://api.github.com/users/tkauffmann/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tkauffmann/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tkauffmann/subscriptions", "type": "User", "url": "https://api.github.com/users/tkauffmann" }
[ { "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": "bfe5bf", "default": false, "description": "read_exc...
open
false
null
[]
null
0
2016-08-24T21:33:58Z
2016-08-25T21:46:21Z
null
NONE
null
Dear all, In my job, we use a lot of Pandas (though not always very professionally). One very useful case is to build a dataframe conatining data from several instruments for several items. I tend to use a lot of multi-indexing columns. In order to view (and modify) the columns, we like to save the dataframe in an Excel file, look at the data and possibly manually modify some values. But with a lot of columns (espcially mult-indexed) we tend to have very big Excel files, that are not as readable as they should be. That is why I like to group some columns and enable the possibility to collapse them (and un-collapse them if I want to look at them). I did not find a way to do it in Pandas ; but there it is possible in xlsxwriter. So I developed a short solution to automatically group all columns from the same multiindex column. If you guys think it is interesting to add the option to Pandas I'd be happy to try to let my work be useful to others -I could try to add it to Pandas though I'm new to GitHub. What do you guys think? Feel free to say no :) Below is a toy example, and attached are the non-grouped and the grouped columns Excel sheets. Please don't be mad at the code, it's really quick&dirty way. #### Code Sample, a copy-pastable example if possible ``` import pandas as pd import numpy as np from openpyxl.cell import get_column_letter import copy def save_df(df,ofn='output.xlsx'): writer = pd.ExcelWriter(ofn, engine='xlsxwriter') df.to_excel(writer, 'Sheet1') writer.save() def save_df_collapsing(df, ofn='output.xlsx'): writer = pd.ExcelWriter(ofn, engine='xlsxwriter') df.to_excel(writer, 'Sheet1') worksheet = writer.sheets['Sheet1'] col_mins = [] col_maxs = [] for ind0 in df.columns.levels[0]: slice_ind = df.columns.get_loc(ind0) try: slice_ind = slice_ind.indices(100000) col_min = slice_ind[0] + 2 col_max = slice_ind[1] except: col_min = np.min(np.nonzero(slice_ind)) + 2 col_max = np.max(np.nonzero(slice_ind)) col_mins.append(col_min) col_maxs.append(col_max) span = '%s:%s' % (get_column_letter(col_min), get_column_letter(col_max)) worksheet.set_column(span, None, None, {'level': 1}) temp = copy.copy(df[ind0]) ind1s = np.unique([ind1[0] for ind1 in temp.columns]) for ind1 in ind1s: slice_ind1 = df.columns.get_loc((ind0, ind1)).indices(100000) col_min1 = slice_ind1[0] + 2 if col_min1 in col_mins: col_min1 += 1 col_max1 = slice_ind1[1] if col_max1 in col_maxs: col_max1 -= 1 # worksheet.set_column(col_min,col_max, None, None, {'level': 2}) span1 = '%s:%s' % (get_column_letter(col_min1), get_column_letter(col_max1)) worksheet.set_column(span1, None, None, {'level': 2, 'hidden': True}) writer.save() temperatures = np.arange(100) columns = pd.MultiIndex.from_product([['Absolute','Relative'],['ValueA', 'ValueB', 'ValueC'], temperatures]) df = pd.DataFrame(columns=columns) df.loc['Item1', ('Relative','ValueA')] = np.arange(100) df.loc['Item1', ('Relative','ValueB')] = 2 * np.arange(100) df.loc['Item1', ('Relative','ValueC')] = 3 * np.arange(100) df.loc['Item1', ('Absolute','ValueA')] = np.arange(100) + 25 df.loc['Item1', ('Absolute','ValueB')] = 2 * np.arange(100) + 25 df.loc['Item1', ('Absolute','ValueC')] = 3 * np.arange(100) + 25 df.loc['Item2', ('Relative','ValueA')] = 10 * np.arange(100) df.loc['Item2', ('Relative','ValueB')] = 20 * np.arange(100) df.loc['Item2', ('Relative','ValueC')] = 30 * np.arange(100) df.loc['Item2', ('Absolute','ValueA')] = 10 * np.arange(100) + 25 df.loc['Item2', ('Absolute','ValueB')] = 20 * np.arange(100) + 25 df.loc['Item2', ('Absolute','ValueC')] = 30 * np.arange(100) + 25 print df save_df(df,'output_no_collapse.xlsx') save_df_collapsing(df,'output_collapsed.xlsx') ``` [output_collapsed.xlsx](https://github.com/pydata/pandas/files/435715/output_collapsed.xlsx) [output_no_collapse.xlsx](https://github.com/pydata/pandas/files/435714/output_no_collapse.xlsx)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14083/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14083/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14084
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14084/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14084/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14084/events
https://github.com/pandas-dev/pandas/issues/14084
173,072,677
MDU6SXNzdWUxNzMwNzI2Nzc=
14,084
resample drops dtype('O') columns from DataFrame (but not Series)
{ "avatar_url": "https://avatars.githubusercontent.com/u/149817?v=4", "events_url": "https://api.github.com/users/rcyeh/events{/privacy}", "followers_url": "https://api.github.com/users/rcyeh/followers", "following_url": "https://api.github.com/users/rcyeh/following{/other_user}", "gists_url": "https://api.github.com/users/rcyeh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rcyeh", "id": 149817, "login": "rcyeh", "node_id": "MDQ6VXNlcjE0OTgxNw==", "organizations_url": "https://api.github.com/users/rcyeh/orgs", "received_events_url": "https://api.github.com/users/rcyeh/received_events", "repos_url": "https://api.github.com/users/rcyeh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rcyeh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rcyeh/subscriptions", "type": "User", "url": "https://api.github.com/users/rcyeh" }
[ { "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": "AD7...
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-08-24T22:25:55Z
2016-08-31T23:34:57Z
2016-08-24T22:36:50Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` python import numpy import pandas as pd idx = pd.date_range('1/1/2016', periods=100, freq='d') z = pd.DataFrame({"z": numpy.zeros(len(idx))}, index=idx) obj = pd.DataFrame({"obj": numpy.zeros(len(idx), dtype=numpy.dtype('O'))}, index=idx) nan = pd.DataFrame({"nan": numpy.zeros(len(idx)) + float('nan')}, index=idx) objnan = pd.DataFrame([], columns=['objnan'], index=idx[0:0]) # dtype('O') nan after join df_list = [z, obj, nan, objnan] def r1w(x): return x.resample('1w').sum() resample_join_result = r1w(pd.DataFrame().join(df_list, how='outer')) print(resample_join_result.shape) # (15, 2) --- I thought this should be (15, 4) join_resample_result = pd.DataFrame().join([r1w(x) for x in df_list], how='outer') print(join_resample_result.shape) # (15, 4) for columnname in join_resample_result.columns: if columnname not in resample_join_result.columns: print("DataFrame.resample missing column: " + str(columnname) + " (" + str(join_result[columnname].dtype) + ")") ``` #### Expected Output I would have expected `resample_join_result` to have all four columns and be the same as `join_resample_result`, but they are not, because it seems `pandas.DataFrame.resample` drops dtype('O') (object) columns; while `pandas.Series.resample` converts those columns into numeric dtypes. #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-327.22.2.el7.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: 0.23.4 numpy: 1.10.4 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.5 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.5.2 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.39.0 pandas_datareader: 0.2.0 ```
{ "+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/14084/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14084/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14085
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14085/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14085/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14085/events
https://github.com/pandas-dev/pandas/pull/14085
173,088,307
MDExOlB1bGxSZXF1ZXN0ODI2Mzk1ODY=
14,085
TST/DOC: apply date() with timezones
{ "avatar_url": "https://avatars.githubusercontent.com/u/3195015?v=4", "events_url": "https://api.github.com/users/rockg/events{/privacy}", "followers_url": "https://api.github.com/users/rockg/followers", "following_url": "https://api.github.com/users/rockg/following{/other_user}", "gists_url": "https://api.github.com/users/rockg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rockg", "id": 3195015, "login": "rockg", "node_id": "MDQ6VXNlcjMxOTUwMTU=", "organizations_url": "https://api.github.com/users/rockg/orgs", "received_events_url": "https://api.github.com/users/rockg/received_events", "repos_url": "https://api.github.com/users/rockg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rockg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rockg/subscriptions", "type": "User", "url": "https://api.github.com/users/rockg" }
[ { "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": "3465A4", "d...
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-08-25T00:24:10Z
2016-08-25T22:20:22Z
2016-08-25T22:20:12Z
CONTRIBUTOR
null
- [x] closes #11757 - [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/14085/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14085/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14085.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14085", "merged_at": "2016-08-25T22:20:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14085.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14085" }
https://api.github.com/repos/pandas-dev/pandas/issues/14086
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14086/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14086/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14086/events
https://github.com/pandas-dev/pandas/issues/14086
173,148,431
MDU6SXNzdWUxNzMxNDg0MzE=
14,086
ERR: in python >= 3.5 use FileNotFoundError instead of OSError
{ "avatar_url": "https://avatars.githubusercontent.com/u/1475390?v=4", "events_url": "https://api.github.com/users/brunobeltran/events{/privacy}", "followers_url": "https://api.github.com/users/brunobeltran/followers", "following_url": "https://api.github.com/users/brunobeltran/following{/other_user}", "gists_url": "https://api.github.com/users/brunobeltran/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/brunobeltran", "id": 1475390, "login": "brunobeltran", "node_id": "MDQ6VXNlcjE0NzUzOTA=", "organizations_url": "https://api.github.com/users/brunobeltran/orgs", "received_events_url": "https://api.github.com/users/brunobeltran/received_events", "repos_url": "https://api.github.com/users/brunobeltran/repos", "site_admin": false, "starred_url": "https://api.github.com/users/brunobeltran/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/brunobeltran/subscriptions", "type": "User", "url": "https://api.github.com/users/brunobeltran" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "ffa0ff", "default": false, "description": "Incorrec...
closed
false
null
[]
{ "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-08-25T08:57:01Z
2016-09-01T08:19:15Z
2016-09-01T08:19:15Z
NONE
null
Simple to reproduce: ``` python import pandas as pd try: pd.read_csv('this_file_does_not_exist.csv') except FileNotFoundError: print('This should execute.') ``` Instead, I get an OSError, which tells me in text that `OSError: File b'this_file_does_not_exist.csv' does not exist`. https://docs.python.org/3.5/library/exceptions.html seems to suggest that OSError now has various subclasses, e.g. FileNotFoundError, for specific errors such as this one. Output of `pd.show_versions()`: ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-31-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 23.0.0 Cython: None numpy: 1.11.1 scipy: 0.18.0 statsmodels: None xarray: None IPython: 5.0.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None 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 pandas_datareader: 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/14086/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14086/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14087
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14087/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14087/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14087/events
https://github.com/pandas-dev/pandas/issues/14087
173,291,741
MDU6SXNzdWUxNzMyOTE3NDE=
14,087
Adding datetime.timedelta to Series breaks via .add() but works via addition
{ "avatar_url": "https://avatars.githubusercontent.com/u/8947004?v=4", "events_url": "https://api.github.com/users/grutts/events{/privacy}", "followers_url": "https://api.github.com/users/grutts/followers", "following_url": "https://api.github.com/users/grutts/following{/other_user}", "gists_url": "https://api.github.com/users/grutts/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/grutts", "id": 8947004, "login": "grutts", "node_id": "MDQ6VXNlcjg5NDcwMDQ=", "organizations_url": "https://api.github.com/users/grutts/orgs", "received_events_url": "https://api.github.com/users/grutts/received_events", "repos_url": "https://api.github.com/users/grutts/repos", "site_admin": false, "starred_url": "https://api.github.com/users/grutts/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/grutts/subscriptions", "type": "User", "url": "https://api.github.com/users/grutts" }
[ { "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": "009800", "default": false, "description": "Duplicate issue or pull ...
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-08-25T19:42:39Z
2016-08-25T20:40:09Z
2016-08-25T19:55:50Z
NONE
null
Adding a datetime.timedelta to a series of datetime64[ns, UTC] breaks when using the Series .add(offset) method, but works when doing series + offset. This behaviour seems unexpected to me. Furthermore, adding a pd.Timedelta drops timezone. ``` python import pandas as pd import datetime import pytz datetime_series = pd.Series([datetime.datetime(2016, 5, 1, tzinfo = pytz.utc)]) offset = datetime.timedelta(days=1) print datetime_series.dtype >>> datetime64[ns, UTC] # Fails datetime_series.add(offset) ---------------------------------------------------- --------- TypeError Traceback (most recent call last) <ipython-input-12-89cc70a4801f> in <module>() 8 9 # Fails ---> 10 datetime_series.add(offset) 11 12 # Works as expected /home/adrian/.virtualenvs/pandas/local/lib/python2.7/site-packages/pandas/core/ops.pyc in flex_wrapper(self, other, level, fill_value, axis) 937 self = self.fillna(fill_value) 938 --> 939 return self._constructor(op(self.values, other), 940 self.index).__finalize__(self) 941 TypeError: ufunc add cannot use operands with types dtype('<M8[ns]') and `dtype('O') ``` #### Expected Output ``` python # Works as expected datetime_series + offset` >>> 0 2016-05-02 00:00:00+00:00 >>> dtype: datetime64[ns, UTC] ``` Moreover, if the usages of `offset` in all of the above code are replaced with `pd.Timedelta(offset)` then the breaking line works but drops timezone. The line described as working does not drop timezone when replacing with `pd.Timedelta(offset)` #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.19.0-66-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 26.0.0 Cython: None numpy: 1.9.0 scipy: 0.14.0 statsmodels: None xarray: None IPython: 5.0.0 sphinx: None patsy: None dateutil: 2.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.4.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: 3.6.4 bs4: None html5lib: 0.999 httplib2: 0.9 apiclient: 1.1 sqlalchemy: None pymysql: None psycopg2: 2.6.1 (dt dec pq3 ext lo64) jinja2: 2.8 boto: 2.26.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/14087/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14087/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14088
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14088/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14088/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14088/events
https://github.com/pandas-dev/pandas/issues/14088
173,292,427
MDU6SXNzdWUxNzMyOTI0Mjc=
14,088
Cannot subtract tz-aware datetime.datetime from tz-aware datetime64 series.
{ "avatar_url": "https://avatars.githubusercontent.com/u/7705100?v=4", "events_url": "https://api.github.com/users/RobertasA/events{/privacy}", "followers_url": "https://api.github.com/users/RobertasA/followers", "following_url": "https://api.github.com/users/RobertasA/following{/other_user}", "gists_url": "https://api.github.com/users/RobertasA/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RobertasA", "id": 7705100, "login": "RobertasA", "node_id": "MDQ6VXNlcjc3MDUxMDA=", "organizations_url": "https://api.github.com/users/RobertasA/orgs", "received_events_url": "https://api.github.com/users/RobertasA/received_events", "repos_url": "https://api.github.com/users/RobertasA/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RobertasA/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RobertasA/subscriptions", "type": "User", "url": "https://api.github.com/users/RobertasA" }
[ { "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, ...
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-08-25T19:46:12Z
2016-09-08T10:35:49Z
2016-09-08T10:35:40Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` python import pytz import datetime import pandas as pd foo = pd.Series(datetime.datetime(2016, 8, 23, 12, tzinfo=pytz.utc)) foo - datetime.datetime(2016, 8, 22, 12, tzinfo=pytz.utc) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-52-0639980e7d31> in <module>() ----> 1 foo - datetime.datetime(2016, 8, 1, 12, tzinfo=pytz.utc) /Users/charon/.virtualenvs/iwoca-django/lib/python2.7/site-packages/pandas/core/ops.pyc in wrapper(left, right, name, na_op) 607 608 time_converted = _TimeOp.maybe_convert_for_time_op(left, right, name, --> 609 na_op) 610 611 if time_converted is None: /Users/charon/.virtualenvs/iwoca-django/lib/python2.7/site-packages/pandas/core/ops.pyc in maybe_convert_for_time_op(cls, left, right, name, na_op) 567 return None 568 --> 569 return cls(left, right, name, na_op) 570 571 /Users/charon/.virtualenvs/iwoca-django/lib/python2.7/site-packages/pandas/core/ops.pyc in __init__(self, left, right, name, na_op) 281 282 lvalues = self._convert_to_array(left, name=name) --> 283 rvalues = self._convert_to_array(right, name=name, other=lvalues) 284 285 self.name = name /Users/charon/.virtualenvs/iwoca-django/lib/python2.7/site-packages/pandas/core/ops.pyc in _convert_to_array(self, values, name, other) 419 elif not (isinstance(values, (np.ndarray, ABCSeries)) and 420 is_datetime64_dtype(values)): --> 421 values = tslib.array_to_datetime(values) 422 elif inferred_type in ('timedelta', 'timedelta64'): 423 # have a timedelta, convert to to ns here /Users/charon/.virtualenvs/iwoca-django/lib/python2.7/site-packages/pandas/tslib.so in pandas.tslib.array_to_datetime (pandas/tslib.c:41972)() /Users/charon/.virtualenvs/iwoca-django/lib/python2.7/site-packages/pandas/tslib.so in pandas.tslib.array_to_datetime (pandas/tslib.c:38943)() ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True ``` #### Expected Output ``` python 0 1 days dtype: timedelta64[ns] ``` #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.10.final.0 python-bits: 64 OS: Darwin OS-release: 15.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.18.1 nose: 1.3.4 pip: 8.1.2 setuptools: 3.6 Cython: 0.23.2 numpy: 1.11.1 scipy: 0.14.0 statsmodels: 0.6.1 xarray: None IPython: 2.3.1 sphinx: None patsy: 0.4.1 dateutil: 2.3 pytz: 2014.10 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.4.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: 3.4.1 bs4: None html5lib: 0.999 httplib2: 0.9 apiclient: 1.1 sqlalchemy: None pymysql: None psycopg2: 2.6.1 (dt dec pq3 ext lo64) jinja2: 2.7.3 boto: 2.26.0 pandas_datareader: None ``` Note, doing ``` foo.astype(datetime.datetime) - datetime.datetime(2016, 8, 22, tzinfo=pytz.utc) ``` or ``` foo.astype(datetime.datetime) - pd.Timestamp(datetime.datetime(2016, 8, 22, tzinfo=pytz.utc) ``` works.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14088/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14088/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14089
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14089/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14089/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14089/events
https://github.com/pandas-dev/pandas/issues/14089
173,329,137
MDU6SXNzdWUxNzMzMjkxMzc=
14,089
df.ix causing exception when index is not from 0
{ "avatar_url": "https://avatars.githubusercontent.com/u/3696566?v=4", "events_url": "https://api.github.com/users/swkoh/events{/privacy}", "followers_url": "https://api.github.com/users/swkoh/followers", "following_url": "https://api.github.com/users/swkoh/following{/other_user}", "gists_url": "https://api.github.com/users/swkoh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/swkoh", "id": 3696566, "login": "swkoh", "node_id": "MDQ6VXNlcjM2OTY1NjY=", "organizations_url": "https://api.github.com/users/swkoh/orgs", "received_events_url": "https://api.github.com/users/swkoh/received_events", "repos_url": "https://api.github.com/users/swkoh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/swkoh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/swkoh/subscriptions", "type": "User", "url": "https://api.github.com/users/swkoh" }
[ { "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": "00...
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-08-25T22:46:31Z
2016-08-26T10:20:20Z
2016-08-26T10:20:20Z
NONE
null
#### Code Sample, a copy-pastable example if possible When the index is set from 0, df.ix[0,0] works fine. ``` >>> df = pd.DataFrame({'A':[1,2,3], 'B':[10,20,30]},index=[0,1,2]) >>> df A B 0 1 10 1 2 20 2 3 30 >>> df.ix[0,1] 10 ``` When the index is set from other 0, df.ix[0,0] cases exception. ``` >>> df2 = pd.DataFrame({'A':[1,2,3], 'B':[10,20,30]},index=[2,3,4]) >>> df2 A B 2 1 10 3 2 20 4 3 30 >>> df2.ix[1,0] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "c:\python27\lib\site-packages\pandas\core\indexing.py", line 75, in __ge titem__ return self._getitem_tuple(key) File "c:\python27\lib\site-packages\pandas\core\indexing.py", line 784, in _ge titem_tuple return self._getitem_lowerdim(tup) File "c:\python27\lib\site-packages\pandas\core\indexing.py", line 908, in _ge titem_lowerdim section = self._getitem_axis(key, axis=i) File "c:\python27\lib\site-packages\pandas\core\indexing.py", line 1018, in _g etitem_axis return self._get_label(key, axis=axis) File "c:\python27\lib\site-packages\pandas\core\indexing.py", line 93, in _get _label return self.obj._xs(label, axis=axis) File "c:\python27\lib\site-packages\pandas\core\generic.py", line 1749, in xs loc = self.index.get_loc(key) File "c:\python27\lib\site-packages\pandas\indexes\base.py", line 1947, in get _loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File "pandas\index.pyx", line 137, in pandas.index.IndexEngine.get_loc (pandas \index.c:4066) File "pandas\index.pyx", line 159, in pandas.index.IndexEngine.get_loc (pandas \index.c:3930) File "pandas\hashtable.pyx", line 303, in pandas.hashtable.Int64HashTable.get_ item (pandas\hashtable.c:6527) File "pandas\hashtable.pyx", line 309, in pandas.hashtable.Int64HashTable.get_ item (pandas\hashtable.c:6465) KeyError: 1L ``` #### output of `pd.show_versions()` > > > pd.show_versions() ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 20.10.1 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: 5.0.0 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.5 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: None lxml: None bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 0.9.8 pymysql: None psycopg2: None jinja2: 2.8 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/14089/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14089/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14090
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14090/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14090/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14090/events
https://github.com/pandas-dev/pandas/pull/14090
173,423,788
MDExOlB1bGxSZXF1ZXN0ODI4Njc1MDE=
14,090
BUG: fix tz-aware datetime convert to DatetimeIndex (GH 14088)
{ "avatar_url": "https://avatars.githubusercontent.com/u/20844595?v=4", "events_url": "https://api.github.com/users/conquistador1492/events{/privacy}", "followers_url": "https://api.github.com/users/conquistador1492/followers", "following_url": "https://api.github.com/users/conquistador1492/following{/other_user}", "gists_url": "https://api.github.com/users/conquistador1492/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/conquistador1492", "id": 20844595, "login": "conquistador1492", "node_id": "MDQ6VXNlcjIwODQ0NTk1", "organizations_url": "https://api.github.com/users/conquistador1492/orgs", "received_events_url": "https://api.github.com/users/conquistador1492/received_events", "repos_url": "https://api.github.com/users/conquistador1492/repos", "site_admin": false, "starred_url": "https://api.github.com/users/conquistador1492/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/conquistador1492/subscriptions", "type": "User", "url": "https://api.github.com/users/conquistador1492" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timedelta data type", ...
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-08-26T10:41:20Z
2016-09-08T10:35:56Z
2016-09-08T10:35:41Z
CONTRIBUTOR
null
- [x] closes #14088 - [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/14090/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14090/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14090.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14090", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14090.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14090" }
https://api.github.com/repos/pandas-dev/pandas/issues/14091
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14091/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14091/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14091/events
https://github.com/pandas-dev/pandas/issues/14091
173,433,148
MDU6SXNzdWUxNzM0MzMxNDg=
14,091
Can't install pandas-0.18.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/14891680?v=4", "events_url": "https://api.github.com/users/ponomarevvl90/events{/privacy}", "followers_url": "https://api.github.com/users/ponomarevvl90/followers", "following_url": "https://api.github.com/users/ponomarevvl90/following{/other_user}", "gists_url": "https://api.github.com/users/ponomarevvl90/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ponomarevvl90", "id": 14891680, "login": "ponomarevvl90", "node_id": "MDQ6VXNlcjE0ODkxNjgw", "organizations_url": "https://api.github.com/users/ponomarevvl90/orgs", "received_events_url": "https://api.github.com/users/ponomarevvl90/received_events", "repos_url": "https://api.github.com/users/ponomarevvl90/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ponomarevvl90/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ponomarevvl90/subscriptions", "type": "User", "url": "https://api.github.com/users/ponomarevvl90" }
[ { "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" }
4
2016-08-26T11:35:57Z
2016-08-27T15:59:25Z
2016-08-27T15:21:00Z
NONE
null
Try to install pandas via pip, but it is failed: [error.txt](https://github.com/pydata/pandas/files/439154/error.txt)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14091/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14091/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14092
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14092/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14092/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14092/events
https://github.com/pandas-dev/pandas/pull/14092
173,513,060
MDExOlB1bGxSZXF1ZXN0ODI5MzE0NzI=
14,092
BUG: Float64Index.get_value() for tuples.
{ "avatar_url": "https://avatars.githubusercontent.com/u/606089?v=4", "events_url": "https://api.github.com/users/bkandel/events{/privacy}", "followers_url": "https://api.github.com/users/bkandel/followers", "following_url": "https://api.github.com/users/bkandel/following{/other_user}", "gists_url": "https://api.github.com/users/bkandel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bkandel", "id": 606089, "login": "bkandel", "node_id": "MDQ6VXNlcjYwNjA4OQ==", "organizations_url": "https://api.github.com/users/bkandel/orgs", "received_events_url": "https://api.github.com/users/bkandel/received_events", "repos_url": "https://api.github.com/users/bkandel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bkandel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bkandel/subscriptions", "type": "User", "url": "https://api.github.com/users/bkandel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on s...
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-08-26T18:19:55Z
2016-08-26T20:21:45Z
2016-08-26T20:21:02Z
CONTRIBUTOR
null
- [x] closes #13509 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry Currently, trying to retrieve one tuple-valued entry in a `Series` with a `Float64Index` will fail (GH 13509). This fixes that bug.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14092/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14092/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14092.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14092", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14092.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14092" }
https://api.github.com/repos/pandas-dev/pandas/issues/14093
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14093/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14093/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14093/events
https://github.com/pandas-dev/pandas/issues/14093
173,525,866
MDU6SXNzdWUxNzM1MjU4NjY=
14,093
ERR: stricter checks on Index construction when tz is passed
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "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": "ffa0ff", "default": false, "description": "I...
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
4
2016-08-26T19:28:18Z
2020-12-22T23:45:29Z
2020-12-22T23:45:29Z
CONTRIBUTOR
null
from [comment](https://github.com/pydata/pandas/pull/13981#issuecomment-239846027) on #13981 ``` In [1]: pd.Index([datetime.datetime(2012,1,1), datetime.datetime(2012,1, 2)], tz="Europe/Brussels") Out[1]: DatetimeIndex(['2012-01-01 00:00:00+01:00', '2012-01-02 00:00:00+01:00'], dtype='datetime64[ns, Europe/Brussels]', freq=None) In [2]: pd.Index([1, 2], tz="Europe/Brussels") Out[2]: DatetimeIndex(['1970-01-01 00:00:00+01:00', '1970-01-01 00:00:00+01:00'], dtype='datetime64[ns, Europe/Brussels]', freq=None) In [3]: pd.Index(['20120102', '20120103'], tz="Europe/Brussels") Out[3]: DatetimeIndex(['2012-01-02 00:00:00+01:00', '2012-01-03 00:00:00+01:00'], dtype='datetime64[ns, Europe/Brussels]', freq=None) ``` [1] is fine/expected [2] should be disallowed (e.g. integer construction) [3] is ok, maybe should disallow to be consistent. I am not sure what this would break. But we don't necessarily want to force datetime construction on a generic `Index` (as opposed to using `.to_datetime` or a constructor, e.g. `pd.date_range`). This is a bit too much inference. So the rule would be that it has to be actual datetimes/Timestamps, if tz is provided (which is a form of dtype).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14093/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14093/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14094
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14094/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14094/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14094/events
https://github.com/pandas-dev/pandas/issues/14094
173,576,164
MDU6SXNzdWUxNzM1NzYxNjQ=
14,094
CLN: What is the purpose of datetools.py?
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "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" }
21
2016-08-27T03:58:40Z
2016-09-07T13:16:02Z
2016-09-07T13:16:02Z
MEMBER
null
The doc-string at the top of <a href="https://github.com/pydata/pandas/blob/0e61847e111a3ba181f16c8b9b974c74d360ad2e/pandas/core/datetools.py">datetools.py</a> seems to indicate this is just a hodge-podge of datetime-related objects. Seems like that could be cleaned up unless there is good reason to have it.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14094/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14094/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14095
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14095/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14095/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14095/events
https://github.com/pandas-dev/pandas/issues/14095
173,579,377
MDU6SXNzdWUxNzM1NzkzNzc=
14,095
BUG: resolvers in pandas.eval should accept list-like
{ "avatar_url": "https://avatars.githubusercontent.com/u/1304950?v=4", "events_url": "https://api.github.com/users/sdementen/events{/privacy}", "followers_url": "https://api.github.com/users/sdementen/followers", "following_url": "https://api.github.com/users/sdementen/following{/other_user}", "gists_url": "https://api.github.com/users/sdementen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sdementen", "id": 1304950, "login": "sdementen", "node_id": "MDQ6VXNlcjEzMDQ5NTA=", "organizations_url": "https://api.github.com/users/sdementen/orgs", "received_events_url": "https://api.github.com/users/sdementen/received_events", "repos_url": "https://api.github.com/users/sdementen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sdementen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sdementen/subscriptions", "type": "User", "url": "https://api.github.com/users/sdementen" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
{ "closed_at": "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-08-27T05:33:15Z
2016-08-31T16:05:06Z
2016-08-31T16:05:06Z
CONTRIBUTOR
null
I think the resolvers argument of pandas.eval requires a tuple and not a list ``` resolvers : list of dict-like or None, optional A list of objects implementing the __getitem__ special method that you can use to inject an additional collection of namespaces to use for variable lookup. For example, this is used in the query() method to inject the index and columns variables that refer to their respective DataFrame instance attributes. ``` as with a list I get a ``` kwargs['resolvers'] = kwargs.get('resolvers', ()) + resolvers TypeError: can only concatenate tuple (not "list") to tuple ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14095/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14095/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14096
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14096/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14096/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14096/events
https://github.com/pandas-dev/pandas/pull/14096
173,580,410
MDExOlB1bGxSZXF1ZXN0ODI5NzkwODk=
14,096
DEPR: Deprecated Index.to_datetime
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "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-08-27T06:02:54Z
2016-08-27T16:30:47Z
2016-08-27T09:21:45Z
MEMBER
null
Deprecates both `Index.to_datetime` and `DatetimeIndex.to_datetime` in favor of `pd.to_datetime`. Partially addresses #8254. Closes #5612 because `pd.to_datetime` does have a `format` argument.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14096/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14096/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14096.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14096", "merged_at": "2016-08-27T09:21:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14096.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14096" }
https://api.github.com/repos/pandas-dev/pandas/issues/14097
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14097/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14097/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14097/events
https://github.com/pandas-dev/pandas/pull/14097
173,592,016
MDExOlB1bGxSZXF1ZXN0ODI5ODU3MjI=
14,097
Added consistent pandas imports in io documentation
{ "avatar_url": "https://avatars.githubusercontent.com/u/7591667?v=4", "events_url": "https://api.github.com/users/jackieleng/events{/privacy}", "followers_url": "https://api.github.com/users/jackieleng/followers", "following_url": "https://api.github.com/users/jackieleng/following{/other_user}", "gists_url": "https://api.github.com/users/jackieleng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jackieleng", "id": 7591667, "login": "jackieleng", "node_id": "MDQ6VXNlcjc1OTE2Njc=", "organizations_url": "https://api.github.com/users/jackieleng/orgs", "received_events_url": "https://api.github.com/users/jackieleng/received_events", "repos_url": "https://api.github.com/users/jackieleng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jackieleng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jackieleng/subscriptions", "type": "User", "url": "https://api.github.com/users/jackieleng" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
2
2016-08-27T11:36:01Z
2016-08-29T12:24:35Z
2016-08-29T12:24:29Z
CONTRIBUTOR
null
Partially addresses #9886
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14097/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14097/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14097.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14097", "merged_at": "2016-08-29T12:24:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14097.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14097" }
https://api.github.com/repos/pandas-dev/pandas/issues/14098
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14098/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14098/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14098/events
https://github.com/pandas-dev/pandas/pull/14098
173,594,233
MDExOlB1bGxSZXF1ZXN0ODI5ODY5OTk=
14,098
DOC: Improved links between expanding and cum* (GH12651)
{ "avatar_url": "https://avatars.githubusercontent.com/u/4030444?v=4", "events_url": "https://api.github.com/users/adrian-stepien/events{/privacy}", "followers_url": "https://api.github.com/users/adrian-stepien/followers", "following_url": "https://api.github.com/users/adrian-stepien/following{/other_user}", "gists_url": "https://api.github.com/users/adrian-stepien/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/adrian-stepien", "id": 4030444, "login": "adrian-stepien", "node_id": "MDQ6VXNlcjQwMzA0NDQ=", "organizations_url": "https://api.github.com/users/adrian-stepien/orgs", "received_events_url": "https://api.github.com/users/adrian-stepien/received_events", "repos_url": "https://api.github.com/users/adrian-stepien/repos", "site_admin": false, "starred_url": "https://api.github.com/users/adrian-stepien/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adrian-stepien/subscriptions", "type": "User", "url": "https://api.github.com/users/adrian-stepien" }
[ { "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, S...
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
4
2016-08-27T12:39:10Z
2016-12-14T14:57:41Z
2016-12-14T14:54:21Z
CONTRIBUTOR
null
- [x] closes #12651 - [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/14098/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14098/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14098.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14098", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14098.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14098" }
https://api.github.com/repos/pandas-dev/pandas/issues/14099
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14099/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14099/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14099/events
https://github.com/pandas-dev/pandas/pull/14099
173,602,199
MDExOlB1bGxSZXF1ZXN0ODI5OTEyNzE=
14,099
CLN/PERF: clean-up of the benchmarks
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "207de5", "default"...
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
9
2016-08-27T15:53:54Z
2016-12-10T14:33:32Z
2016-12-10T14:30:31Z
MEMBER
null
Related to https://github.com/pydata/pandas/issues/10849 (similar to https://github.com/pydata/pandas/pull/10998) Just putting this up, was doing some time ago, but not yet fully ready, and thought to already merge this (if the content is OK) to not get too much conflicts. Gist: removing redundancy by gathering tests in classes and sharing setup functions (you can see the diff change that it removed quite some lines of code). At the same time, I am cleaning up the test names a bit, to make them shorter/more pythonic (eg `DatetimeIndex.time_add_timedelta` instead of `time_datetimeindex_add_timedelta.time_datetimeindex_add_timedelta`). The only disadvantage of this cleanup is that for people who already did run the benchmarks for older versions of pandas, this will have to be redone.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14099/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14099/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14099.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14099", "merged_at": "2016-12-10T14:30:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14099.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14099" }
https://api.github.com/repos/pandas-dev/pandas/issues/14100
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14100/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14100/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14100/events
https://github.com/pandas-dev/pandas/pull/14100
173,602,501
MDExOlB1bGxSZXF1ZXN0ODI5OTE0NDQ=
14,100
COMPAT/BLD: int dtype in json tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4", "events_url": "https://api.github.com/users/chris-b1/events{/privacy}", "followers_url": "https://api.github.com/users/chris-b1/followers", "following_url": "https://api.github.com/users/chris-b1/following{/other_user}", "gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chris-b1", "id": 1924092, "login": "chris-b1", "node_id": "MDQ6VXNlcjE5MjQwOTI=", "organizations_url": "https://api.github.com/users/chris-b1/orgs", "received_events_url": "https://api.github.com/users/chris-b1/received_events", "repos_url": "https://api.github.com/users/chris-b1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions", "type": "User", "url": "https://api.github.com/users/chris-b1" }
[ { "color": "fbca04", "default": false, "description": "Windows OS", "id": 57186974, "name": "Windows", "node_id": "MDU6TGFiZWw1NzE4Njk3NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows" }, { "color": "0052cc", "default": false, "description": "p...
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-08-27T16:01:08Z
2016-08-28T13:14:59Z
2016-08-28T13:14:55Z
CONTRIBUTOR
null
Fixes failing windows build https://ci.appveyor.com/project/jreback/pandas-465/build/job/p8hju341jyhnkogc
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14100/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14100/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14100.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14100", "merged_at": "2016-08-28T13:14:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14100.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14100" }
https://api.github.com/repos/pandas-dev/pandas/issues/14101
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14101/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14101/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14101/events
https://github.com/pandas-dev/pandas/pull/14101
173,607,261
MDExOlB1bGxSZXF1ZXN0ODI5OTQxMTM=
14,101
DEPR: Deprecate Timestamp.to_datetime
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "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-08-27T17:51:19Z
2016-08-29T12:42:52Z
2016-08-29T12:42:43Z
MEMBER
null
1) Deprecate `NaT.to_datetime` 2) Deprecate `Timestamp.to_datetime` 3) Issue `UserWarning` in `Timestamp.to_datetime` when nanoseconds is non-zero `NaT` is also a `_Timestamp`, so the second deprecation covered the first one as well. Closes #8254.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14101/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14101/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14101.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14101", "merged_at": "2016-08-29T12:42:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14101.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14101" }
https://api.github.com/repos/pandas-dev/pandas/issues/14102
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14102/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14102/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14102/events
https://github.com/pandas-dev/pandas/issues/14102
173,614,904
MDU6SXNzdWUxNzM2MTQ5MDQ=
14,102
No labels on X-axis on charts with secondary_y=True
{ "avatar_url": "https://avatars.githubusercontent.com/u/443137?v=4", "events_url": "https://api.github.com/users/dmage/events{/privacy}", "followers_url": "https://api.github.com/users/dmage/followers", "following_url": "https://api.github.com/users/dmage/following{/other_user}", "gists_url": "https://api.github.com/users/dmage/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dmage", "id": 443137, "login": "dmage", "node_id": "MDQ6VXNlcjQ0MzEzNw==", "organizations_url": "https://api.github.com/users/dmage/orgs", "received_events_url": "https://api.github.com/users/dmage/received_events", "repos_url": "https://api.github.com/users/dmage/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dmage/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dmage/subscriptions", "type": "User", "url": "https://api.github.com/users/dmage" }
[ { "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, ...
open
false
null
[]
null
1
2016-08-27T20:51:53Z
2016-08-29T12:27:11Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ``` #!/usr/bin/env python3 import matplotlib.pyplot as plt import pandas as pd # some data s1 = pd.Series(data=[5,7,6,8,7], index=[1,2,3,4,5]) s2 = pd.Series(data=[6,4,5,3,4], index=[1,2,3,4,5]) ax = plt.subplot(2, 1, 1) s1.plot(ax=ax) s2.plot(ax=ax, secondary_y=True) assert len(ax.xaxis.get_minor_ticks()) == 0 ax2 = plt.subplot(2, 1, 2) #s1.plot(ax=ax2) # uncomment me assert len(ax.xaxis.get_minor_ticks()) == 0 plt.show() ``` #### Expected Output Labels on x-axis (no minor ticks). Plotting on ax2 not affects ax. #### output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: ru_RU.UTF-8 pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 23.1.0 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: 5.0.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None 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 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/14102/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14102/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14103
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14103/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14103/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14103/events
https://github.com/pandas-dev/pandas/issues/14103
173,621,808
MDU6SXNzdWUxNzM2MjE4MDg=
14,103
pandas sort_values significantly slower on Python 3.5.2 vs. Python 2.7.12
{ "avatar_url": "https://avatars.githubusercontent.com/u/21284822?v=4", "events_url": "https://api.github.com/users/samlalwani/events{/privacy}", "followers_url": "https://api.github.com/users/samlalwani/followers", "following_url": "https://api.github.com/users/samlalwani/following{/other_user}", "gists_url": "https://api.github.com/users/samlalwani/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/samlalwani", "id": 21284822, "login": "samlalwani", "node_id": "MDQ6VXNlcjIxMjg0ODIy", "organizations_url": "https://api.github.com/users/samlalwani/orgs", "received_events_url": "https://api.github.com/users/samlalwani/received_events", "repos_url": "https://api.github.com/users/samlalwani/repos", "site_admin": false, "starred_url": "https://api.github.com/users/samlalwani/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/samlalwani/subscriptions", "type": "User", "url": "https://api.github.com/users/samlalwani" }
[ { "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"...
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-08-28T00:08:49Z
2016-08-28T13:06:06Z
2016-08-28T13:05:43Z
NONE
null
#### Code Sample, a copy-pastable example if possible import pandas as pd import numpy as np from time import time import sys df_data = pd.DataFrame(np.random.randint(0,int(1e6),int(20e6)), columns=['pop_id']) df_data['PL_dB'] = 50 + np.random.random(df_data.shape[0]) \* 100 df_data['Rx_dBm'] = 23 - df_data.PL_dB df_data['noise_mW'] = (10.**(df_data.Rx_dBm / 10.)).astype('float32') start = time() df_data.sort_values(by=['pop_id', 'Rx_dBm'], ascending=[True, False], inplace=True) df_data.reset_index(drop=True, inplace=True) print("Sort took {:0.2f} seconds".format(time() - start)) print('Python version ' + sys.version) print('pandas version ' + pd.**version**) #### output of `pd.show_versions()` ## For Python 2.7 ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 25.1.6 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: 0.8.2 IPython: 5.1.0 sphinx: 1.4.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.1.0 tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.4 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.40.0 pandas_datareader: None ## For Python 3.5 ## INSTALLED VERSIONS commit: None python: 3.5.2.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 25.1.6 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: None xarray: 0.8.2 IPython: 5.1.0 sphinx: 1.4.1 patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.1.0 tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: None xlrd: 1.0.0 xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None ## Results with Python 2.7 Sort took 40.91 seconds Python version 2.7.12 |Anaconda custom (64-bit)| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)] pandas version 0.18.1 ## Results with Python 3.5 Sort took 81.30 seconds Python version 3.5.2 |Continuum Analytics, Inc.| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] pandas version 0.18.1
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14103/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14103/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14104
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14104/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14104/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14104/events
https://github.com/pandas-dev/pandas/issues/14104
173,625,269
MDU6SXNzdWUxNzM2MjUyNjk=
14,104
first/last converts datetime into float
{ "avatar_url": "https://avatars.githubusercontent.com/u/1593648?v=4", "events_url": "https://api.github.com/users/pkch/events{/privacy}", "followers_url": "https://api.github.com/users/pkch/followers", "following_url": "https://api.github.com/users/pkch/following{/other_user}", "gists_url": "https://api.github.com/users/pkch/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pkch", "id": 1593648, "login": "pkch", "node_id": "MDQ6VXNlcjE1OTM2NDg=", "organizations_url": "https://api.github.com/users/pkch/orgs", "received_events_url": "https://api.github.com/users/pkch/received_events", "repos_url": "https://api.github.com/users/pkch/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pkch/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkch/subscriptions", "type": "User", "url": "https://api.github.com/users/pkch" }
[ { "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 b...
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-08-28T02:18:43Z
2016-08-28T13:11:55Z
2016-08-28T13:11:39Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` import pandas as pd df = pd.DataFrame({'a': [1, 1, 2, 2], 'b': pd.to_datetime(['a', 'a', '12-23-2015', '12-24-2015'], errors='coerce')}) df.groupby('a').b.first().dtype ``` #### Expected Output last line is supposed to show datetime64[ns] but it actually is float64 this only happens when the entire group has NaT datetime #### 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.1 nose: 1.3.7 pip: 8.1.2 setuptools: 25.0.0 Cython: 0.24.1 numpy: 1.11.0 scipy: 0.17.0 statsmodels: 0.6.1 xarray: None IPython: 5.0.0 sphinx: None patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: 3.2.3 numexpr: 2.5.2 matplotlib: 1.5.1 openpyxl: 2.3.5 xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: 0.9.2 apiclient: 1.5.0 sqlalchemy: 1.0.14 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext lo64) jinja2: 2.8 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/14104/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14104/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14105
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14105/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14105/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14105/events
https://github.com/pandas-dev/pandas/pull/14105
173,634,787
MDExOlB1bGxSZXF1ZXN0ODMwMDkxMzY=
14,105
DEPR: Deprecate pandas.core.datetools
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "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" }
27
2016-08-28T07:54:54Z
2016-09-07T13:24:30Z
2016-09-07T13:16:02Z
MEMBER
null
Title is self-explanatory. Closes #14094.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14105/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14105/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14105.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14105", "merged_at": "2016-09-07T13:16:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14105.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14105" }
https://api.github.com/repos/pandas-dev/pandas/issues/14106
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14106/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14106/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14106/events
https://github.com/pandas-dev/pandas/issues/14106
173,637,022
MDU6SXNzdWUxNzM2MzcwMjI=
14,106
MultiIndex with dateutil tzlocal data corruption
{ "avatar_url": "https://avatars.githubusercontent.com/u/17240340?v=4", "events_url": "https://api.github.com/users/dbivolaru/events{/privacy}", "followers_url": "https://api.github.com/users/dbivolaru/followers", "following_url": "https://api.github.com/users/dbivolaru/following{/other_user}", "gists_url": "https://api.github.com/users/dbivolaru/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dbivolaru", "id": 17240340, "login": "dbivolaru", "node_id": "MDQ6VXNlcjE3MjQwMzQw", "organizations_url": "https://api.github.com/users/dbivolaru/orgs", "received_events_url": "https://api.github.com/users/dbivolaru/received_events", "repos_url": "https://api.github.com/users/dbivolaru/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dbivolaru/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dbivolaru/subscriptions", "type": "User", "url": "https://api.github.com/users/dbivolaru" }
[ { "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" }, { "color": "5319e7", ...
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-08-28T09:05:12Z
2016-08-28T13:20:14Z
2016-08-28T13:14:10Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` In [1]: %paste import datetime from dateutil.tz import tzlocal, tzutc import pandas d = { datetime.datetime(2016, 8, 26, 20, 23, tzinfo=tzlocal()): { 'A': 10481.0, 'B': 12, 'C': 'text' }, datetime.datetime(2016, 8, 26, 20, 24, tzinfo=tzlocal()): { 'A': 10480.5, 'B': 13, 'C': 'text' } } df = pandas.DataFrame(d).T df2 = df.set_index(['C'], append=True) ## -- End pasted text -- In [2]: df Out[2]: A B C 2016-08-26 20:23:00+02:00 10481 12 text 2016-08-26 20:24:00+02:00 10480.5 13 text In [3]: df2 Out[3]: A B C 2016-08-26 20:23:00+02:00 text 10481 12 1970-01-01 00:00:00+01:00 text 10480.5 13 ``` #### Expected Output ``` In [3]: df2 Out[3]: A B C 2016-08-26 20:23:00+02:00 text 10481 12 2016-08-26 20:24:00+02:00 text 10480.5 13 ``` Note, issue goes away when removing the `tzinfo=tzlocal()`. Or just using `tzinfo=tzutc()`. It can also be reproduced using `MultiIndex()` with tuples instead of `set_index()`. #### Using pytz works ``` import datetime import pytz import tzlocal import pandas local_tz = tzlocal.get_localzone() d = { datetime.datetime(2016, 8, 26, 20, 23, tzinfo=pytz.utc).astimezone(local_tz): { 'A': 10481.0, 'B': 12, 'C': 'text' }, datetime.datetime(2016, 8, 26, 20, 24, tzinfo=pytz.utc).astimezone(local_tz): { 'A': 10480.5, 'B': 13, 'C': 'text' } } df = pandas.DataFrame(d).T df2 = df.set_index(['C'], append=True) ``` #### output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 3.5.1.final.0 python-bits: 64 OS: Linux OS-release: 4.6.6-300.fc24.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.utf8 pandas: 0.18.0 nose: None pip: 8.0.2 setuptools: 20.1.1 Cython: 0.23.4 numpy: 1.11.0 scipy: 0.16.1 statsmodels: 0.6.1 xarray: None IPython: 3.2.1 sphinx: None patsy: 0.4.1 dateutil: 2.5.2 pytz: 2016.6.1 blosc: None bottleneck: 0.6.0 tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.2rc2 openpyxl: None xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None 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/14106/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14106/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14107
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14107/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14107/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14107/events
https://github.com/pandas-dev/pandas/issues/14107
173,641,221
MDU6SXNzdWUxNzM2NDEyMjE=
14,107
pandas.core.groupby.SeriesGroupBy.hist doesn't propagate **kwargs
{ "avatar_url": "https://avatars.githubusercontent.com/u/3472343?v=4", "events_url": "https://api.github.com/users/yonatanp/events{/privacy}", "followers_url": "https://api.github.com/users/yonatanp/followers", "following_url": "https://api.github.com/users/yonatanp/following{/other_user}", "gists_url": "https://api.github.com/users/yonatanp/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yonatanp", "id": 3472343, "login": "yonatanp", "node_id": "MDQ6VXNlcjM0NzIzNDM=", "organizations_url": "https://api.github.com/users/yonatanp/orgs", "received_events_url": "https://api.github.com/users/yonatanp/received_events", "repos_url": "https://api.github.com/users/yonatanp/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yonatanp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yonatanp/subscriptions", "type": "User", "url": "https://api.github.com/users/yonatanp" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" }, { "color": "AD7FA8", "default": false, "description": nul...
closed
false
null
[]
null
3
2016-08-28T11:11:42Z
2021-05-01T23:26:12Z
2021-05-01T23:26:11Z
NONE
null
When calling `my_groupby.hist(bins=8, histtype='stepfilled')` I would expect the same behavior as when calling `my_series.hist(bins=8, histtype='stepfilled')` separately for each of the groups. However, while the 'bins' parameter is taken into account, the 'histtype' parameter is ignored and not passed along to matplotlib's implementation. Looking into the code, it appears that `pandas.core.groupby._whitelist_method_generator` only passes along named arguments of the wrapped method (hist in our example). While the signature was fixed to include any `*args` or `**kwargs` arguments (done to fix #8733), they are not passed on. Note: the problem applies to all 'wrappers' generated by _whitelist_method_generator (in addition to 'hist'), and also to any use of `*args` (in addition to `**kwargs`). We are working on a PR and will send it soon. #### output of `pd.show_versions()` commit: None python: 2.7.12.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 24.0.0 Cython: 0.23.4 numpy: 1.11.1 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.0.1 sphinx: 1.3.1 patsy: 0.4.0 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.5.2 matplotlib: 1.5.1 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: 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/14107/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14107/timeline
null
null
null