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
unknown
updated_at
unknown
closed_at
unknown
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/2901
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2901/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2901/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2901/events
https://github.com/pandas-dev/pandas/issues/2901
11,180,899
MDU6SXNzdWUxMTE4MDg5OQ==
2,901
Assign to Series slice of a Panel
{ "avatar_url": "https://avatars.githubusercontent.com/u/3384337?v=4", "events_url": "https://api.github.com/users/joeb1415/events{/privacy}", "followers_url": "https://api.github.com/users/joeb1415/followers", "following_url": "https://api.github.com/users/joeb1415/following{/other_user}", "gists_url": "https://api.github.com/users/joeb1415/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/joeb1415", "id": 3384337, "login": "joeb1415", "node_id": "MDQ6VXNlcjMzODQzMzc=", "organizations_url": "https://api.github.com/users/joeb1415/orgs", "received_events_url": "https://api.github.com/users/joeb1415/received_events", "repos_url": "https://api.github.com/users/joeb1415/repos", "site_admin": false, "starred_url": "https://api.github.com/users/joeb1415/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joeb1415/subscriptions", "type": "User", "url": "https://api.github.com/users/joeb1415" }
[]
closed
false
null
[]
null
3
"2013-02-20T01:23:22Z"
"2013-03-10T18:35:33Z"
"2013-03-10T17:46:42Z"
NONE
null
p = Panel(ones((2, 5, 4)), items=['Item1', 'Item2'], major_axis=date_range('1/1/2000', periods=5), minor_axis=['A', 'B', 'C', 'D']) x = Series([2, 3, 4, 5], index=p.minor_axis) p.ix[0, 0] = 4 # works p.ix[0, 0, :] = x # works p.ix[0, 0] = x # doesn't work pandas.version.version '0.10.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/2901/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2901/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2902
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2902/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2902/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2902/events
https://github.com/pandas-dev/pandas/issues/2902
11,183,346
MDU6SXNzdWUxMTE4MzM0Ng==
2,902
MultiIndex on complex DataFrame.apply
{ "avatar_url": "https://avatars.githubusercontent.com/u/1308430?v=4", "events_url": "https://api.github.com/users/theandygross/events{/privacy}", "followers_url": "https://api.github.com/users/theandygross/followers", "following_url": "https://api.github.com/users/theandygross/following{/other_user}", "gists_url": "https://api.github.com/users/theandygross/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/theandygross", "id": 1308430, "login": "theandygross", "node_id": "MDQ6VXNlcjEzMDg0MzA=", "organizations_url": "https://api.github.com/users/theandygross/orgs", "received_events_url": "https://api.github.com/users/theandygross/received_events", "repos_url": "https://api.github.com/users/theandygross/repos", "site_admin": false, "starred_url": "https://api.github.com/users/theandygross/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/theandygross/subscriptions", "type": "User", "url": "https://api.github.com/users/theandygross" }
[ { "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": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
1
"2013-02-20T03:22:35Z"
"2013-03-28T17:44:22Z"
"2013-03-28T17:44:22Z"
CONTRIBUTOR
null
Seem to be converting MultiIndex into tuples when I do a complex apply: ``` import pandas as pd s = pd.DataFrame([[1,2], [3,4], [5,6]]) s.index = pd.MultiIndex.from_arrays([['a','a','b'], ['c','d','d']]) s.columns = ['col1','col2'] s ``` <table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th></th> <th>col1</th> <th>col2</th> </tr> </thead> <tbody> <tr> <td rowspan="2" valign="top"><strong>a</strong></td> <td><strong>c</strong></td> <td> 1</td> <td> 2</td> </tr> <tr> <td><strong>d</strong></td> <td> 3</td> <td> 4</td> </tr> <tr> <td><strong>b</strong></td> <td><strong>d</strong></td> <td> 5</td> <td> 6</td> </tr> </tbody> </table> ``` s_1 = s.apply(lambda s: pd.Series({'min': s.min(), 'max': s.max()}), 1) ``` <table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th>max</th> <th>min</th> </tr> </thead> <tbody> <tr> <td><strong>(a, c)</strong></td> <td> 2</td> <td> 1</td> </tr> <tr> <td><strong>(a, d)</strong></td> <td> 4</td> <td> 3</td> </tr> <tr> <td><strong>(b, d)</strong></td> <td> 6</td> <td> 5</td> </tr> </tbody> </table>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2902/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2902/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2903
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2903/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2903/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2903/events
https://github.com/pandas-dev/pandas/issues/2903
11,187,594
MDU6SXNzdWUxMTE4NzU5NA==
2,903
MultiIndex xs failure on axis=1
{ "avatar_url": "https://avatars.githubusercontent.com/u/1094464?v=4", "events_url": "https://api.github.com/users/lodagro/events{/privacy}", "followers_url": "https://api.github.com/users/lodagro/followers", "following_url": "https://api.github.com/users/lodagro/following{/other_user}", "gists_url": "https://api.github.com/users/lodagro/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lodagro", "id": 1094464, "login": "lodagro", "node_id": "MDQ6VXNlcjEwOTQ0NjQ=", "organizations_url": "https://api.github.com/users/lodagro/orgs", "received_events_url": "https://api.github.com/users/lodagro/received_events", "repos_url": "https://api.github.com/users/lodagro/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lodagro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lodagro/subscriptions", "type": "User", "url": "https://api.github.com/users/lodagro" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
3
"2013-02-20T07:42:05Z"
"2013-04-17T00:13:10Z"
"2013-03-22T17:37:35Z"
CONTRIBUTOR
null
``` python In [40]: columns = pd.MultiIndex.from_tuples([('a', 'foo'), ('a', 'bar'), ('b', 'hello'), ('b', 'world')], names=['lvl0', 'lvl1']) In [41]: df = pd.DataFrame(np.random.randn(4, 4), columns=columns) In [42]: df Out[42]: lvl0 a b lvl1 foo bar hello world 0 2.560515 1.579242 0.727753 2.207781 1 -0.599632 0.254395 0.784745 0.340575 2 1.262004 0.409085 -0.229616 1.096679 3 1.637929 -0.694670 -0.356355 0.410580 In [43]: df.xs('a', level='lvl0', axis=1) --------------------------------------------------------------------------- Exception Traceback (most recent call last) <...> <...>/lib/python2.7/site-packages/pandas-0.11.0.dev_14a04dd-py2.7-linux-x86_64.egg/pandas/core/internals.pyc in set_axis(self, axis, value) 831 if len(value) != len(cur_axis): 832 raise Exception('Length mismatch (%d vs %d)' --> 833 % (len(value), len(cur_axis))) 834 self.axes[axis] = value 835 Exception: Length mismatch (2 vs 4) In [44]: df.xs('a', axis=1) Out[44]: lvl1 foo bar 0 2.560515 1.579242 1 -0.599632 0.254395 2 1.262004 0.409085 3 1.637929 -0.694670 In [45]: pd.__version__ Out[45]: '0.11.0.dev-14a04dd' ``` ``` [1227][i] uname -a Linux xl-mec-03 2.6.18-308.11.1.el5 #1 SMP Fri Jun 15 15:41:53 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2903/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2903/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2904
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2904/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2904/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2904/events
https://github.com/pandas-dev/pandas/issues/2904
11,191,799
MDU6SXNzdWUxMTE5MTc5OQ==
2,904
df.ix[] inconsistency between axis for MultiIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/1094464?v=4", "events_url": "https://api.github.com/users/lodagro/events{/privacy}", "followers_url": "https://api.github.com/users/lodagro/followers", "following_url": "https://api.github.com/users/lodagro/following{/other_user}", "gists_url": "https://api.github.com/users/lodagro/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lodagro", "id": 1094464, "login": "lodagro", "node_id": "MDQ6VXNlcjEwOTQ0NjQ=", "organizations_url": "https://api.github.com/users/lodagro/orgs", "received_events_url": "https://api.github.com/users/lodagro/received_events", "repos_url": "https://api.github.com/users/lodagro/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lodagro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lodagro/subscriptions", "type": "User", "url": "https://api.github.com/users/lodagro" }
[ { "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": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 278, "created_at": "2013-01-06T03:02:01Z", "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": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)", "due_on": "2022-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/20", "id": 239227, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lMjM5MjI3", "number": 20, "open_issues": 108, "state": "open", "title": "Someday", "updated_at": "2021-08-08T01:48:22Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20" }
11
"2013-02-20T10:29:37Z"
"2017-01-19T22:11:43Z"
"2017-01-19T22:11:43Z"
CONTRIBUTOR
null
``` python In [42]: from itertools import product In [43]: import pandas as pd In [44]: import numpy as np In [45]: index = pd.MultiIndex.from_tuples([t for t in product([10, 20, 30], ['a', 'b'])]) In [46]: df = pd.DataFrame(np.random.randn(6, 6), index, index) In [47]: df Out[47]: 10 20 30 a b a b a b 10 a 0.077368 0.360018 0.649403 -0.221877 -1.527411 0.485647 b 0.890805 -2.142297 0.758411 -1.650710 0.041276 -0.040894 20 a -0.401678 0.481390 -1.080735 0.621861 1.410940 -1.106015 b -0.504422 -1.555415 -0.023859 0.211287 -0.321643 0.140895 30 a -0.118969 -0.432082 -0.888786 1.167191 -1.642356 -0.281661 b -0.580182 2.920769 -0.685617 1.327784 0.691514 -0.692361 ``` Slicing ranges is consistent between both axis. ``` python In [48]: df.ix[10:20, :] Out[48]: 10 20 30 a b a b a b 10 a 0.077368 0.360018 0.649403 -0.221877 -1.527411 0.485647 b 0.890805 -2.142297 0.758411 -1.650710 0.041276 -0.040894 20 a -0.401678 0.481390 -1.080735 0.621861 1.410940 -1.106015 b -0.504422 -1.555415 -0.023859 0.211287 -0.321643 0.140895 In [49]: df.ix[:, 10:20] Out[49]: 10 20 a b a b 10 a 0.077368 0.360018 0.649403 -0.221877 b 0.890805 -2.142297 0.758411 -1.650710 20 a -0.401678 0.481390 -1.080735 0.621861 b -0.504422 -1.555415 -0.023859 0.211287 30 a -0.118969 -0.432082 -0.888786 1.167191 b -0.580182 2.920769 -0.685617 1.327784 ``` This is inconsistent to me: ``` python In [50]: df.ix[10, :] Out[50]: 10 20 30 a b a b a b a 0.077368 0.360018 0.649403 -0.221877 -1.527411 0.485647 b 0.890805 -2.142297 0.758411 -1.650710 0.041276 -0.040894 In [51]: df.ix[:, 10] --------------------------------------------------------------------------- IndexError Traceback (most recent call last) ... IndexError: index out of bounds ``` and this also ``` python In [52]: df.ix[0, :] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) ... KeyError: 0 In [53]: df.ix[:, 0] Out[53]: 10 a 0.077368 b 0.890805 20 a -0.401678 b -0.504422 30 a -0.118969 b -0.580182 Name: (10, a), Dtype: float64 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2904/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2904/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2905
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2905/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2905/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2905/events
https://github.com/pandas-dev/pandas/issues/2905
11,217,123
MDU6SXNzdWUxMTIxNzEyMw==
2,905
Feature request: add a count_uniques function on dataframes
{ "avatar_url": "https://avatars.githubusercontent.com/u/880413?v=4", "events_url": "https://api.github.com/users/spenczar/events{/privacy}", "followers_url": "https://api.github.com/users/spenczar/followers", "following_url": "https://api.github.com/users/spenczar/following{/other_user}", "gists_url": "https://api.github.com/users/spenczar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/spenczar", "id": 880413, "login": "spenczar", "node_id": "MDQ6VXNlcjg4MDQxMw==", "organizations_url": "https://api.github.com/users/spenczar/orgs", "received_events_url": "https://api.github.com/users/spenczar/received_events", "repos_url": "https://api.github.com/users/spenczar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/spenczar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/spenczar/subscriptions", "type": "User", "url": "https://api.github.com/users/spenczar" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 278, "created_at": "2013-01-06T03:02:01Z", "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": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)", "due_on": "2022-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/20", "id": 239227, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lMjM5MjI3", "number": 20, "open_issues": 108, "state": "open", "title": "Someday", "updated_at": "2021-08-08T01:48:22Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20" }
7
"2013-02-20T21:52:07Z"
"2014-05-29T06:11:32Z"
"2014-05-29T06:11:32Z"
NONE
null
I find myself writing this utility over and over in my usual work: ``` python def count_uniques(df, groupby, unique_on): """Takes a dataframe, groups it by groupby, and counts the unique values of unique_on.""" return df.groupby(groupby).agg({unique_on: lambda x: len(x.unique())}) ``` This is easiest to explain by example. Suppose I had a dataframe with two columns, both with repeated values, and I want to count the number of unique values in one column rela ``` python In [1]: from analysis import count_uniques In [2]: import pandas as pd In [3]: df = pd.DataFrame(pd.np.array([['CBS', 'Old Spice'], ['ABC', 'Budweiser'], ['CBS', 'Budweiser'], ['CBS', 'Budweiser'], ['ESPN', 'Burger King'], ['Disney', 'Budweiser'], ['ESPN', None]]), columns=["Channel", "Advertiser"]) In [4]: count_uniques(df, "Channel", "Advertiser") Out[4]: Advertiser Channel ABC 1 CBS 2 Disney 1 ESPN 2 In [5]: count_uniques(df, "Advertiser", "Channel") Out[5]: Channel Advertiser Budweiser 3 Burger King 1 Old Spice 1 ``` I feel like I should be able to call this right off of the dataframe, as `df.count_uniques("Advertiser", "Channel")`. My particular implementation of the function is not optimized whatsoever and I'm pretty confident there are speedier ways to do this calculation.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2905/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2905/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2906
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2906/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2906/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2906/events
https://github.com/pandas-dev/pandas/issues/2906
11,217,478
MDU6SXNzdWUxMTIxNzQ3OA==
2,906
date_range bug?
{ "avatar_url": "https://avatars.githubusercontent.com/u/963910?v=4", "events_url": "https://api.github.com/users/xdong/events{/privacy}", "followers_url": "https://api.github.com/users/xdong/followers", "following_url": "https://api.github.com/users/xdong/following{/other_user}", "gists_url": "https://api.github.com/users/xdong/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xdong", "id": 963910, "login": "xdong", "node_id": "MDQ6VXNlcjk2MzkxMA==", "organizations_url": "https://api.github.com/users/xdong/orgs", "received_events_url": "https://api.github.com/users/xdong/received_events", "repos_url": "https://api.github.com/users/xdong/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xdong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xdong/subscriptions", "type": "User", "url": "https://api.github.com/users/xdong" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
2
"2013-02-20T22:00:55Z"
"2013-03-13T23:53:50Z"
"2013-03-13T23:53:50Z"
NONE
null
If 'start' is a timezone-aware datetime.datetime or Timestamp, then it will get shifted by several hours. ``` python In [1]: from pandas import * In [2]: start = Timestamp('20130220 10:00', tz='US/Eastern') In [3]: start Out[3]: <Timestamp: 2013-02-20 10:00:00-0500 EST, tz=US/Eastern> In [4]: dr = date_range(start, periods=2) In [5]: dr Out[5]: <class 'pandas.tseries.index.DatetimeIndex'> [2013-02-20 15:00:00, 2013-02-21 15:00:00] Length: 2, Freq: D, Timezone: US/Eastern In [6]: dr[0] Out[6]: <Timestamp: 2013-02-20 15:00:00-0500 EST, tz=US/Eastern> ``` It seems that start' time component was treated as if it's UTC by date_range.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2906/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2906/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2907
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2907/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2907/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2907/events
https://github.com/pandas-dev/pandas/issues/2907
11,219,941
MDU6SXNzdWUxMTIxOTk0MQ==
2,907
BUG: df.reindex() does not return a copy
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
1
"2013-02-20T23:05:39Z"
"2013-02-21T19:32:29Z"
"2013-02-21T19:32:29Z"
CONTRIBUTOR
null
reindexing with all axes of None right now returns the same object copy is not triggered, even though copy flag is True by default in the same situation align will copy, and reindex_axis will as well should I fix this? or leave as is?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2907/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2907/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2908
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2908/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2908/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2908/events
https://github.com/pandas-dev/pandas/issues/2908
11,222,690
MDU6SXNzdWUxMTIyMjY5MA==
2,908
Feature request: specify chunksize for read_sql
{ "avatar_url": "https://avatars.githubusercontent.com/u/2013388?v=4", "events_url": "https://api.github.com/users/dhstack/events{/privacy}", "followers_url": "https://api.github.com/users/dhstack/followers", "following_url": "https://api.github.com/users/dhstack/following{/other_user}", "gists_url": "https://api.github.com/users/dhstack/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dhstack", "id": 2013388, "login": "dhstack", "node_id": "MDQ6VXNlcjIwMTMzODg=", "organizations_url": "https://api.github.com/users/dhstack/orgs", "received_events_url": "https://api.github.com/users/dhstack/received_events", "repos_url": "https://api.github.com/users/dhstack/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dhstack/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhstack/subscriptions", "type": "User", "url": "https://api.github.com/users/dhstack" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" }, { "color": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
10
"2013-02-21T00:35:13Z"
"2014-10-07T00:15:24Z"
"2014-10-07T00:15:24Z"
NONE
null
It would be helpful to iterate through rows returned from an sql query (sqlite specifically) chunk by chunk just as is done in the read_csv and text files function as described here: http://pandas.pydata.org/pandas-docs/stable/io.html#iterating-through-files-chunk-by-chunk The return value should be an iterable object. This will prevent queries from returning too large an amount of data, (possibly) exceeding the system memory.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2908/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2908/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2909
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2909/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2909/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2909/events
https://github.com/pandas-dev/pandas/issues/2909
11,243,535
MDU6SXNzdWUxMTI0MzUzNQ==
2,909
applymap and misc/float columns
{ "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
7
"2013-02-21T14:50:50Z"
"2013-02-21T19:09:15Z"
"2013-02-21T19:07:07Z"
CONTRIBUTOR
null
This works as expected in latest pandas: ``` > df = pandas.DataFrame(data=[1,"a"]) > print(df) 0 0 1 1 a > print(df.applymap(lambda x: x)) 0 0 1 1 a ``` This does not (note the float "1." instead if "1"): ``` > df = pandas.DataFrame(data=[1.,"a"]) > print(df) 0 0 1 1 a > print(df.applymap(lambda x: x)) 0 0 1 1 NaN ``` This is a problem in statsmodels/statsmodels#636 pandas.**version** -> '0.11.0.dev-14a04dd'
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2909/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2909/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2910
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2910/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2910/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2910/events
https://github.com/pandas-dev/pandas/pull/2910
11,248,911
MDExOlB1bGxSZXF1ZXN0NDI1NzAxNw==
2,910
BUG: incorrect default in df.convert_objects was converting object types (#2909)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
2
"2013-02-21T16:50:34Z"
"2014-06-22T07:36:52Z"
"2013-02-23T01:19:53Z"
CONTRIBUTOR
null
showing up in applymap (#2909)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2910/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2910/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2910.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2910", "merged_at": "2013-02-23T01:19:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2910.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2910" }
https://api.github.com/repos/pandas-dev/pandas/issues/2911
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2911/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2911/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2911/events
https://github.com/pandas-dev/pandas/issues/2911
11,250,908
MDU6SXNzdWUxMTI1MDkwOA==
2,911
Slicing a dataframe for rows by set of index labels returns empty rows for missing labels, feature or bug?
{ "avatar_url": "https://avatars.githubusercontent.com/u/849427?v=4", "events_url": "https://api.github.com/users/ruidc/events{/privacy}", "followers_url": "https://api.github.com/users/ruidc/followers", "following_url": "https://api.github.com/users/ruidc/following{/other_user}", "gists_url": "https://api.github.com/users/ruidc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ruidc", "id": 849427, "login": "ruidc", "node_id": "MDQ6VXNlcjg0OTQyNw==", "organizations_url": "https://api.github.com/users/ruidc/orgs", "received_events_url": "https://api.github.com/users/ruidc/received_events", "repos_url": "https://api.github.com/users/ruidc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ruidc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ruidc/subscriptions", "type": "User", "url": "https://api.github.com/users/ruidc" }
[ { "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": "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": "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": "2013-12-30T19:53:14Z", "closed_issues": 1076, "created_at": "2012-11-15T23:33:37Z", "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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)", "due_on": "2013-12-30T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/18", "id": 213925, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels", "node_id": "MDk6TWlsZXN0b25lMjEzOTI1", "number": 18, "open_issues": 0, "state": "closed", "title": "0.13", "updated_at": "2017-07-22T19:00:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18" }
4
"2013-02-21T17:38:18Z"
"2013-09-21T12:21:43Z"
"2013-09-21T12:21:37Z"
CONTRIBUTOR
null
what is the best way to safely slice using multiple index labels? (i.e. not create new NaN rows?) is the best way to do this to intersect the index with the searched values before searching? ``` import pandas df = pandas.DataFrame([[1,2], [3,4]], index=['X', 'Y'], columns=['A', 'B']) df.ix[['X', 'Z'], :] Out[1]: A B X 1 2 Z NaN NaN < -- why does this not error? ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2911/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2911/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2912
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2912/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2912/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2912/events
https://github.com/pandas-dev/pandas/issues/2912
11,253,587
MDU6SXNzdWUxMTI1MzU4Nw==
2,912
Groupby and transform on DataFrame produces FutureWarning
{ "avatar_url": "https://avatars.githubusercontent.com/u/168236?v=4", "events_url": "https://api.github.com/users/abielr/events{/privacy}", "followers_url": "https://api.github.com/users/abielr/followers", "following_url": "https://api.github.com/users/abielr/following{/other_user}", "gists_url": "https://api.github.com/users/abielr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abielr", "id": 168236, "login": "abielr", "node_id": "MDQ6VXNlcjE2ODIzNg==", "organizations_url": "https://api.github.com/users/abielr/orgs", "received_events_url": "https://api.github.com/users/abielr/received_events", "repos_url": "https://api.github.com/users/abielr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abielr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abielr/subscriptions", "type": "User", "url": "https://api.github.com/users/abielr" }
[ { "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": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
2
"2013-02-21T18:45:31Z"
"2013-03-20T01:22:50Z"
"2013-03-20T01:22:50Z"
NONE
null
Using pandas 0.10.1: ``` df1 = pd.DataFrame(np.random.randn(10)) df1.groupby(np.arange(len(df1))).transform(lambda x: x) ``` produces: ``` FutureWarning: rename with inplace=True will return None from pandas 0.11 onward. ``` In the release notes for 0.10.1 I saw the changes regarding functions with the `inplace` option. However, it didn't seem like the above code should naturally lead to such a warning. No warning is produced if the same operation is done on a Series.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2912/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2912/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2913
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2913/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2913/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2913/events
https://github.com/pandas-dev/pandas/issues/2913
11,270,634
MDU6SXNzdWUxMTI3MDYzNA==
2,913
groupby float column with as_index=False will return an object column
{ "avatar_url": "https://avatars.githubusercontent.com/u/2628740?v=4", "events_url": "https://api.github.com/users/zhangruoyu/events{/privacy}", "followers_url": "https://api.github.com/users/zhangruoyu/followers", "following_url": "https://api.github.com/users/zhangruoyu/following{/other_user}", "gists_url": "https://api.github.com/users/zhangruoyu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zhangruoyu", "id": 2628740, "login": "zhangruoyu", "node_id": "MDQ6VXNlcjI2Mjg3NDA=", "organizations_url": "https://api.github.com/users/zhangruoyu/orgs", "received_events_url": "https://api.github.com/users/zhangruoyu/received_events", "repos_url": "https://api.github.com/users/zhangruoyu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zhangruoyu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhangruoyu/subscriptions", "type": "User", "url": "https://api.github.com/users/zhangruoyu" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": "2013-12-30T19:53:14Z", "closed_issues": 1076, "created_at": "2012-11-15T23:33:37Z", "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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)", "due_on": "2013-12-30T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/18", "id": 213925, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels", "node_id": "MDk6TWlsZXN0b25lMjEzOTI1", "number": 18, "open_issues": 0, "state": "closed", "title": "0.13", "updated_at": "2017-07-22T19:00:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18" }
2
"2013-02-22T01:43:13Z"
"2013-09-21T14:17:43Z"
"2013-09-21T14:17:43Z"
NONE
null
I'm using version 0.10.0 ``` import pandas as pd import numpy as np df = pd.DataFrame({ "A":np.random.randint(0, 5, 20).astype(float), "B":np.random.random(20)}) df2 = df.groupby("A", as_index=False).mean() print df2.dtypes ``` the result is ``` A object B float64 ``` I think this is because float index use object array, but I think the dtype of the result should be float64. Compare this with apply: ``` df2 = df.groupby("A", as_index=False).apply(lambda x:x.mean()) print df2.dtypes ``` the result is ``` A float64 B float64 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2913/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2913/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2914
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2914/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2914/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2914/events
https://github.com/pandas-dev/pandas/pull/2914
11,270,869
MDExOlB1bGxSZXF1ZXN0NDI2NzI1MQ==
2,914
BUG: support data column indexers that have a large numbers of values
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
0
"2013-02-22T01:53:33Z"
"2014-06-13T05:35:05Z"
"2013-02-23T16:43:51Z"
CONTRIBUTOR
null
This is conceptually (and implemented) like an `isin` You can give a list of values that you want for a particular column, rather than a boolean expression. This was already speced in the API, just not implemented correctly! Something like this ``` store.select('df',[pd.Term('users',[ 'a%03d' % i for i in xrange(60) ])]) ``` originally from the mailing list https://groups.google.com/forum/?fromgroups#!topic/pystatsmodels/oTjfOb0gazw
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2914/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2914/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2914.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2914", "merged_at": "2013-02-23T16:43:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2914.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2914" }
https://api.github.com/repos/pandas-dev/pandas/issues/2915
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2915/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2915/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2915/events
https://github.com/pandas-dev/pandas/pull/2915
11,301,327
MDExOlB1bGxSZXF1ZXN0NDI4MTA2Mw==
2,915
CLN: refactor of frame.py/panel.py to move common code to generic.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" } ]
closed
false
null
[]
{ "closed_at": "2013-12-30T19:53:14Z", "closed_issues": 1076, "created_at": "2012-11-15T23:33:37Z", "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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)", "due_on": "2013-12-30T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/18", "id": 213925, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels", "node_id": "MDk6TWlsZXN0b25lMjEzOTI1", "number": 18, "open_issues": 0, "state": "closed", "title": "0.13", "updated_at": "2017-07-22T19:00:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18" }
4
"2013-02-22T19:27:53Z"
"2013-04-03T19:03:07Z"
"2013-04-03T19:03:07Z"
CONTRIBUTOR
null
- Refactor of frame.py/panel.py to move common code to generic.py all axis creation and manipulation code is now common (except for Series) - added _setup_axes to create generic NDFrame structures - moved methods (some methods moved from series as well) - from_axes,_wrap_array,axes,ix,shape,empty,swapaxes,transpose,pop - **str**,**bytes**,**repr** - **iter**,keys,**contains**,**len**,**neg**,**invert** - convert_objects,as_blocks,as_matrix,values - **getstate**,**setstate** (though compat remains in frame/panel) - **getattr**,**setattr** - _indexed_same,reindex_like,reindex,align,where,mask - filter (added axis argument to selectively filter on a different axis) - reindex : changed a fair amount - truncate (moved to become part of PandasObject) - API Changes in Panel which make Panel more consistent with DataFrame - swapaxes on a Panel with the same axes specified now return a copy - support attribute access for setting - filter supports same api as original DataFrame filter - API change in that reindex called with no arguments will now return a copy of the input object (e.g. `df.reindex()`) _performance is comparable to the existing codebase_ Reasoning for this change: 1. this is in preparation for a change in series to sub-class NDFrame, rather than ndarray directly, with proper support for BlockManager. _this will also theoretically allow a way to do `integer NaNs`, via a mask in the IntBlock_ 2. preparation for adding SparseBlocks to BlockManager 3. future changes/additions in indexing will be more straightforward, e.g. adding an integer like `ix` can be done, hopefully in one place 4. future API compatibiliy across objects (e.g. won't have to add methods to both Frame and Panel, and there API can be pretty consistent)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2915/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2915/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2915.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2915", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/2915.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2915" }
https://api.github.com/repos/pandas-dev/pandas/issues/2916
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2916/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2916/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2916/events
https://github.com/pandas-dev/pandas/issues/2916
11,324,756
MDU6SXNzdWUxMTMyNDc1Ng==
2,916
Ongoing: Fixing docstrings
{ "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 278, "created_at": "2013-01-06T03:02:01Z", "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": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)", "due_on": "2022-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/20", "id": 239227, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lMjM5MjI3", "number": 20, "open_issues": 108, "state": "open", "title": "Someday", "updated_at": "2021-08-08T01:48:22Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20" }
11
"2013-02-23T20:20:45Z"
"2019-01-01T17:28:25Z"
"2019-01-01T17:28:25Z"
NONE
null
Just pushed `scripts/find_undoc_args.py`. putting this here for the occasional drive-by contributor, and newcomers who would appreciate an opportunity to make a "low-risk" first PR. - [x] 1) [pandas/compat/scipy.py:8 (scoreatpercentile())](https://github.com/pydata/pandas/blob/master/pandas/compat/scipy.py#L8) - **Missing**[1/4]: ['interpolation_method'] **Extra**(?): ['interpolation'] - [ ] 2) [pandas/core/algorithms.py:105 (factorize())](https://github.com/pydata/pandas/blob/master/pandas/core/algorithms.py#L105) - **Missing**[1/4]: ['na_sentinel'] - [ ] 3) [pandas/core/format.py:1287 (set_printoptions())](https://github.com/pydata/pandas/blob/master/pandas/core/format.py#L1287) - **Missing**[3/12]: ['max_colwidth', 'colheader_justify', 'encoding'] - [x] 4) [pandas/core/frame.py:5714 (boxplot())](https://github.com/pydata/pandas/blob/master/pandas/core/frame.py#L5714) - **Missing**[3/6]: ['ax', 'grid', 'rot'] **Extra**(?): ['data'] - [x] 5) [pandas/core/generic.py:1005 (truncate())](https://github.com/pydata/pandas/blob/master/pandas/core/generic.py#L1005) - **Missing**[1/3]: ['copy'] - [ ] 6) [pandas/core/groupby.py:529 (groupby())](https://github.com/pydata/pandas/blob/master/pandas/core/groupby.py#L529) - **Missing**[1/2]: ['by'] **Extra**(?): ['groupings', 'axis', 'exclusions', 'name', 'level'] - [x] 7) [pandas/core/reshape.py:601 (lreshape())](https://github.com/pydata/pandas/blob/master/pandas/core/reshape.py#L601) - **Missing**[1/4]: ['label'] - [x] 8) [pandas/core/reshape.py:725 (make_axis_dummies())](https://github.com/pydata/pandas/blob/master/pandas/core/reshape.py#L725) - **Missing**[1/3]: ['frame'] **Extra**(?): ['call'] - [x] 9) [pandas/stats/math.py:93 (calc_F())](https://github.com/pydata/pandas/blob/master/pandas/stats/math.py#L93) - **Missing**[1/6]: ['R'] - [x] 10) [pandas/stats/moments.py:804 (expanding_apply())](https://github.com/pydata/pandas/blob/master/pandas/stats/moments.py#L804) - **Missing**[1/6]: ['time_rule'] - [x] 11) [pandas/stats/moments.py:721 (expanding_count())](https://github.com/pydata/pandas/blob/master/pandas/stats/moments.py#L721) - **Missing**[1/4]: ['time_rule'] - [x] 12) [pandas/stats/moments.py:741 (expanding_quantile())](https://github.com/pydata/pandas/blob/master/pandas/stats/moments.py#L741) - **Missing**[1/6]: ['time_rule'] - [x] 13) [pandas/stats/moments.py:556 (rolling_apply())](https://github.com/pydata/pandas/blob/master/pandas/stats/moments.py#L556) - **Missing**[1/7]: ['time_rule'] - [x] 14) [pandas/stats/moments.py:128 (rolling_count())](https://github.com/pydata/pandas/blob/master/pandas/stats/moments.py#L128) - **Missing**[1/5]: ['time_rule'] - [x] 15) [pandas/stats/moments.py:528 (rolling_quantile())](https://github.com/pydata/pandas/blob/master/pandas/stats/moments.py#L528) - **Missing**[1/7]: ['time_rule'] - [x] 16) [pandas/stats/moments.py:584 (rolling_window())](https://github.com/pydata/pandas/blob/master/pandas/stats/moments.py#L584) - **Missing**[2/9]: ['time_rule', 'axis'] - [x] 17) [pandas/stats/moments.py:256 (_rolling_moment())](https://github.com/pydata/pandas/blob/master/pandas/stats/moments.py#L256) - **Missing**[1/8]: ['time_rule'] - [x] 18) [pandas/stats/ols.py:1243 (_filter_data())](https://github.com/pydata/pandas/blob/master/pandas/stats/ols.py#L1243) - **Missing**[1/3]: ['weights'] - [x] 19) [pandas/tools/plotting.py:96 (scatter_matrix())](https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L96) - **Missing**[2/7]: ['marker', 'frame'] - [x] 20) [pandas/tools/plotting.py:1811 (boxplot_frame_groupby())](https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L1811) - **Missing**[3/7]: ['grouped', 'grid', 'figsize'] - [x] 21) [pandas/tools/plotting.py:1981 (_subplots())](https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L1981) - **Missing**[1/9]: ['data'] **Extra**(?): ['fig_kw'] - [x] 22) [pandas/tools/plotting.py:307 (andrews_curves())](https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L307) - **Missing**[1/4]: ['ax'] - [x] 23) [pandas/tools/plotting.py:1545 (boxplot())](https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L1545) - **Missing**[3/8]: ['ax', 'grid', 'figsize'] - [x] 24) [pandas/tools/plotting.py:1671 (hist_frame())](https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L1671) - **Missing**[3/11]: ['column', 'data', 'by'] - [ ] 25) [pandas/tools/plotting.py:1358 (plot_frame())](https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L1358) - **Missing**[3/24]: ['frame', 'fontsize', 'figsize'] **Extra**(?): ['barh', 'bar', 'stacked'] - [ ] 26) [pandas/tools/plotting.py:1467 (plot_series())](https://github.com/pydata/pandas/blob/master/pandas/tools/plotting.py#L1467) - **Missing**[1/16]: ['series'] **Extra**(?): ['barh', 'bar'] - [ ] 27) [pandas/tools/tile.py:14 (cut())](https://github.com/pydata/pandas/blob/master/pandas/tools/tile.py#L14) - **Missing**[2/7]: ['include_lowest', 'precision'] - [ ] 28) [pandas/tools/tile.py:104 (qcut())](https://github.com/pydata/pandas/blob/master/pandas/tools/tile.py#L104) - **Missing**[1/5]: ['precision'] - [x] 29) [pandas/tseries/frequencies.py:741 (infer_freq())](https://github.com/pydata/pandas/blob/master/pandas/tseries/frequencies.py#L741) - **Missing**[1/2]: ['warn'] - [x] 30) [pandas/tseries/offsets.py:1163 (generate_range())](https://github.com/pydata/pandas/blob/master/pandas/tseries/offsets.py#L1163) - **Missing**[2/5]: ['time_rule', 'offset'] - [x] 31) [pandas/tseries/tools.py:51 (to_datetime())](https://github.com/pydata/pandas/blob/master/pandas/tseries/tools.py#L51) - **Missing**[3/6]: ['box', 'dayfirst', 'format']
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2916/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2916/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2917
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2917/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2917/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2917/events
https://github.com/pandas-dev/pandas/pull/2917
11,325,890
MDExOlB1bGxSZXF1ZXN0NDI5MDkzMg==
2,917
DOC: add "kde" and "density" to plot kind docstring
{ "avatar_url": "https://avatars.githubusercontent.com/u/746408?v=4", "events_url": "https://api.github.com/users/gdraps/events{/privacy}", "followers_url": "https://api.github.com/users/gdraps/followers", "following_url": "https://api.github.com/users/gdraps/following{/other_user}", "gists_url": "https://api.github.com/users/gdraps/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gdraps", "id": 746408, "login": "gdraps", "node_id": "MDQ6VXNlcjc0NjQwOA==", "organizations_url": "https://api.github.com/users/gdraps/orgs", "received_events_url": "https://api.github.com/users/gdraps/received_events", "repos_url": "https://api.github.com/users/gdraps/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gdraps/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gdraps/subscriptions", "type": "User", "url": "https://api.github.com/users/gdraps" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
1
"2013-02-23T21:51:01Z"
"2013-09-19T07:56:45Z"
"2013-02-23T22:07:36Z"
CONTRIBUTOR
null
Changes accepted `kind` parameter values from `{'line', 'bar', 'barh'}` to `{'line', 'bar', 'barh', 'kde', 'density'}`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2917/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2917/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2917.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2917", "merged_at": "2013-02-23T22:07:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2917.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2917" }
https://api.github.com/repos/pandas-dev/pandas/issues/2918
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2918/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2918/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2918/events
https://github.com/pandas-dev/pandas/pull/2918
11,326,181
MDExOlB1bGxSZXF1ZXN0NDI5MTAyOA==
2,918
Verbose info configuration
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
16
"2013-02-23T22:14:52Z"
"2014-06-21T12:31:12Z"
"2013-03-14T04:30:37Z"
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/2918/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2918/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2918.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2918", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/2918.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2918" }
https://api.github.com/repos/pandas-dev/pandas/issues/2919
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2919/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2919/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2919/events
https://github.com/pandas-dev/pandas/pull/2919
11,326,223
MDExOlB1bGxSZXF1ZXN0NDI5MTA0MA==
2,919
ENH: add escape parameter to to_html()
{ "avatar_url": "https://avatars.githubusercontent.com/u/746408?v=4", "events_url": "https://api.github.com/users/gdraps/events{/privacy}", "followers_url": "https://api.github.com/users/gdraps/followers", "following_url": "https://api.github.com/users/gdraps/following{/other_user}", "gists_url": "https://api.github.com/users/gdraps/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gdraps", "id": 746408, "login": "gdraps", "node_id": "MDQ6VXNlcjc0NjQwOA==", "organizations_url": "https://api.github.com/users/gdraps/orgs", "received_events_url": "https://api.github.com/users/gdraps/received_events", "repos_url": "https://api.github.com/users/gdraps/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gdraps/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gdraps/subscriptions", "type": "User", "url": "https://api.github.com/users/gdraps" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
15
"2013-02-23T22:17:49Z"
"2014-06-13T07:22:05Z"
"2013-04-10T07:34:26Z"
CONTRIBUTOR
null
Treating DataFrame content as plain text, rather than HTML markup, by escaping everything (#2617) seems like the right default for `to_html()`, however, if a DataFrame contains HTML ([example](http://stackoverflow.com/questions/14627380/pandas-html-output-with-conditional-formatting)) or text already HTML escaped, it results in either unwanted escaping or double-escaping. Changes in this PR: - make HTML escaping programmable through a new `to_html()` parameter named `escape` (default True), allowing users to restore old `to_html()` behavior (<=0.10.0) by setting `escape=False`. - add `&` to the list of HTML chars escaped, so strings that happen to contain HTML escape sequences or reserved entities, such as `"&lt;"`, are displayed properly.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2919/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2919/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2919.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2919", "merged_at": "2013-04-10T07:34:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2919.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2919" }
https://api.github.com/repos/pandas-dev/pandas/issues/2920
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2920/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2920/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2920/events
https://github.com/pandas-dev/pandas/pull/2920
11,328,540
MDExOlB1bGxSZXF1ZXN0NDI5MTc3NA==
2,920
BLD: fixed file modes
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-02-24T02:03:50Z"
"2013-02-24T02:17:44Z"
"2013-02-24T02:07:10Z"
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2920/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2920/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2920.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2920", "merged_at": "2013-02-24T02:07:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2920.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2920" }
https://api.github.com/repos/pandas-dev/pandas/issues/2921
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2921/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2921/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2921/events
https://github.com/pandas-dev/pandas/pull/2921
11,335,475
MDExOlB1bGxSZXF1ZXN0NDI5Mzc1OQ==
2,921
ENH: change flatten to ravel (in internals/pytables)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-02-24T15:08:00Z"
"2013-02-25T12:30:33Z"
"2013-02-25T12:30:33Z"
CONTRIBUTOR
null
- micro-tweak yields small but non-zero perf gains, as ravel doesn't copy uncessarily - added frame_to_csv_mixed to vbench
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2921/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2921/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2921.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2921", "merged_at": "2013-02-25T12:30:33Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2921.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2921" }
https://api.github.com/repos/pandas-dev/pandas/issues/2922
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2922/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2922/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2922/events
https://github.com/pandas-dev/pandas/pull/2922
11,346,103
MDExOlB1bGxSZXF1ZXN0NDI5NzEzMg==
2,922
ENH: add .iloc attribute to provide location-based indexing
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
122
"2013-02-25T03:49:56Z"
"2014-07-28T19:25:24Z"
"2013-03-07T04:17:17Z"
CONTRIBUTOR
null
Updated to include new indexers: `.iloc` for pure integer based indexing `.loc` for pure label based indexing `.iat` for fast scalar access by integer location `.at` for fast scalar access by label location Much updated docs, test suite, and example In the new `test_indexing.py`, you can change the `_verbose` flag to True to get more test output anybody interested can investigate a couple of cases marked `no comp` which are where the new indexing behavior differs from `.ix` (or `.ix` doesn't work); this doesn't include cases where a `KeyError/IndexError` is raised (but `.ix` let's these thru) Also, I wrote `.iloc` on top of `.ix` but most methods are overriden, it is possible that this let's something thru that should not, so pls take a look _Please try this out and let me know if any of the docs or interface semantics are off_
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2922/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2922/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2922.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2922", "merged_at": "2013-03-07T04:17:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2922.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2922" }
https://api.github.com/repos/pandas-dev/pandas/issues/2923
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2923/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2923/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2923/events
https://github.com/pandas-dev/pandas/issues/2923
11,349,945
MDU6SXNzdWUxMTM0OTk0NQ==
2,923
Bug with plot of a non-monotonic Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/2735044?v=4", "events_url": "https://api.github.com/users/yarivm/events{/privacy}", "followers_url": "https://api.github.com/users/yarivm/followers", "following_url": "https://api.github.com/users/yarivm/following{/other_user}", "gists_url": "https://api.github.com/users/yarivm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarivm", "id": 2735044, "login": "yarivm", "node_id": "MDQ6VXNlcjI3MzUwNDQ=", "organizations_url": "https://api.github.com/users/yarivm/orgs", "received_events_url": "https://api.github.com/users/yarivm/received_events", "repos_url": "https://api.github.com/users/yarivm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarivm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarivm/subscriptions", "type": "User", "url": "https://api.github.com/users/yarivm" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2013-12-30T19:53:14Z", "closed_issues": 1076, "created_at": "2012-11-15T23:33:37Z", "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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)", "due_on": "2013-12-30T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/18", "id": 213925, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels", "node_id": "MDk6TWlsZXN0b25lMjEzOTI1", "number": 18, "open_issues": 0, "state": "closed", "title": "0.13", "updated_at": "2017-07-22T19:00:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18" }
2
"2013-02-25T08:10:10Z"
"2013-09-21T15:10:08Z"
"2013-09-21T15:10:08Z"
NONE
null
Plotting a Series, whose index is not monotonic, gives wrong plot. The following example gives markers at 4 different positions, whereas it should be 2 different positions. ``` In [168]: x1 Out[168]: 2012-07-03 17:16:07+00:00 1.784596 2012-07-03 15:42:00+00:00 1.786576 In [169]: x1.sort_index().plot(style='g^') Out[169]: <matplotlib.axes.AxesSubplot at 0x12fb2cc0> In [170]: x1.plot(style='bv') Out[170]: <matplotlib.axes.AxesSubplot at 0x12fb2cc0> In [171]: plt.show() ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2923/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2923/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2924
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2924/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2924/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2924/events
https://github.com/pandas-dev/pandas/issues/2924
11,354,483
MDU6SXNzdWUxMTM1NDQ4Mw==
2,924
Multilevel indexing with .to_latex() method merges two index columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/2738602?v=4", "events_url": "https://api.github.com/users/jobingr/events{/privacy}", "followers_url": "https://api.github.com/users/jobingr/followers", "following_url": "https://api.github.com/users/jobingr/following{/other_user}", "gists_url": "https://api.github.com/users/jobingr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jobingr", "id": 2738602, "login": "jobingr", "node_id": "MDQ6VXNlcjI3Mzg2MDI=", "organizations_url": "https://api.github.com/users/jobingr/orgs", "received_events_url": "https://api.github.com/users/jobingr/received_events", "repos_url": "https://api.github.com/users/jobingr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jobingr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jobingr/subscriptions", "type": "User", "url": "https://api.github.com/users/jobingr" }
[]
closed
false
null
[]
null
10
"2013-02-25T10:58:47Z"
"2013-02-27T19:15:04Z"
"2013-02-27T15:44:06Z"
NONE
null
using Release 0.10.1 using the .to_latex method on a multilevel frame (specifically using a pivot_table) merges the two index columns so that it does not render correctly in latex. Looks like it is missing the & for blank cells in index. and also an & for the columns. Manually inserted those in output and it fixes problem
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2924/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2924/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2925
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2925/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2925/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2925/events
https://github.com/pandas-dev/pandas/pull/2925
11,361,929
MDExOlB1bGxSZXF1ZXN0NDMwNDMwOQ==
2,925
ENH: numexpr on boolean frames
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
null
26
"2013-02-25T14:49:58Z"
"2014-06-13T03:30:45Z"
"2013-03-09T19:42:52Z"
CONTRIBUTOR
null
simple usage of using numexpr on boolean type frame comparison ``` name indexing_dataframe_boolean 13.3200 125.3521 0.1063 frame_mult 21.7157 36.6353 0.5928 frame_add 22.0432 36.5021 0.6039 frame_multi_and 385.4241 407.4359 0.9460 ``` - optional use of numexpr (though out to suggest it highly) - example usage, many more cases like this _frame_multi_and is the case we are talking about below, a boolean express anded with another, can only optimize each sub-expression, and not the 3 terms together_ original issue is #724 here some runs (on travis ci), for these 4 routines - with no numexpr (no_ne) - with numexpr single threaded (_st) - with numexpr (no suffix) So numexpr helps in boolean case with and w/o parallelization add/multiply the parallelization helps (and just numexpr doesn't do much) ``` frame_mult : 27.0671 [ms] frame_mult_st : 85.1929 [ms] frame_mult_no_ne : 86.2602 [ms] frame_add : 26.3325 [ms] frame_add_st : 74.8805 [ms] frame_add_no_ne : 73.9357 [ms] indexing_dataframe_boolean : 15.0413 [ms] indexing_dataframe_boolean_st : 25.8873 [ms] indexing_dataframe_boolean_no_ne : 288.4722 [ms] frame_multi_and : 637.8641 [ms] frame_multi_and_st : 675.7760 [ms] frame_multi_and_no_ne : 589.3791 [ms] ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2925/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2925/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2925.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2925", "merged_at": "2013-03-09T19:42:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2925.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2925" }
https://api.github.com/repos/pandas-dev/pandas/issues/2926
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2926/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2926/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2926/events
https://github.com/pandas-dev/pandas/issues/2926
11,369,083
MDU6SXNzdWUxMTM2OTA4Mw==
2,926
date_range with a given timezone fails if the start argument also has a timezone.
{ "avatar_url": "https://avatars.githubusercontent.com/u/31669?v=4", "events_url": "https://api.github.com/users/Moisan/events{/privacy}", "followers_url": "https://api.github.com/users/Moisan/followers", "following_url": "https://api.github.com/users/Moisan/following{/other_user}", "gists_url": "https://api.github.com/users/Moisan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Moisan", "id": 31669, "login": "Moisan", "node_id": "MDQ6VXNlcjMxNjY5", "organizations_url": "https://api.github.com/users/Moisan/orgs", "received_events_url": "https://api.github.com/users/Moisan/received_events", "repos_url": "https://api.github.com/users/Moisan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Moisan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Moisan/subscriptions", "type": "User", "url": "https://api.github.com/users/Moisan" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
0
"2013-02-25T17:23:56Z"
"2013-03-28T05:35:58Z"
"2013-03-28T05:35:58Z"
CONTRIBUTOR
null
I am using pandas version 0.11.0.dev-eb3134f This code will raise [this assert](https://github.com/pydata/pandas/blob/master/pandas/tseries/index.py#L303-304) My debugging shows that the code is testing the equality of a timezone object (inferred_tz) to a string (tz). date_range si supposed to receive a string so I think that it is a legit use of date_range. ``` python from pandas import * start = Timestamp('20130220 10:00', tz='US/Eastern') dr = date_range(start, tz='US/Eastern') ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2926/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2926/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2927
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2927/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2927/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2927/events
https://github.com/pandas-dev/pandas/pull/2927
11,369,466
MDExOlB1bGxSZXF1ZXN0NDMwNzg5OA==
2,927
BUG: Fix tz handling in date_range when start arg has tz, #2926
{ "avatar_url": "https://avatars.githubusercontent.com/u/31669?v=4", "events_url": "https://api.github.com/users/Moisan/events{/privacy}", "followers_url": "https://api.github.com/users/Moisan/followers", "following_url": "https://api.github.com/users/Moisan/following{/other_user}", "gists_url": "https://api.github.com/users/Moisan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Moisan", "id": 31669, "login": "Moisan", "node_id": "MDQ6VXNlcjMxNjY5", "organizations_url": "https://api.github.com/users/Moisan/orgs", "received_events_url": "https://api.github.com/users/Moisan/received_events", "repos_url": "https://api.github.com/users/Moisan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Moisan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Moisan/subscriptions", "type": "User", "url": "https://api.github.com/users/Moisan" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
6
"2013-02-25T17:31:11Z"
"2013-03-28T05:35:13Z"
"2013-03-28T05:35:13Z"
CONTRIBUTOR
null
This commit should fix [issue 2926](https://github.com/pydata/pandas/issues/2926).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2927/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2927/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2927.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2927", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/2927.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2927" }
https://api.github.com/repos/pandas-dev/pandas/issues/2928
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2928/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2928/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2928/events
https://github.com/pandas-dev/pandas/issues/2928
11,376,318
MDU6SXNzdWUxMTM3NjMxOA==
2,928
Care with dtype line in Series repr
{ "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" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
13
"2013-02-25T19:36:33Z"
"2013-03-10T17:44:04Z"
"2013-03-10T17:44:04Z"
MEMBER
null
not good for long series. do we really need the dtype anyway? ``` you 12 the 8 and 8 a 7 it 7 for 6 in 6 gcc-40 5 to 5 installed 5 some 4 pip 4 if 4 have 4 is 4 Dtype: int64 ... '-arch' 1 off 1 unless 1 tools 1 know 1 well 1 general 1 another 1 fink 1 laptop 1 don't 1 /usr/bin 1 -arch 1 been 1 re-install 1 Dtype: int64 Length: 167, Dtype: int64 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2928/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2928/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2929
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2929/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2929/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2929/events
https://github.com/pandas-dev/pandas/issues/2929
11,377,541
MDU6SXNzdWUxMTM3NzU0MQ==
2,929
unstack() produces unexpected dtypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/355893?v=4", "events_url": "https://api.github.com/users/heterotopian/events{/privacy}", "followers_url": "https://api.github.com/users/heterotopian/followers", "following_url": "https://api.github.com/users/heterotopian/following{/other_user}", "gists_url": "https://api.github.com/users/heterotopian/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/heterotopian", "id": 355893, "login": "heterotopian", "node_id": "MDQ6VXNlcjM1NTg5Mw==", "organizations_url": "https://api.github.com/users/heterotopian/orgs", "received_events_url": "https://api.github.com/users/heterotopian/received_events", "repos_url": "https://api.github.com/users/heterotopian/repos", "site_admin": false, "starred_url": "https://api.github.com/users/heterotopian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/heterotopian/subscriptions", "type": "User", "url": "https://api.github.com/users/heterotopian" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
{ "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" }
[ { "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" } ]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
1
"2013-02-25T19:55:42Z"
"2013-03-14T00:38:12Z"
"2013-03-14T00:38:12Z"
NONE
null
When I unstack() one level of a DataFrame having only int64 column dtypes (and a MultiIndex created only from int64 values), the result will have float64 columns. This happens even when the unstacked DataFrame does not have any missing data. Is this expected? Is there any way to prevent unstack() from changing the dtypes? Behavior confirmed with pandas 0.8.1 and 0.10.1. ``` In [1]: import pandas as pd In [2]: rows = [[1, 1, 3, 4], ...: [1, 2, 3, 4], ...: [2, 1, 3, 4], ...: [2, 2, 3, 4]] In [3]: df = pd.DataFrame(rows, columns=list('ABCD')) In [4]: print df.dtypes A int64 B int64 C int64 D int64 In [5]: print df A B C D 0 1 1 3 4 1 1 2 3 4 2 2 1 3 4 3 2 2 3 4 In [6]: df2 = df.set_index(['A', 'B']) In [7]: print df2.dtypes C int64 D int64 In [8]: print df2 C D A B 1 1 3 4 2 3 4 2 1 3 4 2 3 4 In [9]: df3 = df2.unstack('B') In [10]: print df3.dtypes B C 1 float64 2 float64 D 1 float64 2 float64 In [11]: print df3 C D B 1 2 1 2 A 1 3 3 4 4 2 3 3 4 4 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2929/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2929/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2930
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2930/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2930/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2930/events
https://github.com/pandas-dev/pandas/pull/2930
11,382,745
MDExOlB1bGxSZXF1ZXN0NDMxMzU4MA==
2,930
BUG: formatting for Series was printing multiple Dtype lines for long display
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
0
"2013-02-25T21:57:41Z"
"2013-03-10T17:06:35Z"
"2013-02-26T02:46:09Z"
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2930/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2930/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2930.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2930", "merged_at": "2013-02-26T02:46:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2930.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2930" }
https://api.github.com/repos/pandas-dev/pandas/issues/2931
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2931/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2931/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2931/events
https://github.com/pandas-dev/pandas/issues/2931
11,385,938
MDU6SXNzdWUxMTM4NTkzOA==
2,931
hdf5 compression breaks on sparse series which have all values censored
{ "avatar_url": "https://avatars.githubusercontent.com/u/275114?v=4", "events_url": "https://api.github.com/users/kforeman/events{/privacy}", "followers_url": "https://api.github.com/users/kforeman/followers", "following_url": "https://api.github.com/users/kforeman/following{/other_user}", "gists_url": "https://api.github.com/users/kforeman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kforeman", "id": 275114, "login": "kforeman", "node_id": "MDQ6VXNlcjI3NTExNA==", "organizations_url": "https://api.github.com/users/kforeman/orgs", "received_events_url": "https://api.github.com/users/kforeman/received_events", "repos_url": "https://api.github.com/users/kforeman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kforeman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kforeman/subscriptions", "type": "User", "url": "https://api.github.com/users/kforeman" }
[]
closed
false
null
[]
null
3
"2013-02-25T23:22:31Z"
"2013-02-26T03:05:34Z"
"2013-02-26T03:05:34Z"
NONE
null
In pandas 0.10.0 I cannot use hdf5 compression when storing sparse series for which all values are "sparsified"/censored (i.e. the same as fill_value). Compression works fine if there's at least one non-sparse value in each series of a sparse dataframe. And dataframes with series that are completely sparse can be stored in hdf5 without compression. But combining the two, as in case 4 below, breaks: ``` python import pandas as pd import numpy as np # make sparse dataframe df = pd.DataFrame(np.random.binomial(n=1, p=.01, size=(1e4, 1e2))).to_sparse(fill_value=0) # case 1: store uncompressed (works) store1 = pd.HDFStore('sparse_uncompressed.h5') store1['sparse_df'] = df store1.close() # case 2: store compressed (works) store2 = pd.HDFStore('sparse_compressed.h5', complib='zlib', complevel=9) store2['sparse_df'] = df store2.close() # set one series to be completely sparse df[0] = np.zeros(1e4) # case 3: store df with completely sparse series uncompressed (works) store3 = pd.HDFStore('sparser_uncompressed.h5') store3['sparse_df'] = df store3.close() # case 4: try storing df with completely sparse series compressed (fails) store4 = pd.HDFStore('sparser_compressed.h5', complib='zlib', complevel=9) store4['sparse_df'] = df store4.close() ``` The resulting error comes from `tables`: ``` python ValueError: shape parameter cannot have zero-dimensions. ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2931/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2931/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2932
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2932/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2932/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2932/events
https://github.com/pandas-dev/pandas/issues/2932
11,388,553
MDU6SXNzdWUxMTM4ODU1Mw==
2,932
BUG date_parser not accurate with Timestamp
{ "avatar_url": "https://avatars.githubusercontent.com/u/1931852?v=4", "events_url": "https://api.github.com/users/hayd/events{/privacy}", "followers_url": "https://api.github.com/users/hayd/followers", "following_url": "https://api.github.com/users/hayd/following{/other_user}", "gists_url": "https://api.github.com/users/hayd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hayd", "id": 1931852, "login": "hayd", "node_id": "MDQ6VXNlcjE5MzE4NTI=", "organizations_url": "https://api.github.com/users/hayd/orgs", "received_events_url": "https://api.github.com/users/hayd/received_events", "repos_url": "https://api.github.com/users/hayd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hayd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hayd/subscriptions", "type": "User", "url": "https://api.github.com/users/hayd" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" } ]
closed
false
{ "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" }
[ { "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" } ]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
0
"2013-02-26T00:55:57Z"
"2013-03-28T05:28:02Z"
"2013-03-28T05:28:02Z"
CONTRIBUTOR
null
When reading in this DataFrame (with `parse_dates=[[0,1]]`) we see the datetimes have (29000) microseconds but when using `date_parser=pd.Timestamp` we lose this information: ``` from StringIO import StringIO data = """05/31/2012,15:30:00.029,1306.25,1,E,0,,1306.25 05/31/2012,15:30:00.029,1306.25,8,E,0,,1306.25""" ``` ``` In [3]: pd.read_csv(StringIO(data), sep=',', header=None, parse_dates=[[0,1]]) Out[3]: 0_1 2 3 4 5 6 7 0 2012-05-31 15:30:00.029000 1306.25 1 E 0 NaN 1306.25 1 2012-05-31 15:30:00.029000 1306.25 8 E 0 NaN 1306.25 In [4]: pd.read_csv(StringIO(data), sep=',', header=None, parse_dates=[[0,1]], date_parser=pd.Timestamp) Out[4]: 0_1 2 3 4 5 6 7 0 2012-05-31 00:00:00 1306.25 1 E 0 NaN 1306.25 1 2012-05-31 00:00:00 1306.25 8 E 0 NaN 1306.25 ``` _Note: This works accurately individually:_ ``` In [5]: pd.Timestamp('05/31/2012,15:30:00.029') Out[5]: <Timestamp: 2012-05-31 15:30:00.029000> ``` Migrated from [StackOverflow](http://stackoverflow.com/questions/14446744/how-to-efficiently-handle-pandas-read-csv-with-datetime-index).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2932/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2932/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2933
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2933/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2933/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2933/events
https://github.com/pandas-dev/pandas/pull/2933
11,389,362
MDExOlB1bGxSZXF1ZXN0NDMxNzIwNw==
2,933
BUG: fixes issue in HDFStore w.r.t. compressed empty sparse series (GH #2931)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-02-26T01:26:17Z"
"2014-06-27T14:00:23Z"
"2013-02-26T02:44:59Z"
CONTRIBUTOR
null
- SparseSeries that had 0 - len were not saving when the store was compressed Closes GH #2931
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2933/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2933/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2933.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2933", "merged_at": "2013-02-26T02:44:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2933.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2933" }
https://api.github.com/repos/pandas-dev/pandas/issues/2934
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2934/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2934/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2934/events
https://github.com/pandas-dev/pandas/pull/2934
11,390,843
MDExOlB1bGxSZXF1ZXN0NDMxNzk1Nw==
2,934
CLN autopep8 applied to all py files
{ "avatar_url": "https://avatars.githubusercontent.com/u/1931852?v=4", "events_url": "https://api.github.com/users/hayd/events{/privacy}", "followers_url": "https://api.github.com/users/hayd/followers", "following_url": "https://api.github.com/users/hayd/following{/other_user}", "gists_url": "https://api.github.com/users/hayd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hayd", "id": 1931852, "login": "hayd", "node_id": "MDQ6VXNlcjE5MzE4NTI=", "organizations_url": "https://api.github.com/users/hayd/orgs", "received_events_url": "https://api.github.com/users/hayd/received_events", "repos_url": "https://api.github.com/users/hayd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hayd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hayd/subscriptions", "type": "User", "url": "https://api.github.com/users/hayd" }
[]
closed
false
null
[]
null
2
"2013-02-26T02:30:11Z"
"2014-07-04T02:44:01Z"
"2013-03-06T18:02:20Z"
CONTRIBUTOR
null
Round 2 of autopepping (after #2632). :)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2934/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2934/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2934.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2934", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/2934.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2934" }
https://api.github.com/repos/pandas-dev/pandas/issues/2935
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2935/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2935/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2935/events
https://github.com/pandas-dev/pandas/pull/2935
11,393,528
MDExOlB1bGxSZXF1ZXN0NDMxOTA4Mg==
2,935
BUG: timezone offset double counted using date_range and DateTimeIndex.append (fixes #2906, #2938)
{ "avatar_url": "https://avatars.githubusercontent.com/u/2342637?v=4", "events_url": "https://api.github.com/users/stephenwlin/events{/privacy}", "followers_url": "https://api.github.com/users/stephenwlin/followers", "following_url": "https://api.github.com/users/stephenwlin/following{/other_user}", "gists_url": "https://api.github.com/users/stephenwlin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stephenwlin", "id": 2342637, "login": "stephenwlin", "node_id": "MDQ6VXNlcjIzNDI2Mzc=", "organizations_url": "https://api.github.com/users/stephenwlin/orgs", "received_events_url": "https://api.github.com/users/stephenwlin/received_events", "repos_url": "https://api.github.com/users/stephenwlin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stephenwlin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stephenwlin/subscriptions", "type": "User", "url": "https://api.github.com/users/stephenwlin" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
5
"2013-02-26T04:36:16Z"
"2014-08-04T14:34:43Z"
"2013-03-13T23:53:49Z"
CONTRIBUTOR
null
fixes #2906, #2938
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2935/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2935/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2935.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2935", "merged_at": "2013-03-13T23:53:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2935.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2935" }
https://api.github.com/repos/pandas-dev/pandas/issues/2936
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2936/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2936/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2936/events
https://github.com/pandas-dev/pandas/issues/2936
11,395,748
MDU6SXNzdWUxMTM5NTc0OA==
2,936
ENH: option to force slow code path (don't call apply function 1 too many times) in GroupBy.apply
{ "avatar_url": "https://avatars.githubusercontent.com/u/901118?v=4", "events_url": "https://api.github.com/users/Aico/events{/privacy}", "followers_url": "https://api.github.com/users/Aico/followers", "following_url": "https://api.github.com/users/Aico/following{/other_user}", "gists_url": "https://api.github.com/users/Aico/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Aico", "id": 901118, "login": "Aico", "node_id": "MDQ6VXNlcjkwMTExOA==", "organizations_url": "https://api.github.com/users/Aico/orgs", "received_events_url": "https://api.github.com/users/Aico/received_events", "repos_url": "https://api.github.com/users/Aico/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Aico/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aico/subscriptions", "type": "User", "url": "https://api.github.com/users/Aico" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "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": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
10
"2013-02-26T06:08:53Z"
"2019-03-26T04:38:34Z"
"2019-03-26T04:38:34Z"
NONE
null
``` >>> def applym(df): ... print df.irow(0)['a'] ... return DataFrame({'a':[1],'b':[1]}) >>> df = DataFrame({'a':[1,1,1,2,3],'b':['a','a','a','b','c']}) >>> df.groupby('b').apply(applym) 1 1 2 3 a b b a 0 1 1 b 0 1 1 c 0 1 1 >>> ``` applym is called twice on the first group.
{ "+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/2936/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2936/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2937
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2937/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2937/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2937/events
https://github.com/pandas-dev/pandas/pull/2937
11,411,296
MDExOlB1bGxSZXF1ZXN0NDMyNjc2NA==
2,937
BUG: fix handling of the 'kind' argument in Series.order (GH #2811)
{ "avatar_url": "https://avatars.githubusercontent.com/u/150592?v=4", "events_url": "https://api.github.com/users/wj/events{/privacy}", "followers_url": "https://api.github.com/users/wj/followers", "following_url": "https://api.github.com/users/wj/following{/other_user}", "gists_url": "https://api.github.com/users/wj/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wj", "id": 150592, "login": "wj", "node_id": "MDQ6VXNlcjE1MDU5Mg==", "organizations_url": "https://api.github.com/users/wj/orgs", "received_events_url": "https://api.github.com/users/wj/received_events", "repos_url": "https://api.github.com/users/wj/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wj/subscriptions", "type": "User", "url": "https://api.github.com/users/wj" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
1
"2013-02-26T14:37:45Z"
"2013-02-26T15:38:12Z"
"2013-02-26T15:38:00Z"
NONE
null
The 'kind' argument was not properly propagated: the literal value "mergesort" was used instead of the 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/2937/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2937/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2937.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2937", "merged_at": "2013-02-26T15:38:00Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2937.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2937" }
https://api.github.com/repos/pandas-dev/pandas/issues/2938
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2938/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2938/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2938/events
https://github.com/pandas-dev/pandas/issues/2938
11,429,134
MDU6SXNzdWUxMTQyOTEzNA==
2,938
Bugs related to DatetimeIndex, date_range. Question: Is is possible to create a index of datetime, without being auto converted to a DatetimeIndex?
{ "avatar_url": "https://avatars.githubusercontent.com/u/963910?v=4", "events_url": "https://api.github.com/users/xdong/events{/privacy}", "followers_url": "https://api.github.com/users/xdong/followers", "following_url": "https://api.github.com/users/xdong/following{/other_user}", "gists_url": "https://api.github.com/users/xdong/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xdong", "id": 963910, "login": "xdong", "node_id": "MDQ6VXNlcjk2MzkxMA==", "organizations_url": "https://api.github.com/users/xdong/orgs", "received_events_url": "https://api.github.com/users/xdong/received_events", "repos_url": "https://api.github.com/users/xdong/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xdong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xdong/subscriptions", "type": "User", "url": "https://api.github.com/users/xdong" }
[]
closed
false
null
[]
null
8
"2013-02-26T21:20:59Z"
"2013-03-14T17:03:46Z"
"2013-03-14T17:03:46Z"
NONE
null
Is is possible to create a index of datetime.datetime, without being auto converted to a DatetimeIndex containing Timestamp's? Even though datetime.datetime is not efficient, I thought the user should have a choice of using it for backward compatibility. I wrote a lot of code using Index containing timezone-aware datetime.datetime. This caused me a lot of headache when I tried to port my codes from 07.3 to 10.1. I also encountered several weird bugs (in 10.1). (I) When DatetimeIndex is assigned as a column of a DataFrame, a silent error occurs: In [1]: from pandas import * In [2]: a = date_range('20130101', periods=3, tz='US/Eastern') In [3]: b = date_range('20130215', periods=3, tz='US/Eastern') In [4]: Series(a, b) #works as expected Out[4]: 2013-02-15 00:00:00-05:00 2013-01-01 05:00:00 2013-02-16 00:00:00-05:00 2013-01-02 05:00:00 2013-02-17 00:00:00-05:00 2013-01-03 05:00:00 Freq: D In [5]: DataFrame({'a': a}, b) #??? Out[5]: a 2013-02-15 00:00:00-05:00 1970-01-18 05:00:00 2013-02-16 00:00:00-05:00 1970-01-19 05:00:00 2013-02-17 00:00:00-05:00 1970-01-20 05:00:00 (II) concat two Series will result in an incorrect DatetimeIndex: In [18]: dates_a = [Timestamp('20130219 13:00', tz='US/Eastern'), Timestamp('20130220 13:00', tz='US/Eastern')] In [19]: dates_b = [Timestamp('20130222 13:00', tz='US/Eastern'), Timestamp('20130223 13:00', tz='US/Eastern')] In [20]: a = Series(range(2), dates_a) In [21]: b = Series(range(2), dates_b) In [22]: concat([a, b]) Out[22]: 2013-02-19 18:00:00-05:00 0 2013-02-20 18:00:00-05:00 1 2013-02-22 18:00:00-05:00 0 2013-02-23 18:00:00-05:00 1 Note that the index of Out[22] is wrong (time shifted by 5 hours). (III) issue #2906 (already fixed in #2935)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2938/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2938/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2939
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2939/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2939/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2939/events
https://github.com/pandas-dev/pandas/issues/2939
11,440,441
MDU6SXNzdWUxMTQ0MDQ0MQ==
2,939
DataFrame.drop loses index name
{ "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" }
[ { "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": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
0
"2013-02-27T03:26:13Z"
"2013-03-07T10:57:15Z"
"2013-03-07T10:57:15Z"
MEMBER
null
http://stackoverflow.com/questions/15102158/pandas-why-does-dataframe-droplabels-return-a-dataframe-with-removed-label-na
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2939/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2939/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2940
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2940/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2940/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2940/events
https://github.com/pandas-dev/pandas/issues/2940
11,443,103
MDU6SXNzdWUxMTQ0MzEwMw==
2,940
Implement DataFrame.sort for axis=1
{ "avatar_url": "https://avatars.githubusercontent.com/u/296164?v=4", "events_url": "https://api.github.com/users/jseabold/events{/privacy}", "followers_url": "https://api.github.com/users/jseabold/followers", "following_url": "https://api.github.com/users/jseabold/following{/other_user}", "gists_url": "https://api.github.com/users/jseabold/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jseabold", "id": 296164, "login": "jseabold", "node_id": "MDQ6VXNlcjI5NjE2NA==", "organizations_url": "https://api.github.com/users/jseabold/orgs", "received_events_url": "https://api.github.com/users/jseabold/received_events", "repos_url": "https://api.github.com/users/jseabold/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jseabold/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jseabold/subscriptions", "type": "User", "url": "https://api.github.com/users/jseabold" }
[ { "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": "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" }
4
"2013-02-27T05:54:34Z"
"2015-08-12T15:23:54Z"
"2015-08-12T15:23:24Z"
CONTRIBUTOR
null
Am I missing something here? ``` import numpy as np import pandas x = np.array([[0,2,4],[2,0,7],[4,7,0]]) df = pandas.DataFrame(x, index=["a","b", "c"], columns=["a","b","c"]) df.sort("b", inplace=True) #raises error for axis=1 #df.sort("c", axis=1, inplace=True) # same with sort_index # desired result df.sort("b").T.sort("c").T ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2940/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2940/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2941
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2941/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2941/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2941/events
https://github.com/pandas-dev/pandas/issues/2941
11,460,660
MDU6SXNzdWUxMTQ2MDY2MA==
2,941
DataFrame.asof
{ "avatar_url": "https://avatars.githubusercontent.com/u/759245?v=4", "events_url": "https://api.github.com/users/changhiskhan/events{/privacy}", "followers_url": "https://api.github.com/users/changhiskhan/followers", "following_url": "https://api.github.com/users/changhiskhan/following{/other_user}", "gists_url": "https://api.github.com/users/changhiskhan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/changhiskhan", "id": 759245, "login": "changhiskhan", "node_id": "MDQ6VXNlcjc1OTI0NQ==", "organizations_url": "https://api.github.com/users/changhiskhan/orgs", "received_events_url": "https://api.github.com/users/changhiskhan/received_events", "repos_url": "https://api.github.com/users/changhiskhan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/changhiskhan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/changhiskhan/subscriptions", "type": "User", "url": "https://api.github.com/users/changhiskhan" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 278, "created_at": "2013-01-06T03:02:01Z", "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": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)", "due_on": "2022-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/20", "id": 239227, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lMjM5MjI3", "number": 20, "open_issues": 108, "state": "open", "title": "Someday", "updated_at": "2021-08-08T01:48:22Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20" }
11
"2013-02-27T15:45:52Z"
"2015-06-13T03:37:23Z"
"2015-06-13T03:37:23Z"
CONTRIBUTOR
null
like Series.asof, should also take skipna={none, 'any', 'all'}
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2941/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2941/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2942
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2942/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2942/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2942/events
https://github.com/pandas-dev/pandas/issues/2942
11,460,762
MDU6SXNzdWUxMTQ2MDc2Mg==
2,942
Multilevel indexing with .to_latex() method merges two index columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/2738602?v=4", "events_url": "https://api.github.com/users/jobingr/events{/privacy}", "followers_url": "https://api.github.com/users/jobingr/followers", "following_url": "https://api.github.com/users/jobingr/following{/other_user}", "gists_url": "https://api.github.com/users/jobingr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jobingr", "id": 2738602, "login": "jobingr", "node_id": "MDQ6VXNlcjI3Mzg2MDI=", "organizations_url": "https://api.github.com/users/jobingr/orgs", "received_events_url": "https://api.github.com/users/jobingr/received_events", "repos_url": "https://api.github.com/users/jobingr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jobingr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jobingr/subscriptions", "type": "User", "url": "https://api.github.com/users/jobingr" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "006b75", "default": false, "description": "to_latex", "id": 251382258, "name": "IO LaTeX", "node_id": "MDU6TGFiZWwyNTEzODIyNTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 278, "created_at": "2013-01-06T03:02:01Z", "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": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)", "due_on": "2022-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/20", "id": 239227, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lMjM5MjI3", "number": 20, "open_issues": 108, "state": "open", "title": "Someday", "updated_at": "2021-08-08T01:48:22Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20" }
3
"2013-02-27T15:47:43Z"
"2015-12-08T01:13:34Z"
"2015-12-08T01:13:34Z"
NONE
null
The to_latex method produces wrong latex code for multi-indexed funds. looks like it are missing a few blank {} and &. Net result is that the current method merges the two indeces. when used with output from pivot_table with major index giving categories and other one details this produces totally garbled results. The formatters= parameter of to_latex method also creates exceptions for multi-indexed data
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2942/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2942/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2943
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2943/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2943/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2943/events
https://github.com/pandas-dev/pandas/issues/2943
11,467,494
MDU6SXNzdWUxMTQ2NzQ5NA==
2,943
Problem with import using rpy2
{ "avatar_url": "https://avatars.githubusercontent.com/u/1175927?v=4", "events_url": "https://api.github.com/users/benjello/events{/privacy}", "followers_url": "https://api.github.com/users/benjello/followers", "following_url": "https://api.github.com/users/benjello/following{/other_user}", "gists_url": "https://api.github.com/users/benjello/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/benjello", "id": 1175927, "login": "benjello", "node_id": "MDQ6VXNlcjExNzU5Mjc=", "organizations_url": "https://api.github.com/users/benjello/orgs", "received_events_url": "https://api.github.com/users/benjello/received_events", "repos_url": "https://api.github.com/users/benjello/repos", "site_admin": false, "starred_url": "https://api.github.com/users/benjello/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/benjello/subscriptions", "type": "User", "url": "https://api.github.com/users/benjello" }
[]
closed
false
null
[]
null
1
"2013-02-27T18:14:17Z"
"2013-02-27T18:31:28Z"
"2013-02-27T18:30:49Z"
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2943/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2943/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2944
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2944/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2944/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2944/events
https://github.com/pandas-dev/pandas/issues/2944
11,473,538
MDU6SXNzdWUxMTQ3MzUzOA==
2,944
where broken after sort
{ "avatar_url": "https://avatars.githubusercontent.com/u/296164?v=4", "events_url": "https://api.github.com/users/jseabold/events{/privacy}", "followers_url": "https://api.github.com/users/jseabold/followers", "following_url": "https://api.github.com/users/jseabold/following{/other_user}", "gists_url": "https://api.github.com/users/jseabold/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jseabold", "id": 296164, "login": "jseabold", "node_id": "MDQ6VXNlcjI5NjE2NA==", "organizations_url": "https://api.github.com/users/jseabold/orgs", "received_events_url": "https://api.github.com/users/jseabold/received_events", "repos_url": "https://api.github.com/users/jseabold/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jseabold/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jseabold/subscriptions", "type": "User", "url": "https://api.github.com/users/jseabold" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
2
"2013-02-27T20:39:07Z"
"2013-02-27T22:58:12Z"
"2013-02-27T22:58:12Z"
CONTRIBUTOR
null
Glad I hunted this one down. Was seeing some very weird stuff. Using 0.10.1 ``` import pandas names = ["a","b","c"] df = pandas.DataFrame([[0,2,4],[2,0,7],[4,7,0]], index=names, columns=names) df # a b c #a 0 2 4 #b 2 0 7 #c 4 7 0 df2 = df.sort("b").T.sort("c").T df.where(df <= 4, 0) # a b c #a 0 2 4 #b 2 0 0 #c 4 0 0 df2.where(df <= 4, 0) # c a b #b 7 2 0 #a 4 0 0 #c 0 0 7 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2944/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2944/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2945
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2945/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2945/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2945/events
https://github.com/pandas-dev/pandas/issues/2945
11,477,021
MDU6SXNzdWUxMTQ3NzAyMQ==
2,945
scalar subtraction doesn't work on Series with dtype datetime64
{ "avatar_url": "https://avatars.githubusercontent.com/u/759245?v=4", "events_url": "https://api.github.com/users/changhiskhan/events{/privacy}", "followers_url": "https://api.github.com/users/changhiskhan/followers", "following_url": "https://api.github.com/users/changhiskhan/following{/other_user}", "gists_url": "https://api.github.com/users/changhiskhan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/changhiskhan", "id": 759245, "login": "changhiskhan", "node_id": "MDQ6VXNlcjc1OTI0NQ==", "organizations_url": "https://api.github.com/users/changhiskhan/orgs", "received_events_url": "https://api.github.com/users/changhiskhan/received_events", "repos_url": "https://api.github.com/users/changhiskhan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/changhiskhan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/changhiskhan/subscriptions", "type": "User", "url": "https://api.github.com/users/changhiskhan" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
3
"2013-02-27T22:00:01Z"
"2013-02-27T22:34:45Z"
"2013-02-27T22:34:45Z"
CONTRIBUTOR
null
In [34]: df Out[34]: 0 1 time 0 -0.602181 -0.657444 2009-07-01 00:00:00 1 -2.102987 -0.486064 2009-07-02 00:00:00 2 0.819956 -0.800478 2009-07-03 00:00:00 3 1.118629 -0.008019 2009-07-04 00:00:00 4 0.404452 0.606187 2009-07-05 00:00:00 In [35]: df.time.dtype Out[35]: dtype('datetime64[ns]') In [36]: image_time Out[36]: datetime.datetime(2009, 7, 28, 13, 39, 2) ## In [37]: df.time - image_time ValueError Traceback (most recent call last) <ipython-input-37-32815ed7fa8b> in <module>() ----> 1 df.time - image_time /Users/changshe/code/pandas/pandas/core/series.pyc in wrapper(self, other) 94 dtype = 'timedelta64[ns]' 95 else: ---> 96 raise ValueError("cannot operate on a series with out a rhs of a series/ndarray of type datetime64[ns] or a timedelta") 97 98 lvalues = lvalues.view('i8') ValueError: cannot operate on a series with out a rhs of a series/ndarray of type datetime64[ns] or a timedelta
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2945/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2945/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2946
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2946/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2946/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2946/events
https://github.com/pandas-dev/pandas/issues/2946
11,481,525
MDU6SXNzdWUxMTQ4MTUyNQ==
2,946
bug parsing escaped quotechars inside quotechars (and possibly other escaped characters as well?)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1794715?v=4", "events_url": "https://api.github.com/users/ebrevdo/events{/privacy}", "followers_url": "https://api.github.com/users/ebrevdo/followers", "following_url": "https://api.github.com/users/ebrevdo/following{/other_user}", "gists_url": "https://api.github.com/users/ebrevdo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ebrevdo", "id": 1794715, "login": "ebrevdo", "node_id": "MDQ6VXNlcjE3OTQ3MTU=", "organizations_url": "https://api.github.com/users/ebrevdo/orgs", "received_events_url": "https://api.github.com/users/ebrevdo/received_events", "repos_url": "https://api.github.com/users/ebrevdo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ebrevdo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ebrevdo/subscriptions", "type": "User", "url": "https://api.github.com/users/ebrevdo" }
[ { "color": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" } ]
closed
false
{ "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" }
[ { "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" } ]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
1
"2013-02-28T00:03:02Z"
"2013-03-28T05:43:47Z"
"2013-03-28T05:43:47Z"
NONE
null
Trouble parsing quotechars with escaped quotechars inside them ``` python line = 'col1\n"\\"a,b,c\\""\n' pandas.read_csv(StringIO(line)) Out[25]: col1 a b c"" pandas.read_csv(StringIO(line)).ix[0] Out[26]: col1 c"" Name: (a, b) ``` i was expecting ``` python pandas.read_csv(StringIO(line)) col1 0 "a,b,c" ``` and ``` python pandas.read_csv(StringIO(line)).ix[0]['col1'] '"a,b,c"' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2946/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2946/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2947
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2947/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2947/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2947/events
https://github.com/pandas-dev/pandas/pull/2947
11,499,848
MDExOlB1bGxSZXF1ZXN0NDM3MTUxMA==
2,947
DOC: updated dtypes docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-02-28T13:11:29Z"
"2014-06-18T16:16:54Z"
"2013-02-28T13:11:58Z"
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2947/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2947/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2947.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2947", "merged_at": "2013-02-28T13:11:58Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2947.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2947" }
https://api.github.com/repos/pandas-dev/pandas/issues/2948
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2948/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2948/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2948/events
https://github.com/pandas-dev/pandas/issues/2948
11,510,910
MDU6SXNzdWUxMTUxMDkxMA==
2,948
AttributeError: 'numpy.ndarray' object has no attribute '_get_repr' with np.abs on a DatetimeIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/296686?v=4", "events_url": "https://api.github.com/users/robintw/events{/privacy}", "followers_url": "https://api.github.com/users/robintw/followers", "following_url": "https://api.github.com/users/robintw/following{/other_user}", "gists_url": "https://api.github.com/users/robintw/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/robintw", "id": 296686, "login": "robintw", "node_id": "MDQ6VXNlcjI5NjY4Ng==", "organizations_url": "https://api.github.com/users/robintw/orgs", "received_events_url": "https://api.github.com/users/robintw/received_events", "repos_url": "https://api.github.com/users/robintw/repos", "site_admin": false, "starred_url": "https://api.github.com/users/robintw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/robintw/subscriptions", "type": "User", "url": "https://api.github.com/users/robintw" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
43
"2013-02-28T17:40:56Z"
"2013-03-06T19:27:36Z"
"2013-03-05T17:31:20Z"
CONTRIBUTOR
null
I am trying to find the row of a DataFrame that is closest to a certain datetime. I have my data in a DataFrame which has a DatetimeIndex, and I can't use functions like `asof` because I need to get the closest row (either before _or_ after the time), so I am trying to implement the standard way of doing this which is getting the absolute difference between each index time and the time I want to find, then finding the row with the minimum difference. However, there seems to be a strange bug with using np.abs with the pandas index, and it seems to be in the printing of the results stage (relating to `__get_repr`). Pandas prints things differently depending on how many rows the DataFrame has, and I think this is related here - as running the code on a 200 row DataFrame fails, but on a 100 row DataFrame it works! I've checked that its not some strange value in the DataFrame which is causing the problem, as a 100 row segment from anywhere in my original input file works, whereas a 200 row segment from anywhere fails. Two input files (aeronet_large.txt with 200 rows and aeronet.txt with 100 rows) and the code I've been using are available at this gist: https://gist.github.com/robintw/631b53fa0cd9dbdabb36, and I asked a StackOverflow question about this (http://stackoverflow.com/questions/15115547/find-closest-row-of-dataframe-to-given-time-in-pandas) where I was recommended to raise an 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/2948/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2948/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2949
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2949/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2949/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2949/events
https://github.com/pandas-dev/pandas/issues/2949
11,514,450
MDU6SXNzdWUxMTUxNDQ1MA==
2,949
Alternate way of implementing PeriodIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/168236?v=4", "events_url": "https://api.github.com/users/abielr/events{/privacy}", "followers_url": "https://api.github.com/users/abielr/followers", "following_url": "https://api.github.com/users/abielr/following{/other_user}", "gists_url": "https://api.github.com/users/abielr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abielr", "id": 168236, "login": "abielr", "node_id": "MDQ6VXNlcjE2ODIzNg==", "organizations_url": "https://api.github.com/users/abielr/orgs", "received_events_url": "https://api.github.com/users/abielr/received_events", "repos_url": "https://api.github.com/users/abielr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abielr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abielr/subscriptions", "type": "User", "url": "https://api.github.com/users/abielr" }
[ { "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": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": 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
"2013-02-28T19:10:09Z"
"2016-09-29T22:44:19Z"
"2016-09-29T22:23:20Z"
NONE
null
I've created a slightly modified version of PeriodIndex for some projects I'm working on that you may find useful for pandas. I rewrote the date-math code from scratch in Cython, it has a wide range of frequencies, it's very easy to extend to new frequencies, and the new code is quite compact. Code is at https://github.com/abielr/pandasreg. There isn't much documentation yet, but all the key date-math code is in pandasreg/src/rfreq.pyx. Most of the rest of the code is a straight copy of the pandas code for Period and PeriodIndex and some other utility functions to work with the custom index. Basic approach for handling frequencies is as follows: - There is a base class RFrequency that defines an interface to convert datetime-like objects to an ordinal period at a given frequency (just like PeriodIndex), and to do the reverse. - Periods at one frequency can be converted to periods at another frequency. - Classes that inherit from RFrequency define the date-math logic that is particular to a given frequency. However, there is another flexibility for a single child class to define multiple frequencies. For example, the monthly class defines the monthly, bimonthly, quarterly, semiannual, and annual frequency without having to write custom code for each variant. - You can force a frequency that is a multiple of a base frequency to pass through a particular period. For example, the semiannual frequency is created from the monthly frequency with a 6-month stride and the requirement that it pass through Jun 1970, which ensures that 1H=Jan-Jun and 2H=Jul-Dec always. (see [this](http://stackoverflow.com/questions/13384795/using-built-in-pandas-frequencies-to-simulate-semiannual-frequency) stackoverflow post for more background). Looking at the pandas code, it appears that much of the current PeriodIndex functionality is based on the old scikits.timeseries project. I haven't done a detailed performance comparison, but relative to the scikits.timeseries codebase my code could be of benefit in pandas since there is no pure-C code to maintain, there is much less date-math code, and its easier to extend to new frequencies.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2949/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2949/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2950
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2950/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2950/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2950/events
https://github.com/pandas-dev/pandas/pull/2950
11,515,661
MDExOlB1bGxSZXF1ZXN0NDM3OTYwMg==
2,950
BUG: in-place conversion of integer series to float (on putmasking), GH #2746.
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-02-28T19:36:34Z"
"2014-06-19T18:51:51Z"
"2013-03-01T17:43:39Z"
CONTRIBUTOR
null
closes #2746
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2950/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2950/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2950.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2950", "merged_at": "2013-03-01T17:43:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2950.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2950" }
https://api.github.com/repos/pandas-dev/pandas/issues/2951
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2951/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2951/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2951/events
https://github.com/pandas-dev/pandas/pull/2951
11,516,050
MDExOlB1bGxSZXF1ZXN0NDM3OTc3MA==
2,951
CLN: argument order and dtype formatting to be consistent with standard
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-02-28T19:44:38Z"
"2013-03-01T17:43:51Z"
"2013-03-01T17:43:51Z"
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2951/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2951/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2951.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2951", "merged_at": "2013-03-01T17:43:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2951.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2951" }
https://api.github.com/repos/pandas-dev/pandas/issues/2952
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2952/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2952/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2952/events
https://github.com/pandas-dev/pandas/issues/2952
11,530,908
MDU6SXNzdWUxMTUzMDkwOA==
2,952
shift(..) applied to datetime series
{ "avatar_url": "https://avatars.githubusercontent.com/u/3150861?v=4", "events_url": "https://api.github.com/users/nmusolino/events{/privacy}", "followers_url": "https://api.github.com/users/nmusolino/followers", "following_url": "https://api.github.com/users/nmusolino/following{/other_user}", "gists_url": "https://api.github.com/users/nmusolino/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nmusolino", "id": 3150861, "login": "nmusolino", "node_id": "MDQ6VXNlcjMxNTA4NjE=", "organizations_url": "https://api.github.com/users/nmusolino/orgs", "received_events_url": "https://api.github.com/users/nmusolino/received_events", "repos_url": "https://api.github.com/users/nmusolino/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nmusolino/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nmusolino/subscriptions", "type": "User", "url": "https://api.github.com/users/nmusolino" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
3
"2013-03-01T03:49:03Z"
"2013-12-04T00:57:33Z"
"2013-03-14T10:42:46Z"
CONTRIBUTOR
null
I am reporting a bug in which a TimeSeries containing datetime values are converted to float64 values upon application of the shift(self, offset) function. Version 0.10.1, python 2.7. As an example below, I excerpted the first ten rows of end_time from the data frame listed. The dtype of this timeseries is datetime64[ns]. When I apply shift(2), the values are converted to float64. I tried applying the convert_type and astype functions to this timeseries, but neither would return the timeseries to its original datetime64[ns]. Expected behavior: data type of time series should not change upon shifting. ``` DatetimeIndex: 88449 entries, 2012-09-04 07:03:00 to 2013-02-25 20:00:00 Data columns: time 88449 non-null values end_time 88448 non-null values mid 88449 non-null values dtypes: datetime64[ns](2), float64(1) ``` ``` In [70]: end_times Out[70]: time 2012-09-04 07:05:00 2012-09-04 07:06:00 2012-09-04 07:06:00 2012-09-04 07:07:00 2012-09-04 07:07:00 2012-09-04 07:08:00 2012-09-04 07:08:00 2012-09-04 07:09:00 2012-09-04 07:09:00 2012-09-04 07:10:00 2012-09-04 07:10:00 2012-09-04 07:11:00 2012-09-04 07:11:00 2012-09-04 07:12:00 2012-09-04 07:12:00 2012-09-04 07:13:00 2012-09-04 07:13:00 2012-09-04 07:14:00 In [71]: end_times.shift(2) Out[71]: time 2012-09-04 07:05:00 NaN 2012-09-04 07:06:00 NaN 2012-09-04 07:07:00 1.346742e+18 2012-09-04 07:08:00 1.346742e+18 2012-09-04 07:09:00 1.346742e+18 2012-09-04 07:10:00 1.346743e+18 2012-09-04 07:11:00 1.346743e+18 2012-09-04 07:12:00 1.346743e+18 2012-09-04 07:13:00 1.346743e+18 Name: end_time ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2952/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2952/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2953
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2953/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2953/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2953/events
https://github.com/pandas-dev/pandas/issues/2953
11,545,582
MDU6SXNzdWUxMTU0NTU4Mg==
2,953
BUG: centered moving windows mishandle series edges
{ "avatar_url": "https://avatars.githubusercontent.com/u/1622906?v=4", "events_url": "https://api.github.com/users/bmu/events{/privacy}", "followers_url": "https://api.github.com/users/bmu/followers", "following_url": "https://api.github.com/users/bmu/following{/other_user}", "gists_url": "https://api.github.com/users/bmu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bmu", "id": 1622906, "login": "bmu", "node_id": "MDQ6VXNlcjE2MjI5MDY=", "organizations_url": "https://api.github.com/users/bmu/orgs", "received_events_url": "https://api.github.com/users/bmu/received_events", "repos_url": "https://api.github.com/users/bmu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bmu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bmu/subscriptions", "type": "User", "url": "https://api.github.com/users/bmu" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
{ "closed_at": 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" }
20
"2013-03-01T14:04:06Z"
"2020-12-28T00:07:08Z"
"2020-12-28T00:07:08Z"
NONE
null
Seems like there is a bug in the centered mooving window functions, although the examples [here](http://pandas.pydata.org/pandas-docs/stable/computation.html#moving-rolling-statistics-moments) don't show it. Also `np.convolve` used like in [this post](http://stackoverflow.com/a/11352216/1301710) on Stackoverflow shows different results for the first values: ``` python In [109]: ser = pd.Series(randn(20), index=pd.date_range('1/1/2000', periods=20)) In [110]: df = pd.DataFrame(ser) In [111]: df['rc'] = pd.rolling_count(ser, 10, center=True) In [112]: df['rm'] = pd.rolling_mean(ser, 10, center=True) In [113]: df['rm_min_1'] = pd.rolling_mean(ser, 10, center=True, min_periods=1) In [114]: def movingaverage(interval, window_size): .....: window = numpy.ones(int(window_size))/float(window_size) .....: return numpy.convolve(interval, window, 'same') .....: In [116]: df['ma'] = movingaverage(ser, 10) In [117]: df Out[117]: 0 rc rm rm_min_1 ma 2000-01-01 1.177692 5 NaN 0.048306 0.024153 2000-01-02 -0.068567 6 NaN -0.094287 -0.056572 2000-01-03 0.194942 7 NaN -0.225103 -0.157572 2000-01-04 -0.179778 8 NaN -0.160040 -0.128032 2000-01-05 -0.882760 9 NaN -0.262176 -0.235959 2000-01-06 -0.807252 10 -0.250828 -0.250828 -0.250828 2000-01-07 -1.009999 10 -0.365703 -0.365703 -0.365703 2000-01-08 0.295402 10 -0.431110 -0.431110 -0.431110 2000-01-09 -1.079267 10 -0.408968 -0.408968 -0.408968 2000-01-10 -0.148689 10 -0.456946 -0.456946 -0.456946 2000-01-11 0.028935 10 -0.290453 -0.290453 -0.290453 2000-01-12 -0.722632 10 -0.204166 -0.204166 -0.204166 2000-01-13 0.416364 10 -0.175837 -0.175837 -0.175837 2000-01-14 -0.659560 10 -0.266773 -0.266773 -0.266773 2000-01-15 0.782165 10 -0.184003 -0.184003 -0.184003 2000-01-16 0.055617 10 -0.338359 -0.338359 -0.338359 2000-01-17 -0.726706 0 NaN NaN -0.341252 2000-01-18 -0.613954 0 NaN NaN -0.268989 2000-01-19 -0.251574 0 NaN NaN -0.310625 2000-01-20 -1.692243 0 NaN NaN -0.244669 ``` ``` In [5]: import numpy In [6]: In [20]: ser = pd.Series(range(10)) ...: ...: df = pd.DataFrame(ser) ...: ...: N=3 ...: ...: df['rc'] = ser.rolling(N, center=True).count() ...: ...: df['rm'] = ser.rolling(N, center=True).mean() ...: ...: df['rm_min_1'] = ser.rolling(N, center=True, min_periods=1).mean() ...: ...: def movingaverage(interval, window_size): ...: ...: window = numpy.ones(int(window_size))/float(window_size) ...: ...: return numpy.convolve(interval, window, 'same') ...: ...: ...: ...: df['ma'] = movingaverage(ser, N) In [7]: df Out[7]: 0 rc rm rm_min_1 ma 0 0 2.0 NaN 0.5 0.333333 1 1 3.0 1.0 1.0 1.000000 2 2 3.0 2.0 2.0 2.000000 3 3 3.0 3.0 3.0 3.000000 4 4 3.0 4.0 4.0 4.000000 5 5 3.0 5.0 5.0 5.000000 6 6 3.0 6.0 6.0 6.000000 7 7 3.0 7.0 7.0 7.000000 8 8 3.0 8.0 8.0 8.000000 9 9 2.0 NaN 8.5 5.666667 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2953/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2953/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2954
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2954/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2954/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2954/events
https://github.com/pandas-dev/pandas/issues/2954
11,547,371
MDU6SXNzdWUxMTU0NzM3MQ==
2,954
BUG: what should we do about illegal operations on mixed frames?
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "DDDDDD", "default": false, "description": "Long-Term Enhancement Discussions", "id": 157369, "name": "Ideas", "node_id": "MDU6TGFiZWwxNTczNjk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Ideas" } ]
closed
false
null
[]
{ "closed_at": "2013-12-30T19:53:14Z", "closed_issues": 1076, "created_at": "2012-11-15T23:33:37Z", "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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)", "due_on": "2013-12-30T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/18", "id": 213925, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels", "node_id": "MDk6TWlsZXN0b25lMjEzOTI1", "number": 18, "open_issues": 0, "state": "closed", "title": "0.13", "updated_at": "2017-07-22T19:00:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18" }
6
"2013-03-01T14:53:25Z"
"2013-09-21T01:29:24Z"
"2013-09-21T01:29:24Z"
CONTRIBUTOR
null
so min across the columns is clearly non-sensical, what should we do about this when an op crosses dtype boundaries and is wrong ? (this is harder than it looks, because you can't always just get the numeric data, a frame with only say timedelta64[ns] is ok) maybe have a raise_on_error parameter to min? (default of True)? (if its mixed (and not all numeric)) types? ``` (Pdb) mixed A B C D E 0 00:05:05 -1 days, 00:00:00 foo 1 1 1 1 days, 00:05:05 -1 days, 00:00:00 foo 1 1 2 2 days, 00:05:05 -1 days, 00:00:00 foo 1 1 (Pdb) mixed.min() A 0:05:05 B -1 day, 0:00:00 C foo D 1 E 1 Dtype: object (Pdb) mixed.min(axis=1) 0 -8.640000e+13 1 -8.640000e+13 2 -8.640000e+13 Dtype: float64 (Pdb) mixed.dtypes A timedelta64[ns] B timedelta64[ns] C object D int64 E float64 Dtype: object ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2954/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2954/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2955
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2955/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2955/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2955/events
https://github.com/pandas-dev/pandas/pull/2955
11,547,830
MDExOlB1bGxSZXF1ZXN0NDM5NTg4OQ==
2,955
BUG: negative timedeltas not printing correctly
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-03-01T15:05:12Z"
"2013-03-01T17:54:38Z"
"2013-03-01T17:54:38Z"
CONTRIBUTOR
null
ENH: timedelta ops with other timedelta fixed to produce timedeltas BUG: fixed timedelta (in nanops.py) to work with min/max....abs still not working
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2955/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2955/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2955.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2955", "merged_at": "2013-03-01T17:54:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2955.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2955" }
https://api.github.com/repos/pandas-dev/pandas/issues/2956
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2956/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2956/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2956/events
https://github.com/pandas-dev/pandas/pull/2956
11,548,131
MDExOlB1bGxSZXF1ZXN0NDM5NjA0Mw==
2,956
BUG: _possibly_cast_to_timedelta should catch exceptions and quietly do no cast #2948
{ "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" }
[]
closed
false
null
[]
null
4
"2013-03-01T15:13:09Z"
"2013-05-18T15:23:55Z"
"2013-03-01T15:27:29Z"
NONE
null
#2948
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2956/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2956/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2956.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2956", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/2956.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2956" }
https://api.github.com/repos/pandas-dev/pandas/issues/2957
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2957/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2957/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2957/events
https://github.com/pandas-dev/pandas/issues/2957
11,555,945
MDU6SXNzdWUxMTU1NTk0NQ==
2,957
BUG: numpy bug in np.abs on timedelta64
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
{ "closed_at": "2013-12-30T19:53:14Z", "closed_issues": 1076, "created_at": "2012-11-15T23:33:37Z", "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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)", "due_on": "2013-12-30T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/18", "id": 213925, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels", "node_id": "MDk6TWlsZXN0b25lMjEzOTI1", "number": 18, "open_issues": 0, "state": "closed", "title": "0.13", "updated_at": "2017-07-22T19:00:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18" }
1
"2013-03-01T18:27:47Z"
"2013-12-04T00:57:33Z"
"2013-03-06T12:43:56Z"
CONTRIBUTOR
null
This is a very subtle bug in how np.abs operates on timedelta64[ns] It converts them to us for some reason on numpy <= 1.6.2. (maybe numpy 1.7 is better) workaround is to wrap in a Series and astype tricky to fix this because we really can't detect is except in finalize, but then have to check all return dtypes from the operations..... exhibited also in #2948 ``` In [23]: s1 = pd.Series(pd.date_range('20120101',periods=3)) In [24]: s2 = pd.Series(pd.date_range('20120102',periods=3)) In [27]: s1-s2 Out[27]: 0 -1 days, 00:00:00 1 -1 days, 00:00:00 2 -1 days, 00:00:00 Dtype: timedelta64[ns] #### notice this is timedelta64[us] and not ns! In [28]: np.abs(s1-s2) Out[28]: 0 1 days, 00:00:00 1 1 days, 00:00:00 2 1 days, 00:00:00 Dtype: timedelta64[us] # workaround In [30]: pd.Series(np.abs(s1-s2)).astype('timedelta64[ns]') Out[30]: 0 1 days, 00:00:00 1 1 days, 00:00:00 2 1 days, 00:00:00 Dtype: timedelta64[ns] ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2957/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2957/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2958
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2958/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2958/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2958/events
https://github.com/pandas-dev/pandas/pull/2958
11,564,752
MDExOlB1bGxSZXF1ZXN0NDQwNDYxOA==
2,958
BUG: fixed .abs on Series with a timedelta (partial fix for 2957)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
1
"2013-03-01T22:20:11Z"
"2013-03-06T12:43:15Z"
"2013-03-06T12:43:15Z"
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2958/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2958/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2958.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2958", "merged_at": "2013-03-06T12:43:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2958.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2958" }
https://api.github.com/repos/pandas-dev/pandas/issues/2959
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2959/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2959/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2959/events
https://github.com/pandas-dev/pandas/pull/2959
11,566,768
MDExOlB1bGxSZXF1ZXN0NDQwNTYxNw==
2,959
BUG: changed Dtype to dtype on series displays
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-03-01T23:19:26Z"
"2014-07-29T18:52:38Z"
"2013-03-02T00:25:53Z"
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2959/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2959/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2959.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2959", "merged_at": "2013-03-02T00:25:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2959.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2959" }
https://api.github.com/repos/pandas-dev/pandas/issues/2960
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2960/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2960/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2960/events
https://github.com/pandas-dev/pandas/issues/2960
11,574,144
MDU6SXNzdWUxMTU3NDE0NA==
2,960
Plotting irregular timeseries with different indexes: last plotted timeseries dictates xaxis range
{ "avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4", "events_url": "https://api.github.com/users/lesteve/events{/privacy}", "followers_url": "https://api.github.com/users/lesteve/followers", "following_url": "https://api.github.com/users/lesteve/following{/other_user}", "gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lesteve", "id": 1680079, "login": "lesteve", "node_id": "MDQ6VXNlcjE2ODAwNzk=", "organizations_url": "https://api.github.com/users/lesteve/orgs", "received_events_url": "https://api.github.com/users/lesteve/received_events", "repos_url": "https://api.github.com/users/lesteve/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lesteve/subscriptions", "type": "User", "url": "https://api.github.com/users/lesteve" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2014-07-11T00:02:53Z", "closed_issues": 306, "created_at": "2014-04-27T23:40:28Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "bug fixes from 0.14.0", "due_on": "2014-07-11T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/27", "id": 641843, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/27/labels", "node_id": "MDk6TWlsZXN0b25lNjQxODQz", "number": 27, "open_issues": 0, "state": "closed", "title": "0.14.1", "updated_at": "2014-09-05T10:24:18Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/27" }
4
"2013-03-02T09:49:03Z"
"2014-07-01T23:59:35Z"
"2014-07-01T23:59:35Z"
CONTRIBUTOR
null
In the following I took the extreme case where there is no overlap between the two indexes for illustration purposes. When there is some overlap there is still the same issue and the last plotted timeseries is dictating the xaxis range. Here is the code, tested on pandas 0.13.1: ``` python import numpy as np import pandas as pd import pandas.util.testing import matplotlib.pyplot as plt np.random.seed(0) ts = pd.util.testing.makeTimeSeries()[:20] tsIrregular = ts.drop(ts.index[[3,7,11,16]]) def myPlot(ts): fig, axes = plt.subplots(1,2) ax = axes[0] ax.set_title('left series first') ts[:5].plot(ax=ax, label='left series') ts[6:].plot(style='or', ax=ax, label='right series') ax.legend(loc='best') ax = axes[1] ax.set_title('right series first') ts[6:].plot(style='or', ax=ax, label='right series') ts[:5].plot(ax=ax, label='left series') ax.legend(loc='best') return axes myPlot(ts) myPlot(tsIrregular) ``` What you get for the regular timeseries case is what you expect, i.e. the order you plot timeseries doesn't matter and the xaxis range is the union of the two timeseries indexes: ![regularTimeSeries](https://f.cloud.github.com/assets/1680079/212610/afb96960-831a-11e2-9049-4c0892b07fd6.png) but what you get for the irregular timeseries case is rather suprising: ![irregularTimeSeries](https://f.cloud.github.com/assets/1680079/212612/ebe8fe8c-831a-11e2-964c-88489c40db80.png) There are easy work-arounds, like aligning the timeseries before plotting, but it feels like irregular timeseries shouldn't be second-class citizens compared to regular ones.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2960/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2960/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2961
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2961/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2961/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2961/events
https://github.com/pandas-dev/pandas/pull/2961
11,576,280
MDExOlB1bGxSZXF1ZXN0NDQwOTQ3Mg==
2,961
Keep name after DataFrame drop (issue 2939)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1931852?v=4", "events_url": "https://api.github.com/users/hayd/events{/privacy}", "followers_url": "https://api.github.com/users/hayd/followers", "following_url": "https://api.github.com/users/hayd/following{/other_user}", "gists_url": "https://api.github.com/users/hayd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hayd", "id": 1931852, "login": "hayd", "node_id": "MDQ6VXNlcjE5MzE4NTI=", "organizations_url": "https://api.github.com/users/hayd/orgs", "received_events_url": "https://api.github.com/users/hayd/received_events", "repos_url": "https://api.github.com/users/hayd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hayd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hayd/subscriptions", "type": "User", "url": "https://api.github.com/users/hayd" }
[]
closed
false
null
[]
null
17
"2013-03-02T13:47:29Z"
"2013-03-04T17:42:31Z"
"2013-03-03T11:50:30Z"
CONTRIBUTOR
null
This should fix #2939.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2961/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2961/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2961.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2961", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/2961.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2961" }
https://api.github.com/repos/pandas-dev/pandas/issues/2962
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2962/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2962/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2962/events
https://github.com/pandas-dev/pandas/pull/2962
11,590,280
MDExOlB1bGxSZXF1ZXN0NDQxMzkyNA==
2,962
BUG keep name after DataFrame drop, add check_name to assert_dataframe_equal
{ "avatar_url": "https://avatars.githubusercontent.com/u/1931852?v=4", "events_url": "https://api.github.com/users/hayd/events{/privacy}", "followers_url": "https://api.github.com/users/hayd/followers", "following_url": "https://api.github.com/users/hayd/following{/other_user}", "gists_url": "https://api.github.com/users/hayd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hayd", "id": 1931852, "login": "hayd", "node_id": "MDQ6VXNlcjE5MzE4NTI=", "organizations_url": "https://api.github.com/users/hayd/orgs", "received_events_url": "https://api.github.com/users/hayd/received_events", "repos_url": "https://api.github.com/users/hayd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hayd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hayd/subscriptions", "type": "User", "url": "https://api.github.com/users/hayd" }
[]
closed
false
null
[]
null
1
"2013-03-03T12:01:15Z"
"2013-03-07T01:35:06Z"
"2013-03-07T01:35:06Z"
CONTRIBUTOR
null
This should fix #2939. (redo of pull-request #2961, which I screwed up).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2962/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2962/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2962.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2962", "merged_at": "2013-03-07T01:35:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2962.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2962" }
https://api.github.com/repos/pandas-dev/pandas/issues/2963
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2963/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2963/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2963/events
https://github.com/pandas-dev/pandas/issues/2963
11,602,006
MDU6SXNzdWUxMTYwMjAwNg==
2,963
statistics bootstrap/sample function?
{ "avatar_url": "https://avatars.githubusercontent.com/u/50109?v=4", "events_url": "https://api.github.com/users/gliptak/events{/privacy}", "followers_url": "https://api.github.com/users/gliptak/followers", "following_url": "https://api.github.com/users/gliptak/following{/other_user}", "gists_url": "https://api.github.com/users/gliptak/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gliptak", "id": 50109, "login": "gliptak", "node_id": "MDQ6VXNlcjUwMTA5", "organizations_url": "https://api.github.com/users/gliptak/orgs", "received_events_url": "https://api.github.com/users/gliptak/received_events", "repos_url": "https://api.github.com/users/gliptak/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gliptak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gliptak/subscriptions", "type": "User", "url": "https://api.github.com/users/gliptak" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 278, "created_at": "2013-01-06T03:02:01Z", "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": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)", "due_on": "2022-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/20", "id": 239227, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lMjM5MjI3", "number": 20, "open_issues": 108, "state": "open", "title": "Someday", "updated_at": "2021-08-08T01:48:22Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20" }
4
"2013-03-04T01:41:20Z"
"2015-08-12T23:56:46Z"
"2013-07-18T00:51:18Z"
CONTRIBUTOR
null
Would you be interested in adding statistics bootstrap/sample function to pandas, implementing bootstrap described at: http://statistics.ats.ucla.edu/stat/r/library/bootstrap.htm Here is an actual implementation: http://stackoverflow.com/a/15192860/304690 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/2963/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2963/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2964
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2964/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2964/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2964/events
https://github.com/pandas-dev/pandas/pull/2964
11,615,374
MDExOlB1bGxSZXF1ZXN0NDQyMjYyMQ==
2,964
ENH Assert_frame_equal check_names to True
{ "avatar_url": "https://avatars.githubusercontent.com/u/1931852?v=4", "events_url": "https://api.github.com/users/hayd/events{/privacy}", "followers_url": "https://api.github.com/users/hayd/followers", "following_url": "https://api.github.com/users/hayd/following{/other_user}", "gists_url": "https://api.github.com/users/hayd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hayd", "id": 1931852, "login": "hayd", "node_id": "MDQ6VXNlcjE5MzE4NTI=", "organizations_url": "https://api.github.com/users/hayd/orgs", "received_events_url": "https://api.github.com/users/hayd/received_events", "repos_url": "https://api.github.com/users/hayd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hayd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hayd/subscriptions", "type": "User", "url": "https://api.github.com/users/hayd" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
7
"2013-03-04T11:44:25Z"
"2014-06-18T17:28:59Z"
"2013-03-07T07:22:41Z"
CONTRIBUTOR
null
This is a follow up to #2962, where I added a `check_names=False` argument to `assert_frame_equal`, this defaults it to `True`. That is, when asserting two DataFrames are equal, it compares `.columns.names` and `.index.names`, unless explicitly passing `check_names=False`. I've added in `check_names=False` where it wouldn't make sense to check names. I've added a TODO comment (and `check_names=False`) where I think it probably _should_ work but isn't... This was in the following cases: ``` to_csv reindex reset_index groupy-a-get pop join (dataframe to a series) from_xls (when setting index as first column) ``` i.e. these appear to drop column names (`df.columns.names`). Whether this behaviour is correct / desired in these cases, I'm not sure, but here they all are. :) _Note: By changing the A1 cells to 'index', I had all but one test (labelled "read xls ignores index name ?") in `test_excel.py` working locally (with `check_names=True`) , however Travis was less convinced throwing:_ ``` InvalidFileException: "There is no item named 'xl/theme/theme1.xml' in the archive" ``` _so I reverted to the previous xls and xlsx, and added back in `check_names=False`. I suspect LibreOffice wasn't saving it properly...?_
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2964/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2964/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2964.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2964", "merged_at": "2013-03-07T07:22:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2964.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2964" }
https://api.github.com/repos/pandas-dev/pandas/issues/2965
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2965/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2965/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2965/events
https://github.com/pandas-dev/pandas/pull/2965
11,642,606
MDExOlB1bGxSZXF1ZXN0NDQzNTczNw==
2,965
BUG check both left and right indexers for None (fix 2843)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1931852?v=4", "events_url": "https://api.github.com/users/hayd/events{/privacy}", "followers_url": "https://api.github.com/users/hayd/followers", "following_url": "https://api.github.com/users/hayd/following{/other_user}", "gists_url": "https://api.github.com/users/hayd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hayd", "id": 1931852, "login": "hayd", "node_id": "MDQ6VXNlcjE5MzE4NTI=", "organizations_url": "https://api.github.com/users/hayd/orgs", "received_events_url": "https://api.github.com/users/hayd/received_events", "repos_url": "https://api.github.com/users/hayd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hayd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hayd/subscriptions", "type": "User", "url": "https://api.github.com/users/hayd" }
[]
closed
false
null
[]
null
1
"2013-03-04T22:33:05Z"
"2014-06-21T22:19:56Z"
"2013-03-07T01:34:46Z"
CONTRIBUTOR
null
Fixes #2843 and adds the two test cases suggested there.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2965/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2965/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2965.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2965", "merged_at": "2013-03-07T01:34:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2965.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2965" }
https://api.github.com/repos/pandas-dev/pandas/issues/2966
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2966/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2966/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2966/events
https://github.com/pandas-dev/pandas/pull/2966
11,647,945
MDExOlB1bGxSZXF1ZXN0NDQzODQyMw==
2,966
Enable display of cursor coordinate info in t-series plots
{ "avatar_url": "https://avatars.githubusercontent.com/u/1249695?v=4", "events_url": "https://api.github.com/users/willfurnass/events{/privacy}", "followers_url": "https://api.github.com/users/willfurnass/followers", "following_url": "https://api.github.com/users/willfurnass/following{/other_user}", "gists_url": "https://api.github.com/users/willfurnass/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/willfurnass", "id": 1249695, "login": "willfurnass", "node_id": "MDQ6VXNlcjEyNDk2OTU=", "organizations_url": "https://api.github.com/users/willfurnass/orgs", "received_events_url": "https://api.github.com/users/willfurnass/received_events", "repos_url": "https://api.github.com/users/willfurnass/repos", "site_admin": false, "starred_url": "https://api.github.com/users/willfurnass/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/willfurnass/subscriptions", "type": "User", "url": "https://api.github.com/users/willfurnass" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
3
"2013-03-05T01:05:56Z"
"2014-06-12T21:00:19Z"
"2013-04-10T00:10:11Z"
CONTRIBUTOR
null
See Github Issue [#1670](https://github.com/pydata/pandas/issues/1670). Apologies for not having squashed my commits together; got rather confused by the process.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2966/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2966/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2966.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2966", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/2966.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2966" }
https://api.github.com/repos/pandas-dev/pandas/issues/2967
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2967/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2967/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2967/events
https://github.com/pandas-dev/pandas/issues/2967
11,648,367
MDU6SXNzdWUxMTY0ODM2Nw==
2,967
BUG: Series.argsort() fails with datetime64[ns] with NaT / dtypes are odd
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
3
"2013-03-05T01:21:44Z"
"2013-03-06T12:41:02Z"
"2013-03-06T12:41:02Z"
CONTRIBUTOR
null
pretty simple fix though, just need to make sure that the result array is typed float64 (to accomodate the nans) or int64 (if no nans) (rather than the same as input type) (which could give weird results in some cases), e.g. you wouldn't want a float array back just because you fed it nans.... heres the inspiration question http://stackoverflow.com/questions/15207279/return-sorted-indexes-skipping-nan-values-in-pandas ``` In [29]: s = pd.Series([pd.Timestamp('201301%02d'% (i+1)) for i in range(5)]) In [30]: s Out[30]: 0 2013-01-01 00:00:00 1 2013-01-02 00:00:00 2 2013-01-03 00:00:00 3 2013-01-04 00:00:00 4 2013-01-05 00:00:00 dtype: datetime64[ns] In [31]: s.argsort() Out[31]: 0 0 1 1 2 2 3 3 4 4 dtype: int64 In [32]: s.shift().argsort() --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-32-61a586f08c06> in <module>() ----> 1 s.shift().argsort() /mnt/home/jreback/pandas/pandas/core/series.pyc in argsort(self, axis, kind, order) 2119 result = values.copy() 2120 notmask = -mask -> 2121 result[notmask] = np.argsort(values[notmask], kind=kind) 2122 return Series(result, index=self.index, name=self.name) 2123 else: TypeError: array cannot be safely cast to required type ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2967/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2967/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2968
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2968/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2968/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2968/events
https://github.com/pandas-dev/pandas/issues/2968
11,649,844
MDU6SXNzdWUxMTY0OTg0NA==
2,968
A weird thing
{ "avatar_url": "https://avatars.githubusercontent.com/u/3771224?v=4", "events_url": "https://api.github.com/users/gohigh/events{/privacy}", "followers_url": "https://api.github.com/users/gohigh/followers", "following_url": "https://api.github.com/users/gohigh/following{/other_user}", "gists_url": "https://api.github.com/users/gohigh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gohigh", "id": 3771224, "login": "gohigh", "node_id": "MDQ6VXNlcjM3NzEyMjQ=", "organizations_url": "https://api.github.com/users/gohigh/orgs", "received_events_url": "https://api.github.com/users/gohigh/received_events", "repos_url": "https://api.github.com/users/gohigh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gohigh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gohigh/subscriptions", "type": "User", "url": "https://api.github.com/users/gohigh" }
[]
closed
false
null
[]
null
3
"2013-03-05T02:24:20Z"
"2013-03-10T15:59:45Z"
"2013-03-10T15:59:45Z"
NONE
null
I wrote the following code: ``` def volchange(df,col): del df[col] ext = pd.DataFrame(np.random.randn(4,2),columns=['add1','add2']) df = df.join(ext) return df aa = pd.DataFrame(np.random.randn(4,2),columns=['a','b']) cc = aa bb = volchange(cc,'a') ``` The result from running this code is: bb has 3 columns, 'b','add1','add2', that is what we expected. both aa and cc only have column 'b'. This is hard for me to understand: I guess 'cc=aa' only assigns the reference of aa to cc. This is OK... but if we assume we passes by reference to the function volchange(df,col), why only the command 'del df[col]' has effect on df, while the command 'df=df.join(ext)' has no effect on df, hence cc?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2968/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2968/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2969
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2969/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2969/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2969/events
https://github.com/pandas-dev/pandas/issues/2969
11,651,162
MDU6SXNzdWUxMTY1MTE2Mg==
2,969
Allow joins between MultiIndexes and normal Indexes to make use of common keys
{ "avatar_url": "https://avatars.githubusercontent.com/u/12965?v=4", "events_url": "https://api.github.com/users/spool/events{/privacy}", "followers_url": "https://api.github.com/users/spool/followers", "following_url": "https://api.github.com/users/spool/following{/other_user}", "gists_url": "https://api.github.com/users/spool/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/spool", "id": 12965, "login": "spool", "node_id": "MDQ6VXNlcjEyOTY1", "organizations_url": "https://api.github.com/users/spool/orgs", "received_events_url": "https://api.github.com/users/spool/received_events", "repos_url": "https://api.github.com/users/spool/repos", "site_admin": false, "starred_url": "https://api.github.com/users/spool/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/spool/subscriptions", "type": "User", "url": "https://api.github.com/users/spool" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2014-05-30T12:17:57Z", "closed_issues": 755, "created_at": "2014-01-03T20:19:04Z", "creator": null, "description": "2014-02-3: previous version released", "due_on": "2014-05-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/24", "id": 526062, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels", "node_id": "MDk6TWlsZXN0b25lNTI2MDYy", "number": 24, "open_issues": 0, "state": "closed", "title": "0.14.0", "updated_at": "2016-12-29T13:57:13Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24" }
4
"2013-03-05T03:25:39Z"
"2014-02-18T22:20:28Z"
"2014-02-18T22:20:07Z"
NONE
null
Hi not sure the best way to describe this but this stackoverflow question explains the problem nicely: http://stackoverflow.com/questions/14149156/merge-multi-indexed-with-single-indexed-data-frames-in-pandas Would be nice to be able to do this without the awkward reindex. Thanks again for a great project. Currently on version 0.10.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/2969/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2969/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2970
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2970/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2970/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2970/events
https://github.com/pandas-dev/pandas/issues/2970
11,671,407
MDU6SXNzdWUxMTY3MTQwNw==
2,970
argmax?
{ "avatar_url": "https://avatars.githubusercontent.com/u/296164?v=4", "events_url": "https://api.github.com/users/jseabold/events{/privacy}", "followers_url": "https://api.github.com/users/jseabold/followers", "following_url": "https://api.github.com/users/jseabold/following{/other_user}", "gists_url": "https://api.github.com/users/jseabold/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jseabold", "id": 296164, "login": "jseabold", "node_id": "MDQ6VXNlcjI5NjE2NA==", "organizations_url": "https://api.github.com/users/jseabold/orgs", "received_events_url": "https://api.github.com/users/jseabold/received_events", "repos_url": "https://api.github.com/users/jseabold/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jseabold/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jseabold/subscriptions", "type": "User", "url": "https://api.github.com/users/jseabold" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
null
10
"2013-03-05T15:34:25Z"
"2013-03-06T20:55:45Z"
"2013-03-05T15:38:18Z"
CONTRIBUTOR
null
Before I make a PR, is there an existing argmax anywhere? I often find myself wanting an easier way of asking for the argmax in a series, and I don't see a way to do it easily. From experience, this doesn't mean it doesn't exist.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2970/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2970/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2971
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2971/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2971/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2971/events
https://github.com/pandas-dev/pandas/issues/2971
11,691,598
MDU6SXNzdWUxMTY5MTU5OA==
2,971
BUG: io.sql.write_frame(if_exists='replace') not working as expected (with fix)
{ "avatar_url": "https://avatars.githubusercontent.com/u/2013388?v=4", "events_url": "https://api.github.com/users/dhstack/events{/privacy}", "followers_url": "https://api.github.com/users/dhstack/followers", "following_url": "https://api.github.com/users/dhstack/following{/other_user}", "gists_url": "https://api.github.com/users/dhstack/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dhstack", "id": 2013388, "login": "dhstack", "node_id": "MDQ6VXNlcjIwMTMzODg=", "organizations_url": "https://api.github.com/users/dhstack/orgs", "received_events_url": "https://api.github.com/users/dhstack/received_events", "repos_url": "https://api.github.com/users/dhstack/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dhstack/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhstack/subscriptions", "type": "User", "url": "https://api.github.com/users/dhstack" }
[ { "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": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" }, { "color": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" }, { "color": "e11d21", "default": false, "description": "Blocking issue or pull request for an upcoming release", "id": 77550281, "name": "Blocker", "node_id": "MDU6TGFiZWw3NzU1MDI4MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Blocker" } ]
closed
false
null
[]
{ "closed_at": "2014-05-30T12:17:57Z", "closed_issues": 755, "created_at": "2014-01-03T20:19:04Z", "creator": null, "description": "2014-02-3: previous version released", "due_on": "2014-05-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/24", "id": 526062, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels", "node_id": "MDk6TWlsZXN0b25lNTI2MDYy", "number": 24, "open_issues": 0, "state": "closed", "title": "0.14.0", "updated_at": "2016-12-29T13:57:13Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24" }
5
"2013-03-05T23:29:10Z"
"2014-02-14T05:12:23Z"
"2014-02-14T05:12:23Z"
NONE
null
If if_exists='replace' and the table already exists, then the following error occurs: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python27\lib\site-packages\pandas\io\sql.py", line 202, in write_frame cur.execute(create) sqlite3.OperationalError: no such table: aggregatedData ``` This is the code I ran with no issue: `psql.write_frame(outDf, 'aggregatedData', conn)` This is the code I ran to get the above error: `psql.write_frame(outDf, 'aggregatedData', conn, if_exists='replace')` If the same code is re-run after the error it will work as expected because the table is not there anymore. Running the code a third time will cause the error; the error happens every other run. Here's the fix I implemented in pandas.io.sql.py (~line 191): ``` # create or drop-recreate if necessary create = None if exists and if_exists == 'replace': create = "DROP TABLE %s" % name cur = con.cursor() cur.execute(create) cur.close() create = get_schema(frame, name, flavor) ``` Basically, I just dropped the existing table and set it to be recreated later in the code.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2971/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2971/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2972
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2972/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2972/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2972/events
https://github.com/pandas-dev/pandas/issues/2972
11,692,123
MDU6SXNzdWUxMTY5MjEyMw==
2,972
pandas.concat bug with series of the same name and axis=1
{ "avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4", "events_url": "https://api.github.com/users/lesteve/events{/privacy}", "followers_url": "https://api.github.com/users/lesteve/followers", "following_url": "https://api.github.com/users/lesteve/following{/other_user}", "gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lesteve", "id": 1680079, "login": "lesteve", "node_id": "MDQ6VXNlcjE2ODAwNzk=", "organizations_url": "https://api.github.com/users/lesteve/orgs", "received_events_url": "https://api.github.com/users/lesteve/received_events", "repos_url": "https://api.github.com/users/lesteve/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lesteve/subscriptions", "type": "User", "url": "https://api.github.com/users/lesteve" }
[ { "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": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
8
"2013-03-05T23:45:32Z"
"2013-03-16T02:31:33Z"
"2013-03-16T02:31:33Z"
CONTRIBUTOR
null
Kind of an edge case I would say, but still it would be nice to get an error or have an automatic renaming of the columns. If a simple error is acceptable as a first step I could definitely put together a PR. The following snippet shows that when you concatenate a column of zeros and a column of ones the resulting dataframe has two columns of ones: ``` python import pandas as pd import numpy as np ts0 = pd.Series(np.zeros(5)) ts1 = pd.Series(np.ones(5)) ts0.name = ts1.name = 'same name' df = pd.concat([ts0, ts1], axis=1) print df ``` and the output (pandas 0.10.1): ``` same name same name 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 ``` whereas I would expect: ``` same name same name 0 0 1 1 0 1 2 0 1 3 0 1 4 0 1 ``` Looks like this is due to `pandas.tools.merge._Concatenator._get_concat_axis` which doesn't check for name uniqueness, here is the relevant snippet: ``` python names = [] for x in self.objs: if x.name is not None: names.append(x.name) else: return Index(np.arange(len(self.objs)) return Index(names) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2972/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2972/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2973
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2973/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2973/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2973/events
https://github.com/pandas-dev/pandas/issues/2973
11,692,953
MDU6SXNzdWUxMTY5Mjk1Mw==
2,973
Feature: store.select should warn about unimplemented operators
{ "avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4", "events_url": "https://api.github.com/users/michaelaye/events{/privacy}", "followers_url": "https://api.github.com/users/michaelaye/followers", "following_url": "https://api.github.com/users/michaelaye/following{/other_user}", "gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/michaelaye", "id": 69774, "login": "michaelaye", "node_id": "MDQ6VXNlcjY5Nzc0", "organizations_url": "https://api.github.com/users/michaelaye/orgs", "received_events_url": "https://api.github.com/users/michaelaye/received_events", "repos_url": "https://api.github.com/users/michaelaye/repos", "site_admin": false, "starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions", "type": "User", "url": "https://api.github.com/users/michaelaye" }
[]
closed
false
null
[]
null
22
"2013-03-06T00:14:21Z"
"2013-03-15T01:34:52Z"
"2013-03-15T01:34:52Z"
CONTRIBUTOR
null
Currently, when doing this (with object dtypes) ``` python store.select('df', 'x != none') #this is not NaN, but the string 'none' ``` one receives exactly the same object as when doing ``` python store.select('df', 'x = none') ``` The suggestion is that the query parser warns about the unknown or unimplemented operator.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2973/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2973/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2974
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2974/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2974/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2974/events
https://github.com/pandas-dev/pandas/issues/2974
11,692,988
MDU6SXNzdWUxMTY5Mjk4OA==
2,974
Javascript grid UI for pandas Dataframes
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "DDDDDD", "default": false, "description": "Long-Term Enhancement Discussions", "id": 157369, "name": "Ideas", "node_id": "MDU6TGFiZWwxNTczNjk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Ideas" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 278, "created_at": "2013-01-06T03:02:01Z", "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": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)", "due_on": "2022-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/20", "id": 239227, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lMjM5MjI3", "number": 20, "open_issues": 108, "state": "open", "title": "Someday", "updated_at": "2021-08-08T01:48:22Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20" }
7
"2013-03-06T00:15:25Z"
"2014-01-15T13:44:09Z"
"2013-07-22T20:04:12Z"
NONE
null
[Exhibitionist](https://github.com/Exhibitionist/Exhibitionist) is a library geared towards integrating HTML/JS UIs into interactive python work. One of the examples included, a grid UI for dataframes, can be seen in the image below. Please check it out, report issues and help spread the word. ![grid](https://f.cloud.github.com/assets/1820866/225407/056a1f4c-85f2-11e2-9957-a8885c3a5b20.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/2974/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2974/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2975
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2975/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2975/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2975/events
https://github.com/pandas-dev/pandas/pull/2975
11,696,147
MDExOlB1bGxSZXF1ZXN0NDQ2MjIwMQ==
2,975
BUG: handle single column frame in DataFrame.cov
{ "avatar_url": "https://avatars.githubusercontent.com/u/453086?v=4", "events_url": "https://api.github.com/users/dieterv77/events{/privacy}", "followers_url": "https://api.github.com/users/dieterv77/followers", "following_url": "https://api.github.com/users/dieterv77/following{/other_user}", "gists_url": "https://api.github.com/users/dieterv77/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dieterv77", "id": 453086, "login": "dieterv77", "node_id": "MDQ6VXNlcjQ1MzA4Ng==", "organizations_url": "https://api.github.com/users/dieterv77/orgs", "received_events_url": "https://api.github.com/users/dieterv77/received_events", "repos_url": "https://api.github.com/users/dieterv77/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dieterv77/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dieterv77/subscriptions", "type": "User", "url": "https://api.github.com/users/dieterv77" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
0
"2013-03-06T01:58:57Z"
"2013-03-08T01:39:39Z"
"2013-03-08T01:39:39Z"
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2975/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2975/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2975.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2975", "merged_at": "2013-03-08T01:39:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2975.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2975" }
https://api.github.com/repos/pandas-dev/pandas/issues/2976
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2976/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2976/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2976/events
https://github.com/pandas-dev/pandas/pull/2976
11,696,509
MDExOlB1bGxSZXF1ZXN0NDQ2MjM5NQ==
2,976
BUG: HDFStore didn't implement != correctly for string columns query, GH #2973
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-03-06T02:14:58Z"
"2013-03-06T03:04:10Z"
"2013-03-06T03:04:09Z"
CONTRIBUTOR
null
ref to GH #2973
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2976/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2976/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2976.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2976", "merged_at": "2013-03-06T03:04:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2976.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2976" }
https://api.github.com/repos/pandas-dev/pandas/issues/2977
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2977/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2977/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2977/events
https://github.com/pandas-dev/pandas/pull/2977
11,696,955
MDExOlB1bGxSZXF1ZXN0NDQ2MjYzMQ==
2,977
BUG: Series.argsort failing on datetime64[ns] when NaT present, GH #2967
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-03-06T02:34:43Z"
"2014-07-05T13:27:51Z"
"2013-03-06T12:37:41Z"
CONTRIBUTOR
null
should close GH #2967
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2977/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2977/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2977.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2977", "merged_at": "2013-03-06T12:37:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2977.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2977" }
https://api.github.com/repos/pandas-dev/pandas/issues/2978
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2978/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2978/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2978/events
https://github.com/pandas-dev/pandas/issues/2978
11,707,022
MDU6SXNzdWUxMTcwNzAyMg==
2,978
BUG: Printing a DataFrame containing user-defined object causes infinite loop
{ "avatar_url": "https://avatars.githubusercontent.com/u/615121?v=4", "events_url": "https://api.github.com/users/cxrodgers/events{/privacy}", "followers_url": "https://api.github.com/users/cxrodgers/followers", "following_url": "https://api.github.com/users/cxrodgers/following{/other_user}", "gists_url": "https://api.github.com/users/cxrodgers/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cxrodgers", "id": 615121, "login": "cxrodgers", "node_id": "MDQ6VXNlcjYxNTEyMQ==", "organizations_url": "https://api.github.com/users/cxrodgers/orgs", "received_events_url": "https://api.github.com/users/cxrodgers/received_events", "repos_url": "https://api.github.com/users/cxrodgers/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cxrodgers/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cxrodgers/subscriptions", "type": "User", "url": "https://api.github.com/users/cxrodgers" }
[ { "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": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
1
"2013-03-06T10:21:36Z"
"2013-03-06T11:23:39Z"
"2013-03-06T11:23:39Z"
NONE
null
Version: pandas 0.10.0 , via `pip` OS: Ubuntu 12.04 x64 Description: I put a user-defined object (which defines only **getitem**) into a dataframe. Printing the dataframe causes the system to hang. I suspect that the construction of a text representation of the object is calling my object's **getitem**. A simple code snippet to fully reproduce the problem: ``` import pandas class A: def __getitem__(self, key): return 3 # obviously simplified df = pandas.DataFrame([A()]) print df ``` Desired behavior: pandas should not be calling the **getitem** method of objects in DataFrame. Running this script causes my computer to hang. Ctrl+C dumps a long traceback. Here is the first bit of it: Traceback (most recent call last): File "test.py", line 6, in <module> print df File "/home/jack/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 636, in **str** return self.**bytes**() File "/home/jack/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 646, in **bytes** return self.**unicode**().encode(encoding , 'replace') File "/home/jack/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 663, in **unicode** self.to_string(buf=buf, line_width=line_width) File "/home/jack/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 1503, in to_string formatter.to_string() File "/home/jack/.local/lib/python2.7/site-packages/pandas/core/format.py", line 297, in to_string strcols = self._to_str_columns() File "/home/jack/.local/lib/python2.7/site-packages/pandas/core/format.py", line 251, in _to_str_columns fmt_values = self._format_col(i) File "/home/jack/.local/lib/python2.7/site-packages/pandas/core/format.py", line 379, in _format_col space=self.col_space)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2978/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2978/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2979
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2979/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2979/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2979/events
https://github.com/pandas-dev/pandas/pull/2979
11,709,448
MDExOlB1bGxSZXF1ZXN0NDQ2ODM0Ng==
2,979
ENH: add display.max_seq_items to limit len of pprinted long sequences
{ "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" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
3
"2013-03-06T11:42:01Z"
"2014-06-13T08:16:29Z"
"2013-03-10T16:12:08Z"
NONE
null
There's a circuit-breaker in higher layers of the display code, but just in case. ``` python n [2]: pd.options.display.max_seq_items=10 In [3]: pd.core.common.pprint_thing(range(10000)) Out[3]: u'[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...]' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2979/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2979/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2979.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2979", "merged_at": "2013-03-10T16:12:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2979.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2979" }
https://api.github.com/repos/pandas-dev/pandas/issues/2980
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2980/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2980/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2980/events
https://github.com/pandas-dev/pandas/issues/2980
11,728,747
MDU6SXNzdWUxMTcyODc0Nw==
2,980
xtick label setting with improper scale
{ "avatar_url": "https://avatars.githubusercontent.com/u/81476?v=4", "events_url": "https://api.github.com/users/fonnesbeck/events{/privacy}", "followers_url": "https://api.github.com/users/fonnesbeck/followers", "following_url": "https://api.github.com/users/fonnesbeck/following{/other_user}", "gists_url": "https://api.github.com/users/fonnesbeck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fonnesbeck", "id": 81476, "login": "fonnesbeck", "node_id": "MDQ6VXNlcjgxNDc2", "organizations_url": "https://api.github.com/users/fonnesbeck/orgs", "received_events_url": "https://api.github.com/users/fonnesbeck/received_events", "repos_url": "https://api.github.com/users/fonnesbeck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fonnesbeck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fonnesbeck/subscriptions", "type": "User", "url": "https://api.github.com/users/fonnesbeck" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
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
"2013-03-06T19:33:23Z"
"2021-04-11T01:55:15Z"
null
NONE
null
I have some data that I have used to generate a stacked bar graph. ``` by_conclusion = measles_data.groupby(["AGE", "CONCLUSION"]) counts_by_cause = by_conclusion.size().unstack().fillna(0) ax = counts_by_cause.plot(kind='bar', stacked=True) ``` However, I get a pretty crowded x-axis: ![too_many_ticks](https://f.cloud.github.com/assets/81476/229080/29637982-8694-11e2-96bd-24a96c3e2dcd.png) So, I try to use `set_xticks` to try and thin them out, either as an argument to plot, or as a separate command: ``` ax.xticks(arange(0,80,10)) ``` However, for some reason, the labels end up being downscaled by a factor of 10: ![wrong_ticks](https://f.cloud.github.com/assets/81476/229081/2be6bf8e-8694-11e2-8d5c-46288606d785.png) (might be hard to see, but it is printing "0.0, 1.0, 2.0, ..." instead of "0, 10, 20, ...") Its not clear why this is happening, or how to get around it, so I'm either going about this wrong or its a bug. I get the same behavior when I try using `MaxNLocator`: ``` ax.xaxis.set_major_locator( MaxNLocator(nbins = 7) ) ``` [The data are here](https://dl.dropbox.com/u/233041/measles.csv)
{ "+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/2980/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2980/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2981
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2981/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2981/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2981/events
https://github.com/pandas-dev/pandas/issues/2981
11,729,607
MDU6SXNzdWUxMTcyOTYwNw==
2,981
Issues reading ragged CSV files
{ "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" }
[ { "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": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" } ]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
4
"2013-03-06T19:53:49Z"
"2013-04-08T07:36:14Z"
"2013-04-08T07:36:14Z"
MEMBER
null
http://stackoverflow.com/questions/15242746/handling-variable-number-of-columns-with-pandas-python
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2981/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2981/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2982
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2982/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2982/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2982/events
https://github.com/pandas-dev/pandas/issues/2982
11,732,215
MDU6SXNzdWUxMTczMjIxNQ==
2,982
argmin/argmax, idxmin/idxmax and datetime64
{ "avatar_url": "https://avatars.githubusercontent.com/u/1094464?v=4", "events_url": "https://api.github.com/users/lodagro/events{/privacy}", "followers_url": "https://api.github.com/users/lodagro/followers", "following_url": "https://api.github.com/users/lodagro/following{/other_user}", "gists_url": "https://api.github.com/users/lodagro/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lodagro", "id": 1094464, "login": "lodagro", "node_id": "MDQ6VXNlcjEwOTQ0NjQ=", "organizations_url": "https://api.github.com/users/lodagro/orgs", "received_events_url": "https://api.github.com/users/lodagro/received_events", "repos_url": "https://api.github.com/users/lodagro/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lodagro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lodagro/subscriptions", "type": "User", "url": "https://api.github.com/users/lodagro" }
[]
closed
false
null
[]
null
9
"2013-03-06T20:54:27Z"
"2015-02-26T19:07:31Z"
"2013-03-09T21:00:31Z"
CONTRIBUTOR
null
``` python In [65]: s Out[65]: a 2013-01-02 00:00:00 b 2013-01-03 00:00:00 c 2013-01-04 00:00:00 d 2013-01-05 00:00:00 e NaT dtype: datetime64[ns] In [66]: s.argmin() Out[66]: 4 In [67]: s.idxmin() --------------------------------------------------------------------------- TypeError Traceback (most recent call last) ... TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe' In [68]: s.argmax() Out[68]: 3 In [69]: s.idxmax() --------------------------------------------------------------------------- TypeError Traceback (most recent call last) ... TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2982/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2982/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2983
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2983/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2983/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2983/events
https://github.com/pandas-dev/pandas/issues/2983
11,733,232
MDU6SXNzdWUxMTczMzIzMg==
2,983
Google analytics error with eventLabel and totalEvents
{ "avatar_url": "https://avatars.githubusercontent.com/u/3765835?v=4", "events_url": "https://api.github.com/users/rippedathlete/events{/privacy}", "followers_url": "https://api.github.com/users/rippedathlete/followers", "following_url": "https://api.github.com/users/rippedathlete/following{/other_user}", "gists_url": "https://api.github.com/users/rippedathlete/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rippedathlete", "id": 3765835, "login": "rippedathlete", "node_id": "MDQ6VXNlcjM3NjU4MzU=", "organizations_url": "https://api.github.com/users/rippedathlete/orgs", "received_events_url": "https://api.github.com/users/rippedathlete/received_events", "repos_url": "https://api.github.com/users/rippedathlete/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rippedathlete/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rippedathlete/subscriptions", "type": "User", "url": "https://api.github.com/users/rippedathlete" }
[ { "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": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" }, { "color": "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": "2014-05-30T12:17:57Z", "closed_issues": 755, "created_at": "2014-01-03T20:19:04Z", "creator": null, "description": "2014-02-3: previous version released", "due_on": "2014-05-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/24", "id": 526062, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels", "node_id": "MDk6TWlsZXN0b25lNTI2MDYy", "number": 24, "open_issues": 0, "state": "closed", "title": "0.14.0", "updated_at": "2016-12-29T13:57:13Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24" }
1
"2013-03-06T21:19:44Z"
"2014-02-16T22:12:44Z"
"2014-02-16T22:12:44Z"
NONE
null
pandas 0.10.1, on OSX mountain lion, installed through pip. So, this works fine for me, ``` python events = ga.read_ga(['visits'], dimensions=["date"], start_date='2013-01-15', secrets=secretsfile, account_name="******************", property_id="***************") ``` But when I do the following, ``` python events = ga.read_ga(['totalEvents'], dimensions=["eventLabel"], start_date='2013-01-15', secrets=sec, account_name="Ripped Athlete", property_id="UA-37875661-1") ``` I get this traceback (abbreviated) ``` /usr/local/lib/python2.7/site-packages/pandas/io/ga.pyc in _parse_data(self, rows, col_info, index_col, parse_dates, keep_date_col, date_parser, dayfirst, na_values, converters, sort) 309 keep_date_col=keep_date_col, 310 converters=converters, --> 311 header=None, names=col_names)) 312 313 if isinstance(sort, bool) and sort: /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in _read(filepath_or_buffer, kwds) 206 207 # Create the parser. --> 208 parser = TextFileReader(filepath_or_buffer, **kwds) 209 210 if nrows is not None: /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, f, engine, **kwds) 505 self.options['has_index_names'] = kwds['has_index_names'] 506 --> 507 self._make_engine(self.engine) 508 509 def _get_options_with_defaults(self, engine): /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in _make_engine(self, engine) 613 elif engine == 'python-fwf': 614 klass = FixedWidthFieldParser --> 615 self._engine = klass(self.f, **self.options) 616 617 def _failover_to_python(self): /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, f, **kwds) 1157 else: 1158 self.data = f -> 1159 self.columns = self._infer_columns() 1160 1161 # get popped off for index /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in _infer_columns(self) 1331 line = self.buf[0] 1332 else: -> 1333 line = self._next_line() 1334 1335 ncols = len(line) /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in _next_line(self) 1352 line = self.data[self.pos] 1353 except IndexError: -> 1354 raise StopIteration 1355 else: 1356 while self.pos in self.skiprows: StopIteration: ``` Before I dig in further, I noticed that [`PythonParser._infer_columns`](https://github.com/pydata/pandas/blob/master/pandas/io/parsers.py#L1301) doesn't handle the `StopIteration` that can be raised by [`PythonParser._next_line`](https://github.com/pydata/pandas/blob/master/pandas/io/parsers.py#L1351). Should we consider raising that exception to be normal operation and change `_infer_columns` to handle it, or should we figure out what strange mix of circumstances is causing `_next_iteration` to raise 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/2983/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2983/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2984
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2984/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2984/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2984/events
https://github.com/pandas-dev/pandas/issues/2984
11,739,876
MDU6SXNzdWUxMTczOTg3Ng==
2,984
Feature: NaN in float64 series should become NaT with astype()
{ "avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4", "events_url": "https://api.github.com/users/michaelaye/events{/privacy}", "followers_url": "https://api.github.com/users/michaelaye/followers", "following_url": "https://api.github.com/users/michaelaye/following{/other_user}", "gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/michaelaye", "id": 69774, "login": "michaelaye", "node_id": "MDQ6VXNlcjY5Nzc0", "organizations_url": "https://api.github.com/users/michaelaye/orgs", "received_events_url": "https://api.github.com/users/michaelaye/received_events", "repos_url": "https://api.github.com/users/michaelaye/repos", "site_admin": false, "starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions", "type": "User", "url": "https://api.github.com/users/michaelaye" }
[]
closed
false
null
[]
null
4
"2013-03-07T00:12:25Z"
"2013-03-19T23:54:33Z"
"2013-03-19T23:54:33Z"
CONTRIBUTOR
null
To get an auto-diff on a timeseries I do: ``` python In [47]: ts Out[47]: 0 2011-04-16 00:00:00.025000 1 2011-04-16 00:00:00.152999 2 2011-04-16 00:00:00.280999 3 2011-04-16 00:00:00.409000 4 2011-04-16 00:00:00.537000 5 2011-04-16 00:00:00.665000 6 2011-04-16 00:00:00.792999 7 2011-04-16 00:00:00.921000 8 2011-04-16 00:00:01.049000 9 2011-04-16 00:00:01.177000 10 2011-04-16 00:00:01.297000 11 2011-04-16 00:00:01.424999 12 2011-04-16 00:00:01.552999 13 2011-04-16 00:00:01.680999 14 2011-04-16 00:00:01.809000 ... 25646 2011-04-16 00:59:58.143001 25647 2011-04-16 00:59:58.270999 25648 2011-04-16 00:59:58.398998 25649 2011-04-16 00:59:58.527000 25650 2011-04-16 00:59:58.654998 25651 2011-04-16 00:59:58.783000 25652 2011-04-16 00:59:58.910999 25653 2011-04-16 00:59:59.039001 25654 2011-04-16 00:59:59.166999 25655 2011-04-16 00:59:59.294998 25656 2011-04-16 00:59:59.423000 25657 2011-04-16 00:59:59.550998 25658 2011-04-16 00:59:59.679000 25659 2011-04-16 00:59:59.806999 25660 2011-04-16 00:59:59.935001 Length: 25661, dtype: datetime64[ns] In [48]: ts.diff() Out[48]: 0 NaN 1 127999000 2 128000000 3 128001000 4 128000000 5 128000000 6 127999000 7 128001000 8 128000000 9 128000000 10 120000000 11 127999000 12 128000000 13 128000000 14 128001000 ... 25646 128002000 25647 127998000 25648 127999000 25649 128002000 25650 127998000 25651 128002000 25652 127999000 25653 128002000 25654 127998000 25655 127999000 25656 128002000 25657 127998000 25658 128002000 25659 127999000 25660 128002000 Length: 25661, dtype: float64 ``` 1. One thing would be nice if a diff on a time-series automatically becomes a timedelta? 2. When converting the result of the `ts.diff()` with astype('timedelta64[ns']) it should convert the NaN into a NaT, if I understand things correctly? Instead this happens and I have to cut off the NaN to make it work: ``` python In [49]: ts.diff().astype('timedelta[ns]') --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-49-d1462d75fb33> in <module>() ----> 1 ts.diff().astype('timedelta[ns]') /usr/local/epd/lib/python2.7/site-packages/pandas/core/series.pyc in astype(self, dtype) 830 See numpy.ndarray.astype 831 """ --> 832 casted = com._astype_nansafe(self.values, dtype) 833 return self._constructor(casted, index=self.index, name=self.name, 834 dtype=casted.dtype) /usr/local/epd/lib/python2.7/site-packages/pandas/core/common.pyc in _astype_nansafe(arr, dtype, copy) 1361 """ return a view if copy is False """ 1362 if not isinstance(dtype, np.dtype): -> 1363 dtype = np.dtype(dtype) 1364 1365 if issubclass(arr.dtype.type, np.datetime64): TypeError: data type not understood In [50]: ts.diff().astype('timedelta64[ns]') --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-50-e9c54d8f8d73> in <module>() ----> 1 ts.diff().astype('timedelta64[ns]') /usr/local/epd/lib/python2.7/site-packages/pandas/core/series.pyc in astype(self, dtype) 830 See numpy.ndarray.astype 831 """ --> 832 casted = com._astype_nansafe(self.values, dtype) 833 return self._constructor(casted, index=self.index, name=self.name, 834 dtype=casted.dtype) /usr/local/epd/lib/python2.7/site-packages/pandas/core/common.pyc in _astype_nansafe(arr, dtype, copy) 1370 1371 if np.isnan(arr).any(): -> 1372 raise ValueError('Cannot convert NA to integer') 1373 elif arr.dtype == np.object_ and np.issubdtype(dtype.type, np.integer): 1374 # work around NumPy brokenness, #1987 ValueError: Cannot convert NA to integer In [51]: ts.diff()[1:].astype('timedelta64[ns]') Out[51]: 1 00:00:00.127999 2 00:00:00.128000 3 00:00:00.128001 4 00:00:00.128000 5 00:00:00.128000 6 00:00:00.127999 7 00:00:00.128001 8 00:00:00.128000 9 00:00:00.128000 10 00:00:00.120000 11 00:00:00.127999 12 00:00:00.128000 13 00:00:00.128000 14 00:00:00.128001 15 00:00:00.128000 ... 25646 00:00:00.128002 25647 00:00:00.127998 25648 00:00:00.127999 25649 00:00:00.128002 25650 00:00:00.127998 25651 00:00:00.128002 25652 00:00:00.127999 25653 00:00:00.128002 25654 00:00:00.127998 25655 00:00:00.127999 25656 00:00:00.128002 25657 00:00:00.127998 25658 00:00:00.128002 25659 00:00:00.127999 25660 00:00:00.128002 Length: 25660, dtype: timedelta64[ns] ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2984/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2984/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2985
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2985/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2985/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2985/events
https://github.com/pandas-dev/pandas/pull/2985
11,741,683
MDExOlB1bGxSZXF1ZXN0NDQ4NTA2NA==
2,985
BUG: Bug in idxmin/idxmax of ``datetime64[ns]`` Series with ``NaT`` (GH2982)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-03-07T01:11:33Z"
"2014-07-06T15:25:25Z"
"2013-03-07T01:54:08Z"
CONTRIBUTOR
null
fixes GH #2982 - Bug in idxmin/idxmax of `datetime64[ns]` Series with `NaT` - refactor in core/nanops.py to generically handle ops with datetime64[ns]/timedelta64[ns] - Series.argsort to always return int64 dtype (and ignore numpy dtype on ints), was failing a test, indicated in a711db075d5835f45f04867752f3db64be359490 - minor doc update in io.rst (pytables)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2985/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2985/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2985.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2985", "merged_at": "2013-03-07T01:54:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2985.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2985" }
https://api.github.com/repos/pandas-dev/pandas/issues/2986
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2986/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2986/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2986/events
https://github.com/pandas-dev/pandas/issues/2986
11,742,255
MDU6SXNzdWUxMTc0MjI1NQ==
2,986
failed to build pandas on windows.
{ "avatar_url": "https://avatars.githubusercontent.com/u/3221154?v=4", "events_url": "https://api.github.com/users/mayaa6/events{/privacy}", "followers_url": "https://api.github.com/users/mayaa6/followers", "following_url": "https://api.github.com/users/mayaa6/following{/other_user}", "gists_url": "https://api.github.com/users/mayaa6/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mayaa6", "id": 3221154, "login": "mayaa6", "node_id": "MDQ6VXNlcjMyMjExNTQ=", "organizations_url": "https://api.github.com/users/mayaa6/orgs", "received_events_url": "https://api.github.com/users/mayaa6/received_events", "repos_url": "https://api.github.com/users/mayaa6/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mayaa6/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mayaa6/subscriptions", "type": "User", "url": "https://api.github.com/users/mayaa6" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
closed
false
null
[]
null
3
"2013-03-07T01:33:08Z"
"2013-03-12T13:39:09Z"
"2013-03-12T13:39:09Z"
NONE
null
I am build the latest stable version Pandas on my Windows 7 32-bit. On first try, I got a "Error: Unable to find vcvarsall.bar" error. Then I installed VC++2008 Express correctly, but the same error still didn't pass. I can locate the vcvarsall.bat on the VC++ installation directory manually, and I read msvc9compiler.py in Python's distutils module, I am sure the module can find vcvarsall.bat. Also build Pandas with mingw32 4.72 version failed either. Could anyone got some ideas on how I made mistakes possibly?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2986/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2986/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2987
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2987/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2987/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2987/events
https://github.com/pandas-dev/pandas/pull/2987
11,742,821
MDExOlB1bGxSZXF1ZXN0NDQ4NTYwMw==
2,987
add comparisons operator to the Period object and fixes issue 2781
{ "avatar_url": "https://avatars.githubusercontent.com/u/31669?v=4", "events_url": "https://api.github.com/users/Moisan/events{/privacy}", "followers_url": "https://api.github.com/users/Moisan/followers", "following_url": "https://api.github.com/users/Moisan/following{/other_user}", "gists_url": "https://api.github.com/users/Moisan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Moisan", "id": 31669, "login": "Moisan", "node_id": "MDQ6VXNlcjMxNjY5", "organizations_url": "https://api.github.com/users/Moisan/orgs", "received_events_url": "https://api.github.com/users/Moisan/received_events", "repos_url": "https://api.github.com/users/Moisan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Moisan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Moisan/subscriptions", "type": "User", "url": "https://api.github.com/users/Moisan" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
7
"2013-03-07T01:55:44Z"
"2014-06-19T14:50:06Z"
"2013-03-28T05:40:01Z"
CONTRIBUTOR
null
This commit should fix [issue 2781](https://github.com/pydata/pandas/issues/2781). The Period object couldn't be sorted because it didn't have any **le**, **gt**, **lt**, **ge** or **cmp** methods.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2987/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2987/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2987.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2987", "merged_at": "2013-03-28T05:40:01Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2987.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2987" }
https://api.github.com/repos/pandas-dev/pandas/issues/2988
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2988/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2988/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2988/events
https://github.com/pandas-dev/pandas/issues/2988
11,747,709
MDU6SXNzdWUxMTc0NzcwOQ==
2,988
timedelta64[ns] : argmin() failing
{ "avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4", "events_url": "https://api.github.com/users/michaelaye/events{/privacy}", "followers_url": "https://api.github.com/users/michaelaye/followers", "following_url": "https://api.github.com/users/michaelaye/following{/other_user}", "gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/michaelaye", "id": 69774, "login": "michaelaye", "node_id": "MDQ6VXNlcjY5Nzc0", "organizations_url": "https://api.github.com/users/michaelaye/orgs", "received_events_url": "https://api.github.com/users/michaelaye/received_events", "repos_url": "https://api.github.com/users/michaelaye/repos", "site_admin": false, "starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions", "type": "User", "url": "https://api.github.com/users/michaelaye" }
[]
closed
false
null
[]
null
2
"2013-03-07T06:28:35Z"
"2013-03-07T15:50:02Z"
"2013-03-07T15:50:02Z"
CONTRIBUTOR
null
argmax() works fine, but argmin() throws an error: ``` python In [22]: diff = ts - ts.shift() In [23]: diff Out[23]: 0 NaT 1 00:00:00.128001 2 00:00:00.127999 3 00:00:00.128001 4 00:00:00.127999 5 00:00:00.128001 6 00:00:00.127999 7 00:00:00.128001 8 00:00:00.127999 9 00:00:00.128001 10 00:00:00.127999 11 00:00:00.128001 12 00:00:00.128000 13 00:00:00.127999 14 00:00:00.128001 ... 25646 00:00:00.128001 25647 00:00:00.128000 25648 00:00:00.128000 25649 00:00:00.128000 25650 00:00:00.127999 25651 00:00:00.128000 25652 00:00:00.128000 25653 00:00:00.128000 25654 00:00:00.128001 25655 00:00:00.128000 25656 00:00:00.128000 25657 00:00:00.127999 25658 00:00:00.128000 25659 00:00:00.128000 25660 00:00:00.128000 Length: 25661, dtype: timedelta64[ns] In [24]: diff.argmax() Out[24]: 20540 In [25]: diff.argmin() --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-25-e4a9e608a754> in <module>() ----> 1 diff.argmin() /usr/local/epd/lib/python2.7/site-packages/pandas/core/series.pyc in wrapper(self, other) 134 135 else: --> 136 raise ValueError('cannot operate on a series with out a rhs ' 137 'of a series/ndarray of type datetime64[ns] ' 138 'or a timedelta') ValueError: cannot operate on a series with out a rhs of a series/ndarray of type datetime64[ns] or a timedelta In [26]: pd.__version__ Out[26]: '0.11.0.dev-819e0ad' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2988/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2988/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2989
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2989/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2989/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2989/events
https://github.com/pandas-dev/pandas/issues/2989
11,747,853
MDU6SXNzdWUxMTc0Nzg1Mw==
2,989
timedelta64[ns]: max() and min() return numpy.int64
{ "avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4", "events_url": "https://api.github.com/users/michaelaye/events{/privacy}", "followers_url": "https://api.github.com/users/michaelaye/followers", "following_url": "https://api.github.com/users/michaelaye/following{/other_user}", "gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/michaelaye", "id": 69774, "login": "michaelaye", "node_id": "MDQ6VXNlcjY5Nzc0", "organizations_url": "https://api.github.com/users/michaelaye/orgs", "received_events_url": "https://api.github.com/users/michaelaye/received_events", "repos_url": "https://api.github.com/users/michaelaye/repos", "site_admin": false, "starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions", "type": "User", "url": "https://api.github.com/users/michaelaye" }
[]
closed
false
null
[]
null
6
"2013-03-07T06:35:34Z"
"2013-03-07T20:10:37Z"
"2013-03-07T19:50:16Z"
CONTRIBUTOR
null
I guess that max() and min() are not implementing yet fully: ``` python In [28]: diff.head() Out[28]: 0 NaT 1 00:00:00.128001 2 00:00:00.127999 3 00:00:00.128001 4 00:00:00.127999 Dtype: timedelta64[ns] In [29]: diff.max() Out[29]: 1934745001000 In [30]: diff.max().dtype Out[30]: dtype('int64') In [31]: diff[0].dtype Out[31]: dtype('timedelta64[ns]') In [32]: diff.min().dtype Out[32]: dtype('int64') ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2989/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2989/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2990
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2990/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2990/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2990/events
https://github.com/pandas-dev/pandas/pull/2990
11,759,251
MDExOlB1bGxSZXF1ZXN0NDQ5MzMzNA==
2,990
ENH: support min/max on timedelta64[ns] Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
0
"2013-03-07T13:31:21Z"
"2014-06-16T11:59:00Z"
"2013-03-07T19:15:00Z"
CONTRIBUTOR
null
closes GH #2989 ``` In [168]: df = DataFrame(dict(A = s - Timestamp('20120101')-timedelta(minutes=5,seconds=5), .....: B = s - Series(date_range('2012-1-2', periods=3, freq='D')))) .....: In [169]: df Out[169]: A B 0 -00:05:05 -1 days, 00:00:00 1 23:54:55 -1 days, 00:00:00 2 1 days, 23:54:55 -1 days, 00:00:00 In [170]: df.min() Out[170]: A -00:05:05 B -1 days, 00:00:00 dtype: timedelta64[ns] In [171]: df.min(axis=1) Out[171]: 0 -1 days, 00:00:00 1 -1 days, 00:00:00 2 -1 days, 00:00:00 dtype: timedelta64[ns] In [172]: df.idxmin() Out[172]: A 0 B 0 dtype: int64 In [173]: df.idxmax() Out[173]: A 2 B 0 dtype: int64 min, max operations are support on series, these return a single element timedelta64[ns] Series (this avoids having to deal with numpy timedelta64 issues). idxmin, idxmax are supported as well. In [306]: df.min().max() Out[306]: 0 -00:05:05 dtype: timedelta64[ns] In [307]: df.min(axis=1).min() Out[307]: 0 -1 days, 00:00:00 dtype: timedelta64[ns] In [308]: df.min().idxmax() Out[308]: 'A' In [309]: df.min(axis=1).idxmin() Out[309]: 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/2990/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2990/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2990.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2990", "merged_at": "2013-03-07T19:15:00Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2990.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2990" }
https://api.github.com/repos/pandas-dev/pandas/issues/2991
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2991/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2991/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2991/events
https://github.com/pandas-dev/pandas/pull/2991
11,775,527
MDExOlB1bGxSZXF1ZXN0NDUwMTQwOQ==
2,991
ENH/BUG: add tz argument to to_timestamp of Period GH2877
{ "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" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
4
"2013-03-07T19:43:06Z"
"2014-06-27T10:11:32Z"
"2013-03-15T20:51:28Z"
NONE
null
#2877
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2991/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2991/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2991.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2991", "merged_at": "2013-03-15T20:51:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2991.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2991" }
https://api.github.com/repos/pandas-dev/pandas/issues/2992
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2992/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2992/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2992/events
https://github.com/pandas-dev/pandas/pull/2992
11,784,541
MDExOlB1bGxSZXF1ZXN0NDUwNjMwNQ==
2,992
DOC: doc updates/formatting in basics,indexing,10min
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
null
0
"2013-03-07T23:25:23Z"
"2013-03-07T23:33:49Z"
"2013-03-07T23:33:49Z"
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2992/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2992/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2992.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2992", "merged_at": "2013-03-07T23:33:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2992.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2992" }
https://api.github.com/repos/pandas-dev/pandas/issues/2993
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2993/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2993/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2993/events
https://github.com/pandas-dev/pandas/issues/2993
11,830,989
MDU6SXNzdWUxMTgzMDk4OQ==
2,993
Timestamp doesn't correctly localize datetime.date
{ "avatar_url": "https://avatars.githubusercontent.com/u/609926?v=4", "events_url": "https://api.github.com/users/petergx/events{/privacy}", "followers_url": "https://api.github.com/users/petergx/followers", "following_url": "https://api.github.com/users/petergx/following{/other_user}", "gists_url": "https://api.github.com/users/petergx/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/petergx", "id": 609926, "login": "petergx", "node_id": "MDQ6VXNlcjYwOTkyNg==", "organizations_url": "https://api.github.com/users/petergx/orgs", "received_events_url": "https://api.github.com/users/petergx/received_events", "repos_url": "https://api.github.com/users/petergx/repos", "site_admin": false, "starred_url": "https://api.github.com/users/petergx/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/petergx/subscriptions", "type": "User", "url": "https://api.github.com/users/petergx" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
2
"2013-03-09T00:09:17Z"
"2013-03-21T07:58:54Z"
"2013-03-21T07:58:54Z"
NONE
null
In 0.10.1, Timestamp constructor seems to have an issue localizing datetime.date objects. ``` In [19]: import datetime In [20]: datetime.date(2013, 3, 9) Out[20]: datetime.date(2013, 3, 9) In [21]: d=datetime.date(2013, 3, 9) In [22]: Timestamp(d, tz='US/Pacific') == Timestamp(d).tz_localize('US/Pacific') Out[22]: False In [23]: Timestamp(d, tz='US/Pacific') Out[23]: <Timestamp: 2013-03-08 16:00:00-0800 PST, tz=US/Pacific> ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2993/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2993/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2994
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2994/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2994/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2994/events
https://github.com/pandas-dev/pandas/issues/2994
11,831,024
MDU6SXNzdWUxMTgzMTAyNA==
2,994
DataFrame.replace(<scalar>, ...) is not handled
{ "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" }
[ { "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": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
3
"2013-03-09T00:11:01Z"
"2013-03-21T12:31:46Z"
"2013-03-21T12:31:46Z"
MEMBER
null
I would expect like `df.replace(0, df.mean())` to work. And it does not
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2994/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2994/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2995
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2995/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2995/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2995/events
https://github.com/pandas-dev/pandas/issues/2995
11,832,451
MDU6SXNzdWUxMTgzMjQ1MQ==
2,995
Partial Selection on Hierarichal Index Not Working as Expected Beyond 2 Levels
{ "avatar_url": "https://avatars.githubusercontent.com/u/2701562?v=4", "events_url": "https://api.github.com/users/dragoljub/events{/privacy}", "followers_url": "https://api.github.com/users/dragoljub/followers", "following_url": "https://api.github.com/users/dragoljub/following{/other_user}", "gists_url": "https://api.github.com/users/dragoljub/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dragoljub", "id": 2701562, "login": "dragoljub", "node_id": "MDQ6VXNlcjI3MDE1NjI=", "organizations_url": "https://api.github.com/users/dragoljub/orgs", "received_events_url": "https://api.github.com/users/dragoljub/received_events", "repos_url": "https://api.github.com/users/dragoljub/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dragoljub/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dragoljub/subscriptions", "type": "User", "url": "https://api.github.com/users/dragoljub" }
[]
closed
false
null
[]
null
11
"2013-03-09T01:21:44Z"
"2013-03-15T00:25:11Z"
"2013-03-15T00:25:11Z"
NONE
null
The Pandas documentation states that a hierarchically indexed DataFrame can be partially selected from by passing a partial list of index values. For example if we have a 5-level index, then df.ix['A','B','C','D'] should return a DataFrame with the subset of rows where levels[0,1,2,3] match values ['A','B','C','D'] indexed with by the remaining lowest index level 5. I have found that this only works when partially selecting on the first two levels, anything beyond the first 2 levels requires the user to append a null slice at the end for .ix to work. This becomes cumbersome especially if you do not know exactly how many levels are available in a DataFrame after several processing steps. The same behavior persists regardless if your MultiIndex is int64 or string or mixed types. It would be best if any partial tuple of index values passed to the .ix method returns a partial selection matching that tuple without requiring users to explicitly append the empty slice for the remaining levels. Let me know if this is how the .ix method is intended to work. It might be a simple fix of by checking if the tuple length == # levels and if not appending the empty slice within the .ix method. ### Example Showing the Issue: Take an example data set with 5 index levels, group by the first 4 levels and count the group sizes. Select the group with the largest size. Results: (Clean Code Pasted Below IPython Output) ``` python In [1]: import numpy as np In [2]: import pandas as pd In [3]: print pd.__version__ 0.11.0.dev-80945b6 In [4]: # Generate Test DataFrame ...: NUM_ROWS = 100000 ...: In [5]: NUM_COLS = 10 In [6]: col_names = ['A'+num for num in map(str,np.arange(NUM_COLS).tolist())] In [7]: index_cols = col_names[:5] In [8]: # Set DataFrame to have 5 level Hierarchical Index. ...: # The dtype does not matter try str or np.int64 same results. ...: df = pd.DataFrame(np.random.randint(5, size=(NUM_ROWS,NUM_COLS)), dtype=np.int64, columns=col_names) ...: In [9]: df = df.set_index(index_cols) In [10]: df Out[10]: <class 'pandas.core.frame.DataFrame'> MultiIndex: 100000 entries, (2, 2, 4, 0, 0) to (3, 2, 3, 1, 1) Data columns: A5 100000 non-null values A6 100000 non-null values A7 100000 non-null values A8 100000 non-null values A9 100000 non-null values dtypes: int64(5) In [11]: # Group by first 4 index columns. ....: grp = df.groupby(level=index_cols[:-1]) ....: In [12]: # Compute group size and find index of largest group. ....: grp_size = grp.size() ....: In [13]: grp_size.sort() In [14]: grp_size[::-1] Out[14]: A0 A1 A2 A3 2 1 2 1 200 1 4 1 3 200 3 1 4 1 199 4 1 1 1 196 2 4 2 0 190 4 4 0 1 190 3 1 0 0 189 0 0 4 3 189 4 1 2 1 188 0 1 4 2 187 2 2 3 0 187 3 2 3 2 187 3 4 0 186 1 3 0 186 3 3 4 185 ... 0 1 1 4 136 2 4 4 3 135 4 4 1 2 135 2 4 3 2 135 3 3 4 1 134 4 2 3 1 133 3 2 2 4 133 4 0 1 3 133 0 4 3 4 131 1 2 1 0 130 4 4 1 4 130 2 1 4 128 0 2 3 2 127 3 3 0 1 121 1 0 2 3 106 Length: 625, dtype: int64 In [15]: loc = grp.size().idxmax() In [16]: loc Out[16]: (1, 4, 1, 3) In [17]: # The following line does not work. ....: # Can't use partial selection to select largest group. ....: df.ix[loc] ....: --------------------------------------------------------------------------- IndexingError Traceback (most recent call last) <ipython-input-17-e26047d119d7> in <module>() 1 # The following line does not work. 2 # Can't use partial selection to select largest group. ----> 3 df.ix[loc] 4 C:\Python27\lib\site-packages\pandas\core\indexing.pyc in __getitem__(self, key) 44 pass 45 ---> 46 return self._getitem_tuple(key) 47 else: 48 return self._getitem_axis(key, axis=0) C:\Python27\lib\site-packages\pandas\core\indexing.pyc in _getitem_tuple(self, tup) 235 for i, key in enumerate(tup): 236 if i >= self.obj.ndim: --> 237 raise IndexingError('Too many indexers') 238 239 if _is_null_slice(key): IndexingError: Too many indexers In [18]: # Appending the null slice at the end works! ....: # I was hoping for partial selection to work above. ....: df.ix[loc+(slice(None),)] ....: Out[18]: <class 'pandas.core.frame.DataFrame'> Int64Index: 200 entries, 1 to 0 Data columns: A5 200 non-null values A6 200 non-null values A7 200 non-null values A8 200 non-null values A9 200 non-null values dtypes: int64(5) In [19]: # Selecting on first level works. ....: df.ix[loc[0]] ....: Out[19]: <class 'pandas.core.frame.DataFrame'> MultiIndex: 19796 entries, (3, 1, 1, 1) to (4, 1, 3, 0) Data columns: A5 19796 non-null values A6 19796 non-null values A7 19796 non-null values A8 19796 non-null values A9 19796 non-null values dtypes: int64(5) In [20]: # Selecting on first two levels works. ....: df.ix[loc[0], loc[1]] ....: Out[20]: A1 A2 A3 A4 3 1 1 1 3 0 1 1 0 2 4 0 1 3 4 3 1 4 1 1 4 4 4 4 0 0 3 2 4 1 1 2 3 1 4 3 4 3 4 2 1 2 0 3 1 2 0 2 1 0 0 3 0 3 2 4 2 2 4 4 0 4 1 2 2 4 4 1 3 0 3 4 ... 0 2 4 0 0 1 4 2 1 4 0 2 1 4 3 4 2 3 2 1 1 3 2 3 3 3 0 3 1 2 1 2 4 3 4 4 2 2 0 0 2 3 2 4 4 1 3 3 1 3 4 2 2 2 4 1 4 3 1 1 1 1 1 0 1 3 1 4 1 3 0 3 Name: A9, Length: 19796, dtype: int64 In [21]: # Selecting on first 3 levels fails. ....: df.ix[loc[0], loc[1], loc[2]] ....: --------------------------------------------------------------------------- IndexingError Traceback (most recent call last) <ipython-input-21-38eb049081e0> in <module>() 1 # Selecting on first 3 levels fails. ----> 2 df.ix[loc[0], loc[1], loc[2]] 3 C:\Python27\lib\site-packages\pandas\core\indexing.pyc in __getitem__(self, key) 44 pass 45 ---> 46 return self._getitem_tuple(key) 47 else: 48 return self._getitem_axis(key, axis=0) C:\Python27\lib\site-packages\pandas\core\indexing.pyc in _getitem_tuple(self, tup) 235 for i, key in enumerate(tup): 236 if i >= self.obj.ndim: --> 237 raise IndexingError('Too many indexers') 238 239 if _is_null_slice(key): IndexingError: Too many indexers In [22]: # Adding the null slice and it works. ....: df.ix[loc[0], loc[1], loc[2], slice(None)] Out[22]: <class 'pandas.core.frame.DataFrame'> MultiIndex: 848 entries, (2, 1) to (3, 0) Data columns: A5 848 non-null values A6 848 non-null values A7 848 non-null values A8 848 non-null values A9 848 non-null values dtypes: int64(5) ``` ### Code: ``` python import numpy as np import pandas as pd print pd.__version__ # Generate Test DataFrame NUM_ROWS = 100000 NUM_COLS = 10 col_names = ['A'+num for num in map(str,np.arange(NUM_COLS).tolist())] index_cols = col_names[:5] # Set DataFrame to have 5 level Hierarchical Index. # The dtype does not matter try str or np.int64 same results. df = pd.DataFrame(np.random.randint(5, size=(NUM_ROWS,NUM_COLS)), dtype=np.int64, columns=col_names) df = df.set_index(index_cols) df # Group by first 4 index columns. grp = df.groupby(level=index_cols[:-1]) # Compute group size and find index of largest group. grp_size = grp.size() grp_size.sort() grp_size[::-1] loc = grp.size().idxmax() loc # The following line does not work. # Can't use partial selection to select largest group. df.ix[loc] # Appending the null slice at the end works! # I was hoping for partial selection to work above. df.ix[loc+(slice(None),)] # Selecting on first level works. df.ix[loc[0]] # Selecting on first two levels works. df.ix[loc[0], loc[1]] # Selecting on first 3 levels fails. df.ix[loc[0], loc[1], loc[2]] # Adding the null slice and it works. df.ix[loc[0], loc[1], loc[2], slice(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/2995/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2995/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2996
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2996/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2996/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2996/events
https://github.com/pandas-dev/pandas/issues/2996
11,837,819
MDU6SXNzdWUxMTgzNzgxOQ==
2,996
DataFrame self-joins
{ "avatar_url": "https://avatars.githubusercontent.com/u/1249695?v=4", "events_url": "https://api.github.com/users/willfurnass/events{/privacy}", "followers_url": "https://api.github.com/users/willfurnass/followers", "following_url": "https://api.github.com/users/willfurnass/following{/other_user}", "gists_url": "https://api.github.com/users/willfurnass/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/willfurnass", "id": 1249695, "login": "willfurnass", "node_id": "MDQ6VXNlcjEyNDk2OTU=", "organizations_url": "https://api.github.com/users/willfurnass/orgs", "received_events_url": "https://api.github.com/users/willfurnass/received_events", "repos_url": "https://api.github.com/users/willfurnass/repos", "site_admin": false, "starred_url": "https://api.github.com/users/willfurnass/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/willfurnass/subscriptions", "type": "User", "url": "https://api.github.com/users/willfurnass" }
[]
closed
false
null
[]
null
7
"2013-03-09T12:01:40Z"
"2015-10-14T11:13:25Z"
"2013-03-10T14:24:19Z"
CONTRIBUTOR
null
Given the following DataFrame | area | point | test | value | | --- | --- | --- | --- | | A | 11 | 0 | 1234234 | | A | 11 | 1 | 12341234 | | A | 16 | 0 | 234234 | | A | 16 | 1 | 2343 | | A | 16 | 2 | 234234 | | C | 4 | 0 | 234234 | | C | 4 | 1 | 234234 | it would be nice if there were a way of grouping say columns `area` and `point` and comparing the `value` per `test` > 1 with the value for `test` - 1. This can be done by iterating over `df.groupby(['area', 'point', 'test'])` and using the sorting provided by `groupby()` on the specified columns to compare current and previous `value`s. However, it would be neat if this could also be done in a more Pandas-esque way using something akin to a SQL self-join. NB request first made in pystatsmodels Google Group; was asked by Wes to create a Github issue for this.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2996/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2996/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2997
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2997/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2997/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2997/events
https://github.com/pandas-dev/pandas/issues/2997
11,842,447
MDU6SXNzdWUxMTg0MjQ0Nw==
2,997
inconsistent behaviour with .ix and setting values
{ "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" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2013-12-30T19:53:14Z", "closed_issues": 1076, "created_at": "2012-11-15T23:33:37Z", "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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)", "due_on": "2013-12-30T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/18", "id": 213925, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels", "node_id": "MDk6TWlsZXN0b25lMjEzOTI1", "number": 18, "open_issues": 0, "state": "closed", "title": "0.13", "updated_at": "2017-07-22T19:00:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18" }
8
"2013-03-09T19:00:00Z"
"2013-09-26T02:42:49Z"
"2013-09-26T02:42:49Z"
CONTRIBUTOR
null
Using .ix twice and assigning a value as in `df.ix[...].ix[...] = b` works in the first case and not in the second: ``` python >>> # from http://stackoverflow.com/questions/15200598/partial-update-to-dataframe-with-multi-index-index-with-integer-labels/15213525#15213525 >>> print df bucket start stop date x1 x2 x3 0 B1 1 1 2000-10-03 00:00:00 2 2 3 1 B1 1 1 2000-01-04 00:00:00 4 3 3 2 B1 1 2 2000-01-03 00:00:00 4 2 3 3 B1 1 2 2000-01-04 00:00:00 6 2 2 >>> df2 = df.set_index(['bucket','start','stop']) >>> print df2 date x1 x2 x3 bucket start stop B1 1 1 2000-10-03 00:00:00 2 2 3 1 2000-01-04 00:00:00 4 3 3 2 2000-01-03 00:00:00 4 2 3 2 2000-01-04 00:00:00 6 2 2 >>> df2.ix[('B1',1,2)].ix[:,'x1'] = 5 #works >>> print df2 date x1 x2 x3 bucket start stop B1 1 1 2000-10-03 00:00:00 2 2 3 1 2000-01-04 00:00:00 4 3 3 2 2000-01-03 00:00:00 5 2 3 2 2000-01-04 00:00:00 5 2 2 >>> df3 = pd.DataFrame(data={"z":[1,2,3,4],"a":["a","b","c","d"],"b":["X","Y","X","Y"], "c":[1,2,3,4],"d":[5,6,7,8]}) >>> df4 = df3.set_index(["z","a"]) >>> print df4 b c d z a 1 a X 1 5 2 b Y 2 6 3 c X 3 7 4 d Y 4 8 >>> df4.ix[1:2,"b":].ix[:,"d"] = 7 # does not work >>> print df4 b c d z a 1 a X 1 5 2 b Y 2 6 3 c X 3 7 4 d Y 4 8 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2997/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2997/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2998
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2998/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2998/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2998/events
https://github.com/pandas-dev/pandas/issues/2998
11,845,992
MDU6SXNzdWUxMTg0NTk5Mg==
2,998
Series append function shifts index if timezone information exist
{ "avatar_url": "https://avatars.githubusercontent.com/u/1815898?v=4", "events_url": "https://api.github.com/users/ribelo/events{/privacy}", "followers_url": "https://api.github.com/users/ribelo/followers", "following_url": "https://api.github.com/users/ribelo/following{/other_user}", "gists_url": "https://api.github.com/users/ribelo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ribelo", "id": 1815898, "login": "ribelo", "node_id": "MDQ6VXNlcjE4MTU4OTg=", "organizations_url": "https://api.github.com/users/ribelo/orgs", "received_events_url": "https://api.github.com/users/ribelo/received_events", "repos_url": "https://api.github.com/users/ribelo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ribelo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ribelo/subscriptions", "type": "User", "url": "https://api.github.com/users/ribelo" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
1
"2013-03-09T23:49:16Z"
"2013-03-14T10:45:52Z"
"2013-03-14T10:45:52Z"
NONE
null
Code to reproduce: rng1 = pd.date_range('1/1/2011 01:00', periods=10, freq='H') rng2 = pd.date_range('1/1/2011 02:00', periods=10, freq='H') ts1 = pd.Series(np.random.randn(len(rng1)), index=rng1).tz_localize('CET') ts2 = pd.Series(np.random.randn(len(rng2)), index=rng2).tz_localize('CET') ts_result = ts1.append(ts2) Result in IPython: In [208]: ts1 Out[208]: 2011-01-01 01:00:00+01:00 0.164609 Freq: H In [209]: ts2 Out[209]: 2011-01-01 02:00:00+01:00 2.138849 Freq: H In [210]: ts_result Out[210]: 2011-01-01 00:00:00+01:00 0.164609 2011-01-01 01:00:00+01:00 2.138849
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2998/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2998/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/2999
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/2999/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/2999/comments
https://api.github.com/repos/pandas-dev/pandas/issues/2999/events
https://github.com/pandas-dev/pandas/pull/2999
11,846,740
MDExOlB1bGxSZXF1ZXN0NDUzMzMyMg==
2,999
DOC: added recommended dependencies section in install.rst
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
4
"2013-03-10T01:19:09Z"
"2013-03-10T02:47:28Z"
"2013-03-10T02:47:27Z"
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/2999/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/2999/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/2999.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/2999", "merged_at": "2013-03-10T02:47:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/2999.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/2999" }
https://api.github.com/repos/pandas-dev/pandas/issues/3000
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/3000/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/3000/comments
https://api.github.com/repos/pandas-dev/pandas/issues/3000/events
https://github.com/pandas-dev/pandas/issues/3000
11,847,968
MDU6SXNzdWUxMTg0Nzk2OA==
3,000
DataFrame.from_records should be less strict about dict like types
{ "avatar_url": "https://avatars.githubusercontent.com/u/87697?v=4", "events_url": "https://api.github.com/users/tebeka/events{/privacy}", "followers_url": "https://api.github.com/users/tebeka/followers", "following_url": "https://api.github.com/users/tebeka/following{/other_user}", "gists_url": "https://api.github.com/users/tebeka/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tebeka", "id": 87697, "login": "tebeka", "node_id": "MDQ6VXNlcjg3Njk3", "organizations_url": "https://api.github.com/users/tebeka/orgs", "received_events_url": "https://api.github.com/users/tebeka/received_events", "repos_url": "https://api.github.com/users/tebeka/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tebeka/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tebeka/subscriptions", "type": "User", "url": "https://api.github.com/users/tebeka" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
{ "closed_at": "2013-05-10T10:57:28Z", "closed_issues": 340, "created_at": "2013-01-18T03:58:28Z", "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": "", "due_on": "2013-04-26T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/21", "id": 246733, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21/labels", "node_id": "MDk6TWlsZXN0b25lMjQ2NzMz", "number": 21, "open_issues": 0, "state": "closed", "title": "0.11", "updated_at": "2013-11-24T16:49:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/21" }
2
"2013-03-10T03:47:40Z"
"2013-03-15T20:44:14Z"
"2013-03-15T20:44:14Z"
NONE
null
Currently if you try `DataFrame.from_records(emails, columns=['Subject', 'From', 'Date'])` it'll fail. Emails are of type `email.message.Message`. However if you convert the email to dictionaries - the above code works. The problem seems to stem from `_to_arrays` function in `frame.py` where the check is `elif instance(data[0], dict)`. This fails even though `email.message.Message` has the full dictionary interface.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/3000/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/3000/timeline
null
null
null