url
stringlengths 55
59
| repository_url
stringclasses 1
value | labels_url
stringlengths 69
73
| comments_url
stringlengths 64
68
| events_url
stringlengths 62
66
| html_url
stringlengths 44
49
| id
int64 338k
1.06B
| node_id
stringlengths 18
32
| number
int64 1
44.6k
| title
stringlengths 1
590
| user
dict | labels
listlengths 0
9
| state
stringclasses 2
values | locked
bool 2
classes | assignee
dict | assignees
listlengths 0
5
| milestone
dict | comments
int64 0
477
| created_at
timestamp[us, tz=UTC] | updated_at
timestamp[us, tz=UTC] | closed_at
timestamp[us, tz=UTC] | author_association
stringclasses 3
values | active_lock_reason
stringclasses 4
values | body
stringlengths 0
251k
⌀ | reactions
dict | timeline_url
stringlengths 64
68
| performed_via_github_app
float64 | draft
float64 0
1
⌀ | pull_request
dict |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/pandas-dev/pandas/issues/9903 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9903/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9903/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9903/events | https://github.com/pandas-dev/pandas/issues/9903 | 68,553,237 | MDU6SXNzdWU2ODU1MzIzNw== | 9,903 | Calling shift on a DatetimeIndex of length 0 returns an Index instead of a DatetimeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/1588357?v=4",
"events_url": "https://api.github.com/users/ssanderson/events{/privacy}",
"followers_url": "https://api.github.com/users/ssanderson/followers",
"following_url": "https://api.github.com/users/ssanderson/following{/other_user}",
"gists_url": "https://api.github.com/users/ssanderson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ssanderson",
"id": 1588357,
"login": "ssanderson",
"node_id": "MDQ6VXNlcjE1ODgzNTc=",
"organizations_url": "https://api.github.com/users/ssanderson/orgs",
"received_events_url": "https://api.github.com/users/ssanderson/received_events",
"repos_url": "https://api.github.com/users/ssanderson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ssanderson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ssanderson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ssanderson"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 10 | 2015-04-15T02:26:52Z | 2016-04-29T15:59:34Z | 2016-04-29T15:59:08Z | CONTRIBUTOR | null | Minimal repro:
```
In [5]: pandas.__version__
Out[5]: '0.16.0-151-gcef3c85'
In [7]: DatetimeIndex([]).shift(3, 'H')
Out[7]: Index([], 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/9903/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9903/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9904 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9904/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9904/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9904/events | https://github.com/pandas-dev/pandas/pull/9904 | 68,566,892 | MDExOlB1bGxSZXF1ZXN0MzMzMjEwNDI= | 9,904 | DatetimeIndex 0 length shift (GH9903) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1588357?v=4",
"events_url": "https://api.github.com/users/ssanderson/events{/privacy}",
"followers_url": "https://api.github.com/users/ssanderson/followers",
"following_url": "https://api.github.com/users/ssanderson/following{/other_user}",
"gists_url": "https://api.github.com/users/ssanderson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ssanderson",
"id": 1588357,
"login": "ssanderson",
"node_id": "MDQ6VXNlcjE1ODgzNTc=",
"organizations_url": "https://api.github.com/users/ssanderson/orgs",
"received_events_url": "https://api.github.com/users/ssanderson/received_events",
"repos_url": "https://api.github.com/users/ssanderson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ssanderson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ssanderson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ssanderson"
} | [
{
"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 | []
| null | 16 | 2015-04-15T04:00:15Z | 2015-11-10T01:27:17Z | 2015-11-10T01:27:17Z | CONTRIBUTOR | null | closes #9903
Fixes a bug where calling shift on an empty DatetimeIndex would result in the returned value being an Index rather than a DatetimeIndex.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9904/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9904/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9904.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9904",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9904.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9904"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9905 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9905/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9905/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9905/events | https://github.com/pandas-dev/pandas/issues/9905 | 68,672,112 | MDU6SXNzdWU2ODY3MjExMg== | 9,905 | BUG: barplot with log=True not working for values smaller than 1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 2 | 2015-04-15T12:44:27Z | 2015-04-16T18:55:42Z | 2015-04-16T18:55:42Z | MEMBER | null | ```
s = pd.Series([0.1, 0.01, 0.001], index=['a', 'b', 'c'])
s.plot(kind='bar', log=True)
```
gives:
```
TypeError Traceback (most recent call last)
<ipython-input-13-75b989d29042> in <module>()
1 s = pd.Series([0.1, 0.01, 0.001], index=['a', 'b', 'c'])
----> 2 s.plot(kind='bar', log=True)
C:\Anaconda\lib\site-packages\pandas\tools\plotting.pyc in plot_series(data, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds)
2517 yerr=yerr, xerr=xerr,
2518 label=label, secondary_y=secondary_y,
-> 2519 **kwds)
2520
2521
C:\Anaconda\lib\site-packages\pandas\tools\plotting.pyc in _plot(data, x, y, subplots, ax, kind, **kwds)
2323 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds)
2324
-> 2325 plot_obj.generate()
2326 plot_obj.draw()
2327 return plot_obj.result
C:\Anaconda\lib\site-packages\pandas\tools\plotting.pyc in generate(self)
921 self._compute_plot_data()
922 self._setup_subplots()
--> 923 self._make_plot()
924 self._add_table()
925 self._make_legend()
C:\Anaconda\lib\site-packages\pandas\tools\plotting.pyc in _make_plot(self)
1884 w = self.bar_width / K
1885 rect = bar_f(ax, self.ax_pos + (i + 0.5) * w, y, w,
-> 1886 start=start, label=label, **kwds)
1887 self._add_legend_handle(rect, label, index=i)
1888
C:\Anaconda\lib\site-packages\pandas\tools\plotting.pyc in f(ax, x, y, w, start, **kwds)
1823 if self.kind == 'bar':
1824 def f(ax, x, y, w, start=None, **kwds):
-> 1825 start = start + self.bottom
1826 return ax.bar(x, y, w, bottom=start,log=self.log, **kwds)
1827 elif self.kind == 'barh':
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
```
This was working in 0.14.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/9905/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9905/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9906 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9906/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9906/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9906/events | https://github.com/pandas-dev/pandas/pull/9906 | 68,714,153 | MDExOlB1bGxSZXF1ZXN0MzMzNjY3Mzg= | 9,906 | Fix of the docs for tz_conver and tz_localize (fix for #9865) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1324881?v=4",
"events_url": "https://api.github.com/users/vfilimonov/events{/privacy}",
"followers_url": "https://api.github.com/users/vfilimonov/followers",
"following_url": "https://api.github.com/users/vfilimonov/following{/other_user}",
"gists_url": "https://api.github.com/users/vfilimonov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vfilimonov",
"id": 1324881,
"login": "vfilimonov",
"node_id": "MDQ6VXNlcjEzMjQ4ODE=",
"organizations_url": "https://api.github.com/users/vfilimonov/orgs",
"received_events_url": "https://api.github.com/users/vfilimonov/received_events",
"repos_url": "https://api.github.com/users/vfilimonov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vfilimonov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vfilimonov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vfilimonov"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 1 | 2015-04-15T15:32:42Z | 2015-04-16T08:57:28Z | 2015-04-15T20:10:09Z | CONTRIBUTOR | null | Fix for issue #9865 "Cannot convert tz-naive timestamps":
Docs for `tz_convert` and `tz_localize` were updated and "Raises" section were added.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9906/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9906/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9906.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9906",
"merged_at": "2015-04-15T20:10:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9906.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9906"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9907 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9907/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9907/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9907/events | https://github.com/pandas-dev/pandas/issues/9907 | 68,733,491 | MDU6SXNzdWU2ODczMzQ5MQ== | 9,907 | DatetimeIndex behaves inconsistently when start and end have different precisions | {
"avatar_url": "https://avatars.githubusercontent.com/u/6378675?v=4",
"events_url": "https://api.github.com/users/ptrcarta/events{/privacy}",
"followers_url": "https://api.github.com/users/ptrcarta/followers",
"following_url": "https://api.github.com/users/ptrcarta/following{/other_user}",
"gists_url": "https://api.github.com/users/ptrcarta/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ptrcarta",
"id": 6378675,
"login": "ptrcarta",
"node_id": "MDQ6VXNlcjYzNzg2NzU=",
"organizations_url": "https://api.github.com/users/ptrcarta/orgs",
"received_events_url": "https://api.github.com/users/ptrcarta/received_events",
"repos_url": "https://api.github.com/users/ptrcarta/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ptrcarta/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ptrcarta/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ptrcarta"
} | [
{
"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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 1 | 2015-04-15T16:48:54Z | 2015-06-30T10:53:54Z | 2015-06-30T10:53:54Z | NONE | null | When creating a DatetimeIndex where start has a greater precision than end for a given frequency the output DatetimeIndex will be shorter than expected
``` python
>>>pd.__version__
0.15.2-318-g549b72f
>>>pd.DatetimeIndex(start='2015-04-15 00:00:03', end='2016-04-22 00:00:04', freq='Q')
2015-06-30 00:00:03
2015-09-30 00:00:03
2015-12-31 00:00:03
2016-03-31 00:00:03
>>>pd.DatetimeIndex(start='2015-04-15 00:00:03', end='2016-04-22 00:00', freq='Q')
2015-06-30 00:00:03
2015-09-30 00:00:03
2015-12-31 00:00:03
>>>pd.DatetimeIndex(start='2015-04-15 00:00:03', end='2015-6-22 00:00:04', freq='W')
2015-04-19 00:00:03
2015-04-26 00:00:03
2015-05-03 00:00:03
2015-05-10 00:00:03
2015-05-17 00:00:03
2015-05-24 00:00:03
2015-05-31 00:00:03
2015-06-07 00:00:03
2015-06-14 00:00:03
2015-06-21 00:00:03
>>>pd.DatetimeIndex(start='2015-04-15 00:00:03', end='2015-6-22 00:00', freq='W')
2015-04-19 00:00:03
2015-04-26 00:00:03
2015-05-03 00:00:03
2015-05-10 00:00:03
2015-05-17 00:00:03
2015-05-24 00:00:03
2015-05-31 00:00:03
2015-06-07 00:00:03
2015-06-14 00:00:03
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9907/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9907/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9908 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9908/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9908/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9908/events | https://github.com/pandas-dev/pandas/pull/9908 | 68,759,434 | MDExOlB1bGxSZXF1ZXN0MzMzODQxNzQ= | 9,908 | Fixed latex output for multi-indexed dataframes - GH9778 | {
"avatar_url": "https://avatars.githubusercontent.com/u/4908266?v=4",
"events_url": "https://api.github.com/users/yred/events{/privacy}",
"followers_url": "https://api.github.com/users/yred/followers",
"following_url": "https://api.github.com/users/yred/following{/other_user}",
"gists_url": "https://api.github.com/users/yred/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yred",
"id": 4908266,
"login": "yred",
"node_id": "MDQ6VXNlcjQ5MDgyNjY=",
"organizations_url": "https://api.github.com/users/yred/orgs",
"received_events_url": "https://api.github.com/users/yred/received_events",
"repos_url": "https://api.github.com/users/yred/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yred/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yred/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yred"
} | [
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "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": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 10 | 2015-04-15T18:44:18Z | 2015-07-23T11:02:22Z | 2015-04-16T06:14:38Z | CONTRIBUTOR | null | Proposed fix for https://github.com/pydata/pandas/issues/9778
The formatting issue was caused by an incorrect number of elements in the (first) index columns of `strcols`. The length of reinserted columns was based on the number of elements per index level, but should have relied on the number of rows/occurrences of such elements.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9908/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9908/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9908.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9908",
"merged_at": "2015-04-16T06:14:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9908.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9908"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9909 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9909/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9909/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9909/events | https://github.com/pandas-dev/pandas/issues/9909 | 68,774,618 | MDU6SXNzdWU2ODc3NDYxOA== | 9,909 | pandas scatter plot: Secondary axis overrides primary | {
"avatar_url": "https://avatars.githubusercontent.com/u/10504477?v=4",
"events_url": "https://api.github.com/users/JohnNapier/events{/privacy}",
"followers_url": "https://api.github.com/users/JohnNapier/followers",
"following_url": "https://api.github.com/users/JohnNapier/following{/other_user}",
"gists_url": "https://api.github.com/users/JohnNapier/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JohnNapier",
"id": 10504477,
"login": "JohnNapier",
"node_id": "MDQ6VXNlcjEwNTA0NDc3",
"organizations_url": "https://api.github.com/users/JohnNapier/orgs",
"received_events_url": "https://api.github.com/users/JohnNapier/received_events",
"repos_url": "https://api.github.com/users/JohnNapier/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JohnNapier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JohnNapier/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JohnNapier"
} | [
{
"color": "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"
} | 3 | 2015-04-15T20:03:12Z | 2021-04-18T06:25:30Z | null | NONE | null | When a second scatter plot is added as ''secondary_y'', the outcome is that the primary is overridden.
``` python
import matplotlib.pyplot as plt
import pandas as pd,numpy as np
# secondary axis does not work on scatter plot
x=pd.Series(np.linspace(-10,10,201))
y,z=np.sin(x),np.cos(x)
df=pd.concat([x,np.sin(x),np.cos(x)],axis=1)
df.columns=['x','sin(x)','cos(x)']
ax=df.plot(kind='scatter',x='x',y='sin(x)',label='sin(x)',color='blue')
df.plot(kind='scatter',x='x',y='cos(x)',label='cos(x)',color='red', \
ax=ax,secondary_y=True)
plt.show()
```
The above code returns this plot.

This could be a workaround, however I think that the first snippet should have worked.
``` python
ax=df.plot(kind='scatter',x='x',y='sin(x)',label='sin(x)',color='blue')
ax2=ax.twinx()
df.plot(kind='scatter',x='x',y='cos(x)',label='cos(x)',color='red', \
ax=ax2,secondary_y=True)
plt.show()
```

| {
"+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/9909/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9909/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9910 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9910/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9910/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9910/events | https://github.com/pandas-dev/pandas/pull/9910 | 68,785,441 | MDExOlB1bGxSZXF1ZXN0MzMzOTU2NDg= | 9,910 | add/delete str/dt/cat dynamically from __dir__ (fix for #9627) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4",
"events_url": "https://api.github.com/users/mortada/events{/privacy}",
"followers_url": "https://api.github.com/users/mortada/followers",
"following_url": "https://api.github.com/users/mortada/following{/other_user}",
"gists_url": "https://api.github.com/users/mortada/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mortada",
"id": 1642081,
"login": "mortada",
"node_id": "MDQ6VXNlcjE2NDIwODE=",
"organizations_url": "https://api.github.com/users/mortada/orgs",
"received_events_url": "https://api.github.com/users/mortada/received_events",
"repos_url": "https://api.github.com/users/mortada/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mortada/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mortada"
} | [
{
"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": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 12 | 2015-04-15T20:57:31Z | 2015-04-21T21:45:58Z | 2015-04-21T00:58:16Z | CONTRIBUTOR | null | @jreback this PR makes it easier to add/delete items from `__dir__`. The `.str/.dt/.cat` are now only present in `__dir__` when they are appropriate types.
However, the IPython tab completion does not seem to only source the list from `__dir__`, and therefore even if an item is removed from `__dir__` it is still showing up in tab completion for me.
@shoyer I'd probably need some help/feedback with this. Here's a related ticket https://github.com/pydata/pandas/pull/9617
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/9910/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9910/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9910.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9910",
"merged_at": "2015-04-21T00:58:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9910.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9910"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9911 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9911/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9911/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9911/events | https://github.com/pandas-dev/pandas/pull/9911 | 68,786,245 | MDExOlB1bGxSZXF1ZXN0MzMzOTYxMTM= | 9,911 | DOC: add redirects to ensure old links instead of building the docstring page | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 4 | 2015-04-15T21:02:35Z | 2015-04-27T22:38:54Z | 2015-04-25T20:39:18Z | MEMBER | null | We still have a lot of API pages with 'old' namespace usage (eg `pandas.io.parsers.read_csv` instead of `pandas.read_csv` as how it should show up in the documentation). Now we build the pages as well, this PR changes this in adding redirect pages.
(The reason I care about this is that googling eg `read_csv` still often turns up the old page (although I don't know how fast this disappears when we would just remove it) and these are therefore used a lot on eg SO)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9911/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9911/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9911.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9911",
"merged_at": "2015-04-25T20:39:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9911.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9911"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9912 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9912/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9912/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9912/events | https://github.com/pandas-dev/pandas/issues/9912 | 68,821,168 | MDU6SXNzdWU2ODgyMTE2OA== | 9,912 | Column name 'class' causes access and query issues | {
"avatar_url": "https://avatars.githubusercontent.com/u/959696?v=4",
"events_url": "https://api.github.com/users/simjega/events{/privacy}",
"followers_url": "https://api.github.com/users/simjega/followers",
"following_url": "https://api.github.com/users/simjega/following{/other_user}",
"gists_url": "https://api.github.com/users/simjega/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simjega",
"id": 959696,
"login": "simjega",
"node_id": "MDQ6VXNlcjk1OTY5Ng==",
"organizations_url": "https://api.github.com/users/simjega/orgs",
"received_events_url": "https://api.github.com/users/simjega/received_events",
"repos_url": "https://api.github.com/users/simjega/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simjega/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simjega/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simjega"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 3 | 2015-04-16T01:12:52Z | 2015-04-16T01:20:25Z | 2015-04-16T01:20:25Z | NONE | null | For some reason pandas isn't liking when I create a column named class and attempt to access with .{columnname} method
I also cannot run a query on the dataframe.
Code:
``` python
>>> a = pandas.DataFrame({'class':[0], 'clas1': [1]})
>>> a.clas1
0 1
Name: clas1, dtype: int64
>>> a.class
File "<stdin>", line 1
a.class
^
SyntaxError: invalid syntax
>>> a.query("clas1==1")
clas1 class
0 1 0
>>> a.query("class==0")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.4/site-packages/pandas/core/frame.py", line 1918, in query
res = self.eval(expr, **kwargs)
File "/usr/lib/python3.4/site-packages/pandas/core/frame.py", line 1970, in eval
return _eval(expr, **kwargs)
File "/usr/lib/python3.4/site-packages/pandas/computation/eval.py", line 230, in eval
truediv=truediv)
File "/usr/lib/python3.4/site-packages/pandas/computation/expr.py", line 635, in __init__
self.terms = self.parse()
File "/usr/lib/python3.4/site-packages/pandas/computation/expr.py", line 652, in parse
return self._visitor.visit(self.expr)
File "/usr/lib/python3.4/site-packages/pandas/computation/expr.py", line 310, in visit
node = ast.fix_missing_locations(ast.parse(clean))
File "/usr/lib/python3.4/ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
class ==0
^
SyntaxError: invalid syntax
```
Dependencies:
## INSTALLED VERSIONS
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.18.6-1-ARCH
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.utf8
pandas: 0.15.2
nose: 1.3.4
Cython: None
numpy: 1.9.2
scipy: 0.15.1
statsmodels: None
IPython: 3.0.0
sphinx: None
patsy: None
dateutil: 2.4.1
pytz: 2014.10
bottleneck: 1.0.0
tables: 3.1.1
numexpr: 2.4
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: None
psycopg2: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9912/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9912/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9913 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9913/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9913/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9913/events | https://github.com/pandas-dev/pandas/issues/9913 | 68,934,259 | MDU6SXNzdWU2ODkzNDI1OQ== | 9,913 | Passing a list to level param of unstack() unexpectedly changes dtype from numeric to object | {
"avatar_url": "https://avatars.githubusercontent.com/u/5990528?v=4",
"events_url": "https://api.github.com/users/wikiped/events{/privacy}",
"followers_url": "https://api.github.com/users/wikiped/followers",
"following_url": "https://api.github.com/users/wikiped/following{/other_user}",
"gists_url": "https://api.github.com/users/wikiped/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wikiped",
"id": 5990528,
"login": "wikiped",
"node_id": "MDQ6VXNlcjU5OTA1Mjg=",
"organizations_url": "https://api.github.com/users/wikiped/orgs",
"received_events_url": "https://api.github.com/users/wikiped/received_events",
"repos_url": "https://api.github.com/users/wikiped/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wikiped/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wikiped/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wikiped"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2015-04-16T14:19:31Z | 2017-07-31T15:12:21Z | 2017-07-31T15:12:10Z | NONE | null | I experience these strange behavior of `unstack()` when its `level` parameter gets a list instead of string.
This changes `dtype` of some columns from numeric to object, which is obviously a worrying change.
I am wondering if this a bug or there is something I am missing about dealing with this.
I am on pandas 0.16.0, numpy 1.9.2.
Here is a code to illustrate the problem:
```
data = """a,b,c,d
2,101,A,11
3,101,A,12
1,201,B,21
2,201,B,22
3,201,B,23
1,301,C,33
2,301,C,32"""
df = pd.read_csv(pd.core.common.StringIO(data))
print df.dtypes
df_str = df.set_index(['a','b']).unstack(level='a') # Note that level has a str
print df_str.dtypes
df_list = df.set_index(['a','b']).unstack(level=['a']) # Note that level has a list
print df_list.dtypes
```
Which produces:
```
a int64
b int64
c object
d int64 <-- Note original dtype
dtype: object
a
c 1 object
2 object
3 object
d 1 float64 <-- expected change of dtype due to NaN addition
2 float64 <-- expected change of dtype due to NaN addition
3 float64 <-- expected change of dtype due to NaN addition
dtype: object
a
c 2 object
3 object
1 object
d 2 object <-- UNexpected change of dtype, when level got list
3 object <-- UNexpected change of dtype, when level got list
1 object <-- UNexpected change of dtype, when level got list
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/9913/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9913/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9914 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9914/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9914/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9914/events | https://github.com/pandas-dev/pandas/pull/9914 | 68,941,732 | MDExOlB1bGxSZXF1ZXN0MzM0NTkwMTQ= | 9,914 | BUG: barplot with log=True not working for values smaller than 1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "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": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 2 | 2015-04-16T14:55:15Z | 2015-04-18T10:43:50Z | 2015-04-16T18:55:42Z | MEMBER | null | Closes #9905. Also include a fix that `log` kw is ignored in horizontal bar plot. Test cases are based on standard mpl result:
```
plt.bar([0, 1, 2], [0.1, 0.01, 0.001], log=True)
plt.gca().get_ylim()
# (0.001, 0.10000000000000001)
plt.gca().yaxis.get_ticklocs()
# [ 1.00000000e-04 1.00000000e-03 1.00000000e-02 1.00000000e-01
# 1.00000000e+00 1.00000000e+01]
```
Maybe `log` in bar plot and `logx` and `logy` kw should be merged in future...
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9914/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9914/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9914.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9914",
"merged_at": "2015-04-16T18:55:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9914.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9914"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9915 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9915/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9915/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9915/events | https://github.com/pandas-dev/pandas/issues/9915 | 68,972,930 | MDU6SXNzdWU2ODk3MjkzMA== | 9,915 | Resampling produces all NaN values for a particular dataset | {
"avatar_url": "https://avatars.githubusercontent.com/u/293581?v=4",
"events_url": "https://api.github.com/users/brownan/events{/privacy}",
"followers_url": "https://api.github.com/users/brownan/followers",
"following_url": "https://api.github.com/users/brownan/following{/other_user}",
"gists_url": "https://api.github.com/users/brownan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/brownan",
"id": 293581,
"login": "brownan",
"node_id": "MDQ6VXNlcjI5MzU4MQ==",
"organizations_url": "https://api.github.com/users/brownan/orgs",
"received_events_url": "https://api.github.com/users/brownan/received_events",
"repos_url": "https://api.github.com/users/brownan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/brownan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brownan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/brownan"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 3 | 2015-04-16T17:36:44Z | 2016-04-17T20:37:34Z | 2016-04-17T20:37:34Z | NONE | null | I ran into a particular dataset that seems to cause Series.resample() to produce incorrect results. Each datapoint is almost but not exactly a minute apart. (This is trimmed down from a larger dataset, but this still reproduces the problem)
``` python
>>> import pandas; from pandas import Timestamp
>>> data1 = pandas.Series(
... {
... Timestamp('2015-03-31 21:48:52.672000'): 2,
... Timestamp('2015-03-31 21:49:52.739000'): 1,
... Timestamp('2015-03-31 21:50:52.806000'): 2}
... )
>>> data1
2015-03-31 21:48:52.672000 2
2015-03-31 21:49:52.739000 1
2015-03-31 21:50:52.806000 2
dtype: int64
>>> data1.resample("10S")
2015-03-31 21:48:50 NaN
2015-03-31 21:49:00 NaN
2015-03-31 21:49:10 NaN
2015-03-31 21:49:20 NaN
2015-03-31 21:49:30 NaN
2015-03-31 21:49:40 NaN
2015-03-31 21:49:50 NaN
2015-03-31 21:50:00 NaN
2015-03-31 21:50:10 NaN
2015-03-31 21:50:20 NaN
2015-03-31 21:50:30 NaN
2015-03-31 21:50:40 NaN
2015-03-31 21:50:50 NaN
Freq: 10S, dtype: float64
```
Expected output:
``` python
>>> data1.resample("10S")
2015-03-31 21:48:50 2
2015-03-31 21:49:00 NaN
2015-03-31 21:49:10 NaN
2015-03-31 21:49:20 NaN
2015-03-31 21:49:30 NaN
2015-03-31 21:49:40 NaN
2015-03-31 21:49:50 1
2015-03-31 21:50:00 NaN
2015-03-31 21:50:10 NaN
2015-03-31 21:50:20 NaN
2015-03-31 21:50:30 NaN
2015-03-31 21:50:40 NaN
2015-03-31 21:50:50 2
Freq: 10S, dtype: float64
```
Changing any one of the timestamps or taking one of the two datapoints out works correctly. Something about this particular dataset causes resample to fail.
I have more examples on this ipython notebook: http://nbviewer.ipython.org/gist/brownan/1000ba324ad7df917e32
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.5.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-123.20.1.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.0
nose: 1.3.4
Cython: None
numpy: 1.9.2
scipy: None
statsmodels: None
IPython: 3.0.0
sphinx: 1.3.1
patsy: None
dateutil: 2.4.1
pytz: 2015.2
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
```
edit: I can also reproduce this with the latest version on master: 0.16.0-157-g161f38d
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9915/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9915/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9916 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9916/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9916/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9916/events | https://github.com/pandas-dev/pandas/pull/9916 | 68,985,177 | MDExOlB1bGxSZXF1ZXN0MzM0ODAxOTQ= | 9,916 | ENH: Remove Unnecessary Conditional | {
"avatar_url": "https://avatars.githubusercontent.com/u/1725338?v=4",
"events_url": "https://api.github.com/users/nburns/events{/privacy}",
"followers_url": "https://api.github.com/users/nburns/followers",
"following_url": "https://api.github.com/users/nburns/following{/other_user}",
"gists_url": "https://api.github.com/users/nburns/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nburns",
"id": 1725338,
"login": "nburns",
"node_id": "MDQ6VXNlcjE3MjUzMzg=",
"organizations_url": "https://api.github.com/users/nburns/orgs",
"received_events_url": "https://api.github.com/users/nburns/received_events",
"repos_url": "https://api.github.com/users/nburns/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nburns/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nburns/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nburns"
} | []
| closed | false | null | []
| null | 1 | 2015-04-16T18:41:04Z | 2015-04-16T23:13:00Z | 2015-04-16T23:13:00Z | CONTRIBUTOR | null | this removes a check for `compat.PY3` where it is no longer needed
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9916/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9916/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9916.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9916",
"merged_at": "2015-04-16T23:13:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9916.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9916"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9917 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9917/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9917/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9917/events | https://github.com/pandas-dev/pandas/pull/9917 | 69,023,311 | MDExOlB1bGxSZXF1ZXN0MzM0OTk1NTU= | 9,917 | Add time_format argument to ExcelWriter. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1119169?v=4",
"events_url": "https://api.github.com/users/BertrandBordage/events{/privacy}",
"followers_url": "https://api.github.com/users/BertrandBordage/followers",
"following_url": "https://api.github.com/users/BertrandBordage/following{/other_user}",
"gists_url": "https://api.github.com/users/BertrandBordage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BertrandBordage",
"id": 1119169,
"login": "BertrandBordage",
"node_id": "MDQ6VXNlcjExMTkxNjk=",
"organizations_url": "https://api.github.com/users/BertrandBordage/orgs",
"received_events_url": "https://api.github.com/users/BertrandBordage/received_events",
"repos_url": "https://api.github.com/users/BertrandBordage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BertrandBordage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BertrandBordage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BertrandBordage"
} | [
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 5 | 2015-04-16T22:35:57Z | 2015-07-28T21:53:19Z | 2015-07-28T21:53:19Z | NONE | null | Currently, converting to Excel a DataFrame containing `datetime.time` instances leads to unformated float values such as `0.666667` instead of `16:00:00`. This pull request fixes this by adding a default time format and adds an argument to specify your own time 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/9917/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9917/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9917.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9917",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9917.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9917"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9918 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9918/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9918/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9918/events | https://github.com/pandas-dev/pandas/issues/9918 | 69,024,608 | MDU6SXNzdWU2OTAyNDYwOA== | 9,918 | uint64 multicolumn sort | {
"avatar_url": "https://avatars.githubusercontent.com/u/11140030?v=4",
"events_url": "https://api.github.com/users/scottupdike/events{/privacy}",
"followers_url": "https://api.github.com/users/scottupdike/followers",
"following_url": "https://api.github.com/users/scottupdike/following{/other_user}",
"gists_url": "https://api.github.com/users/scottupdike/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scottupdike",
"id": 11140030,
"login": "scottupdike",
"node_id": "MDQ6VXNlcjExMTQwMDMw",
"organizations_url": "https://api.github.com/users/scottupdike/orgs",
"received_events_url": "https://api.github.com/users/scottupdike/received_events",
"repos_url": "https://api.github.com/users/scottupdike/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scottupdike/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scottupdike/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scottupdike"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
]
| closed | false | null | []
| {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 2 | 2015-04-16T22:47:47Z | 2019-11-03T15:05:47Z | 2019-11-03T15:05:47Z | NONE | null | Sorting uint64 columns is incorrect when sorting on multiple columns:
``` python
>>> import pandas as pd
>>> import numpy as np
>>> df = pd.DataFrame({'a': pd.Series([18446637057563306014, 1162265347240853609]), 'b': pd.Series([1, 2])})
>>> df['a'] = df['a'].astype(np.uint64)
>>> df.sort(['a', 'b'])['a']
0 18446637057563306014
1 1162265347240853609
Name: a, dtype: uint64
>>> df.sort(['a'])['a']
1 1162265347240853609
0 18446637057563306014
Name: a, dtype: uint64
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-40.87-jump1.03
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.15.2
nose: 1.3.4
Cython: None
numpy: 1.9.1
scipy: 0.15.1
statsmodels: None
IPython: 2.3.1
sphinx: None
patsy: None
dateutil: 2.4.0
pytz: 2014.10
bottleneck: None
tables: None
numexpr: 2.4
matplotlib: 1.4.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: None
psycopg2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9918/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9918/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9919 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9919/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9919/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9919/events | https://github.com/pandas-dev/pandas/issues/9919 | 69,033,150 | MDU6SXNzdWU2OTAzMzE1MA== | 9,919 | Series don't plot in nbagg while dataframe.plot() call works | {
"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 | 5 | 2015-04-16T23:59:16Z | 2015-04-17T06:42:14Z | 2015-04-17T06:42:14Z | CONTRIBUTOR | null | All explained here:
http://nbviewer.ipython.org/gist/michaelaye/4af80037146dfb65b105
Not sure if I should have submitted it here or with matplotlib. Just let me know, then I can open one there.
Output of pd.show_versions():
## INSTALLED VERSIONS
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-431.11.2.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.0-151-gcef3c85
nose: 1.3.6
Cython: 0.22
numpy: 1.9.2
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 3.2.0-dev
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.2
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 0.9.9
pymysql: None
psycopg2: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9919/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9919/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9920 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9920/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9920/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9920/events | https://github.com/pandas-dev/pandas/issues/9920 | 69,033,243 | MDU6SXNzdWU2OTAzMzI0Mw== | 9,920 | Grouped plot legend does not create legend entry for first group | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [
{
"color": "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 | []
| null | 1 | 2015-04-17T00:00:15Z | 2015-04-17T17:25:41Z | null | CONTRIBUTOR | null | Bug shown at the end of this:
http://nbviewer.ipython.org/gist/michaelaye/4af80037146dfb65b105
Output of pd.show__versions():
## INSTALLED VERSIONS
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-431.11.2.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.0-151-gcef3c85
nose: 1.3.6
Cython: 0.22
numpy: 1.9.2
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 3.2.0-dev
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.2
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 0.9.9
pymysql: None
psycopg2: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9920/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9920/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9921 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9921/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9921/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9921/events | https://github.com/pandas-dev/pandas/issues/9921 | 69,160,002 | MDU6SXNzdWU2OTE2MDAwMg== | 9,921 | groupby transform misbehaving with categoricals | {
"avatar_url": "https://avatars.githubusercontent.com/u/980054?v=4",
"events_url": "https://api.github.com/users/dsm054/events{/privacy}",
"followers_url": "https://api.github.com/users/dsm054/followers",
"following_url": "https://api.github.com/users/dsm054/following{/other_user}",
"gists_url": "https://api.github.com/users/dsm054/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsm054",
"id": 980054,
"login": "dsm054",
"node_id": "MDQ6VXNlcjk4MDA1NA==",
"organizations_url": "https://api.github.com/users/dsm054/orgs",
"received_events_url": "https://api.github.com/users/dsm054/received_events",
"repos_url": "https://api.github.com/users/dsm054/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsm054/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsm054/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsm054"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 14 | 2015-04-17T15:24:21Z | 2015-04-29T10:32:15Z | 2015-04-29T10:32:15Z | CONTRIBUTOR | null | Starting from [this SO question](http://stackoverflow.com/questions/29699352/pandas-keyerror-on-nan-group-for-ints-but-not-floats), we can see that something is odd when doing a groupby using Series of category dtype. (Today's trunk, 0.16.0-163-gf9f88b2.)
```
>>> df = pd.DataFrame({"a": [5,15,25]})
>>> c = pd.cut(df.a, bins=[0,10,20,30,40])
>>> c
0 (0, 10]
1 (10, 20]
2 (20, 30]
Name: a, dtype: category
Categories (4, object): [(0, 10] < (10, 20] < (20, 30] < (30, 40]]
>>> df.groupby(c).sum()
a
a
(0, 10] 5
(10, 20] 15
(20, 30] 25
(30, 40] NaN
>>> df.groupby(c).transform(sum)
Traceback (most recent call last):
File "<ipython-input-81-1eb61986eff3>", line 1, in <module>
df.groupby(c).transform(sum)
File "/usr/local/lib/python2.7/dist-packages/pandas-0.16.0_163_gf9f88b2-py2.7-linux-x86_64.egg/pandas/core/groupby.py", line 3017, in transform
indexer = indices[name]
KeyError: '(30, 40]'
>>> df.a.groupby(c).transform(max)
Traceback (most recent call last):
File "<ipython-input-87-9759e8c1e070>", line 1, in <module>
df.a.groupby(c).transform(max)
File "/usr/local/lib/python2.7/dist-packages/pandas-0.16.0_163_gf9f88b2-py2.7-linux-x86_64.egg/pandas/core/groupby.py", line 2422, in transform
return self._transform_fast(cyfunc)
File "/usr/local/lib/python2.7/dist-packages/pandas-0.16.0_163_gf9f88b2-py2.7-linux-x86_64.egg/pandas/core/groupby.py", line 2461, in _transform_fast
values = np.repeat(values, com._ensure_platform_int(counts))
File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 393, in repeat
return repeat(repeats, axis)
ValueError: count < 0
```
It looks like we're somehow using the categories themselves, not the values. Not sure if this is a consequence of the special-casing of grouping on categories..
ISTM if we have a Series with categorical dtype passed to groupby, we should group on the values, and not return the missing elements-- if you want the missing elements, you should pass the Categorical object _itself_. Admittedly I haven't thought through all the consequences, but I was pretty surprised when I read the docs and saw this was the intended behaviour.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9921/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9921/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9922 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9922/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9922/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9922/events | https://github.com/pandas-dev/pandas/pull/9922 | 69,181,424 | MDExOlB1bGxSZXF1ZXN0MzM1NjUwNDY= | 9,922 | TST: adding sdist and install tests to the 2.6 regression - closes #9878 | {
"avatar_url": "https://avatars.githubusercontent.com/u/5418627?v=4",
"events_url": "https://api.github.com/users/ajamian/events{/privacy}",
"followers_url": "https://api.github.com/users/ajamian/followers",
"following_url": "https://api.github.com/users/ajamian/following{/other_user}",
"gists_url": "https://api.github.com/users/ajamian/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ajamian",
"id": 5418627,
"login": "ajamian",
"node_id": "MDQ6VXNlcjU0MTg2Mjc=",
"organizations_url": "https://api.github.com/users/ajamian/orgs",
"received_events_url": "https://api.github.com/users/ajamian/received_events",
"repos_url": "https://api.github.com/users/ajamian/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ajamian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ajamian/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ajamian"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 4 | 2015-04-17T17:29:02Z | 2015-04-20T19:00:32Z | 2015-04-20T19:00:32Z | CONTRIBUTOR | null | closes #9878
This PR adds a test for packaging and installing pandas from a tarball, inside of the 2.6 regression.
After regular nosetests complete, cython is removed from the venv, pandas is packaged with cdist command, and the package is installed via pip. Limited nosetests run once installed.
The travis log output is a little messy with the pip command output; ideally I wanted to 'fold'/collapse the output unless there was a failure but I don't think you can do that from within the 'script' portion of the regression, only the before and after scripts, see:
http://blog.travis-ci.com/2013-05-22-improving-build-visibility-log-folds/
If there is a way to do this maybe we can add it later, or move where this INSTALL_TEST is happening to a before or after script.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9922/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9922/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9922.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9922",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9922.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9922"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9923 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9923/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9923/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9923/events | https://github.com/pandas-dev/pandas/pull/9923 | 69,196,926 | MDExOlB1bGxSZXF1ZXN0MzM1NzIyMTI= | 9,923 | Added grouby apply notebook | {
"avatar_url": "https://avatars.githubusercontent.com/u/7291409?v=4",
"events_url": "https://api.github.com/users/mbirdi/events{/privacy}",
"followers_url": "https://api.github.com/users/mbirdi/followers",
"following_url": "https://api.github.com/users/mbirdi/following{/other_user}",
"gists_url": "https://api.github.com/users/mbirdi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mbirdi",
"id": 7291409,
"login": "mbirdi",
"node_id": "MDQ6VXNlcjcyOTE0MDk=",
"organizations_url": "https://api.github.com/users/mbirdi/orgs",
"received_events_url": "https://api.github.com/users/mbirdi/received_events",
"repos_url": "https://api.github.com/users/mbirdi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mbirdi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mbirdi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mbirdi"
} | []
| closed | false | null | []
| null | 3 | 2015-04-17T18:57:26Z | 2015-04-19T00:06:42Z | 2015-04-19T00:06:42Z | NONE | null | Here is a notebook I created with help at the pandas dev sprint in Montreal.
Its meant to help document the behavior in issue 9867: It's difficult to predict what DataFrame.groupby().apply() will return
https://github.com/pydata/pandas/issues/9867
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9923/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9923/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9923.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9923",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9923.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9923"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9924 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9924/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9924/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9924/events | https://github.com/pandas-dev/pandas/pull/9924 | 69,214,467 | MDExOlB1bGxSZXF1ZXN0MzM1ODA3NjQ= | 9,924 | BUG: need better inference for path in Series construction (GH9456) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1007824?v=4",
"events_url": "https://api.github.com/users/patrickfournier/events{/privacy}",
"followers_url": "https://api.github.com/users/patrickfournier/followers",
"following_url": "https://api.github.com/users/patrickfournier/following{/other_user}",
"gists_url": "https://api.github.com/users/patrickfournier/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/patrickfournier",
"id": 1007824,
"login": "patrickfournier",
"node_id": "MDQ6VXNlcjEwMDc4MjQ=",
"organizations_url": "https://api.github.com/users/patrickfournier/orgs",
"received_events_url": "https://api.github.com/users/patrickfournier/received_events",
"repos_url": "https://api.github.com/users/patrickfournier/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/patrickfournier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/patrickfournier/subscriptions",
"type": "User",
"url": "https://api.github.com/users/patrickfournier"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
]
| closed | false | null | []
| {
"closed_at": "2015-06-13T17:49:05Z",
"closed_issues": 119,
"created_at": "2015-06-02T19:23:30Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "",
"due_on": "2015-06-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/35",
"id": 1145853,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels",
"node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==",
"number": 35,
"open_issues": 0,
"state": "closed",
"title": "0.16.2",
"updated_at": "2016-07-22T08:55:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35"
} | 3 | 2015-04-17T20:45:31Z | 2015-06-10T20:02:11Z | 2015-06-10T20:02:06Z | NONE | null | closes #9456.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9924/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9924/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9924.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9924",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9924.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9924"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9925 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9925/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9925/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9925/events | https://github.com/pandas-dev/pandas/issues/9925 | 69,246,724 | MDU6SXNzdWU2OTI0NjcyNA== | 9,925 | BUG: GroupBy.size doesn't attach index name properly if grouped by TimeGrouper | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 0 | 2015-04-18T00:29:48Z | 2015-04-20T11:09:39Z | 2015-04-20T11:08:51Z | MEMBER | null | ```
import numpy as np
import pandas as pd
import datetime
df = pd.DataFrame({'A': [1, 1, 1, 2, 2, 2], 'B': [1, 2, 3, 4, 5, 6]})
grouped = df.groupby('A')
n = 20
data = np.random.randn(n, 4)
dt_df = pd.DataFrame(data, columns=['A', 'B', 'C', 'D'])
dt_df['key'] = [datetime.datetime(2013, 1, 1), datetime.datetime(2013, 1, 2), pd.NaT,
datetime.datetime(2013, 1, 4), datetime.datetime(2013, 1, 5)] * 4
# OK, index is named as 'key'
grouped = dt_df.groupby('key')
grouped.size()
# key
#2013-01-01 4
#2013-01-02 4
#2013-01-04 4
#2013-01-05 4
# dtype: int64
# NG (no index name)
grouper = dt_df.groupby(pd.TimeGrouper(key='key', freq='D'))
grouper.size()
#2013-01-01 4
#2013-01-02 4
#2013-01-03 0
#2013-01-04 4
#2013-01-05 4
# dtype: int64
# other agg methods looks ok
grouper.count()
# A B C D
# key
#2013-01-01 4 4 4 4
#2013-01-02 4 4 4 4
#2013-01-03 0 0 0 0
#2013-01-04 4 4 4 4
#2013-01-05 4 4 4 4
```
ref: #9862
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9925/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9925/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9926 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9926/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9926/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9926/events | https://github.com/pandas-dev/pandas/issues/9926 | 69,247,223 | MDU6SXNzdWU2OTI0NzIyMw== | 9,926 | BUG: index name lost with timedelta ops | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
]
| closed | false | null | []
| {
"closed_at": "2015-06-13T17:49:05Z",
"closed_issues": 119,
"created_at": "2015-06-02T19:23:30Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "",
"due_on": "2015-06-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/35",
"id": 1145853,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels",
"node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==",
"number": 35,
"open_issues": 0,
"state": "closed",
"title": "0.16.2",
"updated_at": "2016-07-22T08:55:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35"
} | 4 | 2015-04-18T00:36:11Z | 2015-06-02T19:25:19Z | 2015-05-18T11:59:45Z | MEMBER | null | ```
import pandas as pd
dtidx = pd.DatetimeIndex(['2011-01-01'], freq='D', name='dtidx')
(dtidx + 1).name
# dtidx
# NG
(dtidx + pd.Timedelta('1 day')).name
# None
tdidx = pd.TimedeltaIndex(['1 day'], freq='D', name='tdidx')
(tdidx + 1).name
# tdidx
# NG
(tdidx + pd.Timedelta('1 day')).name
# None
```
ref: #9862
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9926/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9926/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9927 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9927/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9927/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9927/events | https://github.com/pandas-dev/pandas/issues/9927 | 69,258,884 | MDU6SXNzdWU2OTI1ODg4NA== | 9,927 | API/BUG: awkward syntax to add categories to a Categorical | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 7 | 2015-04-18T02:45:20Z | 2016-06-06T13:59:45Z | 2015-04-21T23:38:48Z | CONTRIBUTOR | null | from [SO](http://stackoverflow.com/questions/29709918/pandas-and-category-replacement/29712287#29712287)
- the `.add_categories` should be able to take an `Index`/ndarray, ATM it must be converted to a list
- should be a keyword for something like: add any additional categories that I am passing to you (even if the current ones are duplicates, just add these to the end). e.g.
```
In [147]: s = pd.Categorical(list('aabbcd'))
In [148]: s2 = list('aabbcdefg')
In [149]: s
Out[149]:
[a, a, b, b, c, d]
Categories (4, object): [a, b, c, d]
In [150]: s.add_categories(s.categories.sym_diff(Index(s2)).tolist())
Out[150]:
[a, a, b, b, c, d]
Categories (7, object): [a, b, c, d, e, f, g]
```
I would ideally just like to say:
```
s.add_categories(s2, take_new=True)
```
(maybe not the best keyword, but something like 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/9927/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9927/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9928 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9928/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9928/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9928/events | https://github.com/pandas-dev/pandas/issues/9928 | 69,262,465 | MDU6SXNzdWU2OTI2MjQ2NQ== | 9,928 | Pandas gives 600 line long ValueError while runing sklearn GridSearchCV | {
"avatar_url": "https://avatars.githubusercontent.com/u/5727178?v=4",
"events_url": "https://api.github.com/users/ek-ok/events{/privacy}",
"followers_url": "https://api.github.com/users/ek-ok/followers",
"following_url": "https://api.github.com/users/ek-ok/following{/other_user}",
"gists_url": "https://api.github.com/users/ek-ok/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ek-ok",
"id": 5727178,
"login": "ek-ok",
"node_id": "MDQ6VXNlcjU3MjcxNzg=",
"organizations_url": "https://api.github.com/users/ek-ok/orgs",
"received_events_url": "https://api.github.com/users/ek-ok/received_events",
"repos_url": "https://api.github.com/users/ek-ok/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ek-ok/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ek-ok/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ek-ok"
} | []
| closed | false | null | []
| null | 4 | 2015-04-18T03:43:50Z | 2015-04-28T12:11:32Z | 2015-04-18T05:59:42Z | NONE | null | I am using sklearn GridSearchCV to classify some data. When I run this code, pandas gives 600 line long error. If I set n_jobs=1, it runs fine without any error. Please kindly take a look at it. Thanks
```
rfc = RandomForestClassifier(random_state=1)
tuned_parameters = [{'max_features': ['sqrt', 'log2'],
'n_estimators': [20, 100, 200, 500, 1000]}]
clf = GridSearchCV(rfc, tuned_parameters, scoring='roc_auc', cv=3, n_jobs=-1, verbose=2)
clf.fit(X, y)
```
Error message
```
Fitting 3 folds for each of 10 candidates, totalling 30 fits
[CV] max_features=sqrt, n_estimators=20 ..............................
[CV] max_features=sqrt, n_estimators=20 ..............................
[CV] max_features=sqrt, n_estimators=20 ..............................
[CV] max_features=sqrt, n_estimators=100 .............................
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (101150, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (101150, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (101150, 0))
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (101150, 0))
[CV] max_features=sqrt, n_estimators=200 .............................[CV] max_features=sqrt, n_estimators=100 .............................[CV] max_features=sqrt, n_estimators=100 .............................[CV] max_features=sqrt, n_estimators=200 .............................
---------------------------------------------------------------------------
JoblibValueError Traceback (most recent call last)
<ipython-input-25-99a52d0f19db> in <module>()
4
5 clf = GridSearchCV(rfc, tuned_parameters, scoring='roc_auc', cv=3, n_jobs=-1, verbose=2)
----> 6 clf.fit(X, y)
/home/user/anaconda/lib/python2.7/site-packages/sklearn/grid_search.pyc in fit(self, X, y)
730
731 """
--> 732 return self._fit(X, y, ParameterGrid(self.param_grid))
733
734
/home/user/anaconda/lib/python2.7/site-packages/sklearn/grid_search.pyc in _fit(self, X, y, parameter_iterable)
503 self.fit_params, return_parameters=True,
504 error_score=self.error_score)
--> 505 for parameters in parameter_iterable
506 for train, test in cv)
507
/home/user/anaconda/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.pyc in __call__(self, iterable)
664 # consumption.
665 self._iterating = False
--> 666 self.retrieve()
667 # Make sure that we get a last message telling us we are done
668 elapsed_time = time.time() - self._start_time
/home/user/anaconda/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.pyc in retrieve(self)
547 # Convert this to a JoblibException
548 exception_type = _mk_exception(exception.etype)[0]
--> 549 raise exception_type(report)
550 raise exception
551 finally:
JoblibValueError: JoblibValueError
___________________________________________________________________________
Multiprocessing exception:
...........................................................................
/home/user/anaconda/lib/python2.7/runpy.py in _run_module_as_main(mod_name='IPython.kernel.__main__', alter_argv=1)
157 pkg_name = mod_name.rpartition('.')[0]
158 main_globals = sys.modules["__main__"].__dict__
159 if alter_argv:
160 sys.argv[0] = fname
161 return _run_code(code, main_globals, None,
--> 162 "__main__", fname, loader, pkg_name)
fname = '/home/user/anaconda/lib/python2.7/site-packages/IPython/kernel/__main__.py'
loader = <pkgutil.ImpLoader instance>
pkg_name = 'IPython.kernel'
163
164 def run_module(mod_name, init_globals=None,
165 run_name=None, alter_sys=False):
166 """Execute a module's code without importing it
...........................................................................
/home/user/anaconda/lib/python2.7/runpy.py in _run_code(code=<code object <module> at 0x7f8c57a1c630, file "/...ite-packages/IPython/kernel/__main__.py", line 1>, run_globals={'__builtins__': <module '__builtin__' (built-in)>, '__doc__': None, '__file__': '/home/user/anaconda/lib/python2.7/site-packages/IPython/kernel/__main__.py', '__loader__': <pkgutil.ImpLoader instance>, '__name__': '__main__', '__package__': 'IPython.kernel', 'app': <module 'IPython.kernel.zmq.kernelapp' from '/ho.../site-packages/IPython/kernel/zmq/kernelapp.pyc'>}, init_globals=None, mod_name='__main__', mod_fname='/home/user/anaconda/lib/python2.7/site-packages/IPython/kernel/__main__.py', mod_loader=<pkgutil.ImpLoader instance>, pkg_name='IPython.kernel')
67 run_globals.update(init_globals)
68 run_globals.update(__name__ = mod_name,
69 __file__ = mod_fname,
70 __loader__ = mod_loader,
71 __package__ = pkg_name)
---> 72 exec code in run_globals
code = <code object <module> at 0x7f8c57a1c630, file "/...ite-packages/IPython/kernel/__main__.py", line 1>
run_globals = {'__builtins__': <module '__builtin__' (built-in)>, '__doc__': None, '__file__': '/home/user/anaconda/lib/python2.7/site-packages/IPython/kernel/__main__.py', '__loader__': <pkgutil.ImpLoader instance>, '__name__': '__main__', '__package__': 'IPython.kernel', 'app': <module 'IPython.kernel.zmq.kernelapp' from '/ho.../site-packages/IPython/kernel/zmq/kernelapp.pyc'>}
73 return run_globals
74
75 def _run_module_code(code, init_globals=None,
76 mod_name=None, mod_fname=None,
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/IPython/kernel/__main__.py in <module>()
1
2
----> 3
4 if __name__ == '__main__':
5 from IPython.kernel.zmq import kernelapp as app
6 app.launch_new_instance()
7
8
9
10
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/IPython/config/application.py in launch_instance(cls=<class 'IPython.kernel.zmq.kernelapp.IPKernelApp'>, argv=None, **kwargs={})
569
570 If a global instance already exists, this reinitializes and starts it
571 """
572 app = cls.instance(**kwargs)
573 app.initialize(argv)
--> 574 app.start()
app.start = <bound method IPKernelApp.start of <IPython.kernel.zmq.kernelapp.IPKernelApp object>>
575
576 #-----------------------------------------------------------------------------
577 # utility functions, for convenience
578 #-----------------------------------------------------------------------------
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/kernelapp.py in start(self=<IPython.kernel.zmq.kernelapp.IPKernelApp object>)
368 def start(self):
369 if self.poller is not None:
370 self.poller.start()
371 self.kernel.start()
372 try:
--> 373 ioloop.IOLoop.instance().start()
374 except KeyboardInterrupt:
375 pass
376
377 launch_new_instance = IPKernelApp.launch_instance
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/zmq/eventloop/ioloop.py in start(self=<zmq.eventloop.ioloop.ZMQIOLoop object>)
146 PollIOLoop.configure(ZMQIOLoop)
147 return PollIOLoop.instance()
148
149 def start(self):
150 try:
--> 151 super(ZMQIOLoop, self).start()
self.start = <bound method ZMQIOLoop.start of <zmq.eventloop.ioloop.ZMQIOLoop object>>
152 except ZMQError as e:
153 if e.errno == ETERM:
154 # quietly return on ETERM
155 pass
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/tornado/ioloop.py in start(self=<zmq.eventloop.ioloop.ZMQIOLoop object>)
835 self._events.update(event_pairs)
836 while self._events:
837 fd, events = self._events.popitem()
838 try:
839 fd_obj, handler_func = self._handlers[fd]
--> 840 handler_func(fd_obj, events)
handler_func = <function null_wrapper>
fd_obj = <zmq.sugar.socket.Socket object>
events = 5
841 except (OSError, IOError) as e:
842 if errno_from_exception(e) == errno.EPIPE:
843 # Happens when the client closes the connection
844 pass
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/tornado/stack_context.py in null_wrapper(*args=(<zmq.sugar.socket.Socket object>, 5), **kwargs={})
270 # Fast path when there are no active contexts.
271 def null_wrapper(*args, **kwargs):
272 try:
273 current_state = _state.contexts
274 _state.contexts = cap_contexts[0]
--> 275 return fn(*args, **kwargs)
args = (<zmq.sugar.socket.Socket object>, 5)
kwargs = {}
276 finally:
277 _state.contexts = current_state
278 null_wrapper._wrapped = True
279 return null_wrapper
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py in _handle_events(self=<zmq.eventloop.zmqstream.ZMQStream object>, fd=<zmq.sugar.socket.Socket object>, events=5)
428 # dispatch events:
429 if events & IOLoop.ERROR:
430 gen_log.error("got POLLERR event on ZMQStream, which doesn't make sense")
431 return
432 if events & IOLoop.READ:
--> 433 self._handle_recv()
self._handle_recv = <bound method ZMQStream._handle_recv of <zmq.eventloop.zmqstream.ZMQStream object>>
434 if not self.socket:
435 return
436 if events & IOLoop.WRITE:
437 self._handle_send()
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py in _handle_recv(self=<zmq.eventloop.zmqstream.ZMQStream object>)
460 gen_log.error("RECV Error: %s"%zmq.strerror(e.errno))
461 else:
462 if self._recv_callback:
463 callback = self._recv_callback
464 # self._recv_callback = None
--> 465 self._run_callback(callback, msg)
self._run_callback = <bound method ZMQStream._run_callback of <zmq.eventloop.zmqstream.ZMQStream object>>
callback = <function null_wrapper>
msg = [<zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>]
466
467 # self.update_state()
468
469
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py in _run_callback(self=<zmq.eventloop.zmqstream.ZMQStream object>, callback=<function null_wrapper>, *args=([<zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>],), **kwargs={})
402 close our socket."""
403 try:
404 # Use a NullContext to ensure that all StackContexts are run
405 # inside our blanket exception handler rather than outside.
406 with stack_context.NullContext():
--> 407 callback(*args, **kwargs)
callback = <function null_wrapper>
args = ([<zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>],)
kwargs = {}
408 except:
409 gen_log.error("Uncaught exception, closing connection.",
410 exc_info=True)
411 # Close the socket on an uncaught exception from a user callback
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/tornado/stack_context.py in null_wrapper(*args=([<zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>],), **kwargs={})
270 # Fast path when there are no active contexts.
271 def null_wrapper(*args, **kwargs):
272 try:
273 current_state = _state.contexts
274 _state.contexts = cap_contexts[0]
--> 275 return fn(*args, **kwargs)
args = ([<zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>],)
kwargs = {}
276 finally:
277 _state.contexts = current_state
278 null_wrapper._wrapped = True
279 return null_wrapper
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/kernelbase.py in dispatcher(msg=[<zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>])
247 if self.control_stream:
248 self.control_stream.on_recv(self.dispatch_control, copy=False)
249
250 def make_dispatcher(stream):
251 def dispatcher(msg):
--> 252 return self.dispatch_shell(stream, msg)
msg = [<zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>, <zmq.sugar.frame.Frame object>]
253 return dispatcher
254
255 for s in self.shell_streams:
256 s.on_recv(make_dispatcher(s), copy=False)
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/kernelbase.py in dispatch_shell(self=<IPython.kernel.zmq.ipkernel.IPythonKernel object>, stream=<zmq.eventloop.zmqstream.ZMQStream object>, msg={'buffers': [], 'content': {u'allow_stdin': True, u'code': u"rfc = RandomForestClassifier(random_state=1)\n...auc', cv=3, n_jobs=-1, verbose=2)\nclf.fit(X, y)", u'silent': False, u'stop_on_error': True, u'store_history': True, u'user_expressions': {}}, 'header': {u'msg_id': u'122E08A036D8493A821D16CB2F4EE32A', u'msg_type': u'execute_request', u'session': u'D2F6FC266E4F453AB36721F7AF6CAD31', u'username': u'username', u'version': u'5.0'}, 'metadata': {}, 'msg_id': u'122E08A036D8493A821D16CB2F4EE32A', 'msg_type': u'execute_request', 'parent_header': {}})
208 else:
209 # ensure default_int_handler during handler call
210 sig = signal(SIGINT, default_int_handler)
211 self.log.debug("%s: %s", msg_type, msg)
212 try:
--> 213 handler(stream, idents, msg)
handler = <bound method IPythonKernel.execute_request of <IPython.kernel.zmq.ipkernel.IPythonKernel object>>
stream = <zmq.eventloop.zmqstream.ZMQStream object>
idents = ['D2F6FC266E4F453AB36721F7AF6CAD31']
msg = {'buffers': [], 'content': {u'allow_stdin': True, u'code': u"rfc = RandomForestClassifier(random_state=1)\n...auc', cv=3, n_jobs=-1, verbose=2)\nclf.fit(X, y)", u'silent': False, u'stop_on_error': True, u'store_history': True, u'user_expressions': {}}, 'header': {u'msg_id': u'122E08A036D8493A821D16CB2F4EE32A', u'msg_type': u'execute_request', u'session': u'D2F6FC266E4F453AB36721F7AF6CAD31', u'username': u'username', u'version': u'5.0'}, 'metadata': {}, 'msg_id': u'122E08A036D8493A821D16CB2F4EE32A', 'msg_type': u'execute_request', 'parent_header': {}}
214 except Exception:
215 self.log.error("Exception in message handler:", exc_info=True)
216 finally:
217 signal(SIGINT, sig)
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/kernelbase.py in execute_request(self=<IPython.kernel.zmq.ipkernel.IPythonKernel object>, stream=<zmq.eventloop.zmqstream.ZMQStream object>, ident=['D2F6FC266E4F453AB36721F7AF6CAD31'], parent={'buffers': [], 'content': {u'allow_stdin': True, u'code': u"rfc = RandomForestClassifier(random_state=1)\n...auc', cv=3, n_jobs=-1, verbose=2)\nclf.fit(X, y)", u'silent': False, u'stop_on_error': True, u'store_history': True, u'user_expressions': {}}, 'header': {u'msg_id': u'122E08A036D8493A821D16CB2F4EE32A', u'msg_type': u'execute_request', u'session': u'D2F6FC266E4F453AB36721F7AF6CAD31', u'username': u'username', u'version': u'5.0'}, 'metadata': {}, 'msg_id': u'122E08A036D8493A821D16CB2F4EE32A', 'msg_type': u'execute_request', 'parent_header': {}})
357 if not silent:
358 self.execution_count += 1
359 self._publish_execute_input(code, parent, self.execution_count)
360
361 reply_content = self.do_execute(code, silent, store_history,
--> 362 user_expressions, allow_stdin)
user_expressions = {}
allow_stdin = True
363
364 # Flush output before sending the reply.
365 sys.stdout.flush()
366 sys.stderr.flush()
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/ipkernel.py in do_execute(self=<IPython.kernel.zmq.ipkernel.IPythonKernel object>, code=u"rfc = RandomForestClassifier(random_state=1)\n...auc', cv=3, n_jobs=-1, verbose=2)\nclf.fit(X, y)", silent=False, store_history=True, user_expressions={}, allow_stdin=True)
176
177 reply_content = {}
178 # FIXME: the shell calls the exception handler itself.
179 shell._reply_content = None
180 try:
--> 181 shell.run_cell(code, store_history=store_history, silent=silent)
shell.run_cell = <bound method ZMQInteractiveShell.run_cell of <I....kernel.zmq.zmqshell.ZMQInteractiveShell object>>
code = u"rfc = RandomForestClassifier(random_state=1)\n...auc', cv=3, n_jobs=-1, verbose=2)\nclf.fit(X, y)"
store_history = True
silent = False
182 except:
183 status = u'error'
184 # FIXME: this code right now isn't being used yet by default,
185 # because the run_cell() call above directly fires off exception
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.py in run_cell(self=<IPython.kernel.zmq.zmqshell.ZMQInteractiveShell object>, raw_cell=u"rfc = RandomForestClassifier(random_state=1)\n...auc', cv=3, n_jobs=-1, verbose=2)\nclf.fit(X, y)", store_history=True, silent=False, shell_futures=True)
2866 self.displayhook.exec_result = result
2867
2868 # Execute the user code
2869 interactivity = "none" if silent else self.ast_node_interactivity
2870 self.run_ast_nodes(code_ast.body, cell_name,
-> 2871 interactivity=interactivity, compiler=compiler, result=result)
interactivity = 'last_expr'
compiler = <IPython.core.compilerop.CachingCompiler instance>
2872
2873 # Reset this so later displayed values do not modify the
2874 # ExecutionResult
2875 self.displayhook.exec_result = None
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.py in run_ast_nodes(self=<IPython.kernel.zmq.zmqshell.ZMQInteractiveShell object>, nodelist=[<_ast.Assign object>, <_ast.Assign object>, <_ast.Assign object>, <_ast.Expr object>], cell_name='<ipython-input-25-99a52d0f19db>', interactivity='last', compiler=<IPython.core.compilerop.CachingCompiler instance>, result=<IPython.core.interactiveshell.ExecutionResult object>)
2976 return True
2977
2978 for i, node in enumerate(to_run_interactive):
2979 mod = ast.Interactive([node])
2980 code = compiler(mod, cell_name, "single")
-> 2981 if self.run_code(code, result):
self.run_code = <bound method ZMQInteractiveShell.run_code of <I....kernel.zmq.zmqshell.ZMQInteractiveShell object>>
code = <code object <module> at 0x7f8c215a43b0, file "<ipython-input-25-99a52d0f19db>", line 6>
result = <IPython.core.interactiveshell.ExecutionResult object>
2982 return True
2983
2984 # Flush softspace
2985 if softspace(sys.stdout, 0):
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.py in run_code(self=<IPython.kernel.zmq.zmqshell.ZMQInteractiveShell object>, code_obj=<code object <module> at 0x7f8c215a43b0, file "<ipython-input-25-99a52d0f19db>", line 6>, result=<IPython.core.interactiveshell.ExecutionResult object>)
3030 outflag = 1 # happens in more places, so it's easier as default
3031 try:
3032 try:
3033 self.hooks.pre_run_code_hook()
3034 #rprint('Running code', repr(code_obj)) # dbg
-> 3035 exec(code_obj, self.user_global_ns, self.user_ns)
code_obj = <code object <module> at 0x7f8c215a43b0, file "<ipython-input-25-99a52d0f19db>", line 6>
self.user_global_ns = {'ALLOW_THREADS': 1, 'Annotation': <class 'matplotlib.text.Annotation'>, 'Arrow': <class 'matplotlib.patches.Arrow'>, 'Artist': <class 'matplotlib.artist.Artist'>, 'AutoLocator': <class 'matplotlib.ticker.AutoLocator'>, 'Axes': <class 'matplotlib.axes._axes.Axes'>, 'BUFSIZE': 8192, 'Button': <class 'matplotlib.widgets.Button'>, 'CLIP': 0, 'Circle': <class 'matplotlib.patches.Circle'>, ...}
self.user_ns = {'ALLOW_THREADS': 1, 'Annotation': <class 'matplotlib.text.Annotation'>, 'Arrow': <class 'matplotlib.patches.Arrow'>, 'Artist': <class 'matplotlib.artist.Artist'>, 'AutoLocator': <class 'matplotlib.ticker.AutoLocator'>, 'Axes': <class 'matplotlib.axes._axes.Axes'>, 'BUFSIZE': 8192, 'Button': <class 'matplotlib.widgets.Button'>, 'CLIP': 0, 'Circle': <class 'matplotlib.patches.Circle'>, ...}
3036 finally:
3037 # Reset our crash handler in place
3038 sys.excepthook = old_excepthook
3039 except SystemExit as e:
...........................................................................
/home/user/data-analysis/GA/project/final/<ipython-input-25-99a52d0f19db> in <module>()
1 rfc = RandomForestClassifier(random_state=1)
2 tuned_parameters = [{'max_features': ['sqrt', 'log2'],
3 'n_estimators': [20, 100, 200, 500, 1000]}]
4
5 clf = GridSearchCV(rfc, tuned_parameters, scoring='roc_auc', cv=3, n_jobs=-1, verbose=2)
----> 6 clf.fit(X, y)
7
8
9
10
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/sklearn/grid_search.py in fit(self=GridSearchCV(cv=3, error_score='raise',
e...e_func=None,
scoring='roc_auc', verbose=2), X= 1516 Quinoa Weisse 18th Street / Against ...0 0.000000 0
[20000 rows x 5814 columns], y=0 False
0 True
1 False
1 ...lse
9999 True
Name: is_five_star, dtype: bool)
727 y : array-like, shape = [n_samples] or [n_samples, n_output], optional
728 Target relative to X for classification or regression;
729 None for unsupervised learning.
730
731 """
--> 732 return self._fit(X, y, ParameterGrid(self.param_grid))
self._fit = <bound method GridSearchCV._fit of GridSearchCV(..._func=None,
scoring='roc_auc', verbose=2)>
X = 1516 Quinoa Weisse 18th Street / Against ...0 0.000000 0
[20000 rows x 5814 columns]
y = 0 False
0 True
1 False
1 ...lse
9999 True
Name: is_five_star, dtype: bool
self.param_grid = [{'max_features': ['sqrt', 'log2'], 'n_estimators': [20, 100, 200, 500, 1000]}]
733
734
735 class RandomizedSearchCV(BaseSearchCV):
736 """Randomized search on hyper parameters.
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/sklearn/grid_search.py in _fit(self=GridSearchCV(cv=3, error_score='raise',
e...e_func=None,
scoring='roc_auc', verbose=2), X= 1516 Quinoa Weisse 18th Street / Against ...0 0.000000 0
[20000 rows x 5814 columns], y=0 False
0 True
1 False
1 ...lse
9999 True
Name: is_five_star, dtype: bool, parameter_iterable=<sklearn.grid_search.ParameterGrid object>)
500 )(
501 delayed(_fit_and_score)(clone(base_estimator), X, y, self.scorer_,
502 train, test, self.verbose, parameters,
503 self.fit_params, return_parameters=True,
504 error_score=self.error_score)
--> 505 for parameters in parameter_iterable
parameters = undefined
parameter_iterable = <sklearn.grid_search.ParameterGrid object>
506 for train, test in cv)
507
508 # Out is a list of triplet: score, estimator, n_test_samples
509 n_fits = len(out)
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py in __call__(self=Parallel(n_jobs=-1), iterable=<itertools.islice object>)
661 if pre_dispatch == "all" or n_jobs == 1:
662 # The iterable was consumed all at once by the above for loop.
663 # No need to wait for async callbacks to trigger to
664 # consumption.
665 self._iterating = False
--> 666 self.retrieve()
self.retrieve = <bound method Parallel.retrieve of Parallel(n_jobs=-1)>
667 # Make sure that we get a last message telling us we are done
668 elapsed_time = time.time() - self._start_time
669 self._print('Done %3i out of %3i | elapsed: %s finished',
670 (len(self._output),
---------------------------------------------------------------------------
Sub-process traceback:
---------------------------------------------------------------------------
ValueError Fri Apr 17 23:31:01 2015
PID: 25128 Python 2.7.9: /home/user/anaconda/bin/python
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/sklearn/cross_validation.pyc in _fit_and_score(estimator=RandomForestClassifier(bootstrap=True, class_wei...lse, random_state=1, verbose=0, warm_start=False), X=<class 'pandas.core.frame.DataFrame'> instance, y=0 False
0 True
1 False
1 ...lse
9999 True
Name: is_five_star, dtype: bool, scorer=make_scorer(roc_auc_score, needs_threshold=True), train=array([ 6634, 6636, 6638, ..., 19997, 19998, 19999]), test=array([ 0, 1, 2, ..., 6723, 6725, 6729]), verbose=2, parameters={'max_features': 'sqrt', 'n_estimators': 20}, fit_params={}, return_train_score=False, return_parameters=True, error_score='raise')
1447 if parameters is not None:
1448 estimator.set_params(**parameters)
1449
1450 start_time = time.time()
1451
-> 1452 X_train, y_train = _safe_split(estimator, X, y, train)
1453 X_test, y_test = _safe_split(estimator, X, y, test, train)
1454
1455 try:
1456 if y_train is None:
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/sklearn/cross_validation.pyc in _safe_split(estimator=RandomForestClassifier(bootstrap=True, class_wei...lse, random_state=1, verbose=0, warm_start=False), X=<class 'pandas.core.frame.DataFrame'> instance, y=0 False
0 True
1 False
1 ...lse
9999 True
Name: is_five_star, dtype: bool, indices=array([ 6634, 6636, 6638, ..., 19997, 19998, 19999]), train_indices=None)
1514 if train_indices is None:
1515 X_subset = X[np.ix_(indices, indices)]
1516 else:
1517 X_subset = X[np.ix_(indices, train_indices)]
1518 else:
-> 1519 X_subset = safe_indexing(X, indices)
1520
1521 if y is not None:
1522 y_subset = safe_indexing(y, indices)
1523 else:
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/sklearn/utils/__init__.pyc in safe_indexing(X=<class 'pandas.core.frame.DataFrame'> instance, indices=array([ 6634, 6636, 6638, ..., 19997, 19998, 19999]))
147 indices : array-like, list
148 Indices according to which X will be subsampled.
149 """
150 if hasattr(X, "iloc"):
151 # Pandas Dataframes and Series
--> 152 return X.iloc[indices]
153 elif hasattr(X, "shape"):
154 if hasattr(X, 'take') and (hasattr(indices, 'dtype') and
155 indices.dtype.kind == 'i'):
156 # This is often substantially faster than X[indices]
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/core/indexing.pyc in __getitem__(self=<pandas.core.indexing._iLocIndexer object>, key=array([ 6634, 6636, 6638, ..., 19997, 19998, 19999]))
1212
1213 def __getitem__(self, key):
1214 if type(key) is tuple:
1215 return self._getitem_tuple(key)
1216 else:
-> 1217 return self._getitem_axis(key, axis=0)
1218
1219 def _getitem_axis(self, key, axis=0):
1220 raise NotImplementedError()
1221
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_axis(self=<pandas.core.indexing._iLocIndexer object>, key=[6634, 6636, 6638, 6639, 6640, 6642, 6644, 6646, 6648, 6650, 6652, 6653, 6654, 6655, 6656, 6658, 6659, 6660, 6662, 6663, ...], axis=0)
1503 "non-integer key")
1504
1505 # validate the location
1506 self._is_valid_integer(key, axis)
1507
-> 1508 return self._get_loc(key, axis=axis)
1509
1510 def _convert_to_indexer(self, obj, axis=0, is_setter=False):
1511 """ much simpler as we only have to deal with our valid types """
1512
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/core/indexing.pyc in _get_loc(self=<pandas.core.indexing._iLocIndexer object>, key=[6634, 6636, 6638, 6639, 6640, 6642, 6644, 6646, 6648, 6650, 6652, 6653, 6654, 6655, 6656, 6658, 6659, 6660, 6662, 6663, ...], axis=0)
87 raise IndexingError('no slices here, handle elsewhere')
88
89 return self.obj._xs(label, axis=axis)
90
91 def _get_loc(self, key, axis=0):
---> 92 return self.obj._ixs(key, axis=axis)
93
94 def _slice(self, obj, axis=0, kind=None):
95 return self.obj._slice(obj, axis=axis, kind=kind)
96
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in _ixs(self=<class 'pandas.core.frame.DataFrame'> instance, i=[6634, 6636, 6638, 6639, 6640, 6642, 6644, 6646, 6648, 6650, 6652, 6653, 6654, 6655, 6656, 6658, 6659, 6660, 6662, 6663, ...], axis=0)
1709 return self[i]
1710 else:
1711 label = self.index[i]
1712 if isinstance(label, Index):
1713 # a location index by definition
-> 1714 result = self.take(i, axis=axis)
i = [6634, 6636, 6638, 6639, 6640, 6642, 6644, 6646, 6648, 6650, 6652, 6653, 6654, 6655, 6656, 6658, 6659, 6660, 6662, 6663, ...]
values = undefined
values.DataFrame.stack = undefined
axis = 0
axis.Return = undefined
result = undefined
1715 copy=True
1716 else:
1717 new_values = self._data.fast_xs(i)
1718
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/core/generic.pyc in take(self=<class 'pandas.core.frame.DataFrame'> instance, indices=[6634, 6636, 6638, 6639, 6640, 6642, 6644, 6646, 6648, 6650, 6652, 6653, 6654, 6655, 6656, 6658, 6659, 6660, 6662, 6663, ...], axis=0, convert=True, is_copy=True)
1346 taken : type of caller
1347 """
1348
1349 new_data = self._data.take(indices,
1350 axis=self._get_block_manager_axis(axis),
-> 1351 convert=True, verify=True)
1352 result = self._constructor(new_data).__finalize__(self)
1353
1354 # maybe set copy if we didn't actually change the index
1355 if is_copy:
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in take(self=BlockManager
Items: Index([u'1516 Quinoa Weisse'...ock: slice(5239, 5240, 1), 1 x 20000, dtype: bool, indexer=array([ 6634, 6636, 6638, ..., 19997, 19998, 19999]), axis=1, verify=True, convert=True)
3264 raise Exception('Indices must be nonzero and less than '
3265 'the axis length')
3266
3267 new_labels = self.axes[axis].take(indexer)
3268 return self.reindex_indexer(new_axis=new_labels, indexer=indexer,
-> 3269 axis=axis, allow_dups=True)
3270
3271 def merge(self, other, lsuffix='', rsuffix=''):
3272 if not self._is_indexed_like(other):
3273 raise AssertionError('Must have same axes to merge managers')
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in reindex_indexer(self=BlockManager
Items: Index([u'1516 Quinoa Weisse'...ock: slice(5239, 5240, 1), 1 x 20000, dtype: bool, new_axis=Int64Index([3317, 3318, 3319, 3319, 3320, 3321, ...381, 3382, 3382, 3383, 3383, ...], dtype='int64'), indexer=array([ 6634, 6636, 6638, ..., 19997, 19998, 19999]), axis=1, fill_value=None, allow_dups=True, copy=True)
3151 indexer, fill_tuple=(fill_value,))
3152 else:
3153 new_blocks = [blk.take_nd(indexer, axis=axis,
3154 fill_tuple=(fill_value if fill_value is not None else
3155 blk.fill_value,))
-> 3156 for blk in self.blocks]
3157
3158 new_axes = list(self.axes)
3159 new_axes[axis] = new_axis
3160 return self.__class__(new_blocks, new_axes)
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in take_nd(self=FloatBlock: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1...6, 97, 98, 99, ...], 5813 x 20000, dtype: float64, indexer=array([ 6634, 6636, 6638, ..., 19997, 19998, 19999]), axis=1, new_mgr_locs=None, fill_tuple=(nan,))
846 new_values = com.take_nd(self.get_values(), indexer, axis=axis,
847 allow_fill=False)
848 else:
849 fill_value = fill_tuple[0]
850 new_values = com.take_nd(self.get_values(), indexer, axis=axis,
--> 851 allow_fill=True, fill_value=fill_value)
852
853 if new_mgr_locs is None:
854 if axis == 0:
855 slc = lib.indexer_as_slice(indexer)
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/core/common.pyc in take_nd(arr=memmap([[ 0. , 0. , 0. , ... 0. ,
0. , 0. ]]), indexer=array([ 6634, 6636, 6638, ..., 19997, 19998, 19999]), axis=1, out=array([[ 0., 0., 0., ..., 0., 0., 0.],
...0.],
[ 0., 0., 0., ..., 0., 0., 0.]]), fill_value=nan, mask_info=None, allow_fill=True)
818
819 func = _get_take_nd_function(arr.ndim, arr.dtype, out.dtype,
820 axis=axis, mask_info=mask_info)
821
822 indexer = _ensure_int64(indexer)
--> 823 func(arr, indexer, out, fill_value)
824
825 if flip_order:
826 out = out.T
827 return out
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/algos.so in pandas.algos.take_2d_axis1_float64_float64 (pandas/algos.c:95466)()
4000
4001
4002
4003
4004
-> 4005
4006
4007
4008
4009
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/algos.so in View.MemoryView.memoryview_cwrapper (pandas/algos.c:175798)()
609
610
611
612
613
--> 614
615
616
617
618
...........................................................................
/home/user/anaconda/lib/python2.7/site-packages/pandas/algos.so in View.MemoryView.memoryview.__cinit__ (pandas/algos.c:172387)()
316
317
318
319
320
--> 321
322
323
324
325
ValueError: buffer source array is read-only
___________________________________________________________________________
```
pd.show_versions()
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Linux
OS-release: 3.16.0-34-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.0
nose: 1.3.6
Cython: 0.22
numpy: 1.9.2
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 3.1.0
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.2
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.4.3
openpyxl: 2.0.2
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: 0.7.2
lxml: 3.4.2
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 0.9.9
pymysql: None
psycopg2: 2.6 (dt dec pq3 ext)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9928/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9928/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9929 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9929/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9929/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9929/events | https://github.com/pandas-dev/pandas/pull/9929 | 69,278,048 | MDExOlB1bGxSZXF1ZXN0MzM1OTc5MjE= | 9,929 | Allow add_categories() to accept Series/np.array and make raising on dup... | {
"avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4",
"events_url": "https://api.github.com/users/mortada/events{/privacy}",
"followers_url": "https://api.github.com/users/mortada/followers",
"following_url": "https://api.github.com/users/mortada/following{/other_user}",
"gists_url": "https://api.github.com/users/mortada/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mortada",
"id": 1642081,
"login": "mortada",
"node_id": "MDQ6VXNlcjE2NDIwODE=",
"organizations_url": "https://api.github.com/users/mortada/orgs",
"received_events_url": "https://api.github.com/users/mortada/received_events",
"repos_url": "https://api.github.com/users/mortada/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mortada/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mortada"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 3 | 2015-04-18T07:01:35Z | 2015-04-22T00:08:07Z | 2015-04-21T23:38:48Z | CONTRIBUTOR | null | ...licates optional, fixes #9927
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9929/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9929/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9929.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9929",
"merged_at": "2015-04-21T23:38:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9929.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9929"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9930 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9930/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9930/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9930/events | https://github.com/pandas-dev/pandas/issues/9930 | 69,318,583 | MDU6SXNzdWU2OTMxODU4Mw== | 9,930 | read_excel with sheetname=None or sheetname=[0,1,”Sheet5”] should preserve sheets order | {
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
]
| closed | false | null | []
| {
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
} | 1 | 2015-04-18T15:23:16Z | 2016-11-11T13:02:04Z | 2016-11-11T10:00:32Z | CONTRIBUTOR | null | Hello,
I noticed in http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_excel.html#pandas.read_excel
that `read_excel` can have a parameter `sheetname`set to `None` or a to a `list`
In such a case a dictionary of `DataFrame` is returned.
Maybe it should output an `OrderedDict` of `DataFrame` to preserve sheets order.
Kind regards
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9930/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9930/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9931 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9931/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9931/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9931/events | https://github.com/pandas-dev/pandas/pull/9931 | 69,319,831 | MDExOlB1bGxSZXF1ZXN0MzM2MDM3OTI= | 9,931 | Update README.md | {
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
} | []
| closed | false | null | []
| null | 2 | 2015-04-18T15:35:35Z | 2015-04-19T00:17:02Z | 2015-04-19T00:16:58Z | CONTRIBUTOR | null | Travis build status badge should be clickable.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9931/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9931/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9931.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9931",
"merged_at": "2015-04-19T00:16:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9931.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9931"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9932 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9932/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9932/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9932/events | https://github.com/pandas-dev/pandas/issues/9932 | 69,319,900 | MDU6SXNzdWU2OTMxOTkwMA== | 9,932 | Travis build status badge is not clickable in README.md | {
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
} | []
| closed | false | null | []
| null | 1 | 2015-04-18T15:36:37Z | 2015-04-19T00:17:09Z | 2015-04-19T00:17:09Z | CONTRIBUTOR | null | Travis build status badge is not clickable
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9932/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9932/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9933 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9933/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9933/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9933/events | https://github.com/pandas-dev/pandas/pull/9933 | 69,320,629 | MDExOlB1bGxSZXF1ZXN0MzM2MDM4OTM= | 9,933 | Update excel.py to output OrderedDict instead of dict | {
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
} | []
| closed | false | null | []
| null | 4 | 2015-04-18T15:43:36Z | 2015-04-20T11:52:18Z | 2015-04-20T04:32:21Z | CONTRIBUTOR | null | It should fix https://github.com/pydata/pandas/issues/9930
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9933/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9933/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9933.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9933",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9933.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9933"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9934 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9934/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9934/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9934/events | https://github.com/pandas-dev/pandas/pull/9934 | 69,329,157 | MDExOlB1bGxSZXF1ZXN0MzM2MDU0OTM= | 9,934 | BUG: Exception when setting an empty range using DataFrame.loc | {
"avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4",
"events_url": "https://api.github.com/users/evanpw/events{/privacy}",
"followers_url": "https://api.github.com/users/evanpw/followers",
"following_url": "https://api.github.com/users/evanpw/following{/other_user}",
"gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/evanpw",
"id": 1621449,
"login": "evanpw",
"node_id": "MDQ6VXNlcjE2MjE0NDk=",
"organizations_url": "https://api.github.com/users/evanpw/orgs",
"received_events_url": "https://api.github.com/users/evanpw/received_events",
"repos_url": "https://api.github.com/users/evanpw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/evanpw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/evanpw"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 3 | 2015-04-18T17:22:20Z | 2015-04-18T20:52:21Z | 2015-04-18T20:42:41Z | CONTRIBUTOR | null | Fixes #9596
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9934/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9934/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9934.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9934",
"merged_at": "2015-04-18T20:42:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9934.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9934"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9935 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9935/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9935/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9935/events | https://github.com/pandas-dev/pandas/pull/9935 | 69,342,476 | MDExOlB1bGxSZXF1ZXN0MzM2MDc4MDY= | 9,935 | add support for quandl historical financial data | {
"avatar_url": "https://avatars.githubusercontent.com/u/2576940?v=4",
"events_url": "https://api.github.com/users/briancappello/events{/privacy}",
"followers_url": "https://api.github.com/users/briancappello/followers",
"following_url": "https://api.github.com/users/briancappello/following{/other_user}",
"gists_url": "https://api.github.com/users/briancappello/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/briancappello",
"id": 2576940,
"login": "briancappello",
"node_id": "MDQ6VXNlcjI1NzY5NDA=",
"organizations_url": "https://api.github.com/users/briancappello/orgs",
"received_events_url": "https://api.github.com/users/briancappello/received_events",
"repos_url": "https://api.github.com/users/briancappello/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/briancappello/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/briancappello/subscriptions",
"type": "User",
"url": "https://api.github.com/users/briancappello"
} | []
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 2 | 2015-04-18T19:57:34Z | 2015-04-19T18:52:22Z | 2015-04-19T18:51:08Z | NONE | null | | Q | A |
| --- | --- |
| Bug fix? | no |
| New feature? | yes |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | - |
| License | BSD |
| Doc PR | - |
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9935/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9935/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9935.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9935",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9935.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9935"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9936 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9936/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9936/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9936/events | https://github.com/pandas-dev/pandas/pull/9936 | 69,347,002 | MDExOlB1bGxSZXF1ZXN0MzM2MDg2NzQ= | 9,936 | BUG: GroupBy.size doesnt attach index name properly if grouped by TimeGr... | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 2 | 2015-04-18T20:56:54Z | 2015-04-22T13:55:10Z | 2015-04-20T11:08:51Z | MEMBER | null | Closes #9925
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9936/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9936/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9936.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9936",
"merged_at": "2015-04-20T11:08:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9936.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9936"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9937 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9937/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9937/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9937/events | https://github.com/pandas-dev/pandas/issues/9937 | 69,370,427 | MDU6SXNzdWU2OTM3MDQyNw== | 9,937 | pd.merge for outer with empty dataframe on the left side results in merged dataframe with the key column not being first | {
"avatar_url": "https://avatars.githubusercontent.com/u/2956023?v=4",
"events_url": "https://api.github.com/users/kundapur/events{/privacy}",
"followers_url": "https://api.github.com/users/kundapur/followers",
"following_url": "https://api.github.com/users/kundapur/following{/other_user}",
"gists_url": "https://api.github.com/users/kundapur/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kundapur",
"id": 2956023,
"login": "kundapur",
"node_id": "MDQ6VXNlcjI5NTYwMjM=",
"organizations_url": "https://api.github.com/users/kundapur/orgs",
"received_events_url": "https://api.github.com/users/kundapur/received_events",
"repos_url": "https://api.github.com/users/kundapur/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kundapur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kundapur/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kundapur"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
]
| open | false | null | []
| null | 1 | 2015-04-19T01:47:49Z | 2019-01-13T00:57:15Z | null | NONE | null | Hi,
I am new to Pandas and like it a lot. I noticed that while doing an outer merge if the dataframe on the left side is empty, then the key column in the merged dataframe is not the first.
First the summary and then my code, print output, and pd.show_versions is included below. Consider 2 dataframes left and right. The left data frame has 2 columns - key and lval. The right data frame has 2 columns - key and rval. Then consider 4 situations below.
1) Both left and right dataframes are non-empty
2) Left is non-empty and right is empty
3) Left is empty and right is non-empty
4) Both left and right dataframes are empty
In each of the situations, do an outer merge on the key column. The merged data frame has the columns in the following order:
In (1) and (2), the merged columns are key, lval, rval -> Good and as I expected
In (3) and (4), the merged columns are lval, key, rval -> Not as I expected. Is this expected? I'd expect the merged columns to be key, lval, rval. Is there a way to force this? I could do a workaround by checking the shape of the left data frame but I am wondering if I am doing something wrong or there's something wrong.
## Code
```
import pandas as pd
import numpy as np
def print_matrices():
print 'left'
print left
print 'right'
print right
print 'merged'
print merged
print 'pandas show_versions'
pd.show_versions(as_json=False)
print '\n\nAn outer join'
left = pd.DataFrame({'key': ['foo1', 'foo2'], 'lval': [1, 2]})
right = pd.DataFrame({'key': ['foo1', 'foo3'], 'rval': [4, 5]})
merged = pd.merge(left, right, on='key', how='outer')
print_matrices()
print '\n\nAn outer join with right empty dataframe'
left = pd.DataFrame({'key': ['foo1', 'foo2'], 'lval': [1, 2]})
right = pd.DataFrame({'key': [], 'rval': []})
merged = pd.merge(left, right, on='key', how='outer')
print_matrices()
print '\n\nAn outer join with left empty dataframe'
left = pd.DataFrame({'key': [], 'lval': []})
right = pd.DataFrame({'key': ['foo1', 'foo3'], 'rval': [4, 5]})
merged = pd.merge(left, right, on='key', how='outer')
print_matrices()
print '\n\nAn outer join with both left and right empty dataframe'
left = pd.DataFrame({'key': [], 'lval': []})
right = pd.DataFrame({'key': [], 'rval': []})
merged = pd.merge(left, right, on='key', how='outer')
print_matrices()
```
## Output:
An outer join
```
left
key lval
0 foo1 1
1 foo2 2
right
key rval
0 foo1 4
1 foo3 5
merged
key lval rval
0 foo1 1 4
1 foo2 2 NaN
2 foo3 NaN 5
```
An outer join with right empty dataframe
```
left
key lval
0 foo1 1
1 foo2 2
right
Empty DataFrame
Columns: [key, rval]
Index: []
merged
key lval rval
0 foo1 1 NaN
1 foo2 2 NaN
```
An outer join with left empty dataframe
```
left
Empty DataFrame
Columns: [key, lval]
Index: []
right
key rval
0 foo1 4
1 foo3 5
merged
lval key rval
0 NaN foo1 4
1 NaN foo3 5
```
An outer join with two empty dataframe
```
left
Empty DataFrame
Columns: [key, lval]
Index: []
right
Empty DataFrame
Columns: [key, rval]
Index: []
merged
Empty DataFrame
Columns: [lval, key, rval]
Index: []
```
pandas show_versions
## INSTALLED VERSIONS
commit: None
python: 2.7.5.final.0
python-bits: 64
OS: Darwin
OS-release: 13.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.0
nose: None
Cython: None
numpy: 1.9.2
scipy: None
statsmodels: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.4.1
pytz: 2014.10
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: 0.9
apiclient: 1.4.0
sqlalchemy: None
pymysql: None
psycopg2: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9937/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9937/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9938 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9938/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9938/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9938/events | https://github.com/pandas-dev/pandas/pull/9938 | 69,410,633 | MDExOlB1bGxSZXF1ZXN0MzM2MTY3ODk= | 9,938 | DOC: Link to recipe for SafeHDF5Store | {
"avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4",
"events_url": "https://api.github.com/users/toobaz/events{/privacy}",
"followers_url": "https://api.github.com/users/toobaz/followers",
"following_url": "https://api.github.com/users/toobaz/following{/other_user}",
"gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/toobaz",
"id": 1224492,
"login": "toobaz",
"node_id": "MDQ6VXNlcjEyMjQ0OTI=",
"organizations_url": "https://api.github.com/users/toobaz/orgs",
"received_events_url": "https://api.github.com/users/toobaz/received_events",
"repos_url": "https://api.github.com/users/toobaz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toobaz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/toobaz"
} | []
| closed | false | null | []
| null | 1 | 2015-04-19T10:38:43Z | 2015-04-19T17:54:34Z | 2015-04-19T17:54:28Z | MEMBER | null | Just a link in the cookbook, as suggested by https://github.com/pydata/pandas/issues/9641
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9938/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9938/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9938.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9938",
"merged_at": "2015-04-19T17:54:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9938.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9938"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9939 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9939/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9939/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9939/events | https://github.com/pandas-dev/pandas/pull/9939 | 69,451,293 | MDExOlB1bGxSZXF1ZXN0MzM2MjMzMTM= | 9,939 | BUG: DataFrame constructor fails when columns is set and data=[] | {
"avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4",
"events_url": "https://api.github.com/users/evanpw/events{/privacy}",
"followers_url": "https://api.github.com/users/evanpw/followers",
"following_url": "https://api.github.com/users/evanpw/following{/other_user}",
"gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/evanpw",
"id": 1621449,
"login": "evanpw",
"node_id": "MDQ6VXNlcjE2MjE0NDk=",
"organizations_url": "https://api.github.com/users/evanpw/orgs",
"received_events_url": "https://api.github.com/users/evanpw/received_events",
"repos_url": "https://api.github.com/users/evanpw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/evanpw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/evanpw"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 3 | 2015-04-19T18:27:44Z | 2015-04-28T23:16:52Z | 2015-04-28T12:16:00Z | CONTRIBUTOR | null | From this StackOverflow question: http://stackoverflow.com/questions/29730488/setting-columns-for-an-empty-pandas-dataframe
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9939/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9939/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9939.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9939",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9939.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9939"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9940 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9940/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9940/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9940/events | https://github.com/pandas-dev/pandas/pull/9940 | 69,451,664 | MDExOlB1bGxSZXF1ZXN0MzM2MjMzNTY= | 9,940 | PERF: improve perf of writing csv's with datetimes | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 0 | 2015-04-19T18:30:36Z | 2015-04-20T11:15:48Z | 2015-04-20T11:15:48Z | CONTRIBUTOR | null | ```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------------------------
frame_to_csv_mixed | 107.7774 | 668.5090 | 0.1612 |
frame_to_csv | 55.9403 | 140.1517 | 0.3991 |
write_csv_standard | 25.6400 | 49.6367 | 0.5166 |
packers_write_csv | 663.6736 | 1228.0974 | 0.5404 |
read_csv_standard | 10.2447 | 15.0284 | 0.6817 |
read_csv_skiprows | 12.1686 | 16.3487 | 0.7443 |
frame_to_csv_date_formatting | 10.2980 | 13.3820 | 0.7695 |
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9940/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9940/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9940.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9940",
"merged_at": "2015-04-20T11:15:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9940.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9940"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9941 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9941/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9941/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9941/events | https://github.com/pandas-dev/pandas/issues/9941 | 69,466,373 | MDU6SXNzdWU2OTQ2NjM3Mw== | 9,941 | groupby/transform with NaNs in grouped column | {
"avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4",
"events_url": "https://api.github.com/users/evanpw/events{/privacy}",
"followers_url": "https://api.github.com/users/evanpw/followers",
"following_url": "https://api.github.com/users/evanpw/following{/other_user}",
"gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/evanpw",
"id": 1621449,
"login": "evanpw",
"node_id": "MDQ6VXNlcjE2MjE0NDk=",
"organizations_url": "https://api.github.com/users/evanpw/orgs",
"received_events_url": "https://api.github.com/users/evanpw/received_events",
"repos_url": "https://api.github.com/users/evanpw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/evanpw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/evanpw"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
} | 2 | 2015-04-19T21:24:18Z | 2016-12-18T20:24:12Z | 2016-12-18T20:24:12Z | CONTRIBUTOR | null | What's the expected behavior when grouping on a column containing `NaN` and then applying `transform`? For a `Series`, the current result is to throw an exception:
```
>>> df = pd.DataFrame({
... 'a' : range(10),
... 'b' : [1, 1, 2, 3, np.nan, 4, 4, 5, 5, 5]})
>>>
>>> df.groupby(df.b)['a'].transform(max)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandas/core/groupby.py", line 2422, in transform
return self._transform_fast(cyfunc)
File "pandas/core/groupby.py", line 2463, in _transform_fast
return self._set_result_index_ordered(Series(values))
File "pandas/core/groupby.py", line 498, in _set_result_index_ordered
result.index = self.obj.index
File "pandas/core/generic.py", line 1997, in __setattr__
return object.__setattr__(self, name, value)
File "pandas/src/properties.pyx", line 65, in pandas.lib.AxisProperty.__set__ (pandas/lib.c:41301)
obj._set_axis(self.axis, value)
File "pandas/core/series.py", line 273, in _set_axis
self._data.set_axis(axis, labels)
File "pandas/core/internals.py", line 2219, in set_axis
'new values have %d elements' % (old_len, new_len))
ValueError: Length mismatch: Expected axis has 9 elements, new values have 10 elements
```
For a `DataFrame`, the missing value gets filled in with what looks like an uninitialized value from `np.empty_like`:
```
>>> df.groupby(df.b).transform(max)
a
0 1
1 1
2 2
3 3
4 -1
5 6
6 6
7 9
8 9
9 9
```
It seems like either it should fill in the missing values with `NaN` (which might require a change of dtype), or just drop those rows from the result (which requires the shape to change). Either solution has the potential to surprise.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9941/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9941/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9942 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9942/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9942/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9942/events | https://github.com/pandas-dev/pandas/pull/9942 | 69,469,683 | MDExOlB1bGxSZXF1ZXN0MzM2MjcwMDk= | 9,942 | various windows test / dtype fixes | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 0 | 2015-04-19T22:14:36Z | 2015-04-20T01:04:01Z | 2015-04-20T01:04:01Z | CONTRIBUTOR | null | xref #9770
xref #9845
xref #9804
xref #9802
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9942/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9942/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9942.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9942",
"merged_at": "2015-04-20T01:04:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9942.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9942"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9943 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9943/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9943/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9943/events | https://github.com/pandas-dev/pandas/issues/9943 | 69,496,397 | MDU6SXNzdWU2OTQ5NjM5Nw== | 9,943 | BUG: index name lost when indexing with another index | {
"avatar_url": "https://avatars.githubusercontent.com/u/5010099?v=4",
"events_url": "https://api.github.com/users/sergeny/events{/privacy}",
"followers_url": "https://api.github.com/users/sergeny/followers",
"following_url": "https://api.github.com/users/sergeny/following{/other_user}",
"gists_url": "https://api.github.com/users/sergeny/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sergeny",
"id": 5010099,
"login": "sergeny",
"node_id": "MDQ6VXNlcjUwMTAwOTk=",
"organizations_url": "https://api.github.com/users/sergeny/orgs",
"received_events_url": "https://api.github.com/users/sergeny/received_events",
"repos_url": "https://api.github.com/users/sergeny/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sergeny/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sergeny/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sergeny"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "0e8a16",
"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": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 8 | 2015-04-20T03:15:12Z | 2021-04-18T06:31:58Z | 2021-04-18T06:31:58Z | NONE | null | Very subtle. Index name stays when using .ix [ list ], but gets lost when using .ix[ Int64Index ].
```
import pandas as pd
from pandas.util.testing import assert_frame_equal
import numpy as np
assert pd.__version__ == '0.16.0'
df = pd.DataFrame([np.nan, np.nan], columns = ['tags'], index=pd.Int64Index([4815961, 4815962], dtype='int64', name='id'))
assert str(df) == ' tags\nid \n4815961 NaN\n4815962 NaN'
# OK.
L = [4815962]
assert list(L) == list(df.index.intersection(L))
# succeeds. It's just a type difference
print df.ix[L].tags.index.name
#>>> 'id'
print df.ix[df.index.intersection(L)].tags.index.name
#>>>
assert df.ix[L].tags.index.name == df.ix[df.index.intersection(L)].tags.index.name
# assertion failure. Should really succeed.
assert_frame_equal(df.ix[L], df.ix[df.index.intersection(L)])
# assertion failure. Should really succeed.
# AssertionError: attr is not equal [names]: FrozenList([u'id']) != FrozenList([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/9943/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9943/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9944 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9944/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9944/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9944/events | https://github.com/pandas-dev/pandas/pull/9944 | 69,502,971 | MDExOlB1bGxSZXF1ZXN0MzM2MzQ3MjE= | 9,944 | ENH: return an OrderedDict from read_excel with sheetname=None/list #9930 | {
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 13 | 2015-04-20T04:20:38Z | 2015-05-10T14:20:54Z | 2015-05-10T14:20:54Z | CONTRIBUTOR | null | Fix https://github.com/pydata/pandas/issues/9930
read_excel with sheetname=None or sheetname=[0,1,”Sheet5”] returns an OrderedDict instead of a dict
Follow-up of #9933
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9944/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9944/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9944.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9944",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9944.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9944"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9945 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9945/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9945/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9945/events | https://github.com/pandas-dev/pandas/issues/9945 | 69,513,676 | MDU6SXNzdWU2OTUxMzY3Ng== | 9,945 | groupby().transform(f) is very slow if there are assignment statements to the argument of f() | {
"avatar_url": "https://avatars.githubusercontent.com/u/826871?v=4",
"events_url": "https://api.github.com/users/ruoyu0088/events{/privacy}",
"followers_url": "https://api.github.com/users/ruoyu0088/followers",
"following_url": "https://api.github.com/users/ruoyu0088/following{/other_user}",
"gists_url": "https://api.github.com/users/ruoyu0088/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ruoyu0088",
"id": 826871,
"login": "ruoyu0088",
"node_id": "MDQ6VXNlcjgyNjg3MQ==",
"organizations_url": "https://api.github.com/users/ruoyu0088/orgs",
"received_events_url": "https://api.github.com/users/ruoyu0088/received_events",
"repos_url": "https://api.github.com/users/ruoyu0088/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ruoyu0088/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ruoyu0088/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ruoyu0088"
} | [
{
"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": "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": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2015-04-20T05:54:25Z | 2021-04-16T04:35:38Z | 2021-04-16T04:35:29Z | NONE | null | Here is the test code:
```
import pandas as pd
from numpy.random import randint, rand, seed
seed(10)
N_Group = 20
N_Rows = 1000
df = pd.DataFrame({"g":randint(0, N_Group, N_Rows), "a":rand(N_Rows), "b":rand(N_Rows)})
def f(df):
df["a"] -= df["b"].mean()
return df
%time df1 = df.groupby("g").apply(f)
%time df2 = df.groupby("g").transform(f)
```
the output is:
```
Wall time: 17 ms
Wall time: 682 ms
```
before the for-loop for every group in apply(), it disable the 'mode.chained_assignment' opition:
```
# ignore SettingWithCopy here in case the user mutates
with option_context('mode.chained_assignment',None):
return self._python_apply_general(f)
```
but there is not such code for `transform()`.
| {
"+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/9945/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9945/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9946 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9946/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9946/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9946/events | https://github.com/pandas-dev/pandas/issues/9946 | 69,520,520 | MDU6SXNzdWU2OTUyMDUyMA== | 9,946 | groupby().apply(lambda x:x.copy()) raise error. | {
"avatar_url": "https://avatars.githubusercontent.com/u/826871?v=4",
"events_url": "https://api.github.com/users/ruoyu0088/events{/privacy}",
"followers_url": "https://api.github.com/users/ruoyu0088/followers",
"following_url": "https://api.github.com/users/ruoyu0088/following{/other_user}",
"gists_url": "https://api.github.com/users/ruoyu0088/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ruoyu0088",
"id": 826871,
"login": "ruoyu0088",
"node_id": "MDQ6VXNlcjgyNjg3MQ==",
"organizations_url": "https://api.github.com/users/ruoyu0088/orgs",
"received_events_url": "https://api.github.com/users/ruoyu0088/received_events",
"repos_url": "https://api.github.com/users/ruoyu0088/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ruoyu0088/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ruoyu0088/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ruoyu0088"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
]
| closed | false | null | []
| null | 5 | 2015-04-20T06:46:32Z | 2018-07-07T20:15:35Z | 2018-07-07T20:15:27Z | NONE | null | ```
df = pd.DataFrame({"g":[1, 2, 2, 2], "a":[1, 2, 3, 4], "b":[5, 6, 7, 8]})
df.groupby("g").apply(lambda x:x.copy())
```
raise
```
ValueError: Shape of passed values is (3, 4), indices imply (3, 2)
```
but `lambda x:x` or `lambda x:x[:]` works.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9946/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9946/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9947 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9947/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9947/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9947/events | https://github.com/pandas-dev/pandas/pull/9947 | 69,530,356 | MDExOlB1bGxSZXF1ZXN0MzM2NDIzOTM= | 9,947 | operator equal on Index should behavior similarly to Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4",
"events_url": "https://api.github.com/users/mortada/events{/privacy}",
"followers_url": "https://api.github.com/users/mortada/followers",
"following_url": "https://api.github.com/users/mortada/following{/other_user}",
"gists_url": "https://api.github.com/users/mortada/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mortada",
"id": 1642081,
"login": "mortada",
"node_id": "MDQ6VXNlcjE2NDIwODE=",
"organizations_url": "https://api.github.com/users/mortada/orgs",
"received_events_url": "https://api.github.com/users/mortada/received_events",
"repos_url": "https://api.github.com/users/mortada/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mortada/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mortada"
} | [
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
]
| closed | false | null | []
| {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 26 | 2015-04-20T07:55:40Z | 2015-07-17T14:02:03Z | 2015-07-16T08:32:48Z | CONTRIBUTOR | null | currently on `master` (after the PR https://github.com/pydata/pandas/issues/9785), we have the following behavior when comparing two Indexes with `==`:
```
In [3]: index_a = Index(['a', 'b', 'c'])
In [4]: index_b = Index(['a', 'b', 'c', 'd'])
In [5]: index_a == index_b
Out[5]: False
```
Firstly, `==` should be element-wise comparison, so it really shouldn't return just a scalar `bool`. That should be the case for `Index.equals()` instead.
Secondly it is also not consistent with the behavior with `Series`
```
In [6]: series_a = Series(['a', 'b', 'c'])
In [7]: series_b = Series(['a', 'b', 'c', 'd'])
In [8]: series_a == series_b
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-8-97f84083a0cd> in <module>()
----> 1 series_a == series_b
/Users/mortada_mehyar/code/github/pandas/pandas/core/ops.py in wrapper(self, other)
576 name = _maybe_match_name(self, other)
577 if len(self) != len(other):
--> 578 raise ValueError('Series lengths must match to compare')
579 return self._constructor(na_op(self.values, other.values),
580 index=self.index, name=name)
ValueError: Series lengths must match to compare
```
This PR makes the behavior consistent by checking the Index lengths. Also fixes a few unit tests which seem to incorrectly assume `.equal()` should return the same output as `==`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9947/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9947/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9947.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9947",
"merged_at": "2015-07-16T08:32:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9947.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9947"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9948 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9948/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9948/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9948/events | https://github.com/pandas-dev/pandas/issues/9948 | 69,536,416 | MDU6SXNzdWU2OTUzNjQxNg== | 9,948 | Initialising a dataframe with empty data and column names fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/30848?v=4",
"events_url": "https://api.github.com/users/filmor/events{/privacy}",
"followers_url": "https://api.github.com/users/filmor/followers",
"following_url": "https://api.github.com/users/filmor/following{/other_user}",
"gists_url": "https://api.github.com/users/filmor/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/filmor",
"id": 30848,
"login": "filmor",
"node_id": "MDQ6VXNlcjMwODQ4",
"organizations_url": "https://api.github.com/users/filmor/orgs",
"received_events_url": "https://api.github.com/users/filmor/received_events",
"repos_url": "https://api.github.com/users/filmor/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/filmor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/filmor/subscriptions",
"type": "User",
"url": "https://api.github.com/users/filmor"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| null | 4 | 2015-04-20T08:34:32Z | 2015-04-20T10:58:44Z | 2015-04-20T10:58:38Z | CONTRIBUTOR | null | The following fails:
```
pd.DataFrame([], columns="a b".split())
```
I'd expect this to be equivalent to
```
pd.DataFrame(None, columns="a b".split())
```
Is there any reason not to do it like 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/9948/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9948/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9949 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9949/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9949/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9949/events | https://github.com/pandas-dev/pandas/issues/9949 | 69,548,241 | MDU6SXNzdWU2OTU0ODI0MQ== | 9,949 | Avoidable memory error when dealing with large column assignments | {
"avatar_url": "https://avatars.githubusercontent.com/u/5834577?v=4",
"events_url": "https://api.github.com/users/ARF1/events{/privacy}",
"followers_url": "https://api.github.com/users/ARF1/followers",
"following_url": "https://api.github.com/users/ARF1/following{/other_user}",
"gists_url": "https://api.github.com/users/ARF1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ARF1",
"id": 5834577,
"login": "ARF1",
"node_id": "MDQ6VXNlcjU4MzQ1Nzc=",
"organizations_url": "https://api.github.com/users/ARF1/orgs",
"received_events_url": "https://api.github.com/users/ARF1/received_events",
"repos_url": "https://api.github.com/users/ARF1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ARF1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ARF1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ARF1"
} | [
{
"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 | 2 | 2015-04-20T09:37:31Z | 2019-10-02T07:34:03Z | 2015-04-20T10:38:42Z | NONE | null | When dealing with data sizes at the limit of the machine, pandas produces a memory error when one tries to assign a numpy array to a equally typed and sized pandas column. `__setitem__()` seems to force an unnecessary copy since assigning directly to the array backing the block is possible:
```
In [1]: import numpy as np
In [2]: import pandas as pd
In [3]: M,N=int(1e7),10
In [4]: A1=np.zeros((M,N),'f', 'F')
In [5]: df_A1 = pd.DataFrame(index=xrange(M), columns=range(N), dtype='f')
In [6]: X=np.arange(M+0.0)
# assigning directly to column of array backing the DataFrame works:
In [7]: df_A1._data.blocks[0].values[0,:] = X
# assigning to column of the DataFrame fails:
In [8]: df_A1[0] = X
---------------------------------------------------------------------------
MemoryError Traceback (most recent call last)
<ipython-input-9-c37d594d8c18> in <module>()
----> 1 df_A1[0]=X
C:\Anaconda\envs\finance1\lib\site-packages\pandas\core\frame.pyc in __setitem__
(self, key, value)
2115 else:
2116 # set column
-> 2117 self._set_item(key, value)
2118
2119 def _setitem_slice(self, key, value):
C:\Anaconda\envs\finance1\lib\site-packages\pandas\core\frame.pyc in _set_item(s
elf, key, value)
2193 self._ensure_valid_index(value)
2194 value = self._sanitize_column(key, value)
-> 2195 NDFrame._set_item(self, key, value)
2196
2197 # check if we are modifying a copy
C:\Anaconda\envs\finance1\lib\site-packages\pandas\core\generic.pyc in _set_item
(self, key, value)
1188
1189 def _set_item(self, key, value):
-> 1190 self._data.set(key, value)
1191 self._clear_item_cache()
1192
C:\Anaconda\envs\finance1\lib\site-packages\pandas\core\internals.pyc in set(sel
f, item, value, check)
3000 else:
3001 self._blklocs[blk.mgr_locs.indexer] = -1
-> 3002 blk.delete(blk_locs)
3003 self._blklocs[blk.mgr_locs.indexer] = np.arange(len(
blk))
3004
C:\Anaconda\envs\finance1\lib\site-packages\pandas\core\internals.pyc in delete(
self, loc)
274 Delete given loc(-s) from block in-place.
275 """
--> 276 self.values = np.delete(self.values, loc, 0)
277 self.mgr_locs = self.mgr_locs.delete(loc)
278
C:\Anaconda\envs\finance1\lib\site-packages\numpy\lib\function_base.pyc in delet
e(arr, obj, axis)
3615 keep[obj, ] = False
3616 slobj[axis] = keep
-> 3617 new = arr[slobj]
3618
3619 if wrap:
MemoryError:
```
Am I doing something wrong? Is there a better/correct way of assigning data to a column?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9949/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9949/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9950 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9950/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9950/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9950/events | https://github.com/pandas-dev/pandas/issues/9950 | 69,551,304 | MDU6SXNzdWU2OTU1MTMwNA== | 9,950 | pandas give a warning when working with np.NaN values | {
"avatar_url": "https://avatars.githubusercontent.com/u/5596311?v=4",
"events_url": "https://api.github.com/users/domenb/events{/privacy}",
"followers_url": "https://api.github.com/users/domenb/followers",
"following_url": "https://api.github.com/users/domenb/following{/other_user}",
"gists_url": "https://api.github.com/users/domenb/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/domenb",
"id": 5596311,
"login": "domenb",
"node_id": "MDQ6VXNlcjU1OTYzMTE=",
"organizations_url": "https://api.github.com/users/domenb/orgs",
"received_events_url": "https://api.github.com/users/domenb/received_events",
"repos_url": "https://api.github.com/users/domenb/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/domenb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/domenb/subscriptions",
"type": "User",
"url": "https://api.github.com/users/domenb"
} | [
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": 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"
} | 25 | 2015-04-20T09:57:19Z | 2016-10-28T07:49:53Z | 2015-06-03T11:36:51Z | NONE | null | When I create a pandas.Series or pandas.DataFrame having np.NaN values, I get the following warning.
Example:
```
>>> import pandas as pd, numpy as np
>>> pd.Series([np.nan,np.nan,np.nan],index=[1,2,3])
1 NaN
2 NaN
3 NaN
dtype: float64
C:\Users\domen\Anaconda\lib\site-packages\pandas\core\format.py:1995: RuntimeWarning: invalid value encountered in absolute
abs_vals = np.abs(self.values)
C:\Users\domen\Anaconda\lib\site-packages\pandas\core\format.py:1998: RuntimeWarning: invalid value encountered in greater
has_large_values = (abs_vals > 1e8).any()
C:\Users\domen\Anaconda\lib\site-packages\pandas\core\format.py:1999: RuntimeWarning: invalid value encountered in less
has_small_values = ((abs_vals < 10 ** (-self.digits)) &
C:\Users\domen\Anaconda\lib\site-packages\pandas\core\format.py:2000: RuntimeWarning: invalid value encountered in greater
(abs_vals > 0)).any()
```
I am using Anaconda-2.2.0-Windows-x86_64, with Python 2.7.9. and pandas 0.16.0.
I would ask you to advise.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9950/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9950/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9951 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9951/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9951/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9951/events | https://github.com/pandas-dev/pandas/issues/9951 | 69,554,455 | MDU6SXNzdWU2OTU1NDQ1NQ== | 9,951 | DataFrame constructor produces NaN values when passing df as data param and an index containing values that are not present in passed in df | {
"avatar_url": "https://avatars.githubusercontent.com/u/2933165?v=4",
"events_url": "https://api.github.com/users/alan-wong/events{/privacy}",
"followers_url": "https://api.github.com/users/alan-wong/followers",
"following_url": "https://api.github.com/users/alan-wong/following{/other_user}",
"gists_url": "https://api.github.com/users/alan-wong/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alan-wong",
"id": 2933165,
"login": "alan-wong",
"node_id": "MDQ6VXNlcjI5MzMxNjU=",
"organizations_url": "https://api.github.com/users/alan-wong/orgs",
"received_events_url": "https://api.github.com/users/alan-wong/received_events",
"repos_url": "https://api.github.com/users/alan-wong/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alan-wong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alan-wong/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alan-wong"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| null | 1 | 2015-04-20T10:17:49Z | 2015-04-20T10:45:54Z | 2015-04-20T10:45:34Z | NONE | null | Whilst answering this [SO question](http://stackoverflow.com/questions/29706825/pandas-version-0-16-0-after-changing-dataframe-index-all-values-become-nan) I discovered that the DataFrame constructor is ignoring the fact that I'm passing an index explicitly resulting in a df with all NaNs:
```
In [6]:
df = pd.DataFrame({'AAA':[4,5,6,7],'BBB':[10,20,30,40],'CCC':[100,50,-30,-50]})
df1 = pd.DataFrame(data=df,index=(['a','b','c','d']))
df1
Out[6]:
AAA BBB CCC
a NaN NaN NaN
b NaN NaN NaN
c NaN NaN NaN
d NaN NaN NaN
```
Stepping through the code I see that it reaches here in frame.py:
```
if isinstance(data, BlockManager):
mgr = self._init_mgr(data, axes=dict(index=index, columns=columns),
dtype=dtype, copy=copy)
```
and then ends up here in generic.py:
```
119 def _init_mgr(self, mgr, axes=None, dtype=None, copy=False):
120 """ passed a manager and a axes dict """
121 for a, axe in axes.items():
122 if axe is not None:
123 mgr = mgr.reindex_axis(
124 -> axe, axis=self._get_block_manager_axis(a), copy=False)
```
The behaviour can be reproduced simply like this:
```
In [46]:
data1 = pd.DataFrame({'AAA':[4,5,6,7],'BBB':[10,20,30,40],'CCC':[100,50,-30,-50]})
data1.reindex_axis(list('abcd'))
Out[46]:
AAA BBB CCC
a NaN NaN NaN
b NaN NaN NaN
c NaN NaN NaN
d NaN NaN NaN
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9951/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9951/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9952 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9952/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9952/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9952/events | https://github.com/pandas-dev/pandas/issues/9952 | 69,575,305 | MDU6SXNzdWU2OTU3NTMwNQ== | 9,952 | Aligning on multi-index with swapped levels gives unclear error message | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
]
| closed | false | null | []
| {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 6 | 2015-04-20T12:26:04Z | 2021-05-10T21:45:32Z | 2021-05-10T21:45:32Z | MEMBER | null | When trying to do a calculation with two dataframes with both multi-indexed rows, but with swapped levels, you get the error message `"NotImplementedError: merging with more than one level overlap on a multi-index is not implemented"`.
This is not very informative in this case.
```
In [11]: df = pd.DataFrame({'a':np.random.randn(6)}, index=pd.MultiIndex.from_product([['a', 'b'],[0,1,2]], names=['levA', 'levB']))
In [12]: df2 = df.copy()
In [13]: df2.index = df2.index.swaplevel(0,1)
In [14]: df
Out[14]:
a
levA levB
a 0 -0.248626
1 2.382662
2 1.349179
b 0 0.720629
1 0.205297
2 0.113340
In [15]: df2
Out[15]:
a
levB levA
0 a -0.248626
1 a 2.382662
2 a 1.349179
0 b 0.720629
1 b 0.205297
2 b 0.113340
In [16]:
In [16]: df - df2
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-16-ffb739d7f3d7> in <module>()
----> 1 df - df2
c:\users\vdbosscj\scipy\pandas-joris\pandas\core\ops.pyc in f(self, other, axis,
level, fill_value)
813 def f(self, other, axis=default_axis, level=None, fill_value=None):
814 if isinstance(other, pd.DataFrame): # Another DataFrame
--> 815 return self._combine_frame(other, na_op, fill_value, level)
816 elif isinstance(other, pd.Series):
817 return self._combine_series(other, na_op, fill_value, axis,
level)
c:\users\vdbosscj\scipy\pandas-joris\pandas\core\frame.pyc in _combine_frame(sel
f, other, func, fill_value, level)
3099
3100 def _combine_frame(self, other, func, fill_value=None, level=None):
-> 3101 this, other = self.align(other, join='outer', level=level, copy=
False)
3102 new_index, new_columns = this.index, this.columns
3103
c:\users\vdbosscj\scipy\pandas-joris\pandas\core\generic.pyc in align(self, othe
r, join, axis, level, copy, fill_value, method, limit, fill_axis)
3146 copy=copy, fill_value=fill_value,
3147 method=method, limit=limit,
-> 3148 fill_axis=fill_axis)
3149 elif isinstance(other, Series):
3150 return self._align_series(other, join=join, axis=axis, level
=level,
c:\users\vdbosscj\scipy\pandas-joris\pandas\core\generic.pyc in _align_frame(sel
f, other, join, axis, level, copy, fill_value, method, limit, fill_axis)
3167 join_index, ilidx, iridx = \
3168 self.index.join(other.index, how=join, level=level,
-> 3169 return_indexers=True)
3170
3171 if axis is None or axis == 1:
c:\users\vdbosscj\scipy\pandas-joris\pandas\core\index.pyc in join(self, other,
how, level, return_indexers)
1781 pass
1782 else:
-> 1783 return self._join_multi(other, how=how, return_indexers=
return_indexers)
1784
1785 # join on the level
c:\users\vdbosscj\scipy\pandas-joris\pandas\core\index.pyc in _join_multi(self,
other, how, return_indexers)
1876 raise ValueError("cannot join with no level specified and no
overlapping names")
1877 if len(overlap) > 1:
-> 1878 raise NotImplementedError("merging with more than one level
overlap on a multi-index is not implemented")
1879 jl = overlap[0]
1880
NotImplementedError: merging with more than one level overlap on a multi-index i
s not implemented
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9952/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9952/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9953 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9953/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9953/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9953/events | https://github.com/pandas-dev/pandas/pull/9953 | 69,575,343 | MDExOlB1bGxSZXF1ZXN0MzM2NjAzNTM= | 9,953 | BUG: hidden ticklabels with sharex and secondary | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | []
| closed | false | null | []
| null | 0 | 2015-04-20T12:26:18Z | 2017-04-05T02:06:24Z | 2015-04-20T18:41:21Z | CONTRIBUTOR | null | Closes https://github.com/pydata/pandas/issues/9158
Fixes up a git mistake in https://github.com/pydata/pandas/pull/9164
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9953/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9953/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9953.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9953",
"merged_at": "2015-04-20T18:41:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9953.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9953"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9954 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9954/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9954/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9954/events | https://github.com/pandas-dev/pandas/pull/9954 | 69,615,432 | MDExOlB1bGxSZXF1ZXN0MzM2Nzc1MTY= | 9,954 | Spelling typo | {
"avatar_url": "https://avatars.githubusercontent.com/u/6334394?v=4",
"events_url": "https://api.github.com/users/ptype/events{/privacy}",
"followers_url": "https://api.github.com/users/ptype/followers",
"following_url": "https://api.github.com/users/ptype/following{/other_user}",
"gists_url": "https://api.github.com/users/ptype/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ptype",
"id": 6334394,
"login": "ptype",
"node_id": "MDQ6VXNlcjYzMzQzOTQ=",
"organizations_url": "https://api.github.com/users/ptype/orgs",
"received_events_url": "https://api.github.com/users/ptype/received_events",
"repos_url": "https://api.github.com/users/ptype/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ptype/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ptype/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ptype"
} | []
| closed | false | null | []
| null | 0 | 2015-04-20T15:38:07Z | 2015-04-20T17:06:13Z | 2015-04-20T17:06:13Z | CONTRIBUTOR | null | documenation -> documentation
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9954/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9954/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9954.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9954",
"merged_at": "2015-04-20T17:06:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9954.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9954"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9955 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9955/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9955/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9955/events | https://github.com/pandas-dev/pandas/issues/9955 | 69,627,734 | MDU6SXNzdWU2OTYyNzczNA== | 9,955 | to_sql creates duplicate redundant constraints when exporting boolean columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/12036863?v=4",
"events_url": "https://api.github.com/users/pythonbeginner2015/events{/privacy}",
"followers_url": "https://api.github.com/users/pythonbeginner2015/followers",
"following_url": "https://api.github.com/users/pythonbeginner2015/following{/other_user}",
"gists_url": "https://api.github.com/users/pythonbeginner2015/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pythonbeginner2015",
"id": 12036863,
"login": "pythonbeginner2015",
"node_id": "MDQ6VXNlcjEyMDM2ODYz",
"organizations_url": "https://api.github.com/users/pythonbeginner2015/orgs",
"received_events_url": "https://api.github.com/users/pythonbeginner2015/received_events",
"repos_url": "https://api.github.com/users/pythonbeginner2015/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pythonbeginner2015/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pythonbeginner2015/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pythonbeginner2015"
} | [
{
"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": 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"
} | 9 | 2015-04-20T16:39:32Z | 2015-04-21T14:14:33Z | 2015-04-21T14:10:18Z | NONE | null | with pandas 0.16 and sqlalchemy, the to_sql method of a dataframe creates duplicate redundant constraints on each boolean column, at least when exporting to Microsoft SQL Server, because for each column it creates 2 constraints checking the field must be either 0 or 1. This is redundant and slows down the database. A short example is below. Of course you must check the output in the sql database. Also, the fact that there is no control and no documentation over the constraints created by to_sql is extremely frustrating
import pandas as pd
import numpy as np
from sqlalchemy import create_engine, MetaData, Table, select
import sqlalchemy as sqlalchemy
from sqlalchemy import create_engine, MetaData, Table, select
import sqlalchemy as sqlalchemy
ServerName = "cdodb-wb"
Database = "DealAnalysis"
engine = create_engine('mssql+pyodbc://' + ServerName + '/' + Database, encoding='latin1')
conn = engine.connect()
metadata = MetaData(conn)
df=pd.DataFrame(np.random.rand(20)>0.5, columns=['random_boolean'])
df.to_sql('python_test_table',engine,if_exists='replace')
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9955/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9955/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9956 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9956/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9956/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9956/events | https://github.com/pandas-dev/pandas/pull/9956 | 69,658,580 | MDExOlB1bGxSZXF1ZXN0MzM2OTYxMjI= | 9,956 | TST: adding sdist and install tests to the 2.6 regression - closes #9878 | {
"avatar_url": "https://avatars.githubusercontent.com/u/5418627?v=4",
"events_url": "https://api.github.com/users/ajamian/events{/privacy}",
"followers_url": "https://api.github.com/users/ajamian/followers",
"following_url": "https://api.github.com/users/ajamian/following{/other_user}",
"gists_url": "https://api.github.com/users/ajamian/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ajamian",
"id": 5418627,
"login": "ajamian",
"node_id": "MDQ6VXNlcjU0MTg2Mjc=",
"organizations_url": "https://api.github.com/users/ajamian/orgs",
"received_events_url": "https://api.github.com/users/ajamian/received_events",
"repos_url": "https://api.github.com/users/ajamian/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ajamian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ajamian/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ajamian"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 1 | 2015-04-20T19:08:27Z | 2015-04-21T23:41:25Z | 2015-04-21T23:41:18Z | CONTRIBUTOR | null | closes #9878
Adds a test for packaging and installing pandas from a tarball, inside of the 2.6 regression.
After regular nosetests complete, cython is removed from the venv, pandas is packaged with cdist command, and the package is installed via pip. Limited nosetests run once installed.
The output of this test in the log is now 'folded' via http://blog.travis-ci.com/2013-05-22-improving-build-visibility-log-folds/ by putting install_test.sh into the 'after_script' section of the travis config.
This is a new PR with squashed commits to replace the original closed PR: https://github.com/pydata/pandas/pull/9922
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9956/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9956/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9956.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9956",
"merged_at": "2015-04-21T23:41:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9956.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9956"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9957 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9957/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9957/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9957/events | https://github.com/pandas-dev/pandas/issues/9957 | 69,679,125 | MDU6SXNzdWU2OTY3OTEyNQ== | 9,957 | Series test_sum fails due to different NaN behavior | {
"avatar_url": "https://avatars.githubusercontent.com/u/4128715?v=4",
"events_url": "https://api.github.com/users/drudd/events{/privacy}",
"followers_url": "https://api.github.com/users/drudd/followers",
"following_url": "https://api.github.com/users/drudd/following{/other_user}",
"gists_url": "https://api.github.com/users/drudd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/drudd",
"id": 4128715,
"login": "drudd",
"node_id": "MDQ6VXNlcjQxMjg3MTU=",
"organizations_url": "https://api.github.com/users/drudd/orgs",
"received_events_url": "https://api.github.com/users/drudd/received_events",
"repos_url": "https://api.github.com/users/drudd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/drudd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/drudd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/drudd"
} | [
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "006b75",
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| null | 2 | 2015-04-20T21:01:00Z | 2015-04-20T21:09:50Z | 2015-04-20T21:09:27Z | CONTRIBUTOR | null | I have an installation of Pandas of 0.16.0 that fails TestSeries.test_sum when using Numpy 1.9.2 compiled against MKL 11.2. Here is a minimal test:
```
import numpy as np
import pandas as pd
s = np.nan*pd.util.testing.makeStringSeries()
print s.sum()
```
For Pandas 0.15.2, Numpy 1.9.1 compiled against MKL 10.3, this prints nan, but for Numpy 1.9.2 against 11.2 it prints 0.0.
I don't know whether to blame Pandas version, blas or Numpy version, and will run additional tests to distinguish which is at fault. I have stepped through execution for both cases and they are identical up to the call to <built-in function nansum> at pandas/core/nanops.py:89
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9957/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9957/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9958 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9958/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9958/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9958/events | https://github.com/pandas-dev/pandas/issues/9958 | 69,692,067 | MDU6SXNzdWU2OTY5MjA2Nw== | 9,958 | Left join on an integer column casts the column to float if it is in one of the indexes | {
"avatar_url": "https://avatars.githubusercontent.com/u/5873255?v=4",
"events_url": "https://api.github.com/users/bembom/events{/privacy}",
"followers_url": "https://api.github.com/users/bembom/followers",
"following_url": "https://api.github.com/users/bembom/following{/other_user}",
"gists_url": "https://api.github.com/users/bembom/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bembom",
"id": 5873255,
"login": "bembom",
"node_id": "MDQ6VXNlcjU4NzMyNTU=",
"organizations_url": "https://api.github.com/users/bembom/orgs",
"received_events_url": "https://api.github.com/users/bembom/received_events",
"repos_url": "https://api.github.com/users/bembom/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bembom/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bembom/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bembom"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| {
"closed_at": 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"
} | 11 | 2015-04-20T22:05:38Z | 2020-03-28T22:30:48Z | 2016-06-12T21:04:40Z | NONE | null | When I left-join two data frames on an int64 column, this column is cast to a float if it is the index of one of the two data frames:
``` python
>>> id = [1, 143349558619761320]
>>> a = pd.DataFrame({'a': [1, 2]}, index=pd.Int64Index(id, name='id'))
>>> b = pd.DataFrame({'id': id[1], 'b': [2]})
>>> merge_index = pd.merge(a, b, left_index=True, right_on='id', how='left')
>>> print(merge_index.dtypes)
a int64
b float64
id float64
dtype: object
```
In this case this is a problem because casting back to an int changes the value of this column:
``` python
>>> int(float(143349558619761320))
143349558619761312
```
If the int64 column is not in the index, the column is not cast to a float:
``` python
>>> merge_column = pd.merge(a.reset_index(), b, on='id', how='left')
>>> print(merge_column.dtypes)
id int64
a int64
b float64
dtype: object
```
I understand that integer columns get cast to a float if NaNs are introduced (like column b here), but in this case the final column contains no missing values, so casting to a float can be avoided.
Output from pd.show_versions():
## INSTALLED VERSIONS
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-5-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.0
nose: 1.3.4
Cython: None
numpy: 1.9.2
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 3.0.0
sphinx: None
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.2
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
| {
"+1": 3,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 3,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9958/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9958/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9959 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9959/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9959/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9959/events | https://github.com/pandas-dev/pandas/issues/9959 | 69,714,194 | MDU6SXNzdWU2OTcxNDE5NA== | 9,959 | columns selection after groupby reset group_keys to True | {
"avatar_url": "https://avatars.githubusercontent.com/u/826871?v=4",
"events_url": "https://api.github.com/users/ruoyu0088/events{/privacy}",
"followers_url": "https://api.github.com/users/ruoyu0088/followers",
"following_url": "https://api.github.com/users/ruoyu0088/following{/other_user}",
"gists_url": "https://api.github.com/users/ruoyu0088/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ruoyu0088",
"id": 826871,
"login": "ruoyu0088",
"node_id": "MDQ6VXNlcjgyNjg3MQ==",
"organizations_url": "https://api.github.com/users/ruoyu0088/orgs",
"received_events_url": "https://api.github.com/users/ruoyu0088/received_events",
"repos_url": "https://api.github.com/users/ruoyu0088/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ruoyu0088/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ruoyu0088/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ruoyu0088"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
]
| closed | false | null | []
| {
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
} | 3 | 2015-04-21T00:56:18Z | 2020-08-31T22:31:08Z | 2020-08-31T22:31:08Z | NONE | null | ```
df = pd.DataFrame({"g":[1, 2, 1, 2, 1], "a":range(5), "b":range(1, 6), "c":range(2, 7)})
g = df.groupby("g", group_keys=False)
print g.group_keys #False
print g[["a", "b", "c"]].group_keys #True
```
So the `apply()` results are different for these two case:
```
print g.apply(lambda x:x[:2])
```
ouput:
```
a b c g
0 0 1 2 1
2 2 3 4 1
1 1 2 3 2
3 3 4 5 2
```
but
```
print g[["a", "b", "c"]].apply(lambda x:x[:2])
```
output:
```
a b c
g
1 0 0 1 2
2 2 3 4
2 1 1 2 3
3 3 4 5
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9959/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9959/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9960 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9960/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9960/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9960/events | https://github.com/pandas-dev/pandas/issues/9960 | 69,772,211 | MDU6SXNzdWU2OTc3MjIxMQ== | 9,960 | Status of io.sql.get_schema as public function? | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"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": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 19 | 2015-04-21T07:51:09Z | 2021-04-18T06:37:56Z | null | MEMBER | null | At this moment, `pd.io.sql.get_schema` is not documented (not in the API docs, and not in the io docs). But, it is a potential useful function, so I think it would be good to be more explicit about its status (by mentioning it in the docs).
However, there are some quirks about the function:
- The signature: `pd.io.sql.get_schema(frame, name, flavor='sqlite', keys=None, con=Non
e, dtype=None)` -> flavor keyword in the third place, while we want to deprecate it (and this means you cannot do `get_schema(df, 'name', engine)`, but always have to do `get_schema(df, 'name', con=engine)`.
Ideally this should have the same arguments (order) as `to_sql` (`pd.io.sql.to_sql(frame, name, con, flavor='sqlite', schema=None, if_exists='fail', index=True, index_label=None, chunksize=None, dtype=None)`) (only chunksize is not relevant)
- It should have all options to modify the resulting sql table as `to_sql`
- Maybe also the option to return the sqlalchemy `Table` instead of the string itself?
That we maybe should first solve before making it more explicitely public?
Triggered by http://stackoverflow.com/questions/29749356/python-pandas-export-structure-only-no-rows-of-a-dataframe-to-sql/
| {
"+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/9960/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9960/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9961 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9961/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9961/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9961/events | https://github.com/pandas-dev/pandas/pull/9961 | 69,854,904 | MDExOlB1bGxSZXF1ZXN0MzM3NjQzMTM= | 9,961 | Introduction of RangeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/5834577?v=4",
"events_url": "https://api.github.com/users/ARF1/events{/privacy}",
"followers_url": "https://api.github.com/users/ARF1/followers",
"following_url": "https://api.github.com/users/ARF1/following{/other_user}",
"gists_url": "https://api.github.com/users/ARF1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ARF1",
"id": 5834577,
"login": "ARF1",
"node_id": "MDQ6VXNlcjU4MzQ1Nzc=",
"organizations_url": "https://api.github.com/users/ARF1/orgs",
"received_events_url": "https://api.github.com/users/ARF1/received_events",
"repos_url": "https://api.github.com/users/ARF1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ARF1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ARF1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ARF1"
} | []
| closed | false | null | []
| null | 9 | 2015-04-21T14:05:03Z | 2015-04-24T11:22:25Z | 2015-04-24T11:22:10Z | NONE | null | `RangeIndex(1, 10, 2)` is a memory saving alternative to `Index(np.arange(1, 10,2))`: c.f. #939.
This re-implementation is compatible with the current `Index()` api and is a drop-in replacement for `Int64Index()`. It automatically converts to Int64Index() when required by operations.
At present only for a minimum number of operations the type is conserved (e.g. slicing, inner-, left- and right-joins). Most other operations trigger creation of an equivalent Int64Index (or at least an equivalent numpy array) and fall back to its implementation.
This PR also extends the functionality of the `Index()` constructor to allow creation of `RangeIndexes()` with
```
Index(20)
Index(2, 20)
Index(0, 20, 2)
```
in analogy to
```
range(20)
range(2, 20)
range(0, 20, 2)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9961/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9961/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9961.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9961",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9961.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9961"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9962 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9962/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9962/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9962/events | https://github.com/pandas-dev/pandas/issues/9962 | 69,872,461 | MDU6SXNzdWU2OTg3MjQ2MQ== | 9,962 | Docs: Add reference to pandaSDMX to the pandas Ecosystem page in the API section | {
"avatar_url": "https://avatars.githubusercontent.com/u/3160562?v=4",
"events_url": "https://api.github.com/users/dr-leo/events{/privacy}",
"followers_url": "https://api.github.com/users/dr-leo/followers",
"following_url": "https://api.github.com/users/dr-leo/following{/other_user}",
"gists_url": "https://api.github.com/users/dr-leo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dr-leo",
"id": 3160562,
"login": "dr-leo",
"node_id": "MDQ6VXNlcjMxNjA1NjI=",
"organizations_url": "https://api.github.com/users/dr-leo/orgs",
"received_events_url": "https://api.github.com/users/dr-leo/received_events",
"repos_url": "https://api.github.com/users/dr-leo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dr-leo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dr-leo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dr-leo"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| null | 6 | 2015-04-21T15:11:24Z | 2015-04-28T19:32:57Z | 2015-04-28T19:32:57Z | CONTRIBUTOR | null | I would be pleased if pandaSDMx (http://pandasdmx.readthedocs.org) could be added to the pandas Ecosystem directory. The following text is just a proposal, feel free to change it as you see fit:
"pandaSDMX is a libraryaimed at becoming the most intuitive and versatile tool to retrieve and acquire statistical data and metadata disseminated in
SDMX
format. As of v0.2 it works well with the SDMX services of the European statistics office (Eurostat) and the European Central Bank (ECB) both of which provide hundreds of thousands social and economic indicators. While pandaSDMX is extensible
to cater any output format, it currently exports SDMX datasets with observations and/or attributes to multi-indexed pandas DataFrames and Series. Metadata such as datastructure definitions, dataflow definitions, and code lists are represented in terms of the SDMX-2.1 information model."
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9962/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9962/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9963 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9963/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9963/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9963/events | https://github.com/pandas-dev/pandas/issues/9963 | 69,883,834 | MDU6SXNzdWU2OTg4MzgzNA== | 9,963 | asfreq() issue with 'method' parameter | {
"avatar_url": "https://avatars.githubusercontent.com/u/12033774?v=4",
"events_url": "https://api.github.com/users/usagliaschi/events{/privacy}",
"followers_url": "https://api.github.com/users/usagliaschi/followers",
"following_url": "https://api.github.com/users/usagliaschi/following{/other_user}",
"gists_url": "https://api.github.com/users/usagliaschi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/usagliaschi",
"id": 12033774,
"login": "usagliaschi",
"node_id": "MDQ6VXNlcjEyMDMzNzc0",
"organizations_url": "https://api.github.com/users/usagliaschi/orgs",
"received_events_url": "https://api.github.com/users/usagliaschi/received_events",
"repos_url": "https://api.github.com/users/usagliaschi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/usagliaschi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/usagliaschi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/usagliaschi"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2015-04-21T15:56:08Z | 2016-07-12T07:07:41Z | 2016-07-12T07:07:41Z | NONE | null | Hi all,
I've noticed the following behaviour in .asfreq method when dealing with frames/series containing original NaN values. When calling for instance asfreq('W-FRI',method='ffill') only NaN generated by DateOffset are forward filled, while the already present NaN values are not treated. I'm trying to figure out whether this was an intentional feature or a bug. In the former case however I would say that the documentation is a bit misleading
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.asfreq.html
Indeed, the description of parameter 'method' is exactly equivalent to that present in fillna,
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.fillna.html
so it comes natural to expect all invalid observations be filled.
Thanks for your help,
Umberto
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9963/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9963/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9964 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9964/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9964/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9964/events | https://github.com/pandas-dev/pandas/issues/9964 | 69,985,755 | MDU6SXNzdWU2OTk4NTc1NQ== | 9,964 | .loc and .iloc returns different dtypes on empty dataframe | {
"avatar_url": "https://avatars.githubusercontent.com/u/833768?v=4",
"events_url": "https://api.github.com/users/artemyk/events{/privacy}",
"followers_url": "https://api.github.com/users/artemyk/followers",
"following_url": "https://api.github.com/users/artemyk/following{/other_user}",
"gists_url": "https://api.github.com/users/artemyk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/artemyk",
"id": 833768,
"login": "artemyk",
"node_id": "MDQ6VXNlcjgzMzc2OA==",
"organizations_url": "https://api.github.com/users/artemyk/orgs",
"received_events_url": "https://api.github.com/users/artemyk/received_events",
"repos_url": "https://api.github.com/users/artemyk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/artemyk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/artemyk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/artemyk"
} | [
{
"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": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 2 | 2015-04-22T00:23:43Z | 2015-04-30T10:04:04Z | 2015-04-30T10:04:04Z | CONTRIBUTOR | null | `.iloc` returns `object` dtype for a non-object empty series:
```
In [1]: import pandas as pd
In [2]: df = pd.DataFrame({'a':[1,2,3],'b':['b','b2','b3']})
In [3]: df.ix[[],:].loc[:,'a']
Out[3]: Series([], name: a, dtype: int64)
In [4]: df.ix[[],:].iloc[:,0]
Out[4]: Series([], name: a, dtype: object)
```
(came across this as I think it is related to the issue reported http://stackoverflow.com/questions/29749356/python-pandas-export-structure-only-no-rows-of-a-dataframe-to-sql/ , i.e. in sql code which is trying to infer series datatypes)
```
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Darwin
OS-release: 14.1.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.15.2
nose: 1.3.6
Cython: 0.21.1
numpy: 1.9.2
scipy: 0.14.0
statsmodels: 0.6.1
IPython: 3.1.0
sphinx: 1.2.3
patsy: 0.2.1
dateutil: 2.4.2
pytz: 2015.2
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: 3.4.2
bs4: 4.3.2
html5lib: None
httplib2: 0.9
apiclient: None
rpy2: None
sqlalchemy: 0.9.8
pymysql: 0.6.2.None
psycopg2: 2.5.4 (dt dec pq3 ext)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9964/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9964/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9965 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9965/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9965/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9965/events | https://github.com/pandas-dev/pandas/pull/9965 | 69,987,139 | MDExOlB1bGxSZXF1ZXN0MzM4MTY2ODU= | 9,965 | FIX: interesction and union changed index names. fixes #9943 partly #9862 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1778723?v=4",
"events_url": "https://api.github.com/users/hsperr/events{/privacy}",
"followers_url": "https://api.github.com/users/hsperr/followers",
"following_url": "https://api.github.com/users/hsperr/following{/other_user}",
"gists_url": "https://api.github.com/users/hsperr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hsperr",
"id": 1778723,
"login": "hsperr",
"node_id": "MDQ6VXNlcjE3Nzg3MjM=",
"organizations_url": "https://api.github.com/users/hsperr/orgs",
"received_events_url": "https://api.github.com/users/hsperr/received_events",
"repos_url": "https://api.github.com/users/hsperr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hsperr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hsperr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hsperr"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 16 | 2015-04-22T00:32:36Z | 2015-08-06T01:21:48Z | 2015-08-05T21:39:50Z | CONTRIBUTOR | null | had some time this morning and started working
closes #9943
for now I just uncommented the explicit setting to None of the index names.
let me know if I should remove it completely.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9965/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9965/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9965.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9965",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9965.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9965"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9966 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9966/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9966/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9966/events | https://github.com/pandas-dev/pandas/issues/9966 | 70,097,553 | MDU6SXNzdWU3MDA5NzU1Mw== | 9,966 | Int64Index with dtype=float and slicing issues | {
"avatar_url": "https://avatars.githubusercontent.com/u/907394?v=4",
"events_url": "https://api.github.com/users/josteinbf/events{/privacy}",
"followers_url": "https://api.github.com/users/josteinbf/followers",
"following_url": "https://api.github.com/users/josteinbf/following{/other_user}",
"gists_url": "https://api.github.com/users/josteinbf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/josteinbf",
"id": 907394,
"login": "josteinbf",
"node_id": "MDQ6VXNlcjkwNzM5NA==",
"organizations_url": "https://api.github.com/users/josteinbf/orgs",
"received_events_url": "https://api.github.com/users/josteinbf/received_events",
"repos_url": "https://api.github.com/users/josteinbf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/josteinbf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josteinbf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/josteinbf"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 3 | 2015-04-22T11:12:43Z | 2015-09-06T16:31:07Z | 2015-09-06T16:31:07Z | NONE | null | I have stumbled onto problems with slicing a pandas DataFrame when an index that originally contained integers has been manipulated such that it contains floats. Consider the following example (somewhat contrived to make it stand on its own; in practice, data are loaded from file):
```
df = pd.DataFrame({'i': np.linspace(0, 5, 6).astype(np.int64),
'j': np.linspace(2, 3, 6)})
df.set_index('i', inplace=True)
print(df.index) # Int64Index([0, 1, 2, 3, 4, 5], dtype='int64')
df.index = df.index / 10.
print(df.index) # Int64Index([0.0, 0.1, 0.2, 0.3, 0.4, 0.5], dtype='float64')
df[:0.3]
```
The final line raises this exception:
```
TypeError: the slice stop value [None] is not a proper indexer
for this index type (Int64Index)
```
While it was relatively easy to work around this using an explicit cast along the lines of
```
df.index = np.asarray(df.index, dtype=np.float64) / 10.
```
it took me quite a while to figure out what was going on. What I expected to happen in the original code was that the index would become a Float64Index or something similar. When I first noticed the Int64Index with dtype=float I thought that was wierd. Is it a good idea to change this behaviour so that there is not this mismatch between index type and dtype?
My pandas version is 0.15.2. User EdChum at StackOverflow[1] has kindly tested this on 0.16, finding the same behaviour with the code above. Slicing with .ix works on 0.16 but not on 0.15.2; slicing with .loc works for both versions.
[1] http://stackoverflow.com/questions/29795225/pandas-int64index-with-dtype-float
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9966/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9966/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9967 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9967/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9967/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9967/events | https://github.com/pandas-dev/pandas/issues/9967 | 70,127,113 | MDU6SXNzdWU3MDEyNzExMw== | 9,967 | MultiIndex copies don't have _id field set. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1271518?v=4",
"events_url": "https://api.github.com/users/Screamik/events{/privacy}",
"followers_url": "https://api.github.com/users/Screamik/followers",
"following_url": "https://api.github.com/users/Screamik/following{/other_user}",
"gists_url": "https://api.github.com/users/Screamik/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Screamik",
"id": 1271518,
"login": "Screamik",
"node_id": "MDQ6VXNlcjEyNzE1MTg=",
"organizations_url": "https://api.github.com/users/Screamik/orgs",
"received_events_url": "https://api.github.com/users/Screamik/received_events",
"repos_url": "https://api.github.com/users/Screamik/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Screamik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Screamik/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Screamik"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| {
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
} | 4 | 2015-04-22T13:33:11Z | 2016-12-22T11:25:52Z | 2016-12-22T11:25:52Z | NONE | null | I have stumbled across a curious issue when working with `pandas.concat`.
Let's consider a simple example:
``` python
import pandas as pd
from copy import deepcopy
example_multiindex1 = pd.MultiIndex.from_product([['a'], ['b']])
example_dataframe1 = pd.DataFrame([0], index=example_multiindex1)
example_multiindex2 = pd.MultiIndex.from_product([['a'], ['c']])
example_dataframe2 = pd.DataFrame([1], index=example_multiindex2)
example_dict = {'s1': example_dataframe1, 's2': example_dataframe2}
print pd.concat(example_dict, names=['testname'])
```
The output is as expected:
```
0
testname
s1 a b 0
s2 a c 1
```
Strange thing will happen if we pass to `concat` not an original dict but a deepcopy of it:
``` python
print pd.concat(deepcopy(example_dict), names=['testname'])
```
The output, surprisingly, will be:
```
0
testname
s1 a b 0
s2 a b 1
```
Thus meaning, that the multiindex of the first DataFrame was taken two times.
Contents of the copied dict though seems to be correct at first glance:
``` python
>>> print deepcopy(example_dict)
{'s2': 0
a c 1, 's1': 0
a b 0}
```
PS. Version information:
``` python
pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Linux
OS-release: 3.11.0-26-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.0
nose: 1.3.6
Cython: 0.20.2
numpy: 1.9.2
scipy: 0.13.3
statsmodels: 0.5.0
IPython: 3.1.0
sphinx: None
patsy: 0.2.1
dateutil: 2.4.2
pytz: 2015.2
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
```
Issue is reproducible down to version 0.15.0. Version 0.14.1 is fine.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9967/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9967/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9968 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9968/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9968/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9968/events | https://github.com/pandas-dev/pandas/pull/9968 | 70,132,035 | MDExOlB1bGxSZXF1ZXN0MzM4NjAxOTE= | 9,968 | DOC: Release note link and format correction | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | []
| closed | false | null | []
| null | 2 | 2015-04-22T13:54:35Z | 2015-04-23T13:34:21Z | 2015-04-22T14:19:13Z | 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/9968/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9968/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9968.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9968",
"merged_at": "2015-04-22T14:19:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9968.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9968"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/9969 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9969/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9969/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9969/events | https://github.com/pandas-dev/pandas/issues/9969 | 70,182,826 | MDU6SXNzdWU3MDE4MjgyNg== | 9,969 | Poor read_csv performance on file with many columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/186722?v=4",
"events_url": "https://api.github.com/users/tloredo/events{/privacy}",
"followers_url": "https://api.github.com/users/tloredo/followers",
"following_url": "https://api.github.com/users/tloredo/following{/other_user}",
"gists_url": "https://api.github.com/users/tloredo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tloredo",
"id": 186722,
"login": "tloredo",
"node_id": "MDQ6VXNlcjE4NjcyMg==",
"organizations_url": "https://api.github.com/users/tloredo/orgs",
"received_events_url": "https://api.github.com/users/tloredo/received_events",
"repos_url": "https://api.github.com/users/tloredo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tloredo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tloredo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tloredo"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
]
| 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 | 2015-04-22T17:11:48Z | 2015-04-24T00:43:43Z | null | NONE | null | A student came to me for help using PyData tools for processing data in many-column CSV files. The files have 2740 rows; the longer file has 50k columns of floats, the smaller has 2740 columns of 0/1 binary data (defining a graph).
She currently is using numpy.loadtxt to read the files; the float file takes ~10 - 15 min to read on various Macs we've benchmarked. I was aware of benchmarks such as these indicating poor performance of loadtxt vs. various alternatives, including Pandas:
Fastest Python library to read a CSV file
http://softwarerecs.stackexchange.com/questions/7463/fastest-python-library-to-read-a-csv-file
A new high performance, memory-efficient file parser engine for pandas
http://wesmckinney.com/blog/a-new-high-performance-memory-efficient-file-parser-engine-for-pandas/
I suggested she try Pandas; she reported it performed _worse_ than loadtxt. This puzzled me, so I did some benchmarks. I duplicated the benchmarks in the SO post linked above, showing Pandas greatly outperforming loadtxt on a many-row, few-column CSV file; this likely rules out a problem with our installations (we are both using current Anaconda Python 2.7). I also duplicated her poor Pandas performance on the large float file.
I've put a MWE online here:
https://dl.dropboxusercontent.com/u/40075366/BDA2015/CSV_MWE.zip
That unpacks to a benchmark script and two large data files; it's a 500 kB .zip archive but it unpacks to 59 MB (otherwise I would have just posted a Gist). The data files are truncated to 10% of full size. The results on my 2009 quad-core Mac Pro (48 GB RAM) are:
```
loadtxt, float file laps:
* CSV: 8.576581 s
* csr_matrix: 180.887938 ms
Total elapsed time = 8.757631 s
loadtxt, graph file laps:
* CSV: 386.301041 ms
* csr_matrix: 22.848845 ms
Total elapsed time = 409.296036 ms
pandas, float file elapsed time = 17.595026 s
iopro, float file elapsed time = 473.067179 s
```
Notably, IOPro performs abysmally with the float file.
Perhaps this is just not a use case Pandas was designed to address. Any advice on the fastest way to read such wide CSV files in Python would be appreciated.
| {
"+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/9969/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9969/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9970 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9970/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9970/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9970/events | https://github.com/pandas-dev/pandas/issues/9970 | 70,218,207 | MDU6SXNzdWU3MDIxODIwNw== | 9,970 | Value error on groupby bfill() | {
"avatar_url": "https://avatars.githubusercontent.com/u/4633429?v=4",
"events_url": "https://api.github.com/users/arijun/events{/privacy}",
"followers_url": "https://api.github.com/users/arijun/followers",
"following_url": "https://api.github.com/users/arijun/following{/other_user}",
"gists_url": "https://api.github.com/users/arijun/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arijun",
"id": 4633429,
"login": "arijun",
"node_id": "MDQ6VXNlcjQ2MzM0Mjk=",
"organizations_url": "https://api.github.com/users/arijun/orgs",
"received_events_url": "https://api.github.com/users/arijun/received_events",
"repos_url": "https://api.github.com/users/arijun/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arijun/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arijun/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arijun"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "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"
} | 7 | 2015-04-22T19:47:10Z | 2018-01-31T15:18:46Z | 2018-01-31T15:18:46Z | NONE | null | ```
s = pd.Series([1,1,0], index=[1,2,2])
s.groupby(s).fillna(method='bfill')
```
I have a dataframe with a column containing some strings and NaNs. I can do do `df.col.bfill()` but when I try to do `df.groupby('col2').col1.bfill()` I get a `ValueError`.
I can do `first` and `apply(lambda x: x is str)` without error.
Here is the full traceback:
```
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 558, in wrapper
return self.apply(curried_with_axis)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 662, in apply
return self._python_apply_general(f)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 669, in _python_apply_general
not_indexed_same=mutated)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 2380, in _wrap_applied_output
not_indexed_same=not_indexed_same)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 1142, in _concat_objects
result = result.reindex(ax)
File "C:\Anaconda3\lib\site-packages\pandas\core\series.py", line 2149, in reindex
return super(Series, self).reindex(index=index, **kwargs)
File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1731, in reindex
method, fill_value, copy).__finalize__(self)
File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1749, in _reindex_axes
allow_dups=False)
File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1834, in _reindex_with_indexers
copy=copy)
File "C:\Anaconda3\lib\site-packages\pandas\core\internals.py", line 3150, in reindex_indexer
raise ValueError("cannot reindex from a duplicate axis")
ValueError: cannot reindex from a duplicate axis
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 561, in wrapper
return self.apply(curried)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 662, in apply
return self._python_apply_general(f)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 669, in _python_apply_general
not_indexed_same=mutated)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 2380, in _wrap_applied_output
not_indexed_same=not_indexed_same)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 1142, in _concat_objects
result = result.reindex(ax)
File "C:\Anaconda3\lib\site-packages\pandas\core\series.py", line 2149, in reindex
return super(Series, self).reindex(index=index, **kwargs)
File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1731, in reindex
method, fill_value, copy).__finalize__(self)
File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1749, in _reindex_axes
allow_dups=False)
File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 1834, in _reindex_with_indexers
copy=copy)
File "C:\Anaconda3\lib\site-packages\pandas\core\internals.py", line 3150, in reindex_indexer
raise ValueError("cannot reindex from a duplicate axis")
ValueError: cannot reindex from a duplicate axis
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 570, in wrapper
return self._aggregate_item_by_item(name, *args, **kwargs)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 511, in __getattr__
(type(self).__name__, attr))
AttributeError: 'SeriesGroupBy' object has no attribute '_aggregate_item_by_item'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\helpers\pydev\pydevd.py", line 1733, in <module>
debugger.run(setup['file'], None, None)
File "C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\helpers\pydev\pydevd.py", line 1226, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\helpers\pydev\_pydev_execfile.py", line 38, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc) #execute the script
File "G:/Users/ari/Documents/Git/Misc/testbross.py", line 5, in <module>
brwbt = KevinsDB.KevinToWBT(brdb.both[brdb.both.SYMBOL=='VCLT'])
File "G:\Users\ari\Documents\Git\KevinsDB.py", line 95, in KevinToWBT
s = grp.OrderTime.ffill().bfill()
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 572, in wrapper
raise ValueError
ValueError
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9970/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9970/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9971 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9971/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9971/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9971/events | https://github.com/pandas-dev/pandas/issues/9971 | 70,248,336 | MDU6SXNzdWU3MDI0ODMzNg== | 9,971 | UnboundLocalError in pandas.io.data.get_data_yahoo | {
"avatar_url": "https://avatars.githubusercontent.com/u/375307?v=4",
"events_url": "https://api.github.com/users/ElDeveloper/events{/privacy}",
"followers_url": "https://api.github.com/users/ElDeveloper/followers",
"following_url": "https://api.github.com/users/ElDeveloper/following{/other_user}",
"gists_url": "https://api.github.com/users/ElDeveloper/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ElDeveloper",
"id": 375307,
"login": "ElDeveloper",
"node_id": "MDQ6VXNlcjM3NTMwNw==",
"organizations_url": "https://api.github.com/users/ElDeveloper/orgs",
"received_events_url": "https://api.github.com/users/ElDeveloper/received_events",
"repos_url": "https://api.github.com/users/ElDeveloper/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ElDeveloper/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ElDeveloper/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ElDeveloper"
} | [
{
"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": 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 | 2015-04-22T22:11:27Z | 2015-04-22T23:55:18Z | 2015-04-22T23:46:26Z | CONTRIBUTOR | null | ``` python
In [1]: %paste
import pandas.io.data as web
all_data = {}
for ticker in ['AAPL', 'GOOG', 'IBM', 'YHOO', 'MSFT']:
all_data[ticker] = web.get_data_yahoo(ticker, '1/1/2010', '1/1/2013')
price = pd.DataFrame({tic: data['Adj Close']
for tic, data in all_data.iteritems()})
## -- End pasted text --
```
I took the snippet above from [vincent's quickstart](https://vincent.readthedocs.org/en/latest/quickstart.html#quick-data) and found that an `UnboundLocalError` is being raised (probably pointing to a bug).
``` python
---------------------------------------------------------------------------
UnboundLocalError Traceback (most recent call last)
<ipython-input-1-c2d08f863001> in <module>()
2 all_data = {}
3 for ticker in ['AAPL', 'GOOG', 'IBM', 'YHOO', 'MSFT']:
----> 4 all_data[ticker] = web.get_data_yahoo(ticker, '1/1/2010', '1/1/2013')
5 price = pd.DataFrame({tic: data['Adj Close']
6 for tic, data in all_data.iteritems()})
/Users/yoshikivazquezbaeza/.virtualenvs/ipy/lib/python2.7/site-packages/pandas/io/data.pyc in get_data_yahoo(symbols, start, end, retry_count, pause, adjust_price, ret_index, chunksize, interval)
418 raise ValueError("Invalid interval: valid values are 'd', 'w', 'm' and 'v'")
419 return _get_data_from(symbols, start, end, interval, retry_count, pause,
--> 420 adjust_price, ret_index, chunksize, 'yahoo')
421
422
/Users/yoshikivazquezbaeza/.virtualenvs/ipy/lib/python2.7/site-packages/pandas/io/data.pyc in _get_data_from(symbols, start, end, interval, retry_count, pause, adjust_price, ret_index, chunksize, source)
359 # If a single symbol, (e.g., 'GOOG')
360 if isinstance(symbols, (compat.string_types, int)):
--> 361 hist_data = src_fn(symbols, start, end, interval, retry_count, pause)
362 # Or multiple symbols, (e.g., ['GOOG', 'AAPL', 'MSFT'])
363 elif isinstance(symbols, DataFrame):
/Users/yoshikivazquezbaeza/.virtualenvs/ipy/lib/python2.7/site-packages/pandas/io/data.pyc in _get_hist_yahoo(sym, start, end, interval, retry_count, pause)
206 '&g=%s' % interval +
207 '&ignore=.csv')
--> 208 return _retry_read_url(url, retry_count, pause, 'Yahoo!')
209
210
/Users/yoshikivazquezbaeza/.virtualenvs/ipy/lib/python2.7/site-packages/pandas/io/data.pyc in _retry_read_url(url, retry_count, pause, name)
175 #Get rid of unicode characters in index name.
176 try:
--> 177 rs.index.name = rs.index.name.decode('unicode_escape').encode('ascii', 'ignore')
178 except AttributeError:
179 #Python 3 string has no decode method.
UnboundLocalError: local variable 'rs' referenced before assignment
```
---
My installation:
```
In [5]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Darwin
OS-release: 14.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
pandas: 0.16.0
nose: 1.3.4
Cython: None
numpy: 1.9.2
scipy: 0.14.0
statsmodels: None
IPython: 3.0.0
sphinx: 1.2.2
patsy: None
dateutil: 2.4.2
pytz: 2015.2
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9971/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9971/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9972 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9972/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9972/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9972/events | https://github.com/pandas-dev/pandas/pull/9972 | 70,423,517 | MDExOlB1bGxSZXF1ZXN0MzM5NTk0NTI= | 9,972 | TST: Check index names | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "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": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 1 | 2015-04-23T14:17:06Z | 2015-04-29T01:22:19Z | 2015-04-28T11:10:00Z | MEMBER | null | Derived from #9862. Added `check_names` kw to followings testing functions:
- `assert_index_equal` (default=True).
- `assert_series_equal` (default=True). Maybe the same option can be used to check `Series.name` in the future, otherwise it may better to choose separate name such as `check_index_name`.
- `assert_panelnd_equal` (default=False). We have to check following ToDo to specify default=True.
- https://github.com/pydata/pandas/blob/master/pandas/util/testing.py#L771
- `assert_frame_equal` is untouched as it already has the kw. Not refactored the logic because it has a path which doesn't use `assert_index_equal` internally.
Looked through test cases which have to be `check_names=False`, and added name check tests.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9972/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9972/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9972.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9972",
"merged_at": "2015-04-28T11:10:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9972.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9972"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9973 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9973/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9973/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9973/events | https://github.com/pandas-dev/pandas/issues/9973 | 70,464,756 | MDU6SXNzdWU3MDQ2NDc1Ng== | 9,973 | dividing by integers wierd in 0.14.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/249407?v=4",
"events_url": "https://api.github.com/users/hhuuggoo/events{/privacy}",
"followers_url": "https://api.github.com/users/hhuuggoo/followers",
"following_url": "https://api.github.com/users/hhuuggoo/following{/other_user}",
"gists_url": "https://api.github.com/users/hhuuggoo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hhuuggoo",
"id": 249407,
"login": "hhuuggoo",
"node_id": "MDQ6VXNlcjI0OTQwNw==",
"organizations_url": "https://api.github.com/users/hhuuggoo/orgs",
"received_events_url": "https://api.github.com/users/hhuuggoo/received_events",
"repos_url": "https://api.github.com/users/hhuuggoo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hhuuggoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hhuuggoo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hhuuggoo"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| null | 1 | 2015-04-23T17:18:27Z | 2015-04-24T10:47:19Z | 2015-04-24T10:47:01Z | NONE | null | In [1]: import pandas as pd; pd.Series ([-49.2, 0.0], index=[0,1]) / pd.Series([49,0], index=[0,1])
Out[1]:
0 -inf
1 inf
dtype: float64
This appears to be resolved in 0.15, and 0.16 - so not sure that this is worth reporting
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9973/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9973/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9974 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9974/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9974/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9974/events | https://github.com/pandas-dev/pandas/pull/9974 | 70,499,563 | MDExOlB1bGxSZXF1ZXN0MzM5OTA5MzI= | 9,974 | Change of index values dtype should be reflected in index type | {
"avatar_url": "https://avatars.githubusercontent.com/u/907394?v=4",
"events_url": "https://api.github.com/users/josteinbf/events{/privacy}",
"followers_url": "https://api.github.com/users/josteinbf/followers",
"following_url": "https://api.github.com/users/josteinbf/following{/other_user}",
"gists_url": "https://api.github.com/users/josteinbf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/josteinbf",
"id": 907394,
"login": "josteinbf",
"node_id": "MDQ6VXNlcjkwNzM5NA==",
"organizations_url": "https://api.github.com/users/josteinbf/orgs",
"received_events_url": "https://api.github.com/users/josteinbf/received_events",
"repos_url": "https://api.github.com/users/josteinbf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/josteinbf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josteinbf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/josteinbf"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"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": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 6 | 2015-04-23T20:00:42Z | 2015-08-05T21:36:43Z | 2015-08-05T21:36:42Z | NONE | null | This PR should eventually address issue #9966. I will look at testing first to make sure I have understood how pandas ought to work in these situations.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9974/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9974/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9974.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9974",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9974.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9974"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9975 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9975/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9975/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9975/events | https://github.com/pandas-dev/pandas/pull/9975 | 70,521,451 | MDExOlB1bGxSZXF1ZXN0MzQwMDAxMTc= | 9,975 | Series string operators | {
"avatar_url": "https://avatars.githubusercontent.com/u/3064397?v=4",
"events_url": "https://api.github.com/users/llllllllll/events{/privacy}",
"followers_url": "https://api.github.com/users/llllllllll/followers",
"following_url": "https://api.github.com/users/llllllllll/following{/other_user}",
"gists_url": "https://api.github.com/users/llllllllll/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/llllllllll",
"id": 3064397,
"login": "llllllllll",
"node_id": "MDQ6VXNlcjMwNjQzOTc=",
"organizations_url": "https://api.github.com/users/llllllllll/orgs",
"received_events_url": "https://api.github.com/users/llllllllll/received_events",
"repos_url": "https://api.github.com/users/llllllllll/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/llllllllll/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/llllllllll/subscriptions",
"type": "User",
"url": "https://api.github.com/users/llllllllll"
} | []
| closed | false | null | []
| null | 3 | 2015-04-23T21:45:35Z | 2015-04-24T22:15:44Z | 2015-04-23T23:11:19Z | CONTRIBUTOR | null | Makes the string operators available to the `Series.str` object
``` python
In [1]: a = pd.Series(['%s', '%s'])
In [2]: a.str % 2
Out[2]: array(['2', '2'], dtype=object)
In [3]: a = pd.Series(['a', 'b'])
In [4]: a.str * 2
Out[4]: array(['aa', 'bb'], dtype=object)
In [5]: a.str + 'test'
Out[5]: array(['atest', 'btest'], 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/9975/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9975/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9975.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9975",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9975.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9975"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9976 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9976/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9976/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9976/events | https://github.com/pandas-dev/pandas/issues/9976 | 70,652,722 | MDU6SXNzdWU3MDY1MjcyMg== | 9,976 | Wrong/better error message for AttributeError with wrong attribute in attribute. | {
"avatar_url": "https://avatars.githubusercontent.com/u/484028?v=4",
"events_url": "https://api.github.com/users/fnielsen/events{/privacy}",
"followers_url": "https://api.github.com/users/fnielsen/followers",
"following_url": "https://api.github.com/users/fnielsen/following{/other_user}",
"gists_url": "https://api.github.com/users/fnielsen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fnielsen",
"id": 484028,
"login": "fnielsen",
"node_id": "MDQ6VXNlcjQ4NDAyOA==",
"organizations_url": "https://api.github.com/users/fnielsen/orgs",
"received_events_url": "https://api.github.com/users/fnielsen/received_events",
"repos_url": "https://api.github.com/users/fnielsen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fnielsen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fnielsen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fnielsen"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 2 | 2015-04-24T10:33:18Z | 2015-04-24T10:59:59Z | 2015-04-24T10:43:30Z | NONE | null | Pandas (core.generic) gives a misleading error message for AttributeError with wrong attribute in attribute in version 0.16.0. Example:
```
import pandas as pd
class MyDataFrame(pd.DataFrame):
@property
def my_attribute(self):
self.a_wrong_attribute
return 'Hello, World'
```
Applying it yields:
```
>>> my_frame = MyDataFrame()
>>> my_frame.my_attribute
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pandas/core/generic.py", line 1978, in __getattr__ (type(self).__name__, name))
AttributeError: 'MyDataFrame' object has no attribute 'my_attribute'
```
The 'my_attribute' is of course there. I would have expected:
```
AttributeError: 'MyDataFrame' object has no attribute 'a_wrong_attribute'
```
It would be nice with a better error message directly pointing to the wrong attribute. The problem also appears for, e.g., the pandas.Panel class.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9976/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9976/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9977 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9977/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9977/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9977/events | https://github.com/pandas-dev/pandas/pull/9977 | 70,663,956 | MDExOlB1bGxSZXF1ZXN0MzQwMzk2ODY= | 9,977 | Introduction of RangeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/5834577?v=4",
"events_url": "https://api.github.com/users/ARF1/events{/privacy}",
"followers_url": "https://api.github.com/users/ARF1/followers",
"following_url": "https://api.github.com/users/ARF1/following{/other_user}",
"gists_url": "https://api.github.com/users/ARF1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ARF1",
"id": 5834577,
"login": "ARF1",
"node_id": "MDQ6VXNlcjU4MzQ1Nzc=",
"organizations_url": "https://api.github.com/users/ARF1/orgs",
"received_events_url": "https://api.github.com/users/ARF1/received_events",
"repos_url": "https://api.github.com/users/ARF1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ARF1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ARF1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ARF1"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 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"
} | 18 | 2015-04-24T11:21:15Z | 2015-12-30T15:39:31Z | 2015-12-30T15:39:31Z | NONE | null | closes #939
`RangeIndex(1, 10, 2)` is a memory saving alternative to `Index(np.arange(1, 10,2))`: c.f. #939.
This re-implementation is compatible with the current `Index()` api and is a drop-in replacement for `Int64Index()`. It automatically converts to Int64Index() when required by operations.
At present only for a minimum number of operations the type is conserved (e.g. slicing, inner-, left- and right-joins). Most other operations trigger creation of an equivalent Int64Index (or at least an equivalent numpy array) and fall back to its implementation.
This PR also extends the functionality of the `Index()` constructor to allow creation of `RangeIndex()` with
```
Index(20)
Index(2, 20)
Index(0, 20, 2)
```
in analogy to
```
range(20)
range(2, 20)
range(0, 20, 2)
```
---
TODO:
- [x] Cache a private `Int64Index` object the first time it or its values are required.
- [x] Restore `Index(5)` as error. Restore its test. Allow `Index(0, 5)` and `Index(0, 5, 1)`.
- [x] Make `RangeIndex` immutable. See `start`, `stop`, `step` properties.
- [x] In `test_constructor()`: check class, attributes (possibly including dtype).
- [x] In `test_copy()`: check that copy is not identical (but equal) to the existing.
- [ ] In `test_join_non_unique()`: test .append for ri.append(int64index) and int64index.append(ri).
- [x] In `test_duplicates()`: Assert `is_unique` and `has_duplicates` return correct values.
- [ ] After consensus on desired behaviour, adjust `test_view()`.
- [ ] After consensus on constructor, adjust `test_constructor()` and possible add further tests.
- [x] After consensus on `RangeIndex()` validity, adjust `test_pickle_compat_construction()`.
- [ ] After consensus on slice behaviour, test for correct return type in `test_slice_specialised()`.
- [ ] Accept `xrange` objects as input
- [x] Setting `RangeIndex` as the default index.
- [ ] Clean up `Index` constructor: use ABCs and named arguments
- [ ] In `__getitem__()`: replace `np.isscalar` to exclude singe-element numpy arrays
- [ ] Tests for `pandas.io.packers`
In need of consensus:
- [x] If we disallow `Index(10)` should we also disallow `RangeIndex(10)`? That would seem like an unfortunate api break with respect to built-in `range()`, `xrange()` and numpy `arange()`. _Decision: allow_
- [x] Should `RangeIndex()` be allowed as a constructor alternative to the kludgy `Index(np.empty(0, dtype='...'))`? _Decision: allow_
- [x] Should `RangeIndex` accept array inputs? If so, what should it do with them? Should it try to infer a corresponding `RangeIndex`? What should it do with inputs it cannot infer? _Decision: delegate all array inputs to `Int64Index`._
- [x] Should the `RangeIndex` constructor accept `dtype` as an argument? _Decision: accept, but only for array inputs._
- [x] If so, should it accept non-int64 dtypes as valid input? _Decision: Irrelevant due to delegation._
- [x] If so, does it need to check that the other inputs are within the range of the dtype? _Decision: Irrelevant due to delegation._
- [x] Related to constructor question, should slicing with a list return? Always `Int64Index` or `RangeIndex` when possible and `Int64Index` when not? _Decision: slicing with list will always return `Int64Index`._
- [ ] What should `RangeIndex(10).view('i8')` return? I believe `RangeIndex(10)`. _Decision: return `RangeIndex(10)`._
- [ ] What should `RangeIndex(10).view('i4')` return? I believe `Index(RangeIndex(10), dtype='i4')`. _Decision: return `Index(RangeIndex(10), dtype='i4')`._
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9977/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9977/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9977.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9977",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9977.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9977"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9978 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9978/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9978/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9978/events | https://github.com/pandas-dev/pandas/pull/9978 | 70,719,422 | MDExOlB1bGxSZXF1ZXN0MzQwNTg4Nzk= | 9,978 | Add override_header_style option to data_frame.to_excel() | {
"avatar_url": "https://avatars.githubusercontent.com/u/21141?v=4",
"events_url": "https://api.github.com/users/legolin/events{/privacy}",
"followers_url": "https://api.github.com/users/legolin/followers",
"following_url": "https://api.github.com/users/legolin/following{/other_user}",
"gists_url": "https://api.github.com/users/legolin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/legolin",
"id": 21141,
"login": "legolin",
"node_id": "MDQ6VXNlcjIxMTQx",
"organizations_url": "https://api.github.com/users/legolin/orgs",
"received_events_url": "https://api.github.com/users/legolin/received_events",
"repos_url": "https://api.github.com/users/legolin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/legolin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/legolin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/legolin"
} | [
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
]
| closed | false | null | []
| null | 2 | 2015-04-24T15:28:28Z | 2015-07-28T21:53:30Z | 2015-07-28T21:53:30Z | NONE | null | [Pandas v0.16.0]
The Excel export (`data_frame.to_excel`) currently hard codes cell styles for all header frames. This pull request allows this style to be overridden by the user.
Don't override the default header style (Default)
`data_frame.to_excel(..... "override_header_style":None)`
Don't style the header at all
`data_frame.to_excel(..... "override_header_style": {} )`
Pass in a custom style
`data_frame.to_excel(..... "override_header_style": { "font" : {"font_color" : "#990000", "bold" : False }, "align" : {"horizontal" : "right"} } )`
There are currently no tests for the to_excel function mentioned here. (All the other, existing tests pass.) I'd be happy to write some tests, though it might mean refactoring some functionality out of constructors as **init** is notoriously difficult to mock. (mock.assert_called_with ?)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9978/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9978/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9978.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9978",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9978.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9978"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9979 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9979/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9979/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9979/events | https://github.com/pandas-dev/pandas/issues/9979 | 70,732,257 | MDU6SXNzdWU3MDczMjI1Nw== | 9,979 | AttributeError: Cannot use pandas from a script file | {
"avatar_url": "https://avatars.githubusercontent.com/u/4347878?v=4",
"events_url": "https://api.github.com/users/songololo/events{/privacy}",
"followers_url": "https://api.github.com/users/songololo/followers",
"following_url": "https://api.github.com/users/songololo/following{/other_user}",
"gists_url": "https://api.github.com/users/songololo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/songololo",
"id": 4347878,
"login": "songololo",
"node_id": "MDQ6VXNlcjQzNDc4Nzg=",
"organizations_url": "https://api.github.com/users/songololo/orgs",
"received_events_url": "https://api.github.com/users/songololo/received_events",
"repos_url": "https://api.github.com/users/songololo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/songololo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/songololo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/songololo"
} | []
| closed | false | null | []
| null | 3 | 2015-04-24T16:24:00Z | 2018-09-24T15:21:05Z | 2015-04-24T16:48:16Z | NONE | null | I am using the Anaconda distribution of Pandas on a Mac.
I am able to use the Pandas module from within the python console, but am unable to use it from within a script file. i.e. when I run a script that imports the pandas module, then I get an attribute error.
For example, this:
```
import pandas as pd
df = pd.DataFrame()
```
will give me this error:
```
Traceback (most recent call last):
File "/Path/To/File/file.py", line 1, in <module>
import pandas as pd
File "/Path/To/File/file.py", line 2, in <module>
df = pd.DataFrame()
AttributeError: 'module' object has no attribute 'DataFrame'
```
And similarly, this:
```
import pandas as pd
df = pd.Series()
```
will give me this error:
```
Traceback (most recent call last):
File "/Path/To/File/file.py", line 1, in <module>
import pandas as pd
File "/Path/To/File/file.py", line 2, in <module>
sr = pd.Series()
AttributeError: 'module' object has no attribute 'Series'
```
Yet both of these work fine from the console.
I've tried uninstalling and re-installing from anaconda, pip, and from the github source, to no avail.
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/9979/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9979/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9980 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9980/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9980/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9980/events | https://github.com/pandas-dev/pandas/issues/9980 | 70,793,766 | MDU6SXNzdWU3MDc5Mzc2Ng== | 9,980 | API: Index.str follow-ups (extract/get_dummies) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 3 | 2015-04-24T21:06:42Z | 2015-05-08T00:16:51Z | 2015-05-08T00:16:51Z | MEMBER | null | Follow-ups for #9667. Noticed 2 methods which can return `DataFrame`.
### 1. `Index.str.extract`
As shown in docstring, it returns `DataFrame` when the expression has 2 or more groups.
```
pd.Series(['a1', 'b2', 'c3']).str.extract('[ab](\d)')
#0 1
#1 2
#2 NaN
# dtype: object
pd.Series(['a1', 'b2', 'c3']).str.extract('([ab])(\d)')
# 0 1
#0 a 1
#1 b 2
#2 NaN NaN
```
Currently, `Index.str.extract` raises an error in both cases. I think 1st case should return `Index`, and 2nd case should raise understandable error.
```
pd.Index(['a1', 'b2', 'c3']).str.extract('[ab](\d)')
# AttributeError: 'Index' object has no attribute 'index'
pd.Index(['a1', 'b2', 'c3']).str.extract('([ab])(\d)')
# AttributeError: 'Index' object has no attribute 'empty'
```
### 2. `Index.str.get_dummies`
Because it returns `DataFrame`, should raise an understandable error.
```
pd.Index(['a1', 'b2', 'c3']).str.get_dummies()
# AttributeError: 'Index' object has no attribute 'fillna'
```
CC: @mortada
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9980/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9980/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9981 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9981/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9981/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9981/events | https://github.com/pandas-dev/pandas/pull/9981 | 70,797,713 | MDExOlB1bGxSZXF1ZXN0MzQwODc0MTg= | 9,981 | DOC: StringMethods html doc fixes | {
"avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4",
"events_url": "https://api.github.com/users/mortada/events{/privacy}",
"followers_url": "https://api.github.com/users/mortada/followers",
"following_url": "https://api.github.com/users/mortada/following{/other_user}",
"gists_url": "https://api.github.com/users/mortada/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mortada",
"id": 1642081,
"login": "mortada",
"node_id": "MDQ6VXNlcjE2NDIwODE=",
"organizations_url": "https://api.github.com/users/mortada/orgs",
"received_events_url": "https://api.github.com/users/mortada/received_events",
"repos_url": "https://api.github.com/users/mortada/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mortada/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mortada"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 1 | 2015-04-24T21:23:21Z | 2015-04-25T07:38:35Z | 2015-04-25T07:34:47Z | CONTRIBUTOR | null | I noticed some of the HTML links are broken in `text.rst`
@sinhrks @jorisvandenbossche this is related to https://github.com/pydata/pandas/pull/9843 but can be independently merged
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9981/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9981/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9981.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9981",
"merged_at": "2015-04-25T07:34:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9981.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9981"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9982 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9982/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9982/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9982/events | https://github.com/pandas-dev/pandas/issues/9982 | 70,802,820 | MDU6SXNzdWU3MDgwMjgyMA== | 9,982 | DOC: Comparison with Spark DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| 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"
} | 0 | 2015-04-24T21:47:13Z | 2015-04-24T21:47:26Z | null | MEMBER | null | It may be nice to have a doc like "Comparison with R / SQL"?
- https://databricks.com/blog/2015/02/17/introducing-dataframes-in-spark-for-large-scale-data-science.html
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9982/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9982/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9983 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9983/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9983/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9983/events | https://github.com/pandas-dev/pandas/pull/9983 | 70,844,774 | MDExOlB1bGxSZXF1ZXN0MzQwOTk1ODM= | 9,983 | BUG: .iloc and .loc behavior not consistent on empty dataframe | {
"avatar_url": "https://avatars.githubusercontent.com/u/833768?v=4",
"events_url": "https://api.github.com/users/artemyk/events{/privacy}",
"followers_url": "https://api.github.com/users/artemyk/followers",
"following_url": "https://api.github.com/users/artemyk/following{/other_user}",
"gists_url": "https://api.github.com/users/artemyk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/artemyk",
"id": 833768,
"login": "artemyk",
"node_id": "MDQ6VXNlcjgzMzc2OA==",
"organizations_url": "https://api.github.com/users/artemyk/orgs",
"received_events_url": "https://api.github.com/users/artemyk/received_events",
"repos_url": "https://api.github.com/users/artemyk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/artemyk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/artemyk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/artemyk"
} | [
{
"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": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 9 | 2015-04-25T03:10:19Z | 2015-04-30T10:04:40Z | 2015-04-30T10:04:04Z | CONTRIBUTOR | null | Fixes #9964 .
Notice that `assert_frame_equal` now fails for empty dataframes with different dtypes (as, I think, it should). However, this means some tests need to be patched now.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9983/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9983/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9983.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9983",
"merged_at": "2015-04-30T10:04:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9983.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9983"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9984 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9984/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9984/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9984/events | https://github.com/pandas-dev/pandas/pull/9984 | 70,921,431 | MDExOlB1bGxSZXF1ZXN0MzQxMDczNjA= | 9,984 | DOC: Add composition example to internals.rst | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 5 | 2015-04-25T14:47:40Z | 2016-07-21T15:42:48Z | 2015-11-18T20:15:21Z | MEMBER | null | Follow-up of #9802. Added an example of composition to internal.rst.
Also, fixed broken section name for subclass document.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9984/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9984/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9984.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9984",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9984.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9984"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9985 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9985/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9985/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9985/events | https://github.com/pandas-dev/pandas/pull/9985 | 70,941,719 | MDExOlB1bGxSZXF1ZXN0MzQxMDk4Njg= | 9,985 | ENH: improve extract and get_dummies methods for Index.str (fix for #9980) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4",
"events_url": "https://api.github.com/users/mortada/events{/privacy}",
"followers_url": "https://api.github.com/users/mortada/followers",
"following_url": "https://api.github.com/users/mortada/following{/other_user}",
"gists_url": "https://api.github.com/users/mortada/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mortada",
"id": 1642081,
"login": "mortada",
"node_id": "MDQ6VXNlcjE2NDIwODE=",
"organizations_url": "https://api.github.com/users/mortada/orgs",
"received_events_url": "https://api.github.com/users/mortada/received_events",
"repos_url": "https://api.github.com/users/mortada/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mortada/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mortada"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 6 | 2015-04-25T17:33:45Z | 2015-05-08T16:13:56Z | 2015-05-08T00:16:40Z | CONTRIBUTOR | null | Closes #9980
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9985/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9985/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9985.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9985",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9985.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9985"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9986 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9986/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9986/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9986/events | https://github.com/pandas-dev/pandas/pull/9986 | 70,952,742 | MDExOlB1bGxSZXF1ZXN0MzQxMTExMzk= | 9,986 | DOC/CLN: HTML docs fixes | {
"avatar_url": "https://avatars.githubusercontent.com/u/1642081?v=4",
"events_url": "https://api.github.com/users/mortada/events{/privacy}",
"followers_url": "https://api.github.com/users/mortada/followers",
"following_url": "https://api.github.com/users/mortada/following{/other_user}",
"gists_url": "https://api.github.com/users/mortada/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mortada",
"id": 1642081,
"login": "mortada",
"node_id": "MDQ6VXNlcjE2NDIwODE=",
"organizations_url": "https://api.github.com/users/mortada/orgs",
"received_events_url": "https://api.github.com/users/mortada/received_events",
"repos_url": "https://api.github.com/users/mortada/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mortada/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mortada/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mortada"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 1 | 2015-04-25T18:55:33Z | 2015-04-25T23:31:42Z | 2015-04-25T21:44:41Z | 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/9986/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9986/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9986.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9986",
"merged_at": "2015-04-25T21:44:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9986.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9986"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/9987 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9987/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9987/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9987/events | https://github.com/pandas-dev/pandas/pull/9987 | 70,964,986 | MDExOlB1bGxSZXF1ZXN0MzQxMTI3MzQ= | 9,987 | DOC: clean up / consistent imports (GH9886) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| null | 3 | 2015-04-25T20:41:47Z | 2015-05-05T10:37:24Z | 2015-05-05T10:37:24Z | MEMBER | null | Start for #9886
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9987/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9987/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9987.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9987",
"merged_at": "2015-05-05T10:37:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9987.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9987"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9988 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9988/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9988/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9988/events | https://github.com/pandas-dev/pandas/pull/9988 | 70,965,415 | MDExOlB1bGxSZXF1ZXN0MzQxMTI3ODc= | 9,988 | DOC: provide more links to API documentation where possible (GH3705) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 0 | 2015-04-25T20:45:37Z | 2015-05-02T19:08:45Z | 2015-05-02T19:08:45Z | MEMBER | null | Part 1: 10min and basics.rst
Addresses #3705 (for two files). I mainly replaced most ```method_name``` occurences with `:meth:`name``
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9988/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9988/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9988.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9988",
"merged_at": "2015-05-02T19:08:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9988.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9988"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9989 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9989/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9989/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9989/events | https://github.com/pandas-dev/pandas/issues/9989 | 70,976,302 | MDU6SXNzdWU3MDk3NjMwMg== | 9,989 | "Big-endian buffer not supported on little-endian compiler" when accessing multiple columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/314716?v=4",
"events_url": "https://api.github.com/users/astrofrog/events{/privacy}",
"followers_url": "https://api.github.com/users/astrofrog/followers",
"following_url": "https://api.github.com/users/astrofrog/following{/other_user}",
"gists_url": "https://api.github.com/users/astrofrog/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/astrofrog",
"id": 314716,
"login": "astrofrog",
"node_id": "MDQ6VXNlcjMxNDcxNg==",
"organizations_url": "https://api.github.com/users/astrofrog/orgs",
"received_events_url": "https://api.github.com/users/astrofrog/received_events",
"repos_url": "https://api.github.com/users/astrofrog/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/astrofrog/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/astrofrog/subscriptions",
"type": "User",
"url": "https://api.github.com/users/astrofrog"
} | [
{
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| null | 1 | 2015-04-25T22:27:15Z | 2015-04-25T22:40:01Z | 2015-04-25T22:39:32Z | NONE | null | If I create a dataframe with two arrays that have different endianness, it works fine if I access the whole DataFrame or individual arrays:
``` python
In [1]: import pandas
In [2]: d = pandas.DataFrame()
In [3]: import numpy as np
In [4]: d['a'] = np.array([1,2,3], dtype='>f4')
In [5]: d['b'] = np.array([1,2,3], dtype='<f4')
In [6]: d['a']
Out[6]:
0 1
1 2
2 3
Name: a, dtype: float32
In [7]: d['b']
Out[7]:
0 1
1 2
2 3
Name: b, dtype: float32
In [8]: d
Out[8]:
a b
0 1 1
1 2 2
2 3 3
```
However if I try and access multiple arrays in one go I get an error:
```
In [9]: d[['a','b']]
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-8-63d4e2414242> in <module>()
----> 1 d[['a','b']]
/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/pandas/core/frame.py in __getitem__(self, key)
1772 if isinstance(key, (Series, np.ndarray, Index, list)):
1773 # either boolean or fancy integer index
-> 1774 return self._getitem_array(key)
1775 elif isinstance(key, DataFrame):
1776 return self._getitem_frame(key)
/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/pandas/core/frame.py in _getitem_array(self, key)
1817 else:
1818 indexer = self.ix._convert_to_indexer(key, axis=1)
-> 1819 return self.take(indexer, axis=1, convert=True)
1820
1821 def _getitem_multilevel(self, key):
/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/pandas/core/generic.py in take(self, indices, axis, convert, is_copy)
1330 new_data = self._data.take(indices,
1331 axis=self._get_block_manager_axis(axis),
-> 1332 convert=True, verify=True)
1333 result = self._constructor(new_data).__finalize__(self)
1334
/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/pandas/core/internals.py in take(self, indexer, axis, verify, convert)
3273 new_labels = self.axes[axis].take(indexer)
3274 return self.reindex_indexer(new_axis=new_labels, indexer=indexer,
-> 3275 axis=axis, allow_dups=True)
3276
3277 def merge(self, other, lsuffix='', rsuffix=''):
/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/pandas/core/internals.py in reindex_indexer(self, new_axis, indexer, axis, fill_value, allow_dups, copy)
3155 if axis == 0:
3156 new_blocks = self._slice_take_blocks_ax0(
-> 3157 indexer, fill_tuple=(fill_value,))
3158 else:
3159 new_blocks = [blk.take_nd(indexer, axis=axis,
/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/pandas/core/internals.py in _slice_take_blocks_ax0(self, slice_or_indexer, fill_tuple)
3236 blocks.append(blk.take_nd(
3237 blklocs[mgr_locs.indexer], axis=0,
-> 3238 new_mgr_locs=mgr_locs, fill_tuple=None))
3239
3240 return blocks
/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/pandas/core/internals.py in take_nd(self, indexer, axis, new_mgr_locs, fill_tuple)
844 fill_value = self.fill_value
845 new_values = com.take_nd(self.get_values(), indexer, axis=axis,
--> 846 allow_fill=False)
847 else:
848 fill_value = fill_tuple[0]
/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/pandas/core/common.py in take_nd(arr, indexer, axis, out, fill_value, mask_info, allow_fill)
821
822 indexer = _ensure_int64(indexer)
--> 823 func(arr, indexer, out, fill_value)
824
825 if flip_order:
/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/pandas/algos.so in pandas.algos.take_2d_axis0_float32_float32 (pandas/algos.c:89026)()
ValueError: Big-endian buffer not supported on little-endian compiler
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9989/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9989/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9990 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9990/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9990/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9990/events | https://github.com/pandas-dev/pandas/issues/9990 | 71,010,987 | MDU6SXNzdWU3MTAxMDk4Nw== | 9,990 | The DataReader got stuck when fetched data from yahoo. | {
"avatar_url": "https://avatars.githubusercontent.com/u/678323?v=4",
"events_url": "https://api.github.com/users/keviny/events{/privacy}",
"followers_url": "https://api.github.com/users/keviny/followers",
"following_url": "https://api.github.com/users/keviny/following{/other_user}",
"gists_url": "https://api.github.com/users/keviny/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/keviny",
"id": 678323,
"login": "keviny",
"node_id": "MDQ6VXNlcjY3ODMyMw==",
"organizations_url": "https://api.github.com/users/keviny/orgs",
"received_events_url": "https://api.github.com/users/keviny/received_events",
"repos_url": "https://api.github.com/users/keviny/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/keviny/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/keviny/subscriptions",
"type": "User",
"url": "https://api.github.com/users/keviny"
} | [
{
"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 | []
| null | 1 | 2015-04-26T04:57:35Z | 2015-04-28T00:26:40Z | 2015-04-28T00:26:34Z | NONE | null | I have script fetched the data from yahoo in multithread, the script always got stuck.
It looks like we need add a timeout parameter somewhere when we call the urlopen.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9990/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9990/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9991 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9991/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9991/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9991/events | https://github.com/pandas-dev/pandas/issues/9991 | 71,023,585 | MDU6SXNzdWU3MTAyMzU4NQ== | 9,991 | local variable 'rs' referenced before assignment error | {
"avatar_url": "https://avatars.githubusercontent.com/u/6239160?v=4",
"events_url": "https://api.github.com/users/galfaroi/events{/privacy}",
"followers_url": "https://api.github.com/users/galfaroi/followers",
"following_url": "https://api.github.com/users/galfaroi/following{/other_user}",
"gists_url": "https://api.github.com/users/galfaroi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/galfaroi",
"id": 6239160,
"login": "galfaroi",
"node_id": "MDQ6VXNlcjYyMzkxNjA=",
"organizations_url": "https://api.github.com/users/galfaroi/orgs",
"received_events_url": "https://api.github.com/users/galfaroi/received_events",
"repos_url": "https://api.github.com/users/galfaroi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/galfaroi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/galfaroi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/galfaroi"
} | [
{
"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 | []
| null | 5 | 2015-04-26T07:07:50Z | 2015-04-28T00:24:00Z | 2015-04-28T00:23:53Z | NONE | null | Hope you can help with the following error (thanks):
(with any financial data source, after I upgraded to v0.16 because yahoo finance was not working 0.14)
$goog=web.DataReader('GOOG', data_source='google', start='3/14/2009', end = '4/14/2014')
anaconda/lib/python2.7/site-packages/pandas/io/data.pyc in _retry_read_url(url, retry_count, pause, name)
175 #Get rid of unicode characters in index name.
176 try:
--> 177 rs.index.name = rs.index.name.decode('unicode_escape').encode('ascii', 'ignore')
178 except AttributeError:
179 #Python 3 string has no decode method.
UnboundLocalError: local variable 'rs' referenced before assignment
In [33]: pd.**version**
Out[33]: '0.16.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/9991/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9991/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9992 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9992/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9992/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9992/events | https://github.com/pandas-dev/pandas/issues/9992 | 71,038,827 | MDU6SXNzdWU3MTAzODgyNw== | 9,992 | nosetest failed for pandas 0.16.0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10853125?v=4",
"events_url": "https://api.github.com/users/leo4183/events{/privacy}",
"followers_url": "https://api.github.com/users/leo4183/followers",
"following_url": "https://api.github.com/users/leo4183/following{/other_user}",
"gists_url": "https://api.github.com/users/leo4183/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/leo4183",
"id": 10853125,
"login": "leo4183",
"node_id": "MDQ6VXNlcjEwODUzMTI1",
"organizations_url": "https://api.github.com/users/leo4183/orgs",
"received_events_url": "https://api.github.com/users/leo4183/received_events",
"repos_url": "https://api.github.com/users/leo4183/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/leo4183/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo4183/subscriptions",
"type": "User",
"url": "https://api.github.com/users/leo4183"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 5 | 2015-04-26T09:23:39Z | 2015-05-08T13:19:51Z | 2015-05-08T13:19:51Z | NONE | null | Hi there,
I recently upgraded pandas from 0.15.1 to 0.16.0. after running the nosetest i got the following error msgs. wondering if anything series (i tested HDF5 writing/reading. everything looks normal).
#
## ERROR: test_conv_read_write (pandas.io.tests.test_pytables.TestHDFStore)
Traceback (most recent call last):
File "/usr/local/lib/python3.4/site-packages/pandas/io/tests/test_pytables.py", line 205, in test_conv_read_write
assert_series_equal(o, roundtrip('series',o))
File "/usr/local/lib/python3.4/site-packages/pandas/io/tests/test_pytables.py", line 201, in roundtrip
obj.to_hdf(self.path, key,*_kwargs)
File "/usr/local/lib/python3.4/site-packages/pandas/core/generic.py", line 913, in to_hdf
return pytables.to_hdf(path_or_buf, key, self, *_kwargs)
File "/usr/local/lib/python3.4/site-packages/pandas/io/pytables.py", line 266, in to_hdf
complib=complib) as store:
File "/usr/local/lib/python3.4/site-packages/pandas/io/pytables.py", line 396, in **init**
self.open(mode=mode, *_kwargs)
File "/usr/local/lib/python3.4/site-packages/pandas/io/pytables.py", line 536, in open
self._handle = tables.open_file(self._path, 'r', *_kwargs)
File "/usr/local/lib/python3.4/site-packages/tables/file.py", line 318, in open_file
return File(filename, mode, title, root_uep, filters, *_kwargs)
File "/usr/local/lib/python3.4/site-packages/tables/file.py", line 791, in **init**
self._g_new(filename, mode, *_params)
File "hdf5extension.pyx", line 359, in tables.hdf5extension.File._g_new (tables/hdf5extension.c:3756)
File "/usr/local/lib/python3.4/site-packages/tables/utils.py", line 157, in check_file_access
raise IOError("`%s` does not exist" % (filename,))
nose.proxy.OSError: ``tmp.__5JMnSD5gVu__.h5`` does not exist
-------------------- >> begin captured stdout << ---------------------
Opening tmp.**5JMnSD5gVu**.h5 in read-only mode
--------------------- >> end captured stdout << ----------------------
#
## ERROR: test_copy (pandas.io.tests.test_pytables.TestHDFStore)
Traceback (most recent call last):
File "/usr/local/lib/python3.4/site-packages/pandas/io/tests/test_pytables.py", line 4331, in test_copy
st = HDFStore(self.path)
File "/usr/local/lib/python3.4/site-packages/pandas/io/pytables.py", line 396, in **init**
self.open(mode=mode, *_kwargs)
File "/usr/local/lib/python3.4/site-packages/pandas/io/pytables.py", line 536, in open
self._handle = tables.open_file(self._path, 'r', *_kwargs)
File "/usr/local/lib/python3.4/site-packages/tables/file.py", line 318, in open_file
return File(filename, mode, title, root_uep, filters, *_kwargs)
File "/usr/local/lib/python3.4/site-packages/tables/file.py", line 791, in **init**
self._g_new(filename, mode, *_params)
File "hdf5extension.pyx", line 359, in tables.hdf5extension.File._g_new (tables/hdf5extension.c:3756)
File "/usr/local/lib/python3.4/site-packages/tables/utils.py", line 157, in check_file_access
raise IOError("`%s` does not exist" % (filename,))
nose.proxy.OSError: ``tmp.__NZTYQk5IW2__.h5`` does not exist
-------------------- >> begin captured stdout << ---------------------
Opening tmp.**NZTYQk5IW2**.h5 in read-only mode
--------------------- >> end captured stdout << ----------------------
#
## ERROR: test_factory_fun (pandas.io.tests.test_pytables.TestHDFStore)
Traceback (most recent call last):
File "/usr/local/lib/python3.4/site-packages/pandas/io/tests/test_pytables.py", line 160, in test_factory_fun
with get_store(self.path) as tbl:
File "/usr/local/lib/python3.4/site-packages/pandas/io/pytables.py", line 1273, in get_store
return HDFStore(path, *_kwargs)
File "/usr/local/lib/python3.4/site-packages/pandas/io/pytables.py", line 396, in **init**
self.open(mode=mode, *_kwargs)
File "/usr/local/lib/python3.4/site-packages/pandas/io/pytables.py", line 536, in open
self._handle = tables.open_file(self._path, 'r', *_kwargs)
File "/usr/local/lib/python3.4/site-packages/tables/file.py", line 318, in open_file
return File(filename, mode, title, root_uep, filters, *_kwargs)
File "/usr/local/lib/python3.4/site-packages/tables/file.py", line 791, in __init__
self._g_new(filename, mode, **params)
File "hdf5extension.pyx", line 359, in tables.hdf5extension.File._g_new (tables/hdf5extension.c:3756)
File "/usr/local/lib/python3.4/site-packages/tables/utils.py", line 157, in check_file_access
raise IOError("`%s` does not exist" % (filename,))
nose.proxy.OSError: ``tmp.__lL9hBPXiYa__.h5`` does not exist
-------------------- >> begin captured stdout << ---------------------
Opening tmp.**lL9hBPXiYa**.h5 in read-only mode
--------------------- >> end captured stdout << ----------------------
my python/pandas environment (Redhat server v6.5):
certifi (14.05.14)
Cython (0.21.1)
ipython (2.3.1)
jieba3k (0.35.1)
Jinja2 (2.7.3)
lxml (3.4.0)
MarkupSafe (0.23)
matplotlib (1.4.2)
mysql-connector-python (2.0.2)
nltk (3.0.1)
nose (1.3.4)
numexpr (2.4)
numpy (1.8.2)
openpyxl (1.6.1)
oursql (0.9.4)
pandas (0.16.0)
patsy (0.3.0)
pip (1.5.6)
pyparsing (2.0.3)
pyreadline (2.0)
python-dateutil (2.2)
pytz (2014.9)
pyzmq (14.4.1)
scipy (0.14.0)
setuptools (2.1)
six (1.8.0)
SQLAlchemy (0.9.8)
statsmodels (0.6.0)
tables (3.1.1)
tornado (4.0.2)
xlrd (0.9.3)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9992/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9992/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9993 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9993/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9993/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9993/events | https://github.com/pandas-dev/pandas/issues/9993 | 71,064,890 | MDU6SXNzdWU3MTA2NDg5MA== | 9,993 | Plot matrix (and more specifically confusion matrix) | {
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
} | []
| closed | false | null | []
| null | 2 | 2015-04-26T13:11:03Z | 2015-04-27T16:22:00Z | 2015-04-27T16:22:00Z | CONTRIBUTOR | null | Hello,
I don't find any method to plot a matrix (such as confusion matrix) using "pure" Pandas.
Having a more convenient approach than
http://scikit-learn.org/stable/auto_examples/model_selection/plot_confusion_matrix.html
http://matplotlib.org/examples/pylab_examples/matshow.html
will be great.
```
import pandas as pd
y_actu = pd.Series([2, 0, 2, 2, 0, 1, 1, 2, 2, 0, 1, 2])
y_pred = pd.Series([0, 0, 2, 1, 0, 2, 1, 0, 2, 0, 2, 2])
df_confusion = pd.crosstab(y_actu, y_pred, rownames=['Actual'], colnames=['Predicted'])
```
Something like
```
df_confusion.plot(kind='matrix')
```
It should display matrix with colormap (and a legend of this colormap)
A normalized matrix plot will be great too.
```
def plot_confusion_matrix(df_confusion, title='Confusion matrix', cmap=plt.cm.gray_r):
plt.matshow(df_confusion, cmap=cmap) # imshow
#plt.title(title)
plt.colorbar()
tick_marks = np.arange(len(df_confusion.columns))
plt.xticks(tick_marks, df_confusion.columns, rotation=45)
plt.yticks(tick_marks, df_confusion.index)
#plt.tight_layout()
plt.ylabel(df_confusion.index.name)
plt.xlabel(df_confusion.columns.name)
plot_confusion_matrix(df_confusion)
```
A Pandas class to manage confusion matrix (and also binary confusion matrix) will be great.
Kind regards
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9993/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9993/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9994 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9994/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9994/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9994/events | https://github.com/pandas-dev/pandas/pull/9994 | 71,106,296 | MDExOlB1bGxSZXF1ZXN0MzQxMjc5Nzc= | 9,994 | BUG: transform and filter misbehave when grouping on categorical data | {
"avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4",
"events_url": "https://api.github.com/users/evanpw/events{/privacy}",
"followers_url": "https://api.github.com/users/evanpw/followers",
"following_url": "https://api.github.com/users/evanpw/following{/other_user}",
"gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/evanpw",
"id": 1621449,
"login": "evanpw",
"node_id": "MDQ6VXNlcjE2MjE0NDk=",
"organizations_url": "https://api.github.com/users/evanpw/orgs",
"received_events_url": "https://api.github.com/users/evanpw/received_events",
"repos_url": "https://api.github.com/users/evanpw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/evanpw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/evanpw"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 4 | 2015-04-26T19:04:19Z | 2015-09-19T00:38:08Z | 2015-04-29T10:31:53Z | CONTRIBUTOR | null | Fixes GH #9921
closes #9700
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9994/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9994/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9994.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9994",
"merged_at": "2015-04-29T10:31:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9994.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9994"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9995 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9995/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9995/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9995/events | https://github.com/pandas-dev/pandas/issues/9995 | 71,134,450 | MDU6SXNzdWU3MTEzNDQ1MA== | 9,995 | BUG: length_of_indexer() can return incorrect values that break slice assignments. | {
"avatar_url": "https://avatars.githubusercontent.com/u/11963186?v=4",
"events_url": "https://api.github.com/users/slonik-az/events{/privacy}",
"followers_url": "https://api.github.com/users/slonik-az/followers",
"following_url": "https://api.github.com/users/slonik-az/following{/other_user}",
"gists_url": "https://api.github.com/users/slonik-az/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/slonik-az",
"id": 11963186,
"login": "slonik-az",
"node_id": "MDQ6VXNlcjExOTYzMTg2",
"organizations_url": "https://api.github.com/users/slonik-az/orgs",
"received_events_url": "https://api.github.com/users/slonik-az/received_events",
"repos_url": "https://api.github.com/users/slonik-az/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/slonik-az/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/slonik-az/subscriptions",
"type": "User",
"url": "https://api.github.com/users/slonik-az"
} | []
| closed | false | null | []
| null | 2 | 2015-04-26T23:21:25Z | 2015-04-27T06:03:54Z | 2015-04-27T06:03:54Z | CONTRIBUTOR | null | BUG DESCRIPTION:
length_of_indexer() (defined in pandas/core/indexing.py) returns incorrect result
if (stop-start) is not divisible by step. As a consequence some slice assignments
throw exceptions. Affected panda versions: 0.16.x, 0.15.x, current git master.
HOW TO REPRODUCE:
import pandas as pd
sr= pd.Series([-1]*6) # series with 6 elements indexed from 0 to 5.
sr[0::2]= [0,2,4] # setting even elements works fine!
sr[1::2]= [1,3,5] # setting odd elements results in error:
.../pandas/core/internals.pyc in setitem(self, indexer, value)
568 if is_list_like(value) and l:
569 if len(value) != length_of_indexer(indexer, values):
--> 570 raise ValueError("cannot set using a slice indexer with a "
571 "different length than the value")
572
ValueError: cannot set using a slice indexer with a different length than the value
BUG FIX: I fixed the bug (and created a new test case for it) in my private repo
and will submit a pull request shortly.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9995/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9995/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/9996 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9996/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9996/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9996/events | https://github.com/pandas-dev/pandas/pull/9996 | 71,135,023 | MDExOlB1bGxSZXF1ZXN0MzQxMzIxMTI= | 9,996 | BUGFIX: length_of_indexer() can return incorrect values that break slice assignments | {
"avatar_url": "https://avatars.githubusercontent.com/u/11963186?v=4",
"events_url": "https://api.github.com/users/slonik-az/events{/privacy}",
"followers_url": "https://api.github.com/users/slonik-az/followers",
"following_url": "https://api.github.com/users/slonik-az/following{/other_user}",
"gists_url": "https://api.github.com/users/slonik-az/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/slonik-az",
"id": 11963186,
"login": "slonik-az",
"node_id": "MDQ6VXNlcjExOTYzMTg2",
"organizations_url": "https://api.github.com/users/slonik-az/orgs",
"received_events_url": "https://api.github.com/users/slonik-az/received_events",
"repos_url": "https://api.github.com/users/slonik-az/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/slonik-az/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/slonik-az/subscriptions",
"type": "User",
"url": "https://api.github.com/users/slonik-az"
} | []
| closed | false | null | []
| null | 2 | 2015-04-26T23:24:36Z | 2016-08-08T08:45:04Z | 2015-04-27T06:03:18Z | CONTRIBUTOR | null | ... assignments.
BUG DESCRIPTION:
length_of_indexer() (defined in pandas/core/indexing.py) returns incorrect result
if (stop-start) is not divisible by step. As a consequence some slice assignments
throw exceptions. Affected panda versions: 0.16.x, 0.15.x, current git master.
HOW TO REPRODUCE:
import pandas as pd
sr= pd.Series([-1]*6) # series with 6 elements indexed from 0 to 5.
sr[0::2]= [0,2,4] # setting even elements works fine!
sr[1::2]= [1,3,5] # setting odd elements results in error:
.../pandas/core/internals.pyc in setitem(self, indexer, value)
568 if is_list_like(value) and l:
569 if len(value) != length_of_indexer(indexer, values):
--> 570 raise ValueError("cannot set using a slice indexer with a "
571 "different length than the value")
572
ValueError: cannot set using a slice indexer with a different length than the value
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/9996/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9996/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9996.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9996",
"merged_at": "2015-04-27T06:03:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/9996.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9996"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9997 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9997/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9997/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9997/events | https://github.com/pandas-dev/pandas/pull/9997 | 71,186,528 | MDExOlB1bGxSZXF1ZXN0MzQxNDExMDM= | 9,997 | Descriptive Statististics Example Added_Rahman_Shadman_NE24_Spring2015 | {
"avatar_url": "https://avatars.githubusercontent.com/u/11069079?v=4",
"events_url": "https://api.github.com/users/shadman10/events{/privacy}",
"followers_url": "https://api.github.com/users/shadman10/followers",
"following_url": "https://api.github.com/users/shadman10/following{/other_user}",
"gists_url": "https://api.github.com/users/shadman10/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shadman10",
"id": 11069079,
"login": "shadman10",
"node_id": "MDQ6VXNlcjExMDY5MDc5",
"organizations_url": "https://api.github.com/users/shadman10/orgs",
"received_events_url": "https://api.github.com/users/shadman10/received_events",
"repos_url": "https://api.github.com/users/shadman10/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shadman10/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shadman10/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shadman10"
} | []
| closed | false | null | []
| null | 1 | 2015-04-27T05:48:15Z | 2015-04-27T07:55:41Z | 2015-04-27T07:55:41Z | NONE | null | I added an example of how to compare two sets of data through measures of center and spread and created methods which print out statements and create tables to illustrate 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/9997/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9997/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9997.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9997",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9997.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9997"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9998 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9998/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9998/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9998/events | https://github.com/pandas-dev/pandas/pull/9998 | 71,214,277 | MDExOlB1bGxSZXF1ZXN0MzQxNDc5OTY= | 9,998 | Revised pull request | {
"avatar_url": "https://avatars.githubusercontent.com/u/11069079?v=4",
"events_url": "https://api.github.com/users/shadman10/events{/privacy}",
"followers_url": "https://api.github.com/users/shadman10/followers",
"following_url": "https://api.github.com/users/shadman10/following{/other_user}",
"gists_url": "https://api.github.com/users/shadman10/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shadman10",
"id": 11069079,
"login": "shadman10",
"node_id": "MDQ6VXNlcjExMDY5MDc5",
"organizations_url": "https://api.github.com/users/shadman10/orgs",
"received_events_url": "https://api.github.com/users/shadman10/received_events",
"repos_url": "https://api.github.com/users/shadman10/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shadman10/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shadman10/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shadman10"
} | []
| closed | false | null | []
| null | 1 | 2015-04-27T08:22:57Z | 2015-04-27T12:47:46Z | 2015-04-27T12:47:46Z | NONE | null | Changes have been made to the correct place in the project this 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/9998/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9998/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9998.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9998",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9998.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9998"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/9999 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/9999/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/9999/comments | https://api.github.com/repos/pandas-dev/pandas/issues/9999/events | https://github.com/pandas-dev/pandas/pull/9999 | 71,245,652 | MDExOlB1bGxSZXF1ZXN0MzQxNTY1OTk= | 9,999 | RangeIndex as default index | {
"avatar_url": "https://avatars.githubusercontent.com/u/5834577?v=4",
"events_url": "https://api.github.com/users/ARF1/events{/privacy}",
"followers_url": "https://api.github.com/users/ARF1/followers",
"following_url": "https://api.github.com/users/ARF1/following{/other_user}",
"gists_url": "https://api.github.com/users/ARF1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ARF1",
"id": 5834577,
"login": "ARF1",
"node_id": "MDQ6VXNlcjU4MzQ1Nzc=",
"organizations_url": "https://api.github.com/users/ARF1/orgs",
"received_events_url": "https://api.github.com/users/ARF1/received_events",
"repos_url": "https://api.github.com/users/ARF1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ARF1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ARF1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ARF1"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| null | 6 | 2015-04-27T10:33:10Z | 2015-05-02T13:51:27Z | 2015-05-02T13:51:10Z | NONE | null | WIP on making RangeIndex (#9977) the default 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/9999/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/9999/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/9999.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/9999",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/9999.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/9999"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/10000 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10000/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10000/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10000/events | https://github.com/pandas-dev/pandas/issues/10000 | 71,263,218 | MDU6SXNzdWU3MTI2MzIxOA== | 10,000 | Towards "pandas 1.0" | {
"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"
} | []
| 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"
} | 41 | 2015-04-27T12:05:35Z | 2020-04-03T03:51:45Z | 2020-04-03T03:51:44Z | MEMBER | null | Here's our roadmap document: https://docs.google.com/document/d/151ct8jcZWwh7XStptjbLsda6h2b3C0IuiH_hfZnUA58/edit#
Just because it is a nice round number :-)
Or maybe we can use it to discuss how we imagine a possible pandas 1.0 ..
---
Some clarification (from @shoyer): This is not the place to make new feature requests -- please continue to make separate GitHub issues for those. Almost every new feature can be added without a 1.0 release. If there is a change you think would be _necessary_ to do in pandas 1.0, feel free to reference issues where it is described in more detail.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10000/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10000/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10001 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10001/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10001/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10001/events | https://github.com/pandas-dev/pandas/issues/10001 | 71,385,135 | MDU6SXNzdWU3MTM4NTEzNQ== | 10,001 | pandas.ExcelFile ignore parse_dates=False | {
"avatar_url": "https://avatars.githubusercontent.com/u/2768322?v=4",
"events_url": "https://api.github.com/users/a59/events{/privacy}",
"followers_url": "https://api.github.com/users/a59/followers",
"following_url": "https://api.github.com/users/a59/following{/other_user}",
"gists_url": "https://api.github.com/users/a59/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/a59",
"id": 2768322,
"login": "a59",
"node_id": "MDQ6VXNlcjI3NjgzMjI=",
"organizations_url": "https://api.github.com/users/a59/orgs",
"received_events_url": "https://api.github.com/users/a59/received_events",
"repos_url": "https://api.github.com/users/a59/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/a59/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/a59/subscriptions",
"type": "User",
"url": "https://api.github.com/users/a59"
} | [
{
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 11 | 2015-04-27T19:58:18Z | 2019-12-12T11:58:03Z | 2016-05-06T12:10:40Z | NONE | null | I am trying to read an Excel file which someone else created and the wrongly formatted a column as "date" when it is not. It has a large integer in it, which triggers an error
OverflowError: normalized days too large to fit in a C int
But I have "parse_dates=False" so I thought pandas.ExcelFile would not try to parse the dates and return a string instead. Is this a bug?
| {
"+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/10001/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10001/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/10002 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/10002/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/10002/comments | https://api.github.com/repos/pandas-dev/pandas/issues/10002/events | https://github.com/pandas-dev/pandas/issues/10002 | 71,416,618 | MDU6SXNzdWU3MTQxNjYxOA== | 10,002 | Usage of 'limit' keyword when filling with a value | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2015-05-11T15:46:03Z",
"closed_issues": 237,
"created_at": "2014-10-07T14:39:07Z",
"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.16.0 of course!",
"due_on": "2015-05-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/29",
"id": 816810,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODEw",
"number": 29,
"open_issues": 0,
"state": "closed",
"title": "0.16.1",
"updated_at": "2017-04-16T08:39:48Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29"
} | 1 | 2015-04-27T22:12:26Z | 2015-04-29T22:20:10Z | 2015-04-29T22:20:10Z | MEMBER | null | From SO: http://stackoverflow.com/questions/29906512/pandas-variation-on-filling-nan-whats-an-elegant-and-pythonic-way-to-do-thi/29906743?noredirect=1#29906743
When doing `df.fillna(10, limit=2)` what is `limit=2` doing?
The [docstring](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.fillna.html) says:
> limit : int, default None
> Maximum size gap to forward or backward fill
But this only explains for filling with a method, not for filling with a value.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/10002/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/10002/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.