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/12404 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12404/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12404/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12404/events | https://github.com/pandas-dev/pandas/pull/12404 | 135,172,288 | MDExOlB1bGxSZXF1ZXN0NjAwNzcyMTg= | 12,404 | ENH: allow index to be referenced by name | {
"avatar_url": "https://avatars.githubusercontent.com/u/4441865?v=4",
"events_url": "https://api.github.com/users/hsharrison/events{/privacy}",
"followers_url": "https://api.github.com/users/hsharrison/followers",
"following_url": "https://api.github.com/users/hsharrison/following{/other_user}",
"gists_url": "https://api.github.com/users/hsharrison/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hsharrison",
"id": 4441865,
"login": "hsharrison",
"node_id": "MDQ6VXNlcjQ0NDE4NjU=",
"organizations_url": "https://api.github.com/users/hsharrison/orgs",
"received_events_url": "https://api.github.com/users/hsharrison/received_events",
"repos_url": "https://api.github.com/users/hsharrison/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hsharrison/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hsharrison/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hsharrison"
} | [
{
"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": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| null | 12 | 2016-02-21T07:16:43Z | 2016-05-07T20:42:54Z | 2016-05-07T17:45:31Z | NONE | null | - [x] closes #8162 and #10816
- [x] tests added
- [x] tests passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Still missing are groupby support (#5677) and `.loc` support.
Also, I wasn't sure if this deserves more than just a line in whatsnew, so I kept it small for now.
With a standard index:
```
idx = pd.Index(list('abc'), name='idx')
df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]}, index=idx)
df['idx']
Out[4]:
idx
a a
b b
c c
Name: idx, dtype: object
df.idx
Out[5]:
idx
a a
b b
c c
Name: idx, dtype: object
df[['idx', 'B']]
Out[6]:
idx B
idx
a a 4
b b 5
c c 6
```
and with a MultiIndex:
```
idx = pd.MultiIndex.from_product([list('abc'), list('fg')], names=['lev0', 'lev1'])
df = pd.DataFrame({'A': range(6), 'B': range(10, 16)}, index=idx)
df['lev0']
Out[9]:
lev0 lev1
a f a
g a
b f b
g b
c f c
g c
Name: lev0, dtype: object
df.lev0
Out[10]:
lev0 lev1
a f a
g a
b f b
g b
c f c
g c
Name: lev0, dtype: object
df[['A', 'lev1']]
Out[11]:
A lev1
lev0 lev1
a f 0 f
g 1 g
b f 2 f
g 3 g
c f 4 f
g 5 g
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12404/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12404/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12404.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12404",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12404.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12404"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12405 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12405/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12405/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12405/events | https://github.com/pandas-dev/pandas/issues/12405 | 135,190,247 | MDU6SXNzdWUxMzUxOTAyNDc= | 12,405 | BUG: plotting with DatetimeIndex containing NaT | {
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 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 | 2016-02-21T10:53:14Z | 2017-05-20T21:59:19Z | 2017-05-20T21:59:19Z | MEMBER | null | xref #8914
```
In [1]: %matplotlib
Using matplotlib backend: Qt4Agg
In [2]: df = pd.DataFrame({'date': pd.date_range('2016-01-01', periods=5), 'vals
': range(5)})
In [3]: df.loc[2, 'date'] = np.nan
In [4]: s = df.set_index('date')['vals']
In [5]: s
Out[5]:
date
2016-01-01 0
2016-01-02 1
NaT 2
2016-01-04 3
2016-01-05 4
Name: vals, dtype: int64
In [6]: ax = s.plot()
In [11]: ax.get_lines()[0].get_data()
Out[11]:
(array([datetime.datetime(2016, 1, 1, 0, 0),
datetime.datetime(2016, 1, 2, 0, 0),
datetime.datetime(2016, 1, 4, 0, 0),
datetime.datetime(2016, 1, 5, 0, 0), NaT], dtype=object),
array([0, 1, 3, 4, 2], dtype=int64))
In [44]: ax.get_lines()[0].get_xydata()
Out[44]:
array([[ 7.35964000e+05, 0.00000000e+00],
[ 7.35965000e+05, 1.00000000e+00],
[ 7.35967000e+05, 3.00000000e+00],
[ 7.35968000e+05, 4.00000000e+00],
[ 6.12411009e+05, 2.00000000e+00]])
```
So this gives you a plot with one of the values in the year 1677, September 22, so the minimum possible Timestamp.
This is of course not correct, but there are two things:
- NaT gets converted to `Timestamp.min`
- the order of the values is changed, as the NaT is put at the end
There is a related issue about `plt.plot(pd.NaT)` erroring (https://github.com/pydata/pandas/issues/9253), but in this case it is pandas code that gives wrong results, so we have more control over this. I find it also strange that this does not error as in the pd.NaT case, but converts the NaT to Timestamp.min (but didn't look into 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/12405/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12405/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12406 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12406/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12406/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12406/events | https://github.com/pandas-dev/pandas/issues/12406 | 135,216,924 | MDU6SXNzdWUxMzUyMTY5MjQ= | 12,406 | COMPAT: numpy master changes, floordiv & getitem(nan) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 0 | 2016-02-21T15:17:47Z | 2016-02-22T16:44:03Z | 2016-02-22T16:44:03Z | CONTRIBUTOR | null | ERROR: type should be string, got "https://travis-ci.org/pydata/pandas/jobs/110280302\n\nThese indicate an indexing change with `nan` that now returns `TypeError` rather than `IndexError`, ok makes sense\n\n```\n======================================================================\nERROR: test_range_slice_day (pandas.tseries.tests.test_period.TestPeriodIndex)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/Users/jreback/miniconda/envs/numpy_dev/pandas/pandas/tseries/tests/test_period.py\", line 2589, in test_range_slice_day\n idx[v:]\n File \"/Users/jreback/miniconda/envs/numpy_dev/pandas/pandas/tseries/base.py\", line 175, in __getitem__\n result = getitem(key)\nTypeError: slice indices must be integers or None or have an __index__ method\n\n======================================================================\nERROR: test_range_slice_seconds (pandas.tseries.tests.test_period.TestPeriodIndex)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/Users/jreback/miniconda/envs/numpy_dev/pandas/pandas/tseries/tests/test_period.py\", line 2643, in test_range_slice_seconds\n idx[v:]\n File \"/Users/jreback/miniconda/envs/numpy_dev/pandas/pandas/tseries/base.py\", line 175, in __getitem__\n result = getitem(key)\nTypeError: slice indices must be integers or None or have an __index__ method\n```\n\nSo our comparison in this test changed. So we need to make this change for 0.18.0 as well [here](https://github.com/pydata/pandas/blob/master/pandas/src/sparse.pyx#L1002), where these should be `NaN` and not `inf`.\n\n```\nSo numpy now returns:\nIn [1]: np.__version__\nOut[1]: '1.12.0.dev0+7d4d26a'\n\nIn [3]: np.array([3])//np.array([0],dtype='float64')\nOut[3]: array([ nan])\n\nIn [2]: np.float64(3)//np.float64(0)\nOut[2]: nan\n\nIn [3]: np.__version__\nOut[3]: '1.10.4'\n\nIn [4]: np.float64(3)//np.float64(0)\nOut[4]: inf\n\nIn [7]: np.array([3])//np.array([0],dtype='float64')\nOut[7]: array([ inf])\n```\n\n```\n======================================================================\nFAIL: test_sparse_series_ops (pandas.sparse.tests.test_sparse.TestSparseDataFrame)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/Users/jreback/miniconda/envs/numpy_dev/pandas/pandas/sparse/tests/test_sparse.py\", line 1151, in test_sparse_series_ops\n self._check_frame_ops(self.frame)\n File \"/Users/jreback/miniconda/envs/numpy_dev/pandas/pandas/sparse/tests/test_sparse.py\", line 1221, in _check_frame_ops\n _compare_to_dense(frame, s, frame.to_dense(), s.to_dense(), f)\n File \"/Users/jreback/miniconda/envs/numpy_dev/pandas/pandas/sparse/tests/test_sparse.py\", line 1194, in _compare_to_dense\n exact_indices=False)\n File \"/Users/jreback/miniconda/envs/numpy_dev/pandas/pandas/sparse/tests/test_sparse.py\", line 95, in assert_sp_frame_equal\n assert_series_equal(series.to_dense(), right[col].to_dense())\n File \"/Users/jreback/miniconda/envs/numpy_dev/pandas/pandas/util/testing.py\", line 999, in assert_series_equal\n check_less_precise, obj='{0}'.format(obj))\n File \"testing.pyx\", line 58, in pandas._testing.assert_almost_equal (pandas/src/testing.c:3254)\n File \"testing.pyx\", line 147, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2395)\n File \"/Users/jreback/miniconda/envs/numpy_dev/pandas/pandas/util/testing.py\", line 867, in raise_assert_detail\n raise AssertionError(msg)\nAssertionError: Series are different\n\nSeries values are different (10.0 %)\n[left]: [nan, nan, nan, inf, 4.0, 2.0, 2.0, 1.0, 1.0, 1.0]\n[right]: [nan, nan, nan, nan, 4.0, 2.0, 2.0, 1.0, 1.0, 1.0]\n```\n" | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12406/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12406/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12407 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12407/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12407/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12407/events | https://github.com/pandas-dev/pandas/pull/12407 | 135,224,037 | MDExOlB1bGxSZXF1ZXN0NjAwOTMxNzk= | 12,407 | Doc fix for sas7bdat | {
"avatar_url": "https://avatars.githubusercontent.com/u/2666691?v=4",
"events_url": "https://api.github.com/users/kshedden/events{/privacy}",
"followers_url": "https://api.github.com/users/kshedden/followers",
"following_url": "https://api.github.com/users/kshedden/following{/other_user}",
"gists_url": "https://api.github.com/users/kshedden/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kshedden",
"id": 2666691,
"login": "kshedden",
"node_id": "MDQ6VXNlcjI2NjY2OTE=",
"organizations_url": "https://api.github.com/users/kshedden/orgs",
"received_events_url": "https://api.github.com/users/kshedden/received_events",
"repos_url": "https://api.github.com/users/kshedden/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kshedden/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kshedden/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kshedden"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-02-21T16:20:54Z | 2016-02-22T11:18:41Z | 2016-02-22T11:18:32Z | CONTRIBUTOR | null | Minor doc fixes following merge of PR #12015.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12407/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12407/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12407.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12407",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12407.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12407"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12408 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12408/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12408/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12408/events | https://github.com/pandas-dev/pandas/issues/12408 | 135,234,059 | MDU6SXNzdWUxMzUyMzQwNTk= | 12,408 | index_col result is unexpected when usecols is used to skip a column | {
"avatar_url": "https://avatars.githubusercontent.com/u/8209940?v=4",
"events_url": "https://api.github.com/users/VelizarVESSELINOV/events{/privacy}",
"followers_url": "https://api.github.com/users/VelizarVESSELINOV/followers",
"following_url": "https://api.github.com/users/VelizarVESSELINOV/following{/other_user}",
"gists_url": "https://api.github.com/users/VelizarVESSELINOV/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/VelizarVESSELINOV",
"id": 8209940,
"login": "VelizarVESSELINOV",
"node_id": "MDQ6VXNlcjgyMDk5NDA=",
"organizations_url": "https://api.github.com/users/VelizarVESSELINOV/orgs",
"received_events_url": "https://api.github.com/users/VelizarVESSELINOV/received_events",
"repos_url": "https://api.github.com/users/VelizarVESSELINOV/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/VelizarVESSELINOV/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VelizarVESSELINOV/subscriptions",
"type": "User",
"url": "https://api.github.com/users/VelizarVESSELINOV"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"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 | []
| null | 1 | 2016-02-21T17:46:54Z | 2016-02-22T14:13:15Z | 2016-02-22T14:13:15Z | NONE | null | #### Code Sample, a copy-pastable example if possible
``` python
"""Example of Pandas bug."""
from pandas import read_csv
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
csv = """A, B, C
1, 2, 3"""
def message(msg):
"""Print message."""
msg_len = len(msg) + 2
print('-' * msg_len + '\n {}\n'.format(msg) + '-' * msg_len)
message('raw file')
print(csv)
df = read_csv(StringIO(csv), names=['A', 'B', 'C'], skiprows=1, header=None,
usecols=['B', 'C'])
message('expected result after skiping column A')
print(df)
df = read_csv(StringIO(csv), names=['A', 'B', 'C'], skiprows=1, header=None,
usecols=['B', 'C'], index_col='B')
message('not expected result, if use index with column B')
print(df)
```
#### Expected Output
Current output:
```
----------
raw file
----------
A, B, C
1, 2, 3
----------------------------------------
expected result after skiping column A
----------------------------------------
B C
0 2 3
-------------------------------------------------
not expected result, if use index with column B
-------------------------------------------------
B
B
3 2
```
Expected output:
```
----------
raw file
----------
A, B, C
1, 2, 3
----------------------------------------
expected result after skiping column A
----------------------------------------
B C
0 2 3
-------------------------------------------------
not expected result, if use index with column B
-------------------------------------------------
C
B
2 3
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: None
pip: 7.1.2
setuptools: 18.3.2
Cython: None
numpy: 1.10.1
scipy: 0.16.1
statsmodels: None
IPython: 4.0.1
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: 2.3.2
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: 2.8
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12408/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12408/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12409 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12409/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12409/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12409/events | https://github.com/pandas-dev/pandas/issues/12409 | 135,242,027 | MDU6SXNzdWUxMzUyNDIwMjc= | 12,409 | date_range breaks with tz-aware start/end dates and closed intervals in 0.18.0.rc1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/12200702?v=4",
"events_url": "https://api.github.com/users/multiloc/events{/privacy}",
"followers_url": "https://api.github.com/users/multiloc/followers",
"following_url": "https://api.github.com/users/multiloc/following{/other_user}",
"gists_url": "https://api.github.com/users/multiloc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/multiloc",
"id": 12200702,
"login": "multiloc",
"node_id": "MDQ6VXNlcjEyMjAwNzAy",
"organizations_url": "https://api.github.com/users/multiloc/orgs",
"received_events_url": "https://api.github.com/users/multiloc/received_events",
"repos_url": "https://api.github.com/users/multiloc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/multiloc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/multiloc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/multiloc"
} | [
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-02-21T18:51:05Z | 2016-02-23T14:54:21Z | 2016-02-23T14:54:21Z | CONTRIBUTOR | null | The following works on 0.17.1 but breaks on the release candidate 0.18.0.rc1
```
>>> import pandas as pd
>>> pd.date_range(start=pd.Timestamp('20150101', tz='UTC'), end=pd.Timestamp('20150105', tz='UTC'), closed='left')
DatetimeIndex(['2015-01-01', '2015-01-02', '2015-01-03', '2015-01-04'], dtype='datetime64[ns, UTC]', freq='D')
```
On 0.18.0.rc1:
```
In [2]: pd.date_range(start=pd.Timestamp('20150101', tz='UTC'), end=pd.Timestamp('20150105', tz='UTC'), closed='left')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-b04844565a59> in <module>()
----> 1 pd.date_range(start=pd.Timestamp('20150101', tz='UTC'), end=pd.Timestamp('20150105', tz='UTC'), closed='left')
/.../pandas/tseries/index.py in date_range(start, end, periods, freq, tz, normalize, name, closed, **kwargs)
2033 return DatetimeIndex(start=start, end=end, periods=periods,
2034 freq=freq, tz=tz, normalize=normalize, name=name,
-> 2035 closed=closed, **kwargs)
2036
2037
/.../pandas/util/decorators.py in wrapper(*args, **kwargs)
89 else:
90 kwargs[new_arg_name] = new_arg_value
---> 91 return func(*args, **kwargs)
92 return wrapper
93 return _deprecate_kwarg
/.../pandas/tseries/index.py in __new__(cls, data, freq, start, end, periods, copy, name, tz, verify_integrity, normalize, closed, ambiguous, dtype, **kwargs)
259 return cls._generate(start, end, periods, name, freq,
260 tz=tz, normalize=normalize, closed=closed,
--> 261 ambiguous=ambiguous)
262
263 if not isinstance(data, (np.ndarray, Index, ABCSeries)):
/.../pandas/tseries/index.py in _generate(cls, start, end, periods, name, offset, tz, normalize, ambiguous, closed)
532 if not left_closed and len(index) and index[0] == start:
533 index = index[1:]
--> 534 if not right_closed and len(index) and index[-1] == end:
535 index = index[:-1]
536
/.../pandas/tslib.pyx in pandas.tslib._Timestamp.__richcmp__ (pandas/tslib.c:18791)()
975 (type(self).__name__, type(other).__name__))
976
--> 977 self._assert_tzawareness_compat(other)
978 return _cmp_scalar(self.value, ots.value, op)
979
/.../pandas/tslib.pyx in pandas.tslib._Timestamp._assert_tzawareness_compat (pandas/tslib.c:19145)()
1007 'timestamps')
1008 elif other.tzinfo is None:
-> 1009 raise TypeError('Cannot compare tz-naive and tz-aware timestamps')
1010
1011 cpdef datetime to_datetime(_Timestamp self):
TypeError: Cannot compare tz-naive and tz-aware timestamps
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12409/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12409/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12410 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12410/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12410/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12410/events | https://github.com/pandas-dev/pandas/pull/12410 | 135,249,211 | MDExOlB1bGxSZXF1ZXN0NjAxMDEyMzE= | 12,410 | BUG: date_range breaks with tz-aware start/end dates and closed intervals #12409 | {
"avatar_url": "https://avatars.githubusercontent.com/u/12200702?v=4",
"events_url": "https://api.github.com/users/multiloc/events{/privacy}",
"followers_url": "https://api.github.com/users/multiloc/followers",
"following_url": "https://api.github.com/users/multiloc/following{/other_user}",
"gists_url": "https://api.github.com/users/multiloc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/multiloc",
"id": 12200702,
"login": "multiloc",
"node_id": "MDQ6VXNlcjEyMjAwNzAy",
"organizations_url": "https://api.github.com/users/multiloc/orgs",
"received_events_url": "https://api.github.com/users/multiloc/received_events",
"repos_url": "https://api.github.com/users/multiloc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/multiloc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/multiloc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/multiloc"
} | [
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 9 | 2016-02-21T19:51:40Z | 2016-02-23T14:54:21Z | 2016-02-23T14:54:21Z | CONTRIBUTOR | null | - [X] closes #12409
- [X] tests added / passed
- [X] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry - not added since this fixes a pre-release bug
do comparison for closed intervals on UTC basis prior to tz conversion
added tests for date_range covering case of tz-aware start/end dates with closed ranges
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12410/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12410/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12410.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12410",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12410.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12410"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12411 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12411/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12411/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12411/events | https://github.com/pandas-dev/pandas/issues/12411 | 135,293,024 | MDU6SXNzdWUxMzUyOTMwMjQ= | 12,411 | Unexpected output using brackets vs. parents in dataframe.loc | {
"avatar_url": "https://avatars.githubusercontent.com/u/1252925?v=4",
"events_url": "https://api.github.com/users/AbeHandler/events{/privacy}",
"followers_url": "https://api.github.com/users/AbeHandler/followers",
"following_url": "https://api.github.com/users/AbeHandler/following{/other_user}",
"gists_url": "https://api.github.com/users/AbeHandler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AbeHandler",
"id": 1252925,
"login": "AbeHandler",
"node_id": "MDQ6VXNlcjEyNTI5MjU=",
"organizations_url": "https://api.github.com/users/AbeHandler/orgs",
"received_events_url": "https://api.github.com/users/AbeHandler/received_events",
"repos_url": "https://api.github.com/users/AbeHandler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AbeHandler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AbeHandler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AbeHandler"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
]
| 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"
} | 16 | 2016-02-22T02:13:44Z | 2016-03-23T17:56:45Z | 2016-03-23T17:56:45Z | NONE | null | I have a dataframe, `a_dataframe`. I want to access the value at index=a, column=0. I can do this successfully with `a_dataframe.loc["a", "0"]`. However, `a_dataframe.loc("a", "0")` returns an object! Note: parens, no brackets.
I am new to Pandas, so this was very unexpected behavior in the API. I would think the API should throw an exception or issue a warning. This is a very, very subtle difference in syntax and I think it makes it very easy for new users to get confused.
#### Code Sample, a copy-pastable example if possible
```
`self.assertEqual(a_dataframe.loc["a", "0"], a_dataframe.loc("a", "0"))`
```
#### Expected Output
true
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.2
nose: 1.3.7
Cython: 0.23.2
numpy: 1.8.0rc1
scipy: 0.13.0b1
statsmodels: 0.6.1
IPython: 4.0.0
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.2
pytz: 2013.7
bottleneck: None
tables: None
numexpr: 2.4.6
matplotlib: 1.3.1
openpyxl: 2.2.0-b1
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: 3.5.0
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.8
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12411/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12411/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12412 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12412/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12412/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12412/events | https://github.com/pandas-dev/pandas/issues/12412 | 135,297,217 | MDU6SXNzdWUxMzUyOTcyMTc= | 12,412 | Add type stub files to python's typeshed | {
"avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4",
"events_url": "https://api.github.com/users/max-sixty/events{/privacy}",
"followers_url": "https://api.github.com/users/max-sixty/followers",
"following_url": "https://api.github.com/users/max-sixty/following{/other_user}",
"gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/max-sixty",
"id": 5635139,
"login": "max-sixty",
"node_id": "MDQ6VXNlcjU2MzUxMzk=",
"organizations_url": "https://api.github.com/users/max-sixty/orgs",
"received_events_url": "https://api.github.com/users/max-sixty/received_events",
"repos_url": "https://api.github.com/users/max-sixty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/max-sixty"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"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": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
]
| closed | false | null | []
| null | 21 | 2016-02-22T02:41:47Z | 2020-05-18T17:09:57Z | 2020-05-18T17:09:56Z | CONTRIBUTOR | null | Same issue as xarray: https://github.com/pydata/xarray/issues/771, resolved with https://github.com/pydata/xarray/pull/773.
OK to do the same to `NDFrame`?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12412/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12412/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12413 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12413/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12413/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12413/events | https://github.com/pandas-dev/pandas/pull/12413 | 135,333,837 | MDExOlB1bGxSZXF1ZXN0NjAxMzE5MTk= | 12,413 | BUG: Matched SearchedSorted Signature with NumPy's | {
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 55 | 2016-02-22T06:50:35Z | 2016-03-17T23:54:43Z | 2016-03-17T23:46:50Z | MEMBER | null | Title is self-explanatory. Closes #12238.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12413/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12413/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12413.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12413",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12413.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12413"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12414 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12414/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12414/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12414/events | https://github.com/pandas-dev/pandas/pull/12414 | 135,337,727 | MDExOlB1bGxSZXF1ZXN0NjAxMzM2NjA= | 12,414 | MAINT: More informative TypeError for IndexEngine.get_loc | {
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 24 | 2016-02-22T07:14:23Z | 2016-02-24T03:21:50Z | 2016-02-24T00:05:40Z | MEMBER | null | Title is self-explanatory. Closes #12218.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12414/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12414/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12414.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12414",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12414.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12414"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12415 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12415/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12415/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12415/events | https://github.com/pandas-dev/pandas/issues/12415 | 135,349,222 | MDU6SXNzdWUxMzUzNDkyMjI= | 12,415 | DataFrame.apply behaves inconsistently when a list returned by the function | {
"avatar_url": "https://avatars.githubusercontent.com/u/1593648?v=4",
"events_url": "https://api.github.com/users/pkch/events{/privacy}",
"followers_url": "https://api.github.com/users/pkch/followers",
"following_url": "https://api.github.com/users/pkch/following{/other_user}",
"gists_url": "https://api.github.com/users/pkch/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pkch",
"id": 1593648,
"login": "pkch",
"node_id": "MDQ6VXNlcjE1OTM2NDg=",
"organizations_url": "https://api.github.com/users/pkch/orgs",
"received_events_url": "https://api.github.com/users/pkch/received_events",
"repos_url": "https://api.github.com/users/pkch/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pkch/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkch/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pkch"
} | [
{
"color": "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 | 3 | 2016-02-22T08:25:30Z | 2016-02-22T21:04:31Z | 2016-02-22T14:10:17Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```
import pandas as pd
df = pd.DataFrame({'a':[1,2,3], 'b':[4,5,6]})
assert type(df.apply(lambda column: [1,2])) == pd.Series
assert type(df.apply(lambda column: [1,2,3])) == pd.DataFrame
# when list length matches the relevant df size, the result is DF; otherwise, a Series of lists
```
#### Expected Output
This behavior is not documented, but more importantly it's really dangerous. A slight change in the inputs may cause a really hard-to-track bug. I think only two alternatives are safe:
1) When the function in `apply` returns a list, the result should always be a Series of lists.
2) When the function in `apply` returns a list with the correct size, the result should be a DataFrame; otherwise, an error should be raised.
Approach 2) is obviously too restrictive, so I'd recommend approach 1).
On a related note, it would be nice to be able to explicitly tell `apply` whether I want a Series of lists or a DF as a result.
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.0.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 70 Stepping 1, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.0
nose: None
pip: 8.0.2
setuptools: 18.2
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.16.0
statsmodels: None
IPython: 4.0.0
sphinx: None
patsy: 0.4.1
dateutil: 2.4.2
pytz: 2015.6
blosc: None
bottleneck: None
tables: None
numexpr: 2.5
matplotlib: 1.5.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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12415/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12415/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12416 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12416/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12416/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12416/events | https://github.com/pandas-dev/pandas/issues/12416 | 135,385,662 | MDU6SXNzdWUxMzUzODU2NjI= | 12,416 | Wrong behaviour/error when indexing MultiIndex with list | {
"avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4",
"events_url": "https://api.github.com/users/toobaz/events{/privacy}",
"followers_url": "https://api.github.com/users/toobaz/followers",
"following_url": "https://api.github.com/users/toobaz/following{/other_user}",
"gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/toobaz",
"id": 1224492,
"login": "toobaz",
"node_id": "MDQ6VXNlcjEyMjQ0OTI=",
"organizations_url": "https://api.github.com/users/toobaz/orgs",
"received_events_url": "https://api.github.com/users/toobaz/received_events",
"repos_url": "https://api.github.com/users/toobaz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toobaz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/toobaz"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| {
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
} | 12 | 2016-02-22T11:04:17Z | 2017-04-17T20:44:25Z | 2017-04-17T20:44:25Z | MEMBER | null | ```
In [2]: df = pd.DataFrame(index=range(2), columns=pd.MultiIndex.from_product([[10,20], ['a', 'b']]))
In [3]: df[[20]]
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-3-8422ebb3f356> in <module>()
----> 1 df[[20]]
/home/pietro/nobackup/repo/pandas/pandas/core/frame.pyc in __getitem__(self, key)
1975 if isinstance(key, (Series, np.ndarray, Index, list)):
1976 # either boolean or fancy integer index
-> 1977 return self._getitem_array(key)
1978 elif isinstance(key, DataFrame):
1979 return self._getitem_frame(key)
/home/pietro/nobackup/repo/pandas/pandas/core/frame.pyc in _getitem_array(self, key)
2020 else:
2021 indexer = self.ix._convert_to_indexer(key, axis=1)
-> 2022 return self.take(indexer, axis=1, convert=True)
2023
2024 def _getitem_multilevel(self, key):
/home/pietro/nobackup/repo/pandas/pandas/core/generic.pyc in take(self, indices, axis, convert, is_copy)
1590 new_data = self._data.take(indices,
1591 axis=self._get_block_manager_axis(axis),
-> 1592 convert=True, verify=True)
1593 result = self._constructor(new_data).__finalize__(self)
1594
/home/pietro/nobackup/repo/pandas/pandas/core/internals.pyc in take(self, indexer, axis, verify, convert)
3617 n = self.shape[axis]
3618 if convert:
-> 3619 indexer = maybe_convert_indices(indexer, n)
3620
3621 if verify:
/home/pietro/nobackup/repo/pandas/pandas/core/indexing.pyc in maybe_convert_indices(indices, n)
1803 mask = (indices >= n) | (indices < 0)
1804 if mask.any():
-> 1805 raise IndexError("indices are out-of-bounds")
1806 return indices
1807
IndexError: indices are out-of-bounds
```
and
```
In [4]: df[[1]]
Out[4]:
10
b
0 NaN
1 NaN
```
should both raise `KeyError` (see https://github.com/pydata/pandas/issues/12369#issuecomment-187065056 )
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12416/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12416/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12417 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12417/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12417/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12417/events | https://github.com/pandas-dev/pandas/pull/12417 | 135,387,136 | MDExOlB1bGxSZXF1ZXN0NjAxNTczNzQ= | 12,417 | ENH decimal parameter to to_latex and to_html, #12031 | {
"avatar_url": "https://avatars.githubusercontent.com/u/9929982?v=4",
"events_url": "https://api.github.com/users/nbonnotte/events{/privacy}",
"followers_url": "https://api.github.com/users/nbonnotte/followers",
"following_url": "https://api.github.com/users/nbonnotte/following{/other_user}",
"gists_url": "https://api.github.com/users/nbonnotte/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nbonnotte",
"id": 9929982,
"login": "nbonnotte",
"node_id": "MDQ6VXNlcjk5Mjk5ODI=",
"organizations_url": "https://api.github.com/users/nbonnotte/orgs",
"received_events_url": "https://api.github.com/users/nbonnotte/received_events",
"repos_url": "https://api.github.com/users/nbonnotte/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nbonnotte/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nbonnotte/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nbonnotte"
} | [
{
"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": "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": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "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"
},
{
"color": "006b75",
"default": false,
"description": "to_latex",
"id": 251382258,
"name": "IO LaTeX",
"node_id": "MDU6TGFiZWwyNTEzODIyNTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-02-22T11:12:07Z | 2016-02-23T19:29:43Z | 2016-02-23T18:50:26Z | CONTRIBUTOR | null | - [x] closes #12031
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
I just pass on the `decimal` parameter. All the machinery was already in place.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12417/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12417/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12417.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12417",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12417.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12417"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12418 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12418/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12418/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12418/events | https://github.com/pandas-dev/pandas/pull/12418 | 135,421,886 | MDExOlB1bGxSZXF1ZXN0NjAxNzQ5NzA= | 12,418 | COMPAT: fixes for numpy compat | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 0 | 2016-02-22T13:47:14Z | 2016-02-22T16:44:03Z | 2016-02-22T16:44:03Z | CONTRIBUTOR | null | test_period and slicing exception with nan
compat in sparse for floordiv with 0, now returns NaN rather than inf
closes #12406
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12418/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12418/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12418.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12418",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12418.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12418"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12419 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12419/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12419/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12419/events | https://github.com/pandas-dev/pandas/pull/12419 | 135,439,141 | MDExOlB1bGxSZXF1ZXN0NjAxODMwNjE= | 12,419 | DOC: xray -> xarray | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-02-22T14:45:12Z | 2016-02-22T17:04:02Z | 2016-02-22T16:44:53Z | MEMBER | null | @shoyer just came across this in the docs. These should be the only (remaining) mentions of xray
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12419/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12419/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12419.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12419",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12419.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12419"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12420 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12420/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12420/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12420/events | https://github.com/pandas-dev/pandas/issues/12420 | 135,502,583 | MDU6SXNzdWUxMzU1MDI1ODM= | 12,420 | BUG: Simultaneous access to different DataFrame instances by different threads should be safe | {
"avatar_url": "https://avatars.githubusercontent.com/u/16898718?v=4",
"events_url": "https://api.github.com/users/ptomask/events{/privacy}",
"followers_url": "https://api.github.com/users/ptomask/followers",
"following_url": "https://api.github.com/users/ptomask/following{/other_user}",
"gists_url": "https://api.github.com/users/ptomask/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ptomask",
"id": 16898718,
"login": "ptomask",
"node_id": "MDQ6VXNlcjE2ODk4NzE4",
"organizations_url": "https://api.github.com/users/ptomask/orgs",
"received_events_url": "https://api.github.com/users/ptomask/received_events",
"repos_url": "https://api.github.com/users/ptomask/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ptomask/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ptomask/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ptomask"
} | [
{
"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": "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 | 3 | 2016-02-22T18:34:20Z | 2016-02-23T10:25:36Z | 2016-02-22T18:54:18Z | NONE | null | I need to perform computations in Pandas in multiple threads. None of the dataframes are shared across running threads. Although there is some race condition witch causes the interpreter to crash.
I Googled for help and [found this](http://stackoverflow.com/questions/25782912/pandas-and-numpy-thread-safety).
The snippet included in that stackoverflow discussion is definitely crashing my interpreter, so I insert it below as a bug reproduction.
I am aware of Pandas not being thread-safe, but thread-safety feature mostly considers the case of accessing the same object instance by more threads. Threads in the snippet below, however, have all their own DataFrame instance, so the thread safety at least theoretically should not be needed.
#### Code Sample, a copy-pastable example if possible
```
import threading
import pandas as pd
import numpy as np
def let_crash(crash=True):
t = 0.02 * np.arange(100000) # ok con 10000
data = pd.DataFrame({'t': t})
if crash:
data['t'] * 1.5 # CRASH
else:
data['t'].values * 1.5 # THIS IS OK!
if __name__ == '__main__':
threads = []
for i in range(100):
if True: # asynchronous
t = threading.Thread(target=let_crash, args = ())
t.daemon = True
t.start()
threads.append(t)
else: # synchronous
let_crash()
for t in threads:
t.join()
```
#### Expected Output
The code should just finish without the interpreter dying by access violation error.
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 32
OS: Windows
OS-release: 8
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.16.2
nose: 1.3.7
Cython: 0.22.1
numpy: 1.9.2
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 2.4.1
sphinx: 1.3.2
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.4
bottleneck: 1.0.0
tables: 3.2.0
numexpr: 2.4.3
matplotlib: 1.4.3
openpyxl: 2.2.4
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: None
lxml: 3.4.4
bs4: 4.3.2
html5lib: 0.99999
httplib2: None
apiclient: None
sqlalchemy: 1.0.6
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext)
#### Windows error message
The error message changes occassionally, I included two versions below. Also I am translating from Czech Windows version so the original English field names probably vary.
```
Problem description:
Problem event name: APPCRASH
Application name: python.exe
Application version: 0.0.0.0
Application timestamp: 5560ad83
Name of errorneous module: python27.dll
Version of errorneous module: 2.7.10150.1013
Timestamp of errorneous module: 5560ad81
Exception code: c0000005
Exception shift: 000ae4a9
Operating system version: 6.3.9600.2.0.0.768.101
National environment ID: 1029
Further info 1: 5861
Further info 2: 5861822e1919d7c014bbb064c64908b2
Further info 3: 1318
Further into 4: 13181ae637ac2592fac0ca2dd662cdcc
```
```
Problem description:
Problem event name: APPCRASH
Application name: python.exe
Application version: 0.0.0.0
Application timestamp: 5560ad83
Name of errorneous module: interpreter.pyd
Version of errorneous module: 0.0.0.0
Timestamp of errorneous module: 5543308a
Exception code: c0000005
Exception shift: 00007e6c
Operating system version: 6.3.9600.2.0.0.768.101
National environment ID: 1029
Further info 1: 5861
Further info 2: 5861822e1919d7c014bbb064c64908b2
Further info 3: 1318
Further info 4: 13181ae637ac2592fac0ca2dd662cdcc
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12420/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12420/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12421 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12421/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12421/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12421/events | https://github.com/pandas-dev/pandas/pull/12421 | 135,505,877 | MDExOlB1bGxSZXF1ZXN0NjAyMjA3Mzg= | 12,421 | Notes about unique vs cat.categories #12278 | {
"avatar_url": "https://avatars.githubusercontent.com/u/6677779?v=4",
"events_url": "https://api.github.com/users/Dorozhko-Anton/events{/privacy}",
"followers_url": "https://api.github.com/users/Dorozhko-Anton/followers",
"following_url": "https://api.github.com/users/Dorozhko-Anton/following{/other_user}",
"gists_url": "https://api.github.com/users/Dorozhko-Anton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dorozhko-Anton",
"id": 6677779,
"login": "Dorozhko-Anton",
"node_id": "MDQ6VXNlcjY2Nzc3Nzk=",
"organizations_url": "https://api.github.com/users/Dorozhko-Anton/orgs",
"received_events_url": "https://api.github.com/users/Dorozhko-Anton/received_events",
"repos_url": "https://api.github.com/users/Dorozhko-Anton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dorozhko-Anton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dorozhko-Anton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dorozhko-Anton"
} | [
{
"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": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-02-22T18:48:30Z | 2016-02-23T14:57:23Z | 2016-02-23T14:57:16Z | CONTRIBUTOR | null | - [x] closes #12278
- [ ] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] adding notes about .unique() and .cat.categories (as suggested in [#12278 (comment)](https://github.com/pydata/pandas/issues/12278#issuecomment-182445522))
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12421/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12421/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12421.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12421",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12421.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12421"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12422 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12422/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12422/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12422/events | https://github.com/pandas-dev/pandas/issues/12422 | 135,611,454 | MDU6SXNzdWUxMzU2MTE0NTQ= | 12,422 | ix bug? | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2016-02-23T02:36:59Z | 2016-11-11T11:38:14Z | 2016-11-11T11:38:02Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```
dat_train, dat_test = train_test_split(dat, test_size=0.3, random_state=110)
dat_train[features] = dat_train[features].values # SettingWithCopyWarning
dat[features] = dat[features].values # right
dat_train = dat_train.ix[dat_train.index]
dat_train[features] = dat_train[features].values # right !
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.2
setuptools: 19.6.2
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
IPython: 4.0.3
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.6
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.5.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
Jinja2: 2.8
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12422/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12422/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12423 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12423/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12423/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12423/events | https://github.com/pandas-dev/pandas/issues/12423 | 135,627,865 | MDU6SXNzdWUxMzU2Mjc4NjU= | 12,423 | Abbreviate MultiIndex representation | {
"avatar_url": "https://avatars.githubusercontent.com/u/5447842?v=4",
"events_url": "https://api.github.com/users/tdoughty1/events{/privacy}",
"followers_url": "https://api.github.com/users/tdoughty1/followers",
"following_url": "https://api.github.com/users/tdoughty1/following{/other_user}",
"gists_url": "https://api.github.com/users/tdoughty1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tdoughty1",
"id": 5447842,
"login": "tdoughty1",
"node_id": "MDQ6VXNlcjU0NDc4NDI=",
"organizations_url": "https://api.github.com/users/tdoughty1/orgs",
"received_events_url": "https://api.github.com/users/tdoughty1/received_events",
"repos_url": "https://api.github.com/users/tdoughty1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tdoughty1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tdoughty1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tdoughty1"
} | [
{
"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": "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"
},
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 9 | 2016-02-23T04:24:17Z | 2019-06-19T01:05:34Z | 2019-06-19T01:05:34Z | NONE | null | We are using pandas to do analysis on a moderately large size dataset (10s of millions of events). In the process, we create a MultiIndex object in order to store the data. While I was debugging, I repeatedly ran into an issue where the MultiIndex object tried to print out the entire very long array. I've included code for a short test I did just to confirm the behavior.
Ideally, I think it would be good for the string representation of the MultiIndex object to have similar abbreviation strategy to the Series and DataFrame objects it indexes.
#### Code Sample, a copy-pastable example if possible
```
>>> import pandas as pd
>>> index1=range(100)
>>> index2=range(100)
>>> testIndex = pd.MultiIndex.from_arrays([index1, index2])
```
#### Expected Output
```
MultiIndex(levels=[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]],
labels=[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]])
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-77-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.2
setuptools: 18.0.1
Cython: 0.23.4
numpy: 1.10.2
scipy: 0.16.1
statsmodels: 0.6.1
IPython: 4.0.3
sphinx: 1.3.4
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.2
lxml: 3.5.0
bs4: 4.3.2
html5lib: None
httplib2: 0.9.1
apiclient: 1.4.1
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
Jinja2: None
```
| {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12423/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12423/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12424 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12424/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12424/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12424/events | https://github.com/pandas-dev/pandas/issues/12424 | 135,704,250 | MDU6SXNzdWUxMzU3MDQyNTA= | 12,424 | pd.to_datetime raises AttributeError with specific inputs when errors='ignore' | {
"avatar_url": "https://avatars.githubusercontent.com/u/1560652?v=4",
"events_url": "https://api.github.com/users/aktiur/events{/privacy}",
"followers_url": "https://api.github.com/users/aktiur/followers",
"following_url": "https://api.github.com/users/aktiur/following{/other_user}",
"gists_url": "https://api.github.com/users/aktiur/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aktiur",
"id": 1560652,
"login": "aktiur",
"node_id": "MDQ6VXNlcjE1NjA2NTI=",
"organizations_url": "https://api.github.com/users/aktiur/orgs",
"received_events_url": "https://api.github.com/users/aktiur/received_events",
"repos_url": "https://api.github.com/users/aktiur/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aktiur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aktiur/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aktiur"
} | [
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 1 | 2016-02-23T10:57:08Z | 2016-08-05T19:52:18Z | 2016-08-05T19:52:05Z | NONE | null | I'm trying to import a csv file into a PostgreSQL table using [odo](https://github.com/blaze/odo). During import, `odo` tries to automatically detect date columns using `pd.to_datetime` with `errors='ignore'`. However, with one of my columns (that isn't a date column, it's some kind of zip code), `pd.to_datetime` raises an AttributeError.
I have been able to narrow down the problem to this small snippet:
```
>>> pd.to_datetime(pd.Series(['01210', np.nan]), errors='ignore')
Traceback (most recent call last):
File "pandas\tslib.pyx", line 1952, in pandas.tslib.array_to_datetime (pandas\tslib.c:35219)
File "pandas\tslib.pyx", line 1432, in pandas.tslib._check_dts_bounds (pandas\tslib.c:26809)
pandas.tslib.OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 1210-01-01 00:00:00
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "pandas\tslib.pyx", line 1981, in pandas.tslib.array_to_datetime (pandas\tslib.c:35724)
File "pandas\tslib.pyx", line 1975, in pandas.tslib.array_to_datetime (pandas\tslib.c:35602)
File "pandas\tslib.pyx", line 1228, in pandas.tslib.convert_to_tsobject (pandas\tslib.c:23563)
File "pandas\tslib.pyx", line 1432, in pandas.tslib._check_dts_bounds (pandas\tslib.c:26809)
pandas.tslib.OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 1210-01-01 00:00:00
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Miniconda3\envs\py35\lib\site-packages\pandas\util\decorators.py", line 89, in wrapper
return func(*args, **kwargs)
File "C:\Miniconda3\envs\py35\lib\site-packages\pandas\tseries\tools.py", line 276, in to_datetime
unit=unit, infer_datetime_format=infer_datetime_format)
File "C:\Miniconda3\envs\py35\lib\site-packages\pandas\tseries\tools.py", line 390, in _to_datetime
values = _convert_listlike(arg._values, False, format)
File "C:\Miniconda3\envs\py35\lib\site-packages\pandas\tseries\tools.py", line 372, in _convert_listlike
require_iso8601=require_iso8601)
File "pandas\tslib.pyx", line 1847, in pandas.tslib.array_to_datetime (pandas\tslib.c:37155)
File "pandas\tslib.pyx", line 2005, in pandas.tslib.array_to_datetime (pandas\tslib.c:36116)
AttributeError: 'float' object has no attribute 'view'
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: None
pip: 8.0.2
setuptools: 19.6.2
Cython: None
numpy: 1.10.1
scipy: 0.16.0
statsmodels: None
IPython: 4.0.1
sphinx: 1.3.1
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
Jinja2: 2.8
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12424/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12424/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12425 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12425/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12425/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12425/events | https://github.com/pandas-dev/pandas/issues/12425 | 135,720,432 | MDU6SXNzdWUxMzU3MjA0MzI= | 12,425 | Stripped timedelta[s] series represented as timedelta[ns] | {
"avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4",
"events_url": "https://api.github.com/users/toobaz/events{/privacy}",
"followers_url": "https://api.github.com/users/toobaz/followers",
"following_url": "https://api.github.com/users/toobaz/following{/other_user}",
"gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/toobaz",
"id": 1224492,
"login": "toobaz",
"node_id": "MDQ6VXNlcjEyMjQ0OTI=",
"organizations_url": "https://api.github.com/users/toobaz/orgs",
"received_events_url": "https://api.github.com/users/toobaz/received_events",
"repos_url": "https://api.github.com/users/toobaz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toobaz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/toobaz"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
]
| closed | false | null | []
| {
"closed_at": "2018-05-16T03:09:58Z",
"closed_issues": 1645,
"created_at": "2017-10-20T10:17:09Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.22",
"due_on": "2018-05-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/53",
"id": 2853937,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53/labels",
"node_id": "MDk6TWlsZXN0b25lMjg1MzkzNw==",
"number": 53,
"open_issues": 0,
"state": "closed",
"title": "0.23.0",
"updated_at": "2018-08-20T06:48:57Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/53"
} | 12 | 2016-02-23T12:10:46Z | 2018-01-13T18:18:43Z | 2018-01-13T18:18:43Z | MEMBER | null | ```
In [2]: s = pd.Series(range(61)).astype('timedelta64[s]')
In [3]: s.tail(1)
Out[3]:
60 00:01:00
dtype: timedelta64[s]
In [4]: str(s).splitlines()[-2]
Out[4]: '60 00:00:00.000000'
```
... because the snipped representation interprets the content of the series as nanoseconds rather than milliseconds. The same happens with `timedelta[ms]` and probably any other resolution (if there are).
```
In [5]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: 404819358e90da57c8025a259ab58cd75426069f
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 4.3.0-1-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
pandas: 0.18.0rc1+35.g4048193
nose: 1.3.6
pip: 1.5.6
setuptools: 20.1.1
Cython: 0.23.2
numpy: 1.10.0.post2
scipy: 0.16.0
statsmodels: 0.8.0.dev0+755fa81
xarray: None
IPython: 4.1.1
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.4.2
pytz: 2015.6
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.4.3
matplotlib: 1.5.dev1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
jinja2: 2.8
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12425/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12425/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12426 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12426/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12426/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12426/events | https://github.com/pandas-dev/pandas/issues/12426 | 135,755,302 | MDU6SXNzdWUxMzU3NTUzMDI= | 12,426 | ENH/API: Timeseries Arithmetic frequency Alignment | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2016-02-23T14:43:47Z | 2021-04-23T01:02:52Z | null | CONTRIBUTOR | null | It'd be nice if there was a way to easily broadcast arithmetic operations on Series/DataFrames with `DatetimeIndexes`. For example, say you have monthly data, calculate the monthly mean, and want to multiply the original series by the monthly factor.
``` python
import numpy as np
import pandas as pd
idx = index=pd.date_range('1970-01-01', end='2015-01-01', freq='MS')
s = pd.Series(np.random.randn(len(idx)), name='ts',
index=idx)
mf = s.groupby(lambda x: x.month).mean()
In [3]: s
Out[3]:
1970-01-01 -1.032080
1970-02-01 -0.706686
1970-03-01 -0.380895
1970-04-01 0.322074
1970-05-01 -1.545298
...
2014-09-01 -0.787646
2014-10-01 -2.444045
2014-11-01 -0.646474
2014-12-01 -0.291925
2015-01-01 0.399430
Freq: MS, Name: ts, dtype: float64
In [4]: mf
Out[4]:
1 0.184326
2 -0.069534
3 -0.146372
4 0.018643
5 0.050393
...
8 -0.088188
9 0.148328
10 0.105042
11 0.219308
12 0.000997
Name: ts, dtype: float64
```
Right now you need something like (this could be simplified)
``` python
tmp = s.copy()
tmp.index = s.index.month
tmp = tmp * mf
tmp.index = s.index
s
```
It'd be nice to use the fact that `s` is a datetimeindex to allow some broadcasting over the years. Something like
```
s.mul(mf, freq='M')
```
A similar case is when both `s` and `mf` have DatetimeIndexes. Then `s.mul(mf, freq='M')` upsamples the lower frequency `mf` to a monthly frequency, fills, and multiplies.
Another example from [SO](http://stackoverflow.com/questions/35579455/how-to-multiply-all-hourly-values-in-one-pandas-dataframe-with-yearly-values-in)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12426/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12426/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12427 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12427/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12427/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12427/events | https://github.com/pandas-dev/pandas/issues/12427 | 135,759,435 | MDU6SXNzdWUxMzU3NTk0MzU= | 12,427 | HDFStore doesn't record correct pandas version in store attributes | {
"avatar_url": "https://avatars.githubusercontent.com/u/4974928?v=4",
"events_url": "https://api.github.com/users/tui-rob/events{/privacy}",
"followers_url": "https://api.github.com/users/tui-rob/followers",
"following_url": "https://api.github.com/users/tui-rob/following{/other_user}",
"gists_url": "https://api.github.com/users/tui-rob/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tui-rob",
"id": 4974928,
"login": "tui-rob",
"node_id": "MDQ6VXNlcjQ5NzQ5Mjg=",
"organizations_url": "https://api.github.com/users/tui-rob/orgs",
"received_events_url": "https://api.github.com/users/tui-rob/received_events",
"repos_url": "https://api.github.com/users/tui-rob/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tui-rob/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tui-rob/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tui-rob"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
},
{
"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 | 3 | 2016-02-23T14:59:00Z | 2016-02-23T15:18:58Z | 2016-02-23T14:59:29Z | CONTRIBUTOR | null | ``` python
In [103]: pd.__version__
Out[103]: '0.17.1'
In [104]: store = pd.HDFStore('store.h5')
...: df = pd.DataFrame(np.random.randn(8, 3), columns=['A', 'B', 'C'])
...: store['df'] = df
...: store.get_storer('df').attrs.pandas_version
...:
Out[104]: '0.15.2' # should be 0.17.1
In [105]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 32
OS: Windows
OS-release: 7
machine: x86
processor: x86 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 7.1.2
setuptools: 18.5
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.5.0
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.4.4
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
Jinja2: 2.8
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12427/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12427/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12428 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12428/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12428/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12428/events | https://github.com/pandas-dev/pandas/pull/12428 | 135,790,554 | MDExOlB1bGxSZXF1ZXN0NjAzNjkxMTM= | 12,428 | DOC: improve documentation for building extensions on windows | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 14 | 2016-02-23T16:39:12Z | 2016-02-24T15:56:38Z | 2016-02-24T13:33:21Z | 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/12428/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12428/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12428.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12428",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12428.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12428"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/12429 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12429/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12429/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12429/events | https://github.com/pandas-dev/pandas/issues/12429 | 135,815,077 | MDU6SXNzdWUxMzU4MTUwNzc= | 12,429 | pandas-svn mailing list? | {
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
]
| closed | false | null | []
| null | 7 | 2016-02-23T18:01:55Z | 2016-11-15T23:00:56Z | 2016-11-15T22:53:11Z | MEMBER | null | Upstream repositories like `numpy` and `scipy` have a `numpy-svn` and `scipy-svn` mailing list that is used to avert users of commits / merges to the `master` branch. You can find those lists <a href="http://www.scipy.org/scipylib/mailing-lists.html">here</a> here. I personally find it useful to get such emails because it allows me to make sure that my PR branches don't fall too far behind the `master` branch. I see no reason why the `pandas` repository wouldn't benefit from such an emailing list either.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12429/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12429/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12430 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12430/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12430/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12430/events | https://github.com/pandas-dev/pandas/issues/12430 | 135,815,651 | MDU6SXNzdWUxMzU4MTU2NTE= | 12,430 | Cython-optimized expanding apply transformations | {
"avatar_url": "https://avatars.githubusercontent.com/u/3237925?v=4",
"events_url": "https://api.github.com/users/bschreck/events{/privacy}",
"followers_url": "https://api.github.com/users/bschreck/followers",
"following_url": "https://api.github.com/users/bschreck/following{/other_user}",
"gists_url": "https://api.github.com/users/bschreck/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bschreck",
"id": 3237925,
"login": "bschreck",
"node_id": "MDQ6VXNlcjMyMzc5MjU=",
"organizations_url": "https://api.github.com/users/bschreck/orgs",
"received_events_url": "https://api.github.com/users/bschreck/received_events",
"repos_url": "https://api.github.com/users/bschreck/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bschreck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bschreck/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bschreck"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"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"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
]
| open | false | null | []
| null | 6 | 2016-02-23T18:04:33Z | 2020-05-13T02:11:39Z | null | NONE | null | I was generating lots of features for time-dependent data, and ended up writing a lot of expanding apply operations in Cython. Would the community want something like this? Imagine you have a dataframe with an "entity" column, a "time" column and some numeric "feature" column, and you want to calculate the expanding sum/mean/mode/etc. of the feature column for each entity.
This is currently not optimized well in Pandas especially for computing the mode for categorical variables where keeping track of state saves a lot of time.
Example of a use case:
```
import cython_opt # cython functions are defined here
# df like {"project_id": [1,1,1,1,2,2,2,2], "value": [3,4,5,6, 10,11,12,13]}
df.groupby(level='project_id')['value'].transform(lambda x: cython_opt.expanding_mean(x.values))
# output like {"project_id": [1,1,1,1,2,2,2,2], "value": [3, 3.5, 4, 4.5, 10, 10.5, 11, 11.5]}
```
I can provide lots more examples and functions (I wrote around 20 of these)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12430/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12430/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12431 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12431/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12431/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12431/events | https://github.com/pandas-dev/pandas/pull/12431 | 135,871,912 | MDExOlB1bGxSZXF1ZXN0NjA0MTMxMDA= | 12,431 | DOC:Fix micro-typo | {
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-02-23T21:30:23Z | 2016-02-23T21:59:59Z | 2016-02-23T21:59:56Z | CONTRIBUTOR | null | Removes a extraneous µ from the docs.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12431/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12431/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12431.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12431",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12431.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12431"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12432 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12432/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12432/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12432/events | https://github.com/pandas-dev/pandas/issues/12432 | 135,892,865 | MDU6SXNzdWUxMzU4OTI4NjU= | 12,432 | conda build alternatives for Windows? | {
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"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": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 1 | 2016-02-23T22:58:12Z | 2016-11-27T05:13:56Z | 2016-11-27T05:13:56Z | MEMBER | null | `conda` has been the widely suggested method for building / developing `pandas` on Windows. However, given that upstream libraries like `numpy` and `scipy` are in the process / can be supported with many other build environments on Windows, it seems natural that `pandas` should support alternative build environments given that its build requirements are much more lenient (just need a C compiler) compared to those of `numpy` and `scipy`. Some major alternatives are:
1) `mingw-w64`
2) `Cygwin`
Initial testing with the second one are promising and suggest that `pandas` can already support it. The former has not been tested yet but should work in theory given that it works with `numpy` for example.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12432/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12432/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12433 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12433/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12433/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12433/events | https://github.com/pandas-dev/pandas/issues/12433 | 135,919,099 | MDU6SXNzdWUxMzU5MTkwOTk= | 12,433 | Panel resample fails for degenerate panels | {
"avatar_url": "https://avatars.githubusercontent.com/u/17442238?v=4",
"events_url": "https://api.github.com/users/killchr/events{/privacy}",
"followers_url": "https://api.github.com/users/killchr/followers",
"following_url": "https://api.github.com/users/killchr/following{/other_user}",
"gists_url": "https://api.github.com/users/killchr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/killchr",
"id": 17442238,
"login": "killchr",
"node_id": "MDQ6VXNlcjE3NDQyMjM4",
"organizations_url": "https://api.github.com/users/killchr/orgs",
"received_events_url": "https://api.github.com/users/killchr/received_events",
"repos_url": "https://api.github.com/users/killchr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/killchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/killchr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/killchr"
} | [
{
"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": "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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2016-02-24T01:16:08Z | 2018-07-06T20:21:09Z | 2017-07-11T09:52:44Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```
import numpy as np
import pandas as pd
dr = pd.date_range('20100101','20151231',freq='T')
p1 = pd.Panel(items = dr, data=np.random.randn(len(dr),3,3))
#this works
p2 = p1.resample('D', axis=0, how='last')
p3 = pd.Panel(items = dr, data=np.random.randn(len(dr),1,1))
#this causes an error
p4 = p3.resample('D', axis=0, how='last')
```
#### Expected Output
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.2
setuptools: 19.6.2
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
IPython: None
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.6
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.5.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
Jinja2: 2.8
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12433/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12433/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12434 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12434/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12434/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12434/events | https://github.com/pandas-dev/pandas/issues/12434 | 135,923,275 | MDU6SXNzdWUxMzU5MjMyNzU= | 12,434 | BUG: reshaping of Panel breaking with datetimeindex | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2016-02-24T01:43:35Z | 2018-07-06T20:21:09Z | 2017-07-11T09:53:17Z | CONTRIBUTOR | null | ```
In [32]: pd.__version__
Out[32]: '0.18.0rc1+40.gbd1eebb'
```
```
In [23]: dr = pd.date_range('20150101','20150131',freq='T')
In [24]: p1 = pd.Panel(items = dr, data=np.random.randn(len(dr),3,3))
In [25]: p1
Out[25]:
<class 'pandas.core.panel.Panel'>
Dimensions: 43201 (items) x 3 (major_axis) x 3 (minor_axis)
Items axis: 2015-01-01 00:00:00 to 2015-01-31 00:00:00
Major_axis axis: 0 to 2
Minor_axis axis: 0 to 2
In [26]: p1.swapaxes(0,1)
Out[26]:
<class 'pandas.core.panel.Panel'>
Dimensions: 3 (items) x 43201 (major_axis) x 3 (minor_axis)
Items axis: 0 to 2
Major_axis axis: 2015-01-01 00:00:00 to 2015-01-31 00:00:00
Minor_axis axis: 0 to 2
In [27]: p1.swapaxes(0,1).iloc[0,0,0]
Out[27]: 2.1388125215371305
In [28]: p1.swapaxes(0,1).to_frame()
TypeError: data type "minor" not understood
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12434/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12434/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12435 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12435/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12435/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12435/events | https://github.com/pandas-dev/pandas/issues/12435 | 136,016,719 | MDU6SXNzdWUxMzYwMTY3MTk= | 12,435 | read_csv false_values only partially applied | {
"avatar_url": "https://avatars.githubusercontent.com/u/31695?v=4",
"events_url": "https://api.github.com/users/dreamflasher/events{/privacy}",
"followers_url": "https://api.github.com/users/dreamflasher/followers",
"following_url": "https://api.github.com/users/dreamflasher/following{/other_user}",
"gists_url": "https://api.github.com/users/dreamflasher/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dreamflasher",
"id": 31695,
"login": "dreamflasher",
"node_id": "MDQ6VXNlcjMxNjk1",
"organizations_url": "https://api.github.com/users/dreamflasher/orgs",
"received_events_url": "https://api.github.com/users/dreamflasher/received_events",
"repos_url": "https://api.github.com/users/dreamflasher/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dreamflasher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dreamflasher/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dreamflasher"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "5319e7",
"default": false,
"description": "read_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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2016-02-24T10:21:44Z | 2016-02-24T10:48:16Z | 2016-02-24T10:47:31Z | NONE | null | #### Code Sample, a copy-pastable example if possible
``` python
import pandas as pd
import numpy as np
pd.DataFrame({'one' : pd.Series(["NULL", "1", "0"])}).to_csv("test.txt")
print pd.read_csv("test.txt", usecols=(1, ), dtype={'one': np.bool}, false_values=['0', 'NULL'], true_values=['1'])
```
Output:
```
one
0 NaN
1 True
2 False
```
#### Expected Output
```
one
0 False
1 True
2 False
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 32
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: 1.3.7
pip: 7.1.2
setuptools: 19.1.1
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.16.0
statsmodels: None
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.5.0
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.3.5
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
Jinja2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12435/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12435/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12436 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12436/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12436/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12436/events | https://github.com/pandas-dev/pandas/issues/12436 | 136,063,567 | MDU6SXNzdWUxMzYwNjM1Njc= | 12,436 | WARN: matplotlib warnings | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2016-02-24T13:37:03Z | 2016-04-25T23:21:51Z | 2016-04-25T15:20:05Z | CONTRIBUTOR | null | anyone know the reason for these? https://travis-ci.org/pydata/pandas/jobs/111469225
only seem to be on py3.
```
/home/travis/miniconda/envs/pandas/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/home/travis/miniconda/envs/pandas/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12436/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12436/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12437 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12437/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12437/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12437/events | https://github.com/pandas-dev/pandas/issues/12437 | 136,076,334 | MDU6SXNzdWUxMzYwNzYzMzQ= | 12,437 | BUG: datetimelike subtract incorrect when broadcasting | {
"avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4",
"events_url": "https://api.github.com/users/toobaz/events{/privacy}",
"followers_url": "https://api.github.com/users/toobaz/followers",
"following_url": "https://api.github.com/users/toobaz/following{/other_user}",
"gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/toobaz",
"id": 1224492,
"login": "toobaz",
"node_id": "MDQ6VXNlcjEyMjQ0OTI=",
"organizations_url": "https://api.github.com/users/toobaz/orgs",
"received_events_url": "https://api.github.com/users/toobaz/received_events",
"repos_url": "https://api.github.com/users/toobaz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toobaz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/toobaz"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 6 | 2016-02-24T14:26:37Z | 2018-10-26T02:40:27Z | 2018-10-26T02:40:27Z | MEMBER | null | ```
In [2]: base, step = 10**15, 10**14
In [3]: data = range(base, base+3*step, step)
In [4]: df = pd.DataFrame({i : data for i in range(3)}).astype('datetime64[ns]')
In [5]: s = pd.Series(data).astype('datetime64[ns]')
In [6]: df
Out[6]:
0 1 2
0 1970-01-12 13:46:40 1970-01-12 13:46:40 1970-01-12 13:46:40
1 1970-01-13 17:33:20 1970-01-13 17:33:20 1970-01-13 17:33:20
2 1970-01-14 21:20:00 1970-01-14 21:20:00 1970-01-14 21:20:00
In [7]: (df - s)[0]
Out[7]:
0 1970-01-01 00:00:00
1 1970-01-02 03:46:40
2 1970-01-03 07:33:20
Name: 0, dtype: datetime64[ns]
In [8]: (df[0] - s[0])
Out[8]:
0 0 days 00:00:00
1 1 days 03:46:40
2 2 days 07:33:20
Name: 0, dtype: timedelta64[ns]
```
I would expect the two to give the same result (`timedelta64[ns]`).
```
In [9]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Linux
OS-release: 4.3.0-1-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
pandas: 0.18.0rc1+35.g4048193
nose: 1.3.6
pip: 1.5.6
setuptools: 18.4
Cython: 0.23.2
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.8.0.dev0+755fa81
xarray: None
IPython: 2.4.1
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.4.3
matplotlib: 1.5.0rc2
openpyxl: None
xlrd: 0.9.4
xlwt: 0.7.5
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: 2.6.1 (dt dec mx pq3 ext lo64)
jinja2: 2.8
```
| {
"+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/12437/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12437/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12438 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12438/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12438/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12438/events | https://github.com/pandas-dev/pandas/issues/12438 | 136,080,932 | MDU6SXNzdWUxMzYwODA5MzI= | 12,438 | BLD: Travis dedup via webhooks | {
"avatar_url": "https://avatars.githubusercontent.com/u/10709573?v=4",
"events_url": "https://api.github.com/users/kawochen/events{/privacy}",
"followers_url": "https://api.github.com/users/kawochen/followers",
"following_url": "https://api.github.com/users/kawochen/following{/other_user}",
"gists_url": "https://api.github.com/users/kawochen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kawochen",
"id": 10709573,
"login": "kawochen",
"node_id": "MDQ6VXNlcjEwNzA5NTcz",
"organizations_url": "https://api.github.com/users/kawochen/orgs",
"received_events_url": "https://api.github.com/users/kawochen/received_events",
"repos_url": "https://api.github.com/users/kawochen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kawochen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kawochen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kawochen"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 278,
"created_at": "2013-01-06T03:02:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)",
"due_on": "2022-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/20",
"id": 239227,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels",
"node_id": "MDk6TWlsZXN0b25lMjM5MjI3",
"number": 20,
"open_issues": 108,
"state": "open",
"title": "Someday",
"updated_at": "2021-08-08T01:48:22Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20"
} | 10 | 2016-02-24T14:43:01Z | 2017-03-22T21:39:51Z | 2017-03-22T13:58:04Z | CONTRIBUTOR | null | Came across this just now https://github.com/grosser/travis_dedup
It sounds like it cancels old builds on a PR. It works via github webhooks.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12438/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12438/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12439 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12439/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12439/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12439/events | https://github.com/pandas-dev/pandas/pull/12439 | 136,102,566 | MDExOlB1bGxSZXF1ZXN0NjA1MzEyOTE= | 12,439 | DOC: fix links in contributing.rst | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-02-24T15:59:05Z | 2016-02-24T16:23:18Z | 2016-02-24T16:23:18Z | CONTRIBUTOR | null | fixup for #12428
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12439/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12439/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12439.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12439",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12439.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12439"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12440 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12440/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12440/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12440/events | https://github.com/pandas-dev/pandas/issues/12440 | 136,140,676 | MDU6SXNzdWUxMzYxNDA2NzY= | 12,440 | calling mean on groupby of timedelta does not work | {
"avatar_url": "https://avatars.githubusercontent.com/u/51059?v=4",
"events_url": "https://api.github.com/users/cancan101/events{/privacy}",
"followers_url": "https://api.github.com/users/cancan101/followers",
"following_url": "https://api.github.com/users/cancan101/following{/other_user}",
"gists_url": "https://api.github.com/users/cancan101/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cancan101",
"id": 51059,
"login": "cancan101",
"node_id": "MDQ6VXNlcjUxMDU5",
"organizations_url": "https://api.github.com/users/cancan101/orgs",
"received_events_url": "https://api.github.com/users/cancan101/received_events",
"repos_url": "https://api.github.com/users/cancan101/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cancan101/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cancan101/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cancan101"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
]
| closed | false | null | []
| null | 1 | 2016-02-24T18:07:34Z | 2016-02-24T18:49:13Z | 2016-02-24T18:11:29Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
This works:
```
print pd.DataFrame([pd.Timedelta(1)]).groupby(level=0).sum()
0
0 00:00:00.000000
```
but this does not:
```
print pd.DataFrame([pd.Timedelta(1)]).groupby(level=0).mean()
---------------------------------------------------------------------------
DataError Traceback (most recent call last)
<ipython-input-151-ac23f5162583> in <module>()
----> 1 print pd.DataFrame([pd.Timedelta(1)]).groupby(level=0).mean()
/Users/alex/.virtualenvs/work/lib/python2.7/site-packages/pandas/core/groupby.pyc in mean(self)
758 """
759 try:
--> 760 return self._cython_agg_general('mean')
761 except GroupByError:
762 raise
/Users/alex/.virtualenvs/work/lib/python2.7/site-packages/pandas/core/groupby.pyc in _cython_agg_general(self, how, numeric_only)
2851
2852 def _cython_agg_general(self, how, numeric_only=True):
-> 2853 new_items, new_blocks = self._cython_agg_blocks(how, numeric_only=numeric_only)
2854 return self._wrap_agged_blocks(new_items, new_blocks)
2855
/Users/alex/.virtualenvs/work/lib/python2.7/site-packages/pandas/core/groupby.pyc in _cython_agg_blocks(self, how, numeric_only)
2896
2897 if len(new_blocks) == 0:
-> 2898 raise DataError('No numeric types to aggregate')
2899
2900 return data.items, new_blocks
DataError: No numeric types to aggregate
```
even though both of these work:
```
pd.DataFrame([pd.Timedelta(1)]).mean()
```
and
```
pd.DataFrame([pd.Timedelta(1)]).sum()
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.6
pip: 1.5.6
setuptools: 3.6
Cython: None
numpy: 1.10.4
scipy: 0.15.1
statsmodels: None
IPython: 3.1.0
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: None
xlrd: 0.9.3
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.0
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
Jinja2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12440/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12440/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12441 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12441/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12441/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12441/events | https://github.com/pandas-dev/pandas/issues/12441 | 136,174,075 | MDU6SXNzdWUxMzYxNzQwNzU= | 12,441 | ImportError after installing rc18 -- help | {
"avatar_url": "https://avatars.githubusercontent.com/u/3758548?v=4",
"events_url": "https://api.github.com/users/rv816/events{/privacy}",
"followers_url": "https://api.github.com/users/rv816/followers",
"following_url": "https://api.github.com/users/rv816/following{/other_user}",
"gists_url": "https://api.github.com/users/rv816/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rv816",
"id": 3758548,
"login": "rv816",
"node_id": "MDQ6VXNlcjM3NTg1NDg=",
"organizations_url": "https://api.github.com/users/rv816/orgs",
"received_events_url": "https://api.github.com/users/rv816/received_events",
"repos_url": "https://api.github.com/users/rv816/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rv816/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rv816/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rv816"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 3 | 2016-02-24T20:11:26Z | 2016-02-25T00:06:22Z | 2016-02-25T00:05:57Z | NONE | null | #### Code Sample, a copy-pastable example if possible
after installing pandas rc18, getting import error
```
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-26dfcabfb474> in <module>()
----> 1 from pandas import DataFrame
/Users/vassr/.virtualenvs/gapsincare/lib/python3.5/site-packages/pandas/__init__.py in <module>()
46 from pandas.stats.api import *
47 from pandas.tseries.api import *
---> 48 from pandas.io.api import *
49 from pandas.computation.api import *
50
/Users/vassr/.virtualenvs/gapsincare/lib/python3.5/site-packages/pandas/io/api.py in <module>()
10 from pandas.io.html import read_html
11 from pandas.io.sql import read_sql, read_sql_table, read_sql_query
---> 12 from pandas.io.sas import read_sas
13 from pandas.io.stata import read_stata
14 from pandas.io.pickle import read_pickle, to_pickle
ImportError: cannot import name 'read_sas'
```
### You can see that pandas rc18 was successfully installed here.
```
~ pip install cython
Collecting cython
Downloading Cython-0.23.4-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.6MB)
100% |████████████████████████████████| 3.6MB 127kB/s
Installing collected packages: cython
Successfully installed cython-0.23.4
(gapsincare)➜ ~ pip install git+https://github.com/pydata/pandas.git --upgrade
Collecting git+https://github.com/pydata/pandas.git
Cloning https://github.com/pydata/pandas.git to /var/folders/4y/5mcwcwm94v18v67997q6m_vmlrpjlj/T/pip-7kx4op06-build
Requirement already up-to-date: python-dateutil>=2 in ./.virtualenvs/gapsincare/lib/python3.5/site-packages (from pandas==0.18.0rc1+43.gdb12255)
Requirement already up-to-date: pytz>=2011k in ./.virtualenvs/gapsincare/lib/python3.5/site-packages (from pandas==0.18.0rc1+43.gdb12255)
Requirement already up-to-date: numpy>=1.7.0 in ./.virtualenvs/gapsincare/lib/python3.5/site-packages (from pandas==0.18.0rc1+43.gdb12255)
Requirement already up-to-date: six>=1.5 in ./.virtualenvs/gapsincare/lib/python3.5/site-packages (from python-dateutil>=2->pandas==0.18.0rc1+43.gdb12255)
Installing collected packages: pandas
Running setup.py install for pandas ... \^[[B^[[done
Successfully installed pandas-0.18.0rc1+43.gdb12255
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12441/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12441/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12442 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12442/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12442/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12442/events | https://github.com/pandas-dev/pandas/pull/12442 | 136,175,104 | MDExOlB1bGxSZXF1ZXN0NjA1NzEwNDI= | 12,442 | DOC: Add examples and notes to empty documentation | {
"avatar_url": "https://avatars.githubusercontent.com/u/4913951?v=4",
"events_url": "https://api.github.com/users/MasonGallo/events{/privacy}",
"followers_url": "https://api.github.com/users/MasonGallo/followers",
"following_url": "https://api.github.com/users/MasonGallo/following{/other_user}",
"gists_url": "https://api.github.com/users/MasonGallo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MasonGallo",
"id": 4913951,
"login": "MasonGallo",
"node_id": "MDQ6VXNlcjQ5MTM5NTE=",
"organizations_url": "https://api.github.com/users/MasonGallo/orgs",
"received_events_url": "https://api.github.com/users/MasonGallo/received_events",
"repos_url": "https://api.github.com/users/MasonGallo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MasonGallo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MasonGallo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MasonGallo"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 6 | 2016-02-24T20:16:00Z | 2016-02-26T02:14:46Z | 2016-02-26T02:13:43Z | CONTRIBUTOR | null | - [x] closes #12393
- [x] passes `git diff upstream/master | flake8 --diff`
Added notes and examples to provide clarity around the issue discussed in #12393. This is my first contribution to pandas, so let me know if I need to fix anything.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12442/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12442/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12442.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12442",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12442.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12442"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12443 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12443/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12443/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12443/events | https://github.com/pandas-dev/pandas/issues/12443 | 136,316,370 | MDU6SXNzdWUxMzYzMTYzNzA= | 12,443 | read_csv: silently skips null values from single column CSV | {
"avatar_url": "https://avatars.githubusercontent.com/u/504681?v=4",
"events_url": "https://api.github.com/users/joristork/events{/privacy}",
"followers_url": "https://api.github.com/users/joristork/followers",
"following_url": "https://api.github.com/users/joristork/following{/other_user}",
"gists_url": "https://api.github.com/users/joristork/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joristork",
"id": 504681,
"login": "joristork",
"node_id": "MDQ6VXNlcjUwNDY4MQ==",
"organizations_url": "https://api.github.com/users/joristork/orgs",
"received_events_url": "https://api.github.com/users/joristork/received_events",
"repos_url": "https://api.github.com/users/joristork/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joristork/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joristork/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joristork"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
]
| closed | false | null | []
| null | 3 | 2016-02-25T08:24:24Z | 2016-08-21T02:41:02Z | 2016-08-21T02:41:02Z | NONE | null | `pd.read_csv()`'s `skip_blank_lines` parameter defaults to `True`
I'm not sure if that is a good idea?
If I write away a dataframe that has 1 column and includes N null values to a CSV, without writing away an index (`index=False`), then I do not expect that when I read the dataframe back from that CSV the result is N rows shorter than the original.
For example I was puzzled when I wrote away a column with 1000 rows to CSV, then read that column back from the CSV to find it only had 37 rows.
```
In [2]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.2.0-1-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_ZA.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 1.5.6
setuptools: 20.1.1
Cython: None
numpy: 1.11.0b3
scipy: 0.17.0
statsmodels: None
IPython: 4.1.1
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
Jinja2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12443/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12443/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12444 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12444/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12444/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12444/events | https://github.com/pandas-dev/pandas/issues/12444 | 136,386,987 | MDU6SXNzdWUxMzYzODY5ODc= | 12,444 | Cannot set with indexer when indexer is of length 1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/8947004?v=4",
"events_url": "https://api.github.com/users/grutts/events{/privacy}",
"followers_url": "https://api.github.com/users/grutts/followers",
"following_url": "https://api.github.com/users/grutts/following{/other_user}",
"gists_url": "https://api.github.com/users/grutts/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/grutts",
"id": 8947004,
"login": "grutts",
"node_id": "MDQ6VXNlcjg5NDcwMDQ=",
"organizations_url": "https://api.github.com/users/grutts/orgs",
"received_events_url": "https://api.github.com/users/grutts/received_events",
"repos_url": "https://api.github.com/users/grutts/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/grutts/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/grutts/subscriptions",
"type": "User",
"url": "https://api.github.com/users/grutts"
} | [
{
"color": "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"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| null | 4 | 2016-02-25T13:25:41Z | 2016-02-25T15:24:06Z | 2016-02-25T15:23:15Z | NONE | null | When setting using an indexer which is of length one I get AttributeError on assignment. The same error occurs with series of length greater than 1 and with indexer of length 1, but does not occur in the latter scenario if the indexer is of length greater than one. The .iloc[indexer] below returns a Series.
Encountered in version 0.15.2, reproduced in 0.17.1
``` python
>>> import pandas as pd
>>> import numpy as np
>>> import datetime
>>> mi = pd.MultiIndex.from_tuples([(3465, datetime.datetime.utcnow())])
>>> foo1 = pd.Series([5], index=mi); foo1
3465 2016-02-25 13:06:21.639667+00:00 5
3466 2016-02-25 13:06:21.639674+00:00 6
dtype: int64
>>> foo2 = pd.Series(['foo'], index=mi);foo2
3465 2016-02-25 13:06:21.638573+00:00 foo
dtype: object
>>> indexer= np.where(foo2);indexer
(array([0]),)
>>> foo1.iloc[indexer] = foo2.iloc[indexer]
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-87-320a8afb0fd6> in <module>()
----> 1 foo1.iloc[indexer] = foo2.iloc[indexer]
/python2.7/site-packages/pandas/core/indexing.pyc in __setitem__(self, key, value)
115 def __setitem__(self, key, value):
116 indexer = self._get_setitem_indexer(key)
--> 117 self._setitem_with_indexer(indexer, value)
118
119 def _has_valid_type(self, k, axis):
/python2.7/site-packages/pandas/core/indexing.pyc in _setitem_with_indexer(self, indexer, value)
365 # indexer here
366 if (len(labels) == 1 and
--> 367 isinstance(self.obj[labels[0]].axes[0], MultiIndex)):
368 item = labels[0]
369 obj = self.obj[item]
AttributeError: 'numpy.int64' object has no attribute 'axes'
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-48-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: 1.3.7
pip: 1.4.1
setuptools: 17.0
Cython: 0.23.4
numpy: 1.9.0
scipy: 0.14.0
statsmodels: None
IPython: 4.0.0
sphinx: None
patsy: None
dateutil: 1.5
pytz: 2015.6
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: 3.4.4
bs4: None
html5lib: 0.999
httplib2: 0.9
apiclient: 1.1
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12444/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12444/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12445 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12445/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12445/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12445/events | https://github.com/pandas-dev/pandas/issues/12445 | 136,424,568 | MDU6SXNzdWUxMzY0MjQ1Njg= | 12,445 | to_html local float_format decimal representation | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"color": "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": "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": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
]
| closed | false | null | []
| null | 3 | 2016-02-25T15:41:44Z | 2016-02-25T23:27:09Z | 2016-02-25T17:35:18Z | NONE | null | Hello,
Because of the decimal symbol I'm forced to use the following code. The problem is when the using is "big", for example: 1 356 747 -> 1,35675e+06. Is there any work around?
import locale
loc = locale.getlocale() # get current locale
locale.setlocale(locale.LC_NUMERIC, "Portuguese_Portugal")
html_table = df.to_html(header=True, index=False, na_rep="", float_format="{:n}".format, justify="center")
locale.setlocale(locale.LC_NUMERIC, loc) # restore saved locale
print(html_table)
#### Code Sample, a copy-pastable example if possible
<tr>
<td>AMOUNT</td>
<td>1,35675e+06</td>
<td>95 524</td>
<td>179 347</td>
<td>255 691</td>
</tr>
#### Expected Output
<tr>
<td>AMOUNT</td>
<td>1 356 747</td>
<td>95 524</td>
<td>179 347</td>
<td>255 691</td>
</tr>
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 2012ServerR2
machine: AMD64
processor: Intel64 Family 6 Model 47 Stepping 2, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: None
pip: 8.0.2
setuptools: 20.1.1
Cython: None
numpy: 1.10.4
scipy: 0.17.0
statsmodels: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: None
xlsxwriter: 0.8.4
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: None
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/12445/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12445/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12446 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12446/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12446/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12446/events | https://github.com/pandas-dev/pandas/issues/12446 | 136,462,604 | MDU6SXNzdWUxMzY0NjI2MDQ= | 12,446 | tz_localize NonExistentTimeError: 2013-03-31 02:00:00 | {
"avatar_url": "https://avatars.githubusercontent.com/u/13064792?v=4",
"events_url": "https://api.github.com/users/LorenzoBottaccioli/events{/privacy}",
"followers_url": "https://api.github.com/users/LorenzoBottaccioli/followers",
"following_url": "https://api.github.com/users/LorenzoBottaccioli/following{/other_user}",
"gists_url": "https://api.github.com/users/LorenzoBottaccioli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LorenzoBottaccioli",
"id": 13064792,
"login": "LorenzoBottaccioli",
"node_id": "MDQ6VXNlcjEzMDY0Nzky",
"organizations_url": "https://api.github.com/users/LorenzoBottaccioli/orgs",
"received_events_url": "https://api.github.com/users/LorenzoBottaccioli/received_events",
"repos_url": "https://api.github.com/users/LorenzoBottaccioli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LorenzoBottaccioli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LorenzoBottaccioli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LorenzoBottaccioli"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| null | 2 | 2016-02-25T17:56:05Z | 2016-02-25T19:09:42Z | 2016-02-25T19:09:33Z | NONE | null | Hello I'm having troubles with the tz_localize function.
I run the code :
```
df = pd.read_csv('input.csv', sep=";", index_col='Date Time', decimal=',')
df.index = pd.to_datetime(df.index, unit='s').tz_localize('Europe/Rome')
```
and I get this error:
```
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2820, in run_code
exec code_obj in self.user_global_ns, self.user_ns
File "<ipython-input-62-1e9889f6b894>", line 1, in <module>
df.index = pd.to_datetime(df.index, unit='s').tz_localize('Europe/Rome')
File "/usr/local/lib/python2.7/dist-packages/pandas/util/decorators.py", line 89, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pandas/tseries/index.py", line 1724, in tz_localize
ambiguous=ambiguous)
File "pandas/tslib.pyx", line 3781, in pandas.tslib.tz_localize_to_utc (pandas/tslib.c:64980)
NonExistentTimeError: 2013-03-31 02:00:00
```
I have pandas '0.17.1' running on python2.7. In attachment you find the input file [input.zip](https://github.com/pydata/pandas/files/147045/input.zip).
Best
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12446/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12446/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12447 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12447/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12447/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12447/events | https://github.com/pandas-dev/pandas/issues/12447 | 136,532,824 | MDU6SXNzdWUxMzY1MzI4MjQ= | 12,447 | pandas_for_finance TypeError: [unicode] is not implemented as a table column | {
"avatar_url": "https://avatars.githubusercontent.com/u/4218171?v=4",
"events_url": "https://api.github.com/users/LastAncientOne/events{/privacy}",
"followers_url": "https://api.github.com/users/LastAncientOne/followers",
"following_url": "https://api.github.com/users/LastAncientOne/following{/other_user}",
"gists_url": "https://api.github.com/users/LastAncientOne/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LastAncientOne",
"id": 4218171,
"login": "LastAncientOne",
"node_id": "MDQ6VXNlcjQyMTgxNzE=",
"organizations_url": "https://api.github.com/users/LastAncientOne/orgs",
"received_events_url": "https://api.github.com/users/LastAncientOne/received_events",
"repos_url": "https://api.github.com/users/LastAncientOne/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LastAncientOne/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LastAncientOne/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LastAncientOne"
} | [
{
"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": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
]
| closed | false | null | []
| null | 1 | 2016-02-25T22:35:02Z | 2016-02-25T22:45:46Z | 2016-02-25T22:45:30Z | NONE | null | #### Code Sample, a copy-pastable example if possible
p.to_hdf('quotes.hdf','df',format='table')
#### Expected Output
Saves files
#### output of `pd.show_versions()`
Traceback (most recent call last):
File "<ipython-input-15-7be322c5e66c>", line 1, in <module>
p.to_hdf('quotes.hdf','df',format='table')
File "C:\Users\LastAncientOne\Anaconda2\lib\site-packages\pandas\core\generic.py", line 939, in to_hdf
return pytables.to_hdf(path_or_buf, key, self, **kwargs)
File "C:\Users\LastAncientOne\Anaconda2\lib\site-packages\pandas\io\pytables.py", line 257, in to_hdf
f(store)
File "C:\Users\LastAncientOne\Anaconda2\lib\site-packages\pandas\io\pytables.py", line 252, in <lambda>
f = lambda store: store.put(key, value, **kwargs)
File "C:\Users\LastAncientOne\Anaconda2\lib\site-packages\pandas\io\pytables.py", line 814, in put
self._write_to_group(key, value, append=append, **kwargs)
File "C:\Users\LastAncientOne\Anaconda2\lib\site-packages\pandas\io\pytables.py", line 1252, in _write_to_group
s.write(obj=value, append=append, complib=complib, **kwargs)
File "C:\Users\LastAncientOne\Anaconda2\lib\site-packages\pandas\io\pytables.py", line 4166, in write
obj=obj, data_columns=data_columns, **kwargs)
File "C:\Users\LastAncientOne\Anaconda2\lib\site-packages\pandas\io\pytables.py", line 3757, in write
**kwargs)
File "C:\Users\LastAncientOne\Anaconda2\lib\site-packages\pandas\io\pytables.py", line 3434, in create_axes
raise e
TypeError: [unicode] is not implemented as a table column
Using Pandas u'0.17.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/12447/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12447/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12448 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12448/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12448/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12448/events | https://github.com/pandas-dev/pandas/issues/12448 | 136,548,497 | MDU6SXNzdWUxMzY1NDg0OTc= | 12,448 | Breaking examples due to resample refactor | {
"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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "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-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-02-25T23:47:06Z | 2016-03-08T23:39:51Z | 2016-03-08T23:39:51Z | MEMBER | null | While using master a bit, I discovered some more cases where the new resample API breaks things:
- Plotting. `.plot` is a dedicated groupby/resample method (which adds each group individually to the plot), while I think it is a very common idiom to quickly resample your timeseries and plot it with (old API) eg `s.resample('D').plot()`.
Example with master:
```
In [1]: s = pd.Series(np.random.randn(60), index=date_range('2016-01-01', periods=60, freq='1min'))
In [3]: s.resample('15min').plot()
Out[3]:
2016-01-01 00:00:00 Axes(0.125,0.1;0.775x0.8)
2016-01-01 00:15:00 Axes(0.125,0.1;0.775x0.8)
2016-01-01 00:30:00 Axes(0.125,0.1;0.775x0.8)
2016-01-01 00:45:00 Axes(0.125,0.1;0.775x0.8)
Freq: 15T, dtype: object
```

while previously it would just have given you one continuous line.
This one can be solved I think by special casing `plot` for `resample` (not have it a special groupby-like method, but let it warn and pass the the `resample().mean()` result to `Series.plot()` like the 'deprecated_valids')
- When you previously called a method on the `resample` result that is also a valid Resampler method now. Eg `s.resample(freq).min()` would previously have given you the "minimum daily average" while now it will give you the "minimum per day".
This one is more difficult/impossible to solve I think? As you could detect that case if you know it is old code, but cannot distinguish it from perfectly valid code with the new API. If we can't solve it, I think it deserves some mention in the whatsnew explanation.
- Using `resample` on a `groupby` object (xref #12202). Using the example of that issue, with 0.17.1 you get:
```
In [1]: df = pd.DataFrame({'date': pd.date_range(start='2016-01-01', periods=4,
freq='W'),
...: 'group': [1, 1, 2, 2],
...: 'val': [5, 6, 7, 8]})
In [2]: df.set_index('date', inplace=True)
In [3]: df
Out[3]:
group val
date
2016-01-03 1 5
2016-01-10 1 6
2016-01-17 2 7
2016-01-24 2 8
In [4]: df.groupby('group').resample('1D', fill_method='ffill')
Out[4]:
val
group date
1 2016-01-03 5
2016-01-04 5
2016-01-05 5
2016-01-06 5
2016-01-07 5
2016-01-08 5
2016-01-09 5
2016-01-10 6
2 2016-01-17 7
2016-01-18 7
2016-01-19 7
2016-01-20 7
2016-01-21 7
2016-01-22 7
2016-01-23 7
2016-01-24 8
In [5]: pd.__version__
Out[5]: u'0.17.1'
```
while with master you get:
```
In [29]: df.groupby('group').resample('1D', fill_method='ffill')
Out[29]: <pandas.core.groupby.DataFrameGroupBy object at 0x0000000009BA73C8>
```
which will give you different results/error with further operations on that. Also, this case does not raise any FutureWarning (which should, as the user should adapt the code to `groupby().resample('D').ffill()`)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12448/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12448/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12449 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12449/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12449/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12449/events | https://github.com/pandas-dev/pandas/pull/12449 | 136,572,880 | MDExOlB1bGxSZXF1ZXN0NjA3ODA4MDc= | 12,449 | BUG: resample 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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 24 | 2016-02-26T02:00:01Z | 2016-04-19T13:00:54Z | 2016-03-08T23:39:51Z | CONTRIBUTOR | null | make sure .resample(...).plot() warns and returns a correct plotting object
make sure that .groupby(...).resample(....) is hitting warnings when appropriate
closes #12448
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12449/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12449/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12449.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12449",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12449.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12449"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12450 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12450/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12450/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12450/events | https://github.com/pandas-dev/pandas/issues/12450 | 136,615,263 | MDU6SXNzdWUxMzY2MTUyNjM= | 12,450 | Feature request: groupby.plot() generate subplots not working | {
"avatar_url": "https://avatars.githubusercontent.com/u/16588610?v=4",
"events_url": "https://api.github.com/users/RolandRitt/events{/privacy}",
"followers_url": "https://api.github.com/users/RolandRitt/followers",
"following_url": "https://api.github.com/users/RolandRitt/following{/other_user}",
"gists_url": "https://api.github.com/users/RolandRitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RolandRitt",
"id": 16588610,
"login": "RolandRitt",
"node_id": "MDQ6VXNlcjE2NTg4NjEw",
"organizations_url": "https://api.github.com/users/RolandRitt/orgs",
"received_events_url": "https://api.github.com/users/RolandRitt/received_events",
"repos_url": "https://api.github.com/users/RolandRitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RolandRitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RolandRitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RolandRitt"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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 | 3 | 2016-02-26T07:03:04Z | 2021-04-23T01:03:17Z | null | NONE | null | I want to make plots of grouped data, where each plot is plotted in a subplot:
I tried without any kwargs in plotting command, i tried with kwargs `subplots=True` and with `layout=(3,1)` but always only one plot which includes every group is plotted
My code:
```
import sys
import datetime
import matplotlib.pyplot as plt
import pandas as pd
import matplotlib.dates as mdates
import numpy as np
%matplotlib notebook
dates = pd.date_range('2013-07-14 11:00:00', '2013-07-16 11:00:00', freq = 's')
cats = np.random.choice(['m', 'f', 'c'], len(dates))
data =np.random.randn(len(dates),1)
df = pd.DataFrame(data, dates)
df.columns = ['data']
df['cats']= cats
plt.figure()
ax1 = df.groupby('cats')['data'].plot(subplots=True) #Figure1
plt.figure()
ax2 = df.groupby('cats')['data'].plot() #Figure2
plt.figure()
ax3 = df.groupby('cats')['data'].plot(layout=(3,1)) #Figure3
```
Im using
```
pd.__version__
'0.18.0rc1'
```
| {
"+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/12450/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12450/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12451 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12451/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12451/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12451/events | https://github.com/pandas-dev/pandas/issues/12451 | 136,618,325 | MDU6SXNzdWUxMzY2MTgzMjU= | 12,451 | Feature request: groupby.hist() plot each hist in a subplot | {
"avatar_url": "https://avatars.githubusercontent.com/u/16588610?v=4",
"events_url": "https://api.github.com/users/RolandRitt/events{/privacy}",
"followers_url": "https://api.github.com/users/RolandRitt/followers",
"following_url": "https://api.github.com/users/RolandRitt/following{/other_user}",
"gists_url": "https://api.github.com/users/RolandRitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RolandRitt",
"id": 16588610,
"login": "RolandRitt",
"node_id": "MDQ6VXNlcjE2NTg4NjEw",
"organizations_url": "https://api.github.com/users/RolandRitt/orgs",
"received_events_url": "https://api.github.com/users/RolandRitt/received_events",
"repos_url": "https://api.github.com/users/RolandRitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RolandRitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RolandRitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RolandRitt"
} | [
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| closed | false | null | []
| null | 2 | 2016-02-26T07:24:09Z | 2016-02-26T12:13:23Z | 2016-02-26T12:13:23Z | NONE | null | I'd like to use the kwarg `subplots=True` when plotting histogramms of groupby
My code:
```
import os
import sys
import datetime
import matplotlib.pyplot as plt
import pandas as pd
import matplotlib.dates as mdates
import numpy as np
%matplotlib notebook
dates = pd.date_range('2013-07-14 11:00:00', '2013-07-16 11:00:00', freq = 's')
cats = np.random.choice(['m', 'f', 'c'], len(dates))
data =np.random.randn(len(dates),1)
df = pd.DataFrame(data, dates)
df.columns = ['data']
df['cats']= cats
plt.figure()
ax1 = df.groupby('cats')['data'].hist(bins=20, normed=True, subplots=True) #Figure --> not working with subplots=True
```
Would be nice to have this feature in pandas (same would be nice to have in groupby.plot #12450 )
My pandas:
```
pd.__version__
'0.18.0rc1'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12451/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12451/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12452 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12452/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12452/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12452/events | https://github.com/pandas-dev/pandas/issues/12452 | 136,633,724 | MDU6SXNzdWUxMzY2MzM3MjQ= | 12,452 | Feature request: groupby.plot() and groupby.hist() add groupname as figure title | {
"avatar_url": "https://avatars.githubusercontent.com/u/16588610?v=4",
"events_url": "https://api.github.com/users/RolandRitt/events{/privacy}",
"followers_url": "https://api.github.com/users/RolandRitt/followers",
"following_url": "https://api.github.com/users/RolandRitt/following{/other_user}",
"gists_url": "https://api.github.com/users/RolandRitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RolandRitt",
"id": 16588610,
"login": "RolandRitt",
"node_id": "MDQ6VXNlcjE2NTg4NjEw",
"organizations_url": "https://api.github.com/users/RolandRitt/orgs",
"received_events_url": "https://api.github.com/users/RolandRitt/received_events",
"repos_url": "https://api.github.com/users/RolandRitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RolandRitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RolandRitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RolandRitt"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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 | 3 | 2016-02-26T08:56:10Z | 2021-04-23T01:03:45Z | null | NONE | null | Hello!
I'm plotting histogramms and line plots from a groupby - object. It works fine and for each group a figure is generated. But i think a nice feature would be to automatically add the groupname (label) as figure title to each figure. Below you can see a line and a histplot from one group


My code:
```
import os
import sys
import datetime
import matplotlib.pyplot as plt
import pandas as pd
import matplotlib.dates as mdates
import numpy as np
%matplotlib notebook
dates = pd.date_range('2013-07-14 11:00:00', '2013-07-16 11:00:00', freq = 's')
cats = np.random.choice(['m', 'f', 'c'], len(dates))
data =np.random.randn(len(dates),1)
data2 =np.random.randn(len(dates),1)
df = pd.DataFrame(data, dates)
df.columns = ['data']
df['cats']= cats
df['data2'] = data2
plt.figure()
ax1 = df.groupby('cats').hist(bins=20, normed=True) #Figure1
#ax1 = df.groupby('cats').plot(subplots=True, layout=(3,1)) #Figure1
plt.figure()
ax1 = df.groupby('cats').plot() #Figure1
```
Pandas:
```
pd.__version__
'0.18.0rc1'
```
| {
"+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/12452/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12452/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12453 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12453/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12453/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12453/events | https://github.com/pandas-dev/pandas/issues/12453 | 136,686,241 | MDU6SXNzdWUxMzY2ODYyNDE= | 12,453 | BUG: excel export merge margin | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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"
} | 12 | 2016-02-26T12:33:57Z | 2016-06-06T23:20:34Z | 2016-06-06T23:20:34Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```
df = pd.DataFrame([ {"JOB": "Worker", "NAME": "Bob", "YEAR": 2013, "MONTH": 12, "DAYS": 3, "SALARY": 17},
{"JOB": "Employ", "NAME": "Mary", "YEAR": 2013, "MONTH": 12, "DAYS": 5, "SALARY": 23},
{"JOB": "Worker", "NAME": "Bob", "YEAR": 2014, "MONTH": 1, "DAYS": 10, "SALARY": 100},
{"JOB": "Worker", "NAME": "Bob", "YEAR": 2014, "MONTH": 1, "DAYS": 11, "SALARY": 110},
{"JOB": "Employ", "NAME": "Mary", "YEAR": 2014, "MONTH": 1, "DAYS": 15, "SALARY": 200},
{"JOB": "Worker", "NAME": "Bob", "YEAR": 2014, "MONTH": 2, "DAYS": 8, "SALARY": 80},
{"JOB": "Employ", "NAME": "Mary", "YEAR": 2014, "MONTH": 2, "DAYS": 5, "SALARY": 190}])
df = df.set_index(["JOB", "NAME", "YEAR", "MONTH"], drop=False, append=False)
df = df.pivot_table(index=["JOB", "NAME"], columns=["YEAR", "MONTH"], values=["DAYS", "SALARY"], aggfunc={"DAYS": "mean", "SALARY": "sum"}, margins=True)
print(df)
file = r"E:\TESTE.xlsx"
writer = pd.ExcelWriter(file, engine="xlsxwriter", datetime_format="yyyy-mm-dd")
df.to_excel(writer, sheet_name="TESTE", index=True)
writer.save()
```
#### Expected Output
| | SALARY | | | | DAYS | | | | |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| YEAR | | 2013 | 2014 | | All | 2013 | 2014 | | All |
| MONTH | | 12 | 1 | 2 | | 12 | 1 | 2 | |
| JOB | NAME | | | | | | | | |
| Employ | Mary | 23 | 200 | 190 | 413 | 5 | 15.0 | 5.0 | 8.333333 |
| Worker | Bob | 17 | 210 | 80 | 307 | 3 | 10.5 | 8.0 | 8.000000 |
| All | | 40 | 410 | 270 | 720 | 4 | 12.0 | 6.5 | 8.142857 |
But when exporting to Excel, the Month 2, on SALARY and DAYS, merges with the next column and All above.
2014 .......... | All ...........|
1 ..... | 2 ....................... |
15 ... | 5 ..... | 8.333333 |
When exporting to HTML it's ok with the header but, if the value cell has no value then shows cuts the columns.
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 2012ServerR2
machine: AMD64
processor: Intel64 Family 6 Model 47 Stepping 2, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: None
pip: 8.0.2
setuptools: 20.1.1
Cython: None
numpy: 1.10.4
scipy: 0.17.0
statsmodels: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: None
xlsxwriter: 0.8.4
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: None
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/12453/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12453/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12454 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12454/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12454/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12454/events | https://github.com/pandas-dev/pandas/issues/12454 | 136,687,672 | MDU6SXNzdWUxMzY2ODc2NzI= | 12,454 | Feature Request: enhance DatetimeIndex formatting if freq=None | {
"avatar_url": "https://avatars.githubusercontent.com/u/16588610?v=4",
"events_url": "https://api.github.com/users/RolandRitt/events{/privacy}",
"followers_url": "https://api.github.com/users/RolandRitt/followers",
"following_url": "https://api.github.com/users/RolandRitt/following{/other_user}",
"gists_url": "https://api.github.com/users/RolandRitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RolandRitt",
"id": 16588610,
"login": "RolandRitt",
"node_id": "MDQ6VXNlcjE2NTg4NjEw",
"organizations_url": "https://api.github.com/users/RolandRitt/orgs",
"received_events_url": "https://api.github.com/users/RolandRitt/received_events",
"repos_url": "https://api.github.com/users/RolandRitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RolandRitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RolandRitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RolandRitt"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "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 | 2016-02-26T12:42:12Z | 2021-04-23T01:04:29Z | null | NONE | null | I have a Dataframe with a DatetimeIndex spanning more than one day (`freq=1D`).
From this DataFrame i extract a subset with groupby (--> leads to a Dataframe with `freq=None`)
When I plot these DataFrames, the xaxis (DateTimeIndex) is fromatted in two different ways. If freq is specified (`freq=1D`) the xaxis-ticks look like I desire it.
But the Dataframe with `freq=None` the xaxis shows only timestamps without day, month or year (because the Timerange is more than one day some ticks are doubled..and so its confusing and hard to read)
It would be fine if the xaxis-Ticks would be formatted the same way (show year, month and day)


My code:
```
import os
mport sys
import datetime
import matplotlib.pyplot as plt
import pandas as pd
import matplotlib.dates as mdates
import numpy as np
%matplotlib notebook
dates = pd.date_range('2013-07-14 11:00:00', '2013-07-16 11:00:00', freq = 's')
cats = np.random.choice(['m', 'f', 'c'], len(dates))
data =np.random.randn(len(dates),1)
data2 =np.random.randn(len(dates),1)
df = pd.DataFrame(data, dates)
df.columns = ['data']
df['cats']= cats
df['data2'] = data2
df.plot()
data_grouped = df.groupby('cats')
df2 = pd.DataFrame(data_grouped.get_group('m'))
df2.plot()
```
Pandas Version
```
pd.__version__
'0.18.0rc1'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12454/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12454/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12455 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12455/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12455/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12455/events | https://github.com/pandas-dev/pandas/issues/12455 | 136,691,537 | MDU6SXNzdWUxMzY2OTE1Mzc= | 12,455 | Bug: groupby TimeGrouper and plotting --> TypeError: cannot concatenate a non-NDFrame object | {
"avatar_url": "https://avatars.githubusercontent.com/u/16588610?v=4",
"events_url": "https://api.github.com/users/RolandRitt/events{/privacy}",
"followers_url": "https://api.github.com/users/RolandRitt/followers",
"following_url": "https://api.github.com/users/RolandRitt/following{/other_user}",
"gists_url": "https://api.github.com/users/RolandRitt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RolandRitt",
"id": 16588610,
"login": "RolandRitt",
"node_id": "MDQ6VXNlcjE2NTg4NjEw",
"organizations_url": "https://api.github.com/users/RolandRitt/orgs",
"received_events_url": "https://api.github.com/users/RolandRitt/received_events",
"repos_url": "https://api.github.com/users/RolandRitt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RolandRitt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RolandRitt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RolandRitt"
} | [
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"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": 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"
} | 4 | 2016-02-26T13:01:28Z | 2019-10-16T04:09:35Z | 2019-10-16T04:09:35Z | NONE | null | Wan't to group a Dataframe with a DatetimeIndex by a defined frequency. I managed to get the groups by using a TimeGrouper object.
But if I plot the `DataFrameGroupBy` object i get the following
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-55-85ee4aed1e5a> in <module>()
27
28 ax1 = grouped_data1.hist(bins = 20, normed=True) # --> groubb
---> 29 ax2 = grouped_data2.hist(bins = 20, normed=True) # --> groupby
C:\Anaconda3\lib\site-packages\pandas\core\groupby.py in wrapper(*args, **kwargs)
528 # exception below
529 if name in _plotting_methods:
--> 530 return self.apply(curried)
531
532 try:
C:\Anaconda3\lib\site-packages\pandas\core\groupby.py in apply(self, func, *args, **kwargs)
637 # ignore SettingWithCopy here in case the user mutates
638 with option_context('mode.chained_assignment', None):
--> 639 return self._python_apply_general(f)
640
641 def _python_apply_general(self, f):
C:\Anaconda3\lib\site-packages\pandas\core\groupby.py in _python_apply_general(self, f)
644
645 return self._wrap_applied_output(keys, values,
--> 646 not_indexed_same=mutated)
647
648 def _iterate_slices(self):
C:\Anaconda3\lib\site-packages\pandas\core\groupby.py in _wrap_applied_output(self, keys, values, not_indexed_same)
3318 # Handle cases like BinGrouper
3319 return self._concat_objects(keys, values,
-> 3320 not_indexed_same=not_indexed_same)
3321
3322 def _transform_general(self, func, *args, **kwargs):
C:\Anaconda3\lib\site-packages\pandas\core\groupby.py in _concat_objects(self, keys, values, not_indexed_same)
807 group_names = self.grouper.names
808 result = concat(values, axis=self.axis, keys=group_keys,
--> 809 levels=group_levels, names=group_names)
810 else:
811
C:\Anaconda3\lib\site-packages\pandas\tools\merge.py in concat(objs, axis, join, join_axes, ignore_index, keys, levels, names, verify_integrity, copy)
832 keys=keys, levels=levels, names=names,
833 verify_integrity=verify_integrity,
--> 834 copy=copy)
835 return op.get_result()
836
C:\Anaconda3\lib\site-packages\pandas\tools\merge.py in __init__(self, objs, axis, join, join_axes, keys, levels, names, ignore_index, verify_integrity, copy)
888 for obj in objs:
889 if not isinstance(obj, NDFrame):
--> 890 raise TypeError("cannot concatenate a non-NDFrame object")
891
892 # consolidate
TypeError: cannot concatenate a non-NDFrame object
```
If I only plot a specific column (SeriesGroupBy) there is no problem!
My code:
```
import os
import sys
import datetime
import matplotlib.pyplot as plt
import pandas as pd
import matplotlib.dates as mdates
import numpy as np
%matplotlib notebook
dates = pd.date_range('2013-07-14 11:00:00', '2013-07-16 11:00:00', freq = 's')
cats = np.random.choice(['m', 'f', 'c'], len(dates))
data =np.random.randn(len(dates),1)
data2 =np.random.randn(len(dates),1)
df = pd.DataFrame(data, dates)
df.columns = ['data']
df['cats']= cats
df['data2'] = data2
plt.figure()
grouped_data1 = df.groupby(pd.TimeGrouper('1D'))['data'] # SeriesGroupBy object
grouped_data2 = df.groupby(pd.TimeGrouper('1D')) # DataFrameGroupBy object
ax1 = grouped_data1.hist(bins = 20, normed=True) # Does work
ax2 = grouped_data2.hist(bins = 20, normed=True) # gives Type Error
```
Pandas Version:
```
pd.__version__
'0.18.0rc1'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12455/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12455/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12456 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12456/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12456/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12456/events | https://github.com/pandas-dev/pandas/pull/12456 | 136,729,041 | MDExOlB1bGxSZXF1ZXN0NjA4NTg5MTk= | 12,456 | Update what's new page with relevant issues for df.query() with in-pl… | {
"avatar_url": "https://avatars.githubusercontent.com/u/17439845?v=4",
"events_url": "https://api.github.com/users/tsstchoi/events{/privacy}",
"followers_url": "https://api.github.com/users/tsstchoi/followers",
"following_url": "https://api.github.com/users/tsstchoi/following{/other_user}",
"gists_url": "https://api.github.com/users/tsstchoi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tsstchoi",
"id": 17439845,
"login": "tsstchoi",
"node_id": "MDQ6VXNlcjE3NDM5ODQ1",
"organizations_url": "https://api.github.com/users/tsstchoi/orgs",
"received_events_url": "https://api.github.com/users/tsstchoi/received_events",
"repos_url": "https://api.github.com/users/tsstchoi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tsstchoi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tsstchoi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tsstchoi"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 1 | 2016-02-26T15:36:40Z | 2016-05-07T17:12:30Z | 2016-05-07T17:12:30Z | CONTRIBUTOR | null | - [x] closes #10486
- [N/A] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
…ace operator
The relevant issues added are :
BUG: query with invalid dtypes should fallback to python engine #10486
BUG: query modifies the frame when you compare with `=` #8664
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12456/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12456/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12456.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12456",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12456.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12456"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12457 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12457/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12457/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12457/events | https://github.com/pandas-dev/pandas/issues/12457 | 136,734,962 | MDU6SXNzdWUxMzY3MzQ5NjI= | 12,457 | Error Creating DataFrame with Single MultiIndexed Column | {
"avatar_url": "https://avatars.githubusercontent.com/u/713139?v=4",
"events_url": "https://api.github.com/users/woztheproblem/events{/privacy}",
"followers_url": "https://api.github.com/users/woztheproblem/followers",
"following_url": "https://api.github.com/users/woztheproblem/following{/other_user}",
"gists_url": "https://api.github.com/users/woztheproblem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/woztheproblem",
"id": 713139,
"login": "woztheproblem",
"node_id": "MDQ6VXNlcjcxMzEzOQ==",
"organizations_url": "https://api.github.com/users/woztheproblem/orgs",
"received_events_url": "https://api.github.com/users/woztheproblem/received_events",
"repos_url": "https://api.github.com/users/woztheproblem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/woztheproblem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/woztheproblem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/woztheproblem"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "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": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
]
| 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"
} | 22 | 2016-02-26T15:57:00Z | 2021-04-23T01:10:16Z | 2021-04-23T01:10:16Z | NONE | null | Attempting to create a DataFrame with a single column that is multiindexed, I get "IndexError: list index out of range".
#### Code Sample, a copy-pastable example if possible
```
df = pd.DataFrame(data=zip(range(100)), columns=[['a','b']])
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-9-5b88e876b2de> in <module>()
----> 1 df = pd.DataFrame(data=zip(range(100)), columns=[['a','b']])
/Users/ewozniak/anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in __init__(self, data, index, columns, dtype, copy)
273
274 mgr = _arrays_to_mgr(arrays, columns, index, columns,
--> 275 dtype=dtype)
276 else:
277 mgr = self._init_ndarray(data, index, columns, dtype=dtype,
/Users/ewozniak/anaconda/lib/python2.7/site-packages/pandas/core/frame.pyc in _arrays_to_mgr(arrays, arr_names, index, columns, dtype)
5236 axes = [_ensure_index(columns), _ensure_index(index)]
5237
-> 5238 return create_block_manager_from_arrays(arrays, arr_names, axes)
5239
5240
/Users/ewozniak/anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in create_block_manager_from_arrays(arrays, names, axes)
3894
3895 try:
-> 3896 blocks = form_blocks(arrays, names, axes)
3897 mgr = BlockManager(blocks, axes)
3898 mgr._consolidate_inplace()
/Users/ewozniak/anaconda/lib/python2.7/site-packages/pandas/core/internals.pyc in form_blocks(arrays, names, axes)
3929
3930 k = names[name_idx]
-> 3931 v = arrays[name_idx]
3932
3933 if is_sparse(v):
IndexError: list index out of range
```
Note, I use zip() in the example above in order to match what the data would look like when creating one dataframe from the data of another data frame using `df.to_json(orient='split')` (which is what I'm trying to do). If I don't use zip(), then I get:
```
df = pd.DataFrame(data=range(100), columns=[['a','b']])
ValueError: Shape of passed values is (1, 100), indices imply (2, 100)
```
This works fine with two (or more) columns:
```
df = pd.DataFrame(data=zip(range(100),range(100)), columns=[['a','b'],['c','d']])
```
#### output of `pd.show_versions()`
I have tried with both pandas 0.17.1 and 0.18.0rc1.
## INSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 15.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0rc1
nose: 1.3.7
pip: 8.0.3
setuptools: 20.1.1
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.4.4
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
jinja2: 2.8
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12457/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12457/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12458 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12458/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12458/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12458/events | https://github.com/pandas-dev/pandas/pull/12458 | 136,767,429 | MDExOlB1bGxSZXF1ZXN0NjA4NzkzMDk= | 12,458 | describe() outputs bool as categorical | {
"avatar_url": "https://avatars.githubusercontent.com/u/37696?v=4",
"events_url": "https://api.github.com/users/vii/events{/privacy}",
"followers_url": "https://api.github.com/users/vii/followers",
"following_url": "https://api.github.com/users/vii/following{/other_user}",
"gists_url": "https://api.github.com/users/vii/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vii",
"id": 37696,
"login": "vii",
"node_id": "MDQ6VXNlcjM3Njk2",
"organizations_url": "https://api.github.com/users/vii/orgs",
"received_events_url": "https://api.github.com/users/vii/received_events",
"repos_url": "https://api.github.com/users/vii/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vii/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vii/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vii"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-02-26T17:58:41Z | 2016-02-27T15:33:54Z | 2016-02-27T15:33:36Z | NONE | null | - [ ] closes #6625
- [ ] tests passed so far
- [ ] passes `git diff upstream/master | flake8 --diff`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12458/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12458/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12458.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12458",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12458.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12458"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12459 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12459/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12459/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12459/events | https://github.com/pandas-dev/pandas/pull/12459 | 136,769,739 | MDExOlB1bGxSZXF1ZXN0NjA4ODAzNTA= | 12,459 | ENH: replace uses of np.isscalar with pd.lib.isscalar | {
"avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4",
"events_url": "https://api.github.com/users/chrisaycock/events{/privacy}",
"followers_url": "https://api.github.com/users/chrisaycock/followers",
"following_url": "https://api.github.com/users/chrisaycock/following{/other_user}",
"gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrisaycock",
"id": 453745,
"login": "chrisaycock",
"node_id": "MDQ6VXNlcjQ1Mzc0NQ==",
"organizations_url": "https://api.github.com/users/chrisaycock/orgs",
"received_events_url": "https://api.github.com/users/chrisaycock/received_events",
"repos_url": "https://api.github.com/users/chrisaycock/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrisaycock"
} | [
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 3 | 2016-02-26T18:06:59Z | 2016-02-27T16:30:24Z | 2016-02-27T14:41:27Z | CONTRIBUTOR | null | Closes #8708
Added note that pd.lib.isscalar() returns True for None, which is different from np.isscalar().
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12459/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12459/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12459.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12459",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12459.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12459"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12460 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12460/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12460/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12460/events | https://github.com/pandas-dev/pandas/issues/12460 | 136,770,884 | MDU6SXNzdWUxMzY3NzA4ODQ= | 12,460 | Implement a human readable summary function like R (less structured than describe) | {
"avatar_url": "https://avatars.githubusercontent.com/u/37696?v=4",
"events_url": "https://api.github.com/users/vii/events{/privacy}",
"followers_url": "https://api.github.com/users/vii/followers",
"following_url": "https://api.github.com/users/vii/following{/other_user}",
"gists_url": "https://api.github.com/users/vii/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vii",
"id": 37696,
"login": "vii",
"node_id": "MDQ6VXNlcjM3Njk2",
"organizations_url": "https://api.github.com/users/vii/orgs",
"received_events_url": "https://api.github.com/users/vii/received_events",
"repos_url": "https://api.github.com/users/vii/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vii/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vii/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vii"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
}
]
| open | false | null | []
| null | 0 | 2016-02-26T18:12:05Z | 2021-04-23T01:11:08Z | null | NONE | null | In R, the summary(data) function provides counts for categorical data of the most frequent values. For datetime and numeric values, it gives their mean, quartiles and range.
The describe function in Pandas is similar but does not provide such a human-readable data output for heterogeneous dataframes. As the output is primarily intended for human consumption, we could make a new summary() function with a new tabular layout designed solely for human consumption.
#### Examples of the R summary function
Heterogeneous columns from input data below:
```
A,1
B,2
C,3
A,1
```
```
summary(d)
V1 V2
A:2 Min. :1.00
B:1 1st Qu.:1.75
C:1 Median :2.50
Mean :2.75
3rd Qu.:3.50
Max. :5.00
```
Datetime example:
```
datetime data
Min. :2012-12-22 12:00:00 Min. :-1.392
1st Qu.:2012-12-22 18:00:00 1st Qu.: 7.906
Median :2012-12-23 00:00:00 Median :10.836
Mean :2012-12-23 00:00:00 Mean :11.271
3rd Qu.:2012-12-23 06:00:00 3rd Qu.:16.362
Max. :2012-12-23 12:00:00 Max. :21.097
```
Discussed with @jreback and he suggested that starting with a new function rather than changing describe.
This is how describe works on heterogeneous columns now, showing how it is difficult to read:
```
In [3]: df = pd.DataFrame({'A' : list('aab'), 'B' : range(3)})
In [4]: df
Out[4]:
A B
0 a 0
1 a 1
2 b 2
In [5]: df.describe()
Out[5]:
B
count 3.0
mean 1.0
std 1.0
min 0.0
25% 0.5
50% 1.0
75% 1.5
max 2.0
In [7]: df.describe(include='all')
Out[7]:
A B
count 3 3.0
unique 2 NaN
top a NaN
freq 2 NaN
mean NaN 1.0
std NaN 1.0
min NaN 0.0
25% NaN 0.5
50% NaN 1.0
75% NaN 1.5
max NaN 2.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/12460/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12460/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12461 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12461/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12461/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12461/events | https://github.com/pandas-dev/pandas/pull/12461 | 136,773,922 | MDExOlB1bGxSZXF1ZXN0NjA4ODIxMzg= | 12,461 | ENH: Improve error message for empty data constructor. #8020 | {
"avatar_url": "https://avatars.githubusercontent.com/u/62266?v=4",
"events_url": "https://api.github.com/users/jylin/events{/privacy}",
"followers_url": "https://api.github.com/users/jylin/followers",
"following_url": "https://api.github.com/users/jylin/following{/other_user}",
"gists_url": "https://api.github.com/users/jylin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jylin",
"id": 62266,
"login": "jylin",
"node_id": "MDQ6VXNlcjYyMjY2",
"organizations_url": "https://api.github.com/users/jylin/orgs",
"received_events_url": "https://api.github.com/users/jylin/received_events",
"repos_url": "https://api.github.com/users/jylin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jylin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jylin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jylin"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 3 | 2016-02-26T18:21:08Z | 2016-02-27T14:46:40Z | 2016-02-27T14:46:28Z | CONTRIBUTOR | null | - [X] closes #8020
- [X] tests added / passed
- [X] passes `git diff upstream/master | flake8 --diff`
- [X] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12461/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12461/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12461.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12461",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12461.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12461"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12462 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12462/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12462/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12462/events | https://github.com/pandas-dev/pandas/pull/12462 | 136,774,727 | MDExOlB1bGxSZXF1ZXN0NjA4ODI0Mzc= | 12,462 | BUG: fix df concat containing mix of localized and non-localized Timestamps | {
"avatar_url": "https://avatars.githubusercontent.com/u/16540200?v=4",
"events_url": "https://api.github.com/users/tsdlovell/events{/privacy}",
"followers_url": "https://api.github.com/users/tsdlovell/followers",
"following_url": "https://api.github.com/users/tsdlovell/following{/other_user}",
"gists_url": "https://api.github.com/users/tsdlovell/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tsdlovell",
"id": 16540200,
"login": "tsdlovell",
"node_id": "MDQ6VXNlcjE2NTQwMjAw",
"organizations_url": "https://api.github.com/users/tsdlovell/orgs",
"received_events_url": "https://api.github.com/users/tsdlovell/received_events",
"repos_url": "https://api.github.com/users/tsdlovell/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tsdlovell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tsdlovell/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tsdlovell"
} | [
{
"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": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 11 | 2016-02-26T18:23:29Z | 2016-04-06T13:00:19Z | 2016-04-06T13:00:10Z | CONTRIBUTOR | null | BUG: fix issue with concat of localized timestamps
TST: test concat of dataframes with non-None timezone columns
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12462/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12462/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12462.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12462",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12462.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12462"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12463 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12463/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12463/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12463/events | https://github.com/pandas-dev/pandas/pull/12463 | 136,778,920 | MDExOlB1bGxSZXF1ZXN0NjA4ODQ4MDk= | 12,463 | ENH: add missing methods to .dt for Period, resolves #8848 | {
"avatar_url": "https://avatars.githubusercontent.com/u/5356340?v=4",
"events_url": "https://api.github.com/users/rosnfeld/events{/privacy}",
"followers_url": "https://api.github.com/users/rosnfeld/followers",
"following_url": "https://api.github.com/users/rosnfeld/following{/other_user}",
"gists_url": "https://api.github.com/users/rosnfeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rosnfeld",
"id": 5356340,
"login": "rosnfeld",
"node_id": "MDQ6VXNlcjUzNTYzNDA=",
"organizations_url": "https://api.github.com/users/rosnfeld/orgs",
"received_events_url": "https://api.github.com/users/rosnfeld/received_events",
"repos_url": "https://api.github.com/users/rosnfeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rosnfeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rosnfeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rosnfeld"
} | [
{
"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": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 4 | 2016-02-26T18:42:14Z | 2016-02-27T18:05:01Z | 2016-02-27T16:02:50Z | CONTRIBUTOR | null | - [x] closes #8848
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Not 100% complete, but putting this in as a place to house comments:
- I am not sure where to put the whatsnew entry - 0.18.0 or 0.18.1?
- Also not sure if you'd like tests on the actual usage in the .dt accessor, there are actually no tests anywhere in pandas (as far as I can tell) on period_series.dt.\* (as opposed to PeriodIndex). I just added a couple PeriodIndex 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/12463/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12463/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12463.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12463",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12463.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12463"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12464 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12464/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12464/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12464/events | https://github.com/pandas-dev/pandas/issues/12464 | 136,780,059 | MDU6SXNzdWUxMzY3ODAwNTk= | 12,464 | Missing data and np.seterr(all='raise'): Viewing the missing yields FloatingPointError | {
"avatar_url": "https://avatars.githubusercontent.com/u/972196?v=4",
"events_url": "https://api.github.com/users/eXcuvator/events{/privacy}",
"followers_url": "https://api.github.com/users/eXcuvator/followers",
"following_url": "https://api.github.com/users/eXcuvator/following{/other_user}",
"gists_url": "https://api.github.com/users/eXcuvator/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/eXcuvator",
"id": 972196,
"login": "eXcuvator",
"node_id": "MDQ6VXNlcjk3MjE5Ng==",
"organizations_url": "https://api.github.com/users/eXcuvator/orgs",
"received_events_url": "https://api.github.com/users/eXcuvator/received_events",
"repos_url": "https://api.github.com/users/eXcuvator/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/eXcuvator/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eXcuvator/subscriptions",
"type": "User",
"url": "https://api.github.com/users/eXcuvator"
} | [
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "0052cc",
"default": false,
"description": 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 | 4 | 2016-02-26T18:48:30Z | 2016-02-27T15:17:19Z | 2016-02-27T02:28:26Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```
import numpy as np
import pandas as pd
np.seterr(all='raise')
s = pd.Series([np.nan,np.nan,np.nan],index=[1,2,3]); print(s); print(s.head())
```
#### Expected Output
Certainly not a FloatingPointError:
`FloatingPointError: invalid value encountered in greater.`
The issue appears to lie in numpy, as
`np.array([np.nan, np.nan]) > 1e8`
also raises the error. I have cross-posted the issue [there](https://github.com/numpy/numpy/issues/7352), but thought you guys also would want to be aware of this.
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 3.19.0-49-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: None
pip: 8.0.3
setuptools: 20.1.1
Cython: None
numpy: 1.10.4
scipy: 0.16.0
statsmodels: None
IPython: 4.0.1
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: 2.5
matplotlib: 1.5.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
Jinja2: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12464/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12464/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12465 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12465/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12465/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12465/events | https://github.com/pandas-dev/pandas/pull/12465 | 136,780,827 | MDExOlB1bGxSZXF1ZXN0NjA4ODYwMDI= | 12,465 | Confirm timedelta algos work | {
"avatar_url": "https://avatars.githubusercontent.com/u/17496359?v=4",
"events_url": "https://api.github.com/users/dwmit/events{/privacy}",
"followers_url": "https://api.github.com/users/dwmit/followers",
"following_url": "https://api.github.com/users/dwmit/following{/other_user}",
"gists_url": "https://api.github.com/users/dwmit/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dwmit",
"id": 17496359,
"login": "dwmit",
"node_id": "MDQ6VXNlcjE3NDk2MzU5",
"organizations_url": "https://api.github.com/users/dwmit/orgs",
"received_events_url": "https://api.github.com/users/dwmit/received_events",
"repos_url": "https://api.github.com/users/dwmit/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dwmit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dwmit/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dwmit"
} | [
{
"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": "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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-02-26T18:51:34Z | 2016-02-27T15:23:16Z | 2016-02-27T15:22:59Z | NONE | null | - closes #5986
- 3 tests added / passed: rank, factorize, mode
- confirm the other 3 tests already exist: unique, quantile, value_counts
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12465/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12465/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12465.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12465",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12465.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12465"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12466 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12466/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12466/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12466/events | https://github.com/pandas-dev/pandas/issues/12466 | 136,788,399 | MDU6SXNzdWUxMzY3ODgzOTk= | 12,466 | DataFrame.plot.scatter() raises a TypeError when plotting bubble plots | {
"avatar_url": "https://avatars.githubusercontent.com/u/6819104?v=4",
"events_url": "https://api.github.com/users/frankzhewang/events{/privacy}",
"followers_url": "https://api.github.com/users/frankzhewang/followers",
"following_url": "https://api.github.com/users/frankzhewang/following{/other_user}",
"gists_url": "https://api.github.com/users/frankzhewang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/frankzhewang",
"id": 6819104,
"login": "frankzhewang",
"node_id": "MDQ6VXNlcjY4MTkxMDQ=",
"organizations_url": "https://api.github.com/users/frankzhewang/orgs",
"received_events_url": "https://api.github.com/users/frankzhewang/received_events",
"repos_url": "https://api.github.com/users/frankzhewang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/frankzhewang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/frankzhewang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/frankzhewang"
} | [
{
"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": "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 | []
| null | 1 | 2016-02-26T19:20:09Z | 2016-02-26T19:48:17Z | 2016-02-26T19:48:03Z | NONE | null | #### Issue
The following code will raise a TypeError exception:
``` python
from pandas import DataFrame
import numpy as np
df = DataFrame(np.random.randn(5,2), columns=['x', 'y'])
df['s'] = np.random.random_integers(low=100, high=200, size=5)
df.plot.scatter(x='x', y='y', s='s')
```
However, there's no problem in using matplotlib directly:
``` python
from pandas import DataFrame
import numpy as np
import matplotlib.pyplot as plt
df = DataFrame(np.random.randn(5,2), columns=['x', 'y'])
df['s'] = np.random.random_integers(low=100, high=200, size=5)
plt.scatter(x=df['x'], y=df['y'], s=df['s'])
```
Note: This issue only arises when argument `s` is used. The ordinary x-y scatter plot works fine.
#### Traceback details
``` python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-28-a2c96d4293aa> in <module>()
4 df = DataFrame(np.random.randn(5,2), columns=['x', 'y'])
5 df['s'] = np.random.random_integers(low=100, high=200, size=5)
----> 6 df.plot.scatter(x='x', y='y', s='s')
/Users/fzw/anaconda/envs/ds/lib/python3.5/site-packages/pandas/tools/plotting.py in scatter(self, x, y, s, c, **kwds)
3847 axes : matplotlib.AxesSubplot or np.array of them
3848 """
-> 3849 return self(kind='scatter', x=x, y=y, c=c, s=s, **kwds)
3850
3851 def hexbin(self, x, y, C=None, reduce_C_function=None, gridsize=None,
/Users/fzw/anaconda/envs/ds/lib/python3.5/site-packages/pandas/tools/plotting.py in __call__(self, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds)
3669 fontsize=fontsize, colormap=colormap, table=table,
3670 yerr=yerr, xerr=xerr, secondary_y=secondary_y,
-> 3671 sort_columns=sort_columns, **kwds)
3672 __call__.__doc__ = plot_frame.__doc__
3673
/Users/fzw/anaconda/envs/ds/lib/python3.5/site-packages/pandas/tools/plotting.py in plot_frame(data, x, y, kind, ax, subplots, sharex, sharey, layout, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, secondary_y, sort_columns, **kwds)
2554 yerr=yerr, xerr=xerr,
2555 secondary_y=secondary_y, sort_columns=sort_columns,
-> 2556 **kwds)
2557
2558
/Users/fzw/anaconda/envs/ds/lib/python3.5/site-packages/pandas/tools/plotting.py in _plot(data, x, y, subplots, ax, kind, **kwds)
2382 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds)
2383
-> 2384 plot_obj.generate()
2385 plot_obj.draw()
2386 return plot_obj.result
/Users/fzw/anaconda/envs/ds/lib/python3.5/site-packages/pandas/tools/plotting.py in generate(self)
985 self._compute_plot_data()
986 self._setup_subplots()
--> 987 self._make_plot()
988 self._add_table()
989 self._make_legend()
/Users/fzw/anaconda/envs/ds/lib/python3.5/site-packages/pandas/tools/plotting.py in _make_plot(self)
1557 label = None
1558 scatter = ax.scatter(data[x].values, data[y].values, c=c_values,
-> 1559 label=label, cmap=cmap, **self.kwds)
1560 if cb:
1561 img = ax.collections[0]
/Users/fzw/anaconda/envs/ds/lib/python3.5/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs)
1810 warnings.warn(msg % (label_namer, func.__name__),
1811 RuntimeWarning, stacklevel=2)
-> 1812 return func(ax, *args, **kwargs)
1813 pre_doc = inner.__doc__
1814 if pre_doc is None:
/Users/fzw/anaconda/envs/ds/lib/python3.5/site-packages/matplotlib/axes/_axes.py in scatter(self, x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, verts, edgecolors, **kwargs)
3891 offsets=offsets,
3892 transOffset=kwargs.pop('transform', self.transData),
-> 3893 alpha=alpha
3894 )
3895 collection.set_transform(mtransforms.IdentityTransform())
/Users/fzw/anaconda/envs/ds/lib/python3.5/site-packages/matplotlib/collections.py in __init__(self, paths, sizes, **kwargs)
831 Collection.__init__(self, **kwargs)
832 self.set_paths(paths)
--> 833 self.set_sizes(sizes)
834 self.stale = True
835
/Users/fzw/anaconda/envs/ds/lib/python3.5/site-packages/matplotlib/collections.py in set_sizes(self, sizes, dpi)
804 self._sizes = np.asarray(sizes)
805 self._transforms = np.zeros((len(self._sizes), 3, 3))
--> 806 scale = np.sqrt(self._sizes) * dpi / 72.0 * self._factor
807 self._transforms[:, 0, 0] = scale
808 self._transforms[:, 1, 1] = scale
TypeError: ufunc 'sqrt' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.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.17.1
nose: None
pip: 8.0.1
setuptools: 19.4
Cython: None
numpy: 1.10.2
scipy: 0.16.1
statsmodels: None
IPython: 4.0.3
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: 2.8
```
| {
"+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/12466/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12466/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12467 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12467/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12467/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12467/events | https://github.com/pandas-dev/pandas/issues/12467 | 136,791,919 | MDU6SXNzdWUxMzY3OTE5MTk= | 12,467 | Concat of tz-aware and tz-unaware dataframes fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/16540200?v=4",
"events_url": "https://api.github.com/users/tsdlovell/events{/privacy}",
"followers_url": "https://api.github.com/users/tsdlovell/followers",
"following_url": "https://api.github.com/users/tsdlovell/following{/other_user}",
"gists_url": "https://api.github.com/users/tsdlovell/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tsdlovell",
"id": 16540200,
"login": "tsdlovell",
"node_id": "MDQ6VXNlcjE2NTQwMjAw",
"organizations_url": "https://api.github.com/users/tsdlovell/orgs",
"received_events_url": "https://api.github.com/users/tsdlovell/received_events",
"repos_url": "https://api.github.com/users/tsdlovell/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tsdlovell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tsdlovell/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tsdlovell"
} | [
{
"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": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 2 | 2016-02-26T19:33:34Z | 2016-04-06T13:00:10Z | 2016-04-06T13:00:10Z | CONTRIBUTOR | null | This snippet
``` python
import pandas as pd
df1 = pd.DataFrame(dict(time=[pd.Timestamp('2015-01-01', tz=None)]))
df2 = pd.DataFrame(dict(time=[pd.Timestamp('2015-01-01', tz='UTC')]))
pd.concat([df1, df2])
```
causes
> .../pandas/tseries/common.py in _concat_compat(to_concat, axis)
> 282 if 'datetime' in typs or 'object' in typs:
> 283 to_concat = [convert_to_pydatetime(x, axis) for x in to_concat]
> --> 284 return np.concatenate(to_concat, axis=axis)
> 285
> 286 # we require ALL of the same tz for datetimetz
>
> ValueError: all the input arrays must have same number of dimensions
We would expect it to return something like this
> pd.DataFrame(dict(time=pd.Series([pd.Timestamp('2015-01-01', tz=None), pd.Timestamp('2015-01-01', tz='UTC')], dtype=object)))
> Out[18]:
> time
> 0 2015-01-01 00:00:00
> 1 2015-01-01 00:00:00+00:00
output of `pd.show_versions()`
### INSTALLED VERSIONS
commit: fe584e7829dc4dd9fa585a7fbf5fd47fc6f4b057
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-53-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0rc1+47.gfe584e7
nose: 1.3.7
pip: 8.0.3
setuptools: 20.1.1
Cython: 0.23.4
numpy: 1.10.4
scipy: None
statsmodels: None
xarray: None
IPython: 4.1.1
sphinx: 1.3.5
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 0.9.4
sqlalchemy: 0.9.4
pymysql: None
psycopg2: None
jinja2: 2.8
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12467/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12467/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12468 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12468/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12468/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12468/events | https://github.com/pandas-dev/pandas/pull/12468 | 136,798,434 | MDExOlB1bGxSZXF1ZXN0NjA4OTUwMDQ= | 12,468 | MAINT: Nicely inform users if they're missing hard dependencies. | {
"avatar_url": "https://avatars.githubusercontent.com/u/2286456?v=4",
"events_url": "https://api.github.com/users/mfarrugi/events{/privacy}",
"followers_url": "https://api.github.com/users/mfarrugi/followers",
"following_url": "https://api.github.com/users/mfarrugi/following{/other_user}",
"gists_url": "https://api.github.com/users/mfarrugi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mfarrugi",
"id": 2286456,
"login": "mfarrugi",
"node_id": "MDQ6VXNlcjIyODY0NTY=",
"organizations_url": "https://api.github.com/users/mfarrugi/orgs",
"received_events_url": "https://api.github.com/users/mfarrugi/received_events",
"repos_url": "https://api.github.com/users/mfarrugi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mfarrugi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mfarrugi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mfarrugi"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-02-26T19:58:05Z | 2016-02-27T14:28:15Z | 2016-02-27T14:28:05Z | CONTRIBUTOR | null | Closes #12176
- [✓] tests pass
Manually tested with condas environments w/ all and no dependencies.
- [✓] passes `git diff upstream/master | flake8 --diff`
- [✗] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12468/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12468/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12468.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12468",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12468.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12468"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12469 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12469/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12469/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12469/events | https://github.com/pandas-dev/pandas/pull/12469 | 136,799,611 | MDExOlB1bGxSZXF1ZXN0NjA4OTU2NzU= | 12,469 | CLN: consolidate Series.quantile and DataFrame.quantile | {
"avatar_url": "https://avatars.githubusercontent.com/u/1283901?v=4",
"events_url": "https://api.github.com/users/sergeibernstein/events{/privacy}",
"followers_url": "https://api.github.com/users/sergeibernstein/followers",
"following_url": "https://api.github.com/users/sergeibernstein/following{/other_user}",
"gists_url": "https://api.github.com/users/sergeibernstein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sergeibernstein",
"id": 1283901,
"login": "sergeibernstein",
"node_id": "MDQ6VXNlcjEyODM5MDE=",
"organizations_url": "https://api.github.com/users/sergeibernstein/orgs",
"received_events_url": "https://api.github.com/users/sergeibernstein/received_events",
"repos_url": "https://api.github.com/users/sergeibernstein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sergeibernstein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sergeibernstein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sergeibernstein"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
]
| closed | false | null | []
| null | 2 | 2016-02-26T20:02:49Z | 2016-04-03T17:03:18Z | 2016-04-03T17:03:18Z | NONE | null | - closes #10207
- Slightly modified test in tests/series/tests_analytics.py:575 to standardize behavior across Series and DataFrame
- passes `git diff upstream/master | flake8 --diff`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12469/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12469/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12469.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12469",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12469.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12469"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12470 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12470/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12470/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12470/events | https://github.com/pandas-dev/pandas/issues/12470 | 136,809,824 | MDU6SXNzdWUxMzY4MDk4MjQ= | 12,470 | [Feature Request] Pass array of timezones to pandas.Series.tz_convert | {
"avatar_url": "https://avatars.githubusercontent.com/u/2790092?v=4",
"events_url": "https://api.github.com/users/AlJohri/events{/privacy}",
"followers_url": "https://api.github.com/users/AlJohri/followers",
"following_url": "https://api.github.com/users/AlJohri/following{/other_user}",
"gists_url": "https://api.github.com/users/AlJohri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlJohri",
"id": 2790092,
"login": "AlJohri",
"node_id": "MDQ6VXNlcjI3OTAwOTI=",
"organizations_url": "https://api.github.com/users/AlJohri/orgs",
"received_events_url": "https://api.github.com/users/AlJohri/received_events",
"repos_url": "https://api.github.com/users/AlJohri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlJohri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlJohri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlJohri"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| null | 4 | 2016-02-26T20:43:29Z | 2016-02-27T14:20:46Z | 2016-02-27T02:51:06Z | NONE | null | This feature request spurs from this StackOverflow question: http://stackoverflow.com/questions/35659927/how-can-i-get-the-timezone-adjusted-hour-for-each-row-in-a-pandas-dataframe-when
The relevant portions are copied here.
Given a DataFrame like:
```
# publication_timestamp timezone
# uuid
#0 2015-07-28 00:10:05.852 US/Central
#1 2015-10-03 00:17:43.000 US/Eastern
#2 2015-08-20 01:15:52.693 US/Eastern
#3 2015-09-09 00:02:03.083 US/Pacific
#4 2015-12-08 00:02:41.390 US/Mountain
```
I would like to output a DataFrame like this:
```
# publication_timestamp timezone hour adjusted_hour time_of_day
# uuid
#0 2015-07-28 00:10:05.852 US/Central 0 19 evening
#1 2015-10-03 00:17:43.000 US/Eastern 0 20 evening
#2 2015-08-20 01:15:52.693 US/Eastern 1 21 evening
#3 2015-09-09 00:02:03.083 US/Pacific 0 17 evening
#4 2015-12-08 00:02:41.390 US/Mountain 0 17 evening
```
I would like to be able to pass `tz_convert` a column of timezones and have each row using a different timezone.
**I understand that you can't (shouldn't?) combine multiple dtypes in the same column**, HOWEVER - I would like to just use this as an intermediate step in getting the timezone adjusted hour (i.e. time of day) for each row.
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.3
setuptools: 19.4
Cython: None
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
IPython: 4.1.1
sphinx: 1.3.5
patsy: 0.4.1
dateutil: 2.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: 2.2.0-b1
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: 3.5.0
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.4.2
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
Jinja2: 2.8
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12470/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12470/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12471 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12471/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12471/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12471/events | https://github.com/pandas-dev/pandas/pull/12471 | 136,809,951 | MDExOlB1bGxSZXF1ZXN0NjA5MDExNTI= | 12,471 | CLN/BUILD: Fix warnings on build | {
"avatar_url": "https://avatars.githubusercontent.com/u/17463852?v=4",
"events_url": "https://api.github.com/users/dgram0/events{/privacy}",
"followers_url": "https://api.github.com/users/dgram0/followers",
"following_url": "https://api.github.com/users/dgram0/following{/other_user}",
"gists_url": "https://api.github.com/users/dgram0/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dgram0",
"id": 17463852,
"login": "dgram0",
"node_id": "MDQ6VXNlcjE3NDYzODUy",
"organizations_url": "https://api.github.com/users/dgram0/orgs",
"received_events_url": "https://api.github.com/users/dgram0/received_events",
"repos_url": "https://api.github.com/users/dgram0/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dgram0/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dgram0/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dgram0"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-02-26T20:43:54Z | 2016-02-27T14:56:53Z | 2016-02-27T14:55:55Z | CONTRIBUTOR | null | - [x] progress towards closing #5385
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12471/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12471/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12471.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12471",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12471.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12471"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12472 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12472/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12472/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12472/events | https://github.com/pandas-dev/pandas/pull/12472 | 136,812,307 | MDExOlB1bGxSZXF1ZXN0NjA5MDI1MTk= | 12,472 | DOC: expanding comparison with R section | {
"avatar_url": "https://avatars.githubusercontent.com/u/46406?v=4",
"events_url": "https://api.github.com/users/leifwalsh/events{/privacy}",
"followers_url": "https://api.github.com/users/leifwalsh/followers",
"following_url": "https://api.github.com/users/leifwalsh/following{/other_user}",
"gists_url": "https://api.github.com/users/leifwalsh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/leifwalsh",
"id": 46406,
"login": "leifwalsh",
"node_id": "MDQ6VXNlcjQ2NDA2",
"organizations_url": "https://api.github.com/users/leifwalsh/orgs",
"received_events_url": "https://api.github.com/users/leifwalsh/received_events",
"repos_url": "https://api.github.com/users/leifwalsh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/leifwalsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leifwalsh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/leifwalsh"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 5 | 2016-02-26T20:54:16Z | 2016-04-27T14:02:18Z | 2016-04-27T14:01:13Z | CONTRIBUTOR | null | - [ ] closes #9815
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
This is the beginning of a quick reference section. It's incomplete,
just did a rough translation of
http://nbviewer.jupyter.org/urls/gist.githubusercontent.com/TomAugspurger/6e052140eaa5fdb6e8c0/raw/811585624e843f3f80b9b6fe89e18119d7d2d73c/dplyr_pandas.ipynb
into tables. Should try to get some R experts to comment, and it would
be nice to have the pandas versions link to docs for the functions being
used, but I'm terrible at reStructuredText and gave up for the moment.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12472/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12472/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12472.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12472",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12472.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12472"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12473 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12473/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12473/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12473/events | https://github.com/pandas-dev/pandas/issues/12473 | 136,814,457 | MDU6SXNzdWUxMzY4MTQ0NTc= | 12,473 | Pandas datetime64 series no longer has map function when localized | {
"avatar_url": "https://avatars.githubusercontent.com/u/2790092?v=4",
"events_url": "https://api.github.com/users/AlJohri/events{/privacy}",
"followers_url": "https://api.github.com/users/AlJohri/followers",
"following_url": "https://api.github.com/users/AlJohri/following{/other_user}",
"gists_url": "https://api.github.com/users/AlJohri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlJohri",
"id": 2790092,
"login": "AlJohri",
"node_id": "MDQ6VXNlcjI3OTAwOTI=",
"organizations_url": "https://api.github.com/users/AlJohri/orgs",
"received_events_url": "https://api.github.com/users/AlJohri/received_events",
"repos_url": "https://api.github.com/users/AlJohri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlJohri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlJohri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlJohri"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 2 | 2016-02-26T21:04:14Z | 2020-07-15T19:58:08Z | 2016-04-18T17:17:44Z | NONE | null | Create test DF.
```
df = pd.DataFrame({"uuid": [0,1,2,3,4], "publication_timestamp": ["2015-07-28 00:10:05.852", "2015-10-03 00:17:43.000", "2015-08-20 01:15:52.693", "2015-09-09 00:02:03.083", "2015-12-08 00:02:41.390"], "timezone": ["US/Central", "US/Eastern", "US/Eastern", "US/Pacific", "US/Mountain"]}).set_index('uuid')
```
```
publication_timestamp timezone
uuid
0 2015-07-28 04:10:05.852000+00:00 US/Central
1 2015-10-03 04:17:43+00:00 US/Eastern
2 2015-08-20 05:15:52.693000+00:00 US/Eastern
3 2015-09-09 04:02:03.083000+00:00 US/Pacific
4 2015-12-08 05:02:41.390000+00:00 US/Mountain
```
This call to `map` works fine:
```
df.publication_timestamp.map(lambda x: x) # works fine
```
**Localizing the datetime64 causes it to no longer have the map function**
```
df['publication_timestamp'] = df.publication_timestamp.astype("datetime64[ms]").dt.tz_localize("UTC")
```
Doesn't work:
```
df.publication_timestamp.map(lambda x: x) # no longer works
```
#### Error Message
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-13-ba941613799a> in <module>()
----> 1 df.publication_timestamp.map(lambda x: x)
/Users/johria/.pyenv/versions/3.5.1/lib/python3.5/site-packages/pandas/core/series.py in map(self, arg, na_action)
2052 index=self.index).__finalize__(self)
2053 else:
-> 2054 mapped = map_f(values, arg)
2055 return self._constructor(mapped,
2056 index=self.index).__finalize__(self)
TypeError: Argument 'arr' has incorrect type (expected numpy.ndarray, got DatetimeIndex)
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.3
setuptools: 19.4
Cython: None
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
IPython: 4.1.1
sphinx: 1.3.5
patsy: 0.4.1
dateutil: 2.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: 2.2.0-b1
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: 3.5.0
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.4.2
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
Jinja2: 2.8
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12473/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12473/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12474 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12474/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12474/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12474/events | https://github.com/pandas-dev/pandas/pull/12474 | 136,838,488 | MDExOlB1bGxSZXF1ZXN0NjA5MTc2NDg= | 12,474 | ERR: Better error reporting with .transform and an invalid output per GH 10165 | {
"avatar_url": "https://avatars.githubusercontent.com/u/3869590?v=4",
"events_url": "https://api.github.com/users/tomowind/events{/privacy}",
"followers_url": "https://api.github.com/users/tomowind/followers",
"following_url": "https://api.github.com/users/tomowind/following{/other_user}",
"gists_url": "https://api.github.com/users/tomowind/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tomowind",
"id": 3869590,
"login": "tomowind",
"node_id": "MDQ6VXNlcjM4Njk1OTA=",
"organizations_url": "https://api.github.com/users/tomowind/orgs",
"received_events_url": "https://api.github.com/users/tomowind/received_events",
"repos_url": "https://api.github.com/users/tomowind/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tomowind/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tomowind/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tomowind"
} | [
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-02-26T22:59:24Z | 2016-02-27T16:10:12Z | 2016-02-27T16:10:01Z | CONTRIBUTOR | null | - [ ] closes #10165
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12474/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12474/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12474.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12474",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12474.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12474"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12475 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12475/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12475/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12475/events | https://github.com/pandas-dev/pandas/issues/12475 | 136,853,565 | MDU6SXNzdWUxMzY4NTM1NjU= | 12,475 | Pandas for Finance FileNotFoundError: [Errno 2] No such file or directory: 'quotes/AMZN.csv' | {
"avatar_url": "https://avatars.githubusercontent.com/u/4218171?v=4",
"events_url": "https://api.github.com/users/LastAncientOne/events{/privacy}",
"followers_url": "https://api.github.com/users/LastAncientOne/followers",
"following_url": "https://api.github.com/users/LastAncientOne/following{/other_user}",
"gists_url": "https://api.github.com/users/LastAncientOne/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LastAncientOne",
"id": 4218171,
"login": "LastAncientOne",
"node_id": "MDQ6VXNlcjQyMTgxNzE=",
"organizations_url": "https://api.github.com/users/LastAncientOne/orgs",
"received_events_url": "https://api.github.com/users/LastAncientOne/received_events",
"repos_url": "https://api.github.com/users/LastAncientOne/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LastAncientOne/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LastAncientOne/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LastAncientOne"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2016-02-27T00:36:51Z | 2016-02-27T10:55:27Z | 2016-02-27T01:23:17Z | NONE | null | #### Code Sample, a copy-pastable example if possible
python 3.5
pandas 0.17
for g, grp in p.groupby(level='stock'):
grp.to_csv('quotes/{0}.csv'.format(g))
#### Expected Output
save all the quotes in csv
#### output of `pd.show_versions()`
Traceback (most recent call last):
File "<ipython-input-21-7884f2db115e>", line 79, in <module>
grp.to_csv('quotes/{0}.csv'.format(g))
File "C:\Users\LastAncientOne\Anaconda3\lib\site-packages\pandas\core\frame.py", line 1332, in to_csv
formatter.save()
File "C:\Users\LastAncientOne\Anaconda3\lib\site-packages\pandas\core\format.py", line 1481, in save
compression=self.compression)
File "C:\Users\LastAncientOne\Anaconda3\lib\site-packages\pandas\io\common.py", line 354, in _get_handle
f = open(path, mode, errors='replace')
FileNotFoundError: [Errno 2] No such file or directory: 'quotes/AMZN.csv'
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12475/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12475/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12476 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12476/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12476/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12476/events | https://github.com/pandas-dev/pandas/pull/12476 | 136,853,993 | MDExOlB1bGxSZXF1ZXN0NjA5MjY0MDI= | 12,476 | Add a free-form summary function to describe a dataframe (in the vein of R) | {
"avatar_url": "https://avatars.githubusercontent.com/u/37696?v=4",
"events_url": "https://api.github.com/users/vii/events{/privacy}",
"followers_url": "https://api.github.com/users/vii/followers",
"following_url": "https://api.github.com/users/vii/following{/other_user}",
"gists_url": "https://api.github.com/users/vii/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vii",
"id": 37696,
"login": "vii",
"node_id": "MDQ6VXNlcjM3Njk2",
"organizations_url": "https://api.github.com/users/vii/orgs",
"received_events_url": "https://api.github.com/users/vii/received_events",
"repos_url": "https://api.github.com/users/vii/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vii/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vii/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vii"
} | [
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
}
]
| closed | false | null | []
| null | 2 | 2016-02-27T00:40:15Z | 2016-05-07T19:07:36Z | 2016-05-07T19:07:35Z | NONE | null | First cut. Please let me know your thoughts and thanks again to @jreback for teaching me.
Looks like this
```
A_cat B_str C_bool D_num \
0 count=24 count=24 count=24 count=24
1 cardinality=2 cardinality=4 mean=0.5 mean=12
2 value:foo=16 (67%) value:d=6 (25%) std=0.511 std=7.07
3 value:bar=8 (33%) value:b=6 (25%) min:p47=False min=0.5
4 value:c=6 (25%) median=True p25=6.25
5 value:a=6 (25%) p53:max=True median=12
6 cardinality=2 p75=17.8
7 value:True=12 (50%) max=23.5
8 value:False=12 (50%) cardinality=24
E_regular
0 count=24
1 mean=4.17
2 std=3.14
3 min:p65=2
4 p70:p82=8
5 p87:max=9
6 cardinality=3
7 value:2=16 (67%)
8
```
for input
```
df = pd.DataFrame({'A_cat': pd.Categorical(['foo', 'foo', 'bar'] * 8),
'B_str': ['a', 'b', 'c', 'd'] * 6,
'C_bool': [True] * 12 + [False] * 12,
'D_num': np.arange(24.) + .5,
'E_regular': [9,8,2,2,2,2]*4,
})
```
- [ ] closes #12460
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12476/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12476/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12476.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12476",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12476.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12476"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12477 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12477/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12477/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12477/events | https://github.com/pandas-dev/pandas/pull/12477 | 136,856,862 | MDExOlB1bGxSZXF1ZXN0NjA5Mjc3NTU= | 12,477 | BUG: indexing operation changes dtype, #10503 | {
"avatar_url": "https://avatars.githubusercontent.com/u/17442688?v=4",
"events_url": "https://api.github.com/users/kemingts/events{/privacy}",
"followers_url": "https://api.github.com/users/kemingts/followers",
"following_url": "https://api.github.com/users/kemingts/following{/other_user}",
"gists_url": "https://api.github.com/users/kemingts/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kemingts",
"id": 17442688,
"login": "kemingts",
"node_id": "MDQ6VXNlcjE3NDQyNjg4",
"organizations_url": "https://api.github.com/users/kemingts/orgs",
"received_events_url": "https://api.github.com/users/kemingts/received_events",
"repos_url": "https://api.github.com/users/kemingts/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kemingts/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kemingts/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kemingts"
} | [
{
"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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-02-27T01:00:05Z | 2016-02-27T17:53:27Z | 2016-02-27T17:52:43Z | NONE | null | - [ ] closes #10503
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12477/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12477/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12477.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12477",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12477.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12477"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12478 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12478/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12478/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12478/events | https://github.com/pandas-dev/pandas/issues/12478 | 136,865,368 | MDU6SXNzdWUxMzY4NjUzNjg= | 12,478 | Pandas for Finance AttributeError: 'DataFrame' object has no attribute 'rolling' | {
"avatar_url": "https://avatars.githubusercontent.com/u/4218171?v=4",
"events_url": "https://api.github.com/users/LastAncientOne/events{/privacy}",
"followers_url": "https://api.github.com/users/LastAncientOne/followers",
"following_url": "https://api.github.com/users/LastAncientOne/following{/other_user}",
"gists_url": "https://api.github.com/users/LastAncientOne/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LastAncientOne",
"id": 4218171,
"login": "LastAncientOne",
"node_id": "MDQ6VXNlcjQyMTgxNzE=",
"organizations_url": "https://api.github.com/users/LastAncientOne/orgs",
"received_events_url": "https://api.github.com/users/LastAncientOne/received_events",
"repos_url": "https://api.github.com/users/LastAncientOne/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LastAncientOne/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LastAncientOne/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LastAncientOne"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2016-02-27T02:13:19Z | 2016-02-27T10:55:40Z | 2016-02-27T02:15:42Z | NONE | null | #### Code Sample, a copy-pastable example if possible
rets.rolling(window=22).min().plot.line(figsize=(15,10))
#### Expected Output
#### output of `pd.show_versions()`
Traceback (most recent call last):
File "<ipython-input-78-e1069c24fa37>", line 1, in <module>
rets.rolling(window=22).min().plot.line(figsize=(15,10))
File "C:\Users\LastAncientOne\Anaconda3\lib\site-packages\pandas\core\generic.py", line 2360, in **getattr**
(type(self).**name**, 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/12478/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12478/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12479 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12479/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12479/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12479/events | https://github.com/pandas-dev/pandas/pull/12479 | 136,884,065 | MDExOlB1bGxSZXF1ZXN0NjA5Mzg2ODI= | 12,479 | TST: Add name vaidation for dt accessor | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-02-27T06:09:33Z | 2016-02-27T18:17:52Z | 2016-02-27T15:09:04Z | MEMBER | null | Closes #10712. This is already fixed in other PR, thus added explicit 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/12479/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12479/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12479.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12479",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12479.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12479"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12480 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12480/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12480/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12480/events | https://github.com/pandas-dev/pandas/issues/12480 | 136,913,581 | MDU6SXNzdWUxMzY5MTM1ODE= | 12,480 | Precision support for Timestamp | {
"avatar_url": "https://avatars.githubusercontent.com/u/1017726?v=4",
"events_url": "https://api.github.com/users/wavexx/events{/privacy}",
"followers_url": "https://api.github.com/users/wavexx/followers",
"following_url": "https://api.github.com/users/wavexx/following{/other_user}",
"gists_url": "https://api.github.com/users/wavexx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wavexx",
"id": 1017726,
"login": "wavexx",
"node_id": "MDQ6VXNlcjEwMTc3MjY=",
"organizations_url": "https://api.github.com/users/wavexx/orgs",
"received_events_url": "https://api.github.com/users/wavexx/received_events",
"repos_url": "https://api.github.com/users/wavexx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wavexx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wavexx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wavexx"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "fbca04",
"default": false,
"description": "High level tracker for similar issues",
"id": 183784729,
"name": "Master Tracker",
"node_id": "MDU6TGFiZWwxODM3ODQ3Mjk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Master%20Tracker"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 6 | 2016-02-27T12:34:04Z | 2017-08-07T10:50:24Z | 2017-08-06T21:15:06Z | NONE | null | Timestamp stores the value in a `datetime64[ns]` internal representation. For most purposes this is fine, but I'd love if I could choose the internal precision, for example to use `datetime64[s]` instead.
When I do timeseries manipulations that span more than a day, I generally do not need sub-second resolution and I could definitely use the extended range instead. But, more conveniently, this would also allow to pretty-print the result without a ton of trailing zeros without setting some arbitrary threshold.
Incidentally, this would remove the limit of ~500 years, but it's more of an ergonomic change than an actual need. For example, when I need to perform direct manipulations of the values in a DatetimeIndex, I often have to scale up to seconds if I want to perform meaningful fitting and avoid numerical instability. When plotting, it's an extra indirection I need to care about.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12480/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12480/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12481 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12481/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12481/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12481/events | https://github.com/pandas-dev/pandas/pull/12481 | 136,930,716 | MDExOlB1bGxSZXF1ZXN0NjA5NTM3MDc= | 12,481 | BUG: support fused types in roll_min/max #12373 | {
"avatar_url": "https://avatars.githubusercontent.com/u/938557?v=4",
"events_url": "https://api.github.com/users/joshuastorck/events{/privacy}",
"followers_url": "https://api.github.com/users/joshuastorck/followers",
"following_url": "https://api.github.com/users/joshuastorck/following{/other_user}",
"gists_url": "https://api.github.com/users/joshuastorck/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joshuastorck",
"id": 938557,
"login": "joshuastorck",
"node_id": "MDQ6VXNlcjkzODU1Nw==",
"organizations_url": "https://api.github.com/users/joshuastorck/orgs",
"received_events_url": "https://api.github.com/users/joshuastorck/received_events",
"repos_url": "https://api.github.com/users/joshuastorck/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joshuastorck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshuastorck/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joshuastorck"
} | [
{
"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": "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 | 8 | 2016-02-27T15:27:12Z | 2016-04-18T18:04:39Z | 2016-04-18T17:52:32Z | CONTRIBUTOR | null | - Closes #12373
- Added test_rolling_min_max_types to test_window.py
- passes `git diff upstream/master | flake8 --diff`
Ran the performance tests with no changes detected:
$ asv continuous -b 'stat_op.*rolling' upstream/master GH12373
· Creating environments
· Discovering benchmarks
·· Uninstalling from py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt
·· Building for py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt..................................................
·· Installing into py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt..
· Running 18 total benchmarks (2 commits \* 1 environments \* 9 benchmarks)
[ 0.00%] · For pandas commit hash 170fb27a:
[ 0.00%] ·· Building for py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt.......................................................
[ 0.00%] ·· Benchmarking py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt
[ 5.56%] ··· Running stat_ops.stats_rolling_mean.time_rolling_kurt 11.39ms
[ 11.11%] ··· Running stat_ops.stats_rolling_mean.time_rolling_max 7.48ms
[ 16.67%] ··· Running stat_ops.stats_rolling_mean.time_rolling_mean 7.22ms
[ 22.22%] ··· Running stat_ops.stats_rolling_mean.time_rolling_median 114.21ms
[ 27.78%] ··· Running stat_ops.stats_rolling_mean.time_rolling_min 7.55ms
[ 33.33%] ··· Running stat_ops.stats_rolling_mean.time_rolling_skew 11.35ms
[ 38.89%] ··· Running stat_ops.stats_rolling_mean.time_rolling_std 9.13ms
[ 44.44%] ··· Running stat_ops.stats_rolling_mean.time_rolling_sum 6.93ms
[ 50.00%] ··· Running stat_ops.stats_rolling_mean.time_rolling_var 7.98ms
[ 50.00%] · For pandas commit hash 56e285a6:
[ 50.00%] ·· Building for py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt.......................................................
[ 50.00%] ·· Benchmarking py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt
[ 55.56%] ··· Running stat_ops.stats_rolling_mean.time_rolling_kurt 11.66ms
[ 61.11%] ··· Running stat_ops.stats_rolling_mean.time_rolling_max 8.68ms
[ 66.67%] ··· Running stat_ops.stats_rolling_mean.time_rolling_mean 7.48ms
[ 72.22%] ··· Running stat_ops.stats_rolling_mean.time_rolling_median 107.71ms
[ 77.78%] ··· Running stat_ops.stats_rolling_mean.time_rolling_min 8.74ms
[ 83.33%] ··· Running stat_ops.stats_rolling_mean.time_rolling_skew 11.53ms
[ 88.89%] ··· Running stat_ops.stats_rolling_mean.time_rolling_std 9.25ms
[ 94.44%] ··· Running stat_ops.stats_rolling_mean.time_rolling_sum 6.97ms
[100.00%] ··· Running stat_ops.stats_rolling_mean.time_rolling_var 8.24msBENCHMARKS NOT SIGNIFICANTLY CHANGED.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12481/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12481/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12481.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12481",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12481.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12481"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12482 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12482/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12482/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12482/events | https://github.com/pandas-dev/pandas/pull/12482 | 136,933,530 | MDExOlB1bGxSZXF1ZXN0NjA5NTQzNjg= | 12,482 | API/COMPAT: add pydatetime-style positional args to Timestamp constructor | {
"avatar_url": "https://avatars.githubusercontent.com/u/1133852?v=4",
"events_url": "https://api.github.com/users/thejohnfreeman/events{/privacy}",
"followers_url": "https://api.github.com/users/thejohnfreeman/followers",
"following_url": "https://api.github.com/users/thejohnfreeman/following{/other_user}",
"gists_url": "https://api.github.com/users/thejohnfreeman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thejohnfreeman",
"id": 1133852,
"login": "thejohnfreeman",
"node_id": "MDQ6VXNlcjExMzM4NTI=",
"organizations_url": "https://api.github.com/users/thejohnfreeman/orgs",
"received_events_url": "https://api.github.com/users/thejohnfreeman/received_events",
"repos_url": "https://api.github.com/users/thejohnfreeman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thejohnfreeman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thejohnfreeman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thejohnfreeman"
} | [
{
"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": "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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 30 | 2016-02-27T15:47:56Z | 2016-05-20T16:14:51Z | 2016-05-20T14:16:17Z | CONTRIBUTOR | null | - [X] closes #10758
- [X] tests added / passed
- [X] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
If more tests are desired, please let me know where to put them. Same for the whatsnew entry. This is my first pull request for Pandas.
cc @jreback
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12482/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12482/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12482.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12482",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12482.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12482"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12483 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12483/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12483/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12483/events | https://github.com/pandas-dev/pandas/pull/12483 | 136,934,357 | MDExOlB1bGxSZXF1ZXN0NjA5NTQ1MjA= | 12,483 | ENH: optional ':' separator in ISO8601 strings | {
"avatar_url": "https://avatars.githubusercontent.com/u/1133852?v=4",
"events_url": "https://api.github.com/users/thejohnfreeman/events{/privacy}",
"followers_url": "https://api.github.com/users/thejohnfreeman/followers",
"following_url": "https://api.github.com/users/thejohnfreeman/following{/other_user}",
"gists_url": "https://api.github.com/users/thejohnfreeman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/thejohnfreeman",
"id": 1133852,
"login": "thejohnfreeman",
"node_id": "MDQ6VXNlcjExMzM4NTI=",
"organizations_url": "https://api.github.com/users/thejohnfreeman/orgs",
"received_events_url": "https://api.github.com/users/thejohnfreeman/received_events",
"repos_url": "https://api.github.com/users/thejohnfreeman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/thejohnfreeman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thejohnfreeman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/thejohnfreeman"
} | [
{
"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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 10 | 2016-02-27T15:53:02Z | 2016-03-06T20:45:41Z | 2016-03-06T20:44:23Z | CONTRIBUTOR | null | - [X] closes #10041
- [X] tests added / passed
- [X] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Includes some refactoring in the ISO8601 parser. If more tests are desired, please let me know where to put them. Same for the whatsnew entry. This is effectively my first pull request for Pandas.
cc @jreback
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12483/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12483/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12483.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12483",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12483.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12483"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12484 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12484/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12484/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12484/events | https://github.com/pandas-dev/pandas/issues/12484 | 136,938,067 | MDU6SXNzdWUxMzY5MzgwNjc= | 12,484 | read_csv dtype 'object' doesn't work for index column | {
"avatar_url": "https://avatars.githubusercontent.com/u/46313?v=4",
"events_url": "https://api.github.com/users/JoeGermuska/events{/privacy}",
"followers_url": "https://api.github.com/users/JoeGermuska/followers",
"following_url": "https://api.github.com/users/JoeGermuska/following{/other_user}",
"gists_url": "https://api.github.com/users/JoeGermuska/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JoeGermuska",
"id": 46313,
"login": "JoeGermuska",
"node_id": "MDQ6VXNlcjQ2MzEz",
"organizations_url": "https://api.github.com/users/JoeGermuska/orgs",
"received_events_url": "https://api.github.com/users/JoeGermuska/received_events",
"repos_url": "https://api.github.com/users/JoeGermuska/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JoeGermuska/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JoeGermuska/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JoeGermuska"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2016-02-27T16:26:01Z | 2016-04-26T17:22:57Z | 2016-04-26T17:22:44Z | NONE | null | I'm working on a little pandas lesson. The CSV has a column with leading '0' which should be treated as text. When I try to read the CSV and indicate that that column is the `index`, the `dtype` argument doesn't work. I can use `S7` as the `dtype` instead of `object` but @wesm [suggests using 'object'](http://stackoverflow.com/questions/16929056/pandas-read-csv-dtype-leading-zeros#comment24510329_16929535)
#### Code Sample, a copy-pastable example if possible
from StringIO import StringIO
import pandas as pd
data = """
fips,name,popest2014
0800760,"Aguilar town, Colorado",479
0800925,"Akron town, Colorado",1694
0801090,"Alamosa city, Colorado",9531
"""
error_case = pd.read_csv(StringIO(data), index_col=0, dtype={'fips': object})
print "Error case, dtype should be object "
print error_case.index.dtype # 'int64'
expected1 = pd.read_csv(StringIO(data), dtype={'fips': object})
print "Works with object, not an index column"
print expected1.fips.dtype # 'O'
expected2 = pd.read_csv(StringIO(data), index_col=0, dtype={'fips': 'S7'})
print "Works with 'S7', as an index column"
print expected2.index.dtype # 'O'
#### Expected Output
That the dtype for the FIPS column as an index would be `object`
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Darwin
OS-release: 15.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: None
pip: 8.0.3
setuptools: 20.1.1
Cython: None
numpy: 1.10.4
scipy: None
statsmodels: None
IPython: 4.1.1
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: None
```
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12484/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12484/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12485 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12485/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12485/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12485/events | https://github.com/pandas-dev/pandas/issues/12485 | 136,961,438 | MDU6SXNzdWUxMzY5NjE0Mzg= | 12,485 | Spark Translation Layer | {
"avatar_url": "https://avatars.githubusercontent.com/u/616139?v=4",
"events_url": "https://api.github.com/users/danfrankj/events{/privacy}",
"followers_url": "https://api.github.com/users/danfrankj/followers",
"following_url": "https://api.github.com/users/danfrankj/following{/other_user}",
"gists_url": "https://api.github.com/users/danfrankj/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/danfrankj",
"id": 616139,
"login": "danfrankj",
"node_id": "MDQ6VXNlcjYxNjEzOQ==",
"organizations_url": "https://api.github.com/users/danfrankj/orgs",
"received_events_url": "https://api.github.com/users/danfrankj/received_events",
"repos_url": "https://api.github.com/users/danfrankj/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/danfrankj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danfrankj/subscriptions",
"type": "User",
"url": "https://api.github.com/users/danfrankj"
} | [
{
"color": "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 | 2016-02-27T20:00:35Z | 2016-03-11T15:43:44Z | 2016-03-11T15:43:44Z | CONTRIBUTOR | null | Hey folks, I'm starting to use the pyspark.ml library and it'd be cool to create a translation layer from pandas to spark to make it easy for local code to easily translate into spark. I have two ideas and would would be great to hear feedback. If positive I'd be happy to create a PR.
1) Direct translation
```
spark_df = pandas_df.to_spark(spark_context)
```
2) Pseudo translation: only permit spark compatible operations on this DataFrame
```
restricted_spark_df = pandas_df.restrict_spark()
```
Would error if any operation that would not work on a spark df were performed on this df. Harder, but potentially useful for seeing if code designed for local use can be used for spark, without even installing spark.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12485/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12485/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12486 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12486/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12486/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12486/events | https://github.com/pandas-dev/pandas/issues/12486 | 136,963,223 | MDU6SXNzdWUxMzY5NjMyMjM= | 12,486 | API: groupby.resample *maybe* can return a deferred operation | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 0 | 2016-02-27T20:24:10Z | 2016-04-26T15:03:02Z | 2016-04-26T15:03:02Z | CONTRIBUTOR | null | xref #12448 / #12449
and on [SO](http://stackoverflow.com/questions/36293620/pandas-0-18-changes-to-resample-how-to-upsample-with-groupby/36294398#36294398)
```
In [1]: df = DataFrame({'date': pd.date_range(start='2016-01-01',
...: periods=4,
...: freq='W'),
...: 'group': [1, 1, 2, 2],
...: 'val': [5, 6, 7, 8]}).set_index('date')
In [2]: df
Out[2]:
group val
date
2016-01-03 1 5
2016-01-10 1 6
2016-01-17 2 7
2016-01-24 2 8
```
This replicates 0.17.1 (something slightly off with it including the grouper column)
```
In [3]: df.groupby('group').apply(lambda x: x.resample('1D').ffill())[['val']]
Out[3]:
val
group date
1 2016-01-03 5
2016-01-04 5
2016-01-05 5
2016-01-06 5
2016-01-07 5
2016-01-08 5
2016-01-09 5
2016-01-10 6
2 2016-01-17 7
2016-01-18 7
2016-01-19 7
2016-01-20 7
2016-01-21 7
2016-01-22 7
2016-01-23 7
2016-01-24 8
# ideally this would work. Its possible but requires some intelligently filling according to each group level.
In [4]: df.groupby('group').resample('1D').ffill()
Out[4]:
group val
date
2016-01-03 1 5
2016-01-10 1 6
2016-01-17 2 7
```
A pure asfreq operation
```
data = [['2010-01-01', 'A', 2], ['2010-01-02', 'A', 3], ['2010-01-05', 'A', 8],
['2010-01-10', 'A', 7], ['2010-01-13', 'A', 3], ['2010-01-01', 'B', 5],
['2010-01-03', 'B', 2], ['2010-01-04', 'B', 1], ['2010-01-11', 'B', 7],
['2010-01-14', 'B', 3]]
df = pd.DataFrame(data, columns=['Date', 'ID', 'Score'])
df.Date = pd.to_datetime(df.Date)
In [27]: df.groupby('ID').apply(lambda x: x.set_index('Date').Score.resample('D').asfreq())
Out[27]:
ID Date
A 2010-01-01 2.0
2010-01-02 3.0
2010-01-03 NaN
2010-01-04 NaN
2010-01-05 8.0
2010-01-06 NaN
2010-01-07 NaN
2010-01-08 NaN
2010-01-09 NaN
2010-01-10 7.0
2010-01-11 NaN
2010-01-12 NaN
2010-01-13 3.0
B 2010-01-01 5.0
2010-01-02 NaN
2010-01-03 2.0
2010-01-04 1.0
2010-01-05 NaN
2010-01-06 NaN
2010-01-07 NaN
2010-01-08 NaN
2010-01-09 NaN
2010-01-10 NaN
2010-01-11 7.0
2010-01-12 NaN
2010-01-13 NaN
2010-01-14 3.0
Name: Score, dtype: float64
```
Would be nice for this to work
```
df.groupby(['ID',pd.Grouper(key='Date',freq='D')]).asfreq()
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12486/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12486/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12487 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12487/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12487/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12487/events | https://github.com/pandas-dev/pandas/pull/12487 | 137,025,747 | MDExOlB1bGxSZXF1ZXN0NjA5ODM2MTM= | 12,487 | CLN: cleanup strings._wrap_result | {
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 2 | 2016-02-28T08:26:08Z | 2016-03-04T22:23:40Z | 2016-03-02T12:43:50Z | MEMBER | null | - Merged `strings._wrap_result` and `strings._wrap_result_expand` for cleanup.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12487/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12487/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12487.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12487",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12487.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12487"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12488 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12488/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12488/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12488/events | https://github.com/pandas-dev/pandas/pull/12488 | 137,065,577 | MDExOlB1bGxSZXF1ZXN0NjA5OTU4OTU= | 12,488 | typo | {
"avatar_url": "https://avatars.githubusercontent.com/u/1288133?v=4",
"events_url": "https://api.github.com/users/yoavram/events{/privacy}",
"followers_url": "https://api.github.com/users/yoavram/followers",
"following_url": "https://api.github.com/users/yoavram/following{/other_user}",
"gists_url": "https://api.github.com/users/yoavram/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yoavram",
"id": 1288133,
"login": "yoavram",
"node_id": "MDQ6VXNlcjEyODgxMzM=",
"organizations_url": "https://api.github.com/users/yoavram/orgs",
"received_events_url": "https://api.github.com/users/yoavram/received_events",
"repos_url": "https://api.github.com/users/yoavram/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yoavram/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yoavram/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yoavram"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-02-28T15:56:09Z | 2016-02-28T23:11:36Z | 2016-02-28T23:11:31Z | CONTRIBUTOR | null | fix typo in comment
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12488/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12488/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12488.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12488",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12488.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12488"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12489 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12489/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12489/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12489/events | https://github.com/pandas-dev/pandas/issues/12489 | 137,076,154 | MDU6SXNzdWUxMzcwNzYxNTQ= | 12,489 | blacklist numexpr 2.4.4 | {
"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": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 5 | 2016-02-28T17:40:29Z | 2016-06-28T15:58:03Z | 2016-03-03T12:11:02Z | CONTRIBUTOR | null | Under some circumstances, numexpr 2.4.4 can lead to flaky output (see #12023 and links therein). This happened again once on SO in the last few days, and it's a suspect in another case.
[UPDATE: the suspect was convicted of the second crime as well!]
We should just refuse to work with 2.4.4, rather than leave the impression pandas is unstable, and require a later version as soon as we can. There are apparently still enough people out there with up-to-date pandas and out-of-date numexpr that a warning could probably help someone. Accordingly, after some discussion on gitter, it sounds like we should
(1) add a warning to the docs
(2) centralize the version check (right now both computation/eval and computation/expressions check the numexpr version)
(3) only allow numexpr if >= 2.1 and not == 2.4.4; otherwise, set _USE_NUMEXPR to False
(4) in the warning we raise, recommend upgrading from 2.4.4 because we can't easily prevent other dependencies from using it
(5) add a test to make sure that the presence of 2.4.4 disables _USE_NUMEXPR (say, by adding it to the requirements-3.4_SLOW).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12489/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12489/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12490 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12490/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12490/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12490/events | https://github.com/pandas-dev/pandas/pull/12490 | 137,108,701 | MDExOlB1bGxSZXF1ZXN0NjEwMTE2MDk= | 12,490 | TST: Eliminating references to pandas.util.testing.choice | {
"avatar_url": "https://avatars.githubusercontent.com/u/1517995?v=4",
"events_url": "https://api.github.com/users/paul-reiners/events{/privacy}",
"followers_url": "https://api.github.com/users/paul-reiners/followers",
"following_url": "https://api.github.com/users/paul-reiners/following{/other_user}",
"gists_url": "https://api.github.com/users/paul-reiners/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/paul-reiners",
"id": 1517995,
"login": "paul-reiners",
"node_id": "MDQ6VXNlcjE1MTc5OTU=",
"organizations_url": "https://api.github.com/users/paul-reiners/orgs",
"received_events_url": "https://api.github.com/users/paul-reiners/received_events",
"repos_url": "https://api.github.com/users/paul-reiners/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/paul-reiners/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/paul-reiners/subscriptions",
"type": "User",
"url": "https://api.github.com/users/paul-reiners"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 7 | 2016-02-28T23:07:54Z | 2016-03-01T22:27:12Z | 2016-03-01T22:27:12Z | CONTRIBUTOR | null | - [x] closes #12386
- [x] tests passed
- [x] passes `git diff upstream/master | flake8 --diff`
Want to remove pandas.util.testing.choice. First eliminating all
references to it. Doing this in more than one commit as there are a lot
of them.
#12386
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12490/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12490/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12490.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12490",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12490.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12490"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12491 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12491/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12491/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12491/events | https://github.com/pandas-dev/pandas/pull/12491 | 137,120,324 | MDExOlB1bGxSZXF1ZXN0NjEwMTYwMzE= | 12,491 | DOC: fixed references to DataFrameGroupBy methods in comparison_with_… | {
"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 | []
| null | 1 | 2016-02-29T01:04:27Z | 2016-03-01T02:56:33Z | 2016-03-01T02:56:15Z | CONTRIBUTOR | null | …sql.rst
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12491/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12491/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12491.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12491",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12491.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12491"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12492 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12492/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12492/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12492/events | https://github.com/pandas-dev/pandas/pull/12492 | 137,136,008 | MDExOlB1bGxSZXF1ZXN0NjEwMjE4MzI= | 12,492 | ENH: Allow exponentially weighted functions to specify alpha directly | {
"avatar_url": "https://avatars.githubusercontent.com/u/8616972?v=4",
"events_url": "https://api.github.com/users/evectant/events{/privacy}",
"followers_url": "https://api.github.com/users/evectant/followers",
"following_url": "https://api.github.com/users/evectant/following{/other_user}",
"gists_url": "https://api.github.com/users/evectant/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/evectant",
"id": 8616972,
"login": "evectant",
"node_id": "MDQ6VXNlcjg2MTY5NzI=",
"organizations_url": "https://api.github.com/users/evectant/orgs",
"received_events_url": "https://api.github.com/users/evectant/received_events",
"repos_url": "https://api.github.com/users/evectant/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/evectant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/evectant/subscriptions",
"type": "User",
"url": "https://api.github.com/users/evectant"
} | [
{
"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": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 12 | 2016-02-29T03:01:48Z | 2016-03-07T00:48:31Z | 2016-03-06T14:57:59Z | CONTRIBUTOR | null | - Closes #10789
- Passes Travis CI, nosetests, and flake8
- Covered by new tests in test_window.py:TestMoments
- Documented in computation.rst and v0.18.0.txt
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12492/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12492/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12492.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12492",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12492.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12492"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12493 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12493/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12493/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12493/events | https://github.com/pandas-dev/pandas/issues/12493 | 137,195,159 | MDU6SXNzdWUxMzcxOTUxNTk= | 12,493 | usecols is not respected when the file is empty | {
"avatar_url": "https://avatars.githubusercontent.com/u/8209940?v=4",
"events_url": "https://api.github.com/users/VelizarVESSELINOV/events{/privacy}",
"followers_url": "https://api.github.com/users/VelizarVESSELINOV/followers",
"following_url": "https://api.github.com/users/VelizarVESSELINOV/following{/other_user}",
"gists_url": "https://api.github.com/users/VelizarVESSELINOV/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/VelizarVESSELINOV",
"id": 8209940,
"login": "VelizarVESSELINOV",
"node_id": "MDQ6VXNlcjgyMDk5NDA=",
"organizations_url": "https://api.github.com/users/VelizarVESSELINOV/orgs",
"received_events_url": "https://api.github.com/users/VelizarVESSELINOV/received_events",
"repos_url": "https://api.github.com/users/VelizarVESSELINOV/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/VelizarVESSELINOV/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VelizarVESSELINOV/subscriptions",
"type": "User",
"url": "https://api.github.com/users/VelizarVESSELINOV"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 4 | 2016-02-29T09:13:19Z | 2016-04-13T01:30:28Z | 2016-04-13T01:30:28Z | NONE | null | xref #9755
If the file is empty, it is logical to compensate with extra columns.
#### Code Sample, a copy-pastable example if possible
``` python
"""Example of Pandas bug."""
from pandas import read_csv
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
name_list = ['Dummy', 'X', 'Dummy_2']
s = StringIO(',,')
df = read_csv(s, names=name_list, usecols=name_list[1:2], header=None)
print(list(df))
s = StringIO('')
df = read_csv(s, names=name_list, usecols=name_list[1:2], header=None)
print(list(df))
```
#### Expected Output
Current output:
```
['X']
['Dummy', 'X', 'Dummy_2']
```
Expected output:
```
['X']
['X']
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: None
pip: 7.1.2
setuptools: 18.3.2
Cython: None
numpy: 1.10.1
scipy: 0.16.1
statsmodels: None
IPython: 4.0.1
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: 2.3.2
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: 2.8
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/12493/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12493/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12494 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12494/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12494/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12494/events | https://github.com/pandas-dev/pandas/issues/12494 | 137,196,439 | MDU6SXNzdWUxMzcxOTY0Mzk= | 12,494 | BUG: read_csv with empty header row raising | {
"avatar_url": "https://avatars.githubusercontent.com/u/8209940?v=4",
"events_url": "https://api.github.com/users/VelizarVESSELINOV/events{/privacy}",
"followers_url": "https://api.github.com/users/VelizarVESSELINOV/followers",
"following_url": "https://api.github.com/users/VelizarVESSELINOV/following{/other_user}",
"gists_url": "https://api.github.com/users/VelizarVESSELINOV/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/VelizarVESSELINOV",
"id": 8209940,
"login": "VelizarVESSELINOV",
"node_id": "MDQ6VXNlcjgyMDk5NDA=",
"organizations_url": "https://api.github.com/users/VelizarVESSELINOV/orgs",
"received_events_url": "https://api.github.com/users/VelizarVESSELINOV/received_events",
"repos_url": "https://api.github.com/users/VelizarVESSELINOV/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/VelizarVESSELINOV/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VelizarVESSELINOV/subscriptions",
"type": "User",
"url": "https://api.github.com/users/VelizarVESSELINOV"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 5 | 2016-02-29T09:19:07Z | 2016-03-08T19:18:20Z | 2016-03-03T22:08:57Z | NONE | null | #### Code Sample, a copy-pastable example if possible
``` python
"""Example of Pandas bug."""
from pandas import read_csv
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
s = StringIO(',,')
df = read_csv(s)
print(list(df))
s = StringIO(',,,')
df = read_csv(s)
print(list(df))
```
#### Expected Output
Current output:
```
['Unnamed: 0', 'Unnamed: 1', 'Unnamed: 2']
Traceback (most recent call last):
File "pandas_bug4.py", line 17, in <module>
df = read_csv(s)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 498, in parser_f
return _read(filepath_or_buffer, kwds)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 275, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 590, in __init__
self._make_engine(self.engine)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 731, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/io/parsers.py", line 1103, in __init__
self._reader = _parser.TextReader(src, **kwds)
File "pandas/parser.pyx", line 515, in pandas.parser.TextReader.__cinit__ (pandas/parser.c:4948)
File "pandas/parser.pyx", line 632, in pandas.parser.TextReader._get_header (pandas/parser.c:6493)
File "pandas/parser.pyx", line 829, in pandas.parser.TextReader._tokenize_rows (pandas/parser.c:8838)
File "pandas/parser.pyx", line 1833, in pandas.parser.raise_parser_error (pandas/parser.c:22649)
pandas.parser.CParserError: Error tokenizing data. C error: Buffer overflow caught - possible malformed input file.
```
Expected output:
```
['Unnamed: 0', 'Unnamed: 1', 'Unnamed: 2']
['Unnamed: 0', 'Unnamed: 1', 'Unnamed: 2', 'Unnamed: 3']
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: None
pip: 7.1.2
setuptools: 18.3.2
Cython: None
numpy: 1.10.1
scipy: 0.16.1
statsmodels: None
IPython: 4.0.1
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: 2.3.2
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: 2.8
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/12494/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12494/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12495 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12495/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12495/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12495/events | https://github.com/pandas-dev/pandas/issues/12495 | 137,352,728 | MDU6SXNzdWUxMzczNTI3Mjg= | 12,495 | transform() drops groupby columns if not in index or if not numeric | {
"avatar_url": "https://avatars.githubusercontent.com/u/5113861?v=4",
"events_url": "https://api.github.com/users/iamdavehawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/iamdavehawkins/followers",
"following_url": "https://api.github.com/users/iamdavehawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/iamdavehawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/iamdavehawkins",
"id": 5113861,
"login": "iamdavehawkins",
"node_id": "MDQ6VXNlcjUxMTM4NjE=",
"organizations_url": "https://api.github.com/users/iamdavehawkins/orgs",
"received_events_url": "https://api.github.com/users/iamdavehawkins/received_events",
"repos_url": "https://api.github.com/users/iamdavehawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/iamdavehawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iamdavehawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/iamdavehawkins"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"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 | 5 | 2016-02-29T19:49:32Z | 2018-08-12T19:21:43Z | 2016-03-03T02:08:25Z | NONE | null | unlike when I use .aggregate('mean'), I lose the groupedby columns and any nonnumeric columns when using transform
``` python
>>> d = {'a':['a', 'a', 'c', 'c'], 'b':['z','z','z','y'], 'dat':[4.2, 2.4, 3.5, 5.3], 'dat2':[1.3,2.6,3.4,4.1]}
>>> df = pd.DataFrame(d)
>>> zscore = lambda x: (x - x.mean()) / x.std()
>>> df.groupby('a').transform(zscore)
dat dat2
0 0.707107 -0.707107
1 -0.707107 0.707107
2 -0.707107 -0.707107
3 0.707107 0.707107
```
If I add 'a' to the index, and then transform, I still lose column b
``` python
>>> df = df.set_index('a')
>>> df.groupby(level='a').transform(zscore)
dat dat2
a
a 0.707107 -0.707107
a -0.707107 0.707107
c -0.707107 -0.707107
c 0.707107 0.707107
```
The only way to keep non-numeric information columns is to add them all to the index, regardless of whether I need to group on them or not
``` python
>>> df = df.set_index(['a', 'b'])
>>> df.groupby(level='a').transform(zscore)
dat dat2
a b
c z 0.993399 -0.475293
z 0.198680 -0.095059
z 0.198680 1.425880
y -1.390759 -0.855528
```
#### Expected Output
I would expect the columns that I grouped on to remain, like they do when using aggregate('mean') for example.
``` python
a b dat dat2
0 a z 0.707107 -0.707107
1 a z -0.707107 0.707107
2 c z -0.707107 -0.707107
3 c y 0.707107 0.707107
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 70 Stepping 1, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.2
setuptools: 18.5
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.5.0
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.4.4
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: 0.7.1.None
psycopg2: None
Jinja2: None
```
| {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12495/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12495/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12496 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12496/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12496/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12496/events | https://github.com/pandas-dev/pandas/pull/12496 | 137,352,881 | MDExOlB1bGxSZXF1ZXN0NjExMzM2OTg= | 12,496 | Extract doc fix | {
"avatar_url": "https://avatars.githubusercontent.com/u/932850?v=4",
"events_url": "https://api.github.com/users/tdhock/events{/privacy}",
"followers_url": "https://api.github.com/users/tdhock/followers",
"following_url": "https://api.github.com/users/tdhock/following{/other_user}",
"gists_url": "https://api.github.com/users/tdhock/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tdhock",
"id": 932850,
"login": "tdhock",
"node_id": "MDQ6VXNlcjkzMjg1MA==",
"organizations_url": "https://api.github.com/users/tdhock/orgs",
"received_events_url": "https://api.github.com/users/tdhock/received_events",
"repos_url": "https://api.github.com/users/tdhock/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tdhock/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tdhock/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tdhock"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
]
| closed | false | null | []
| {
"closed_at": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 1 | 2016-02-29T19:50:12Z | 2016-03-01T12:44:51Z | 2016-03-01T12:44:42Z | CONTRIBUTOR | null | A fix for a small problem with the docs for extract.
Also the first code block on http://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#whatsnew-0180-enhancements-extract should show a warning but it does not. any ideas how to fix that?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12496/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12496/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12496.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12496",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12496.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12496"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12497 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12497/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12497/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12497/events | https://github.com/pandas-dev/pandas/issues/12497 | 137,366,154 | MDU6SXNzdWUxMzczNjYxNTQ= | 12,497 | Merge resets column types - category is reset | {
"avatar_url": "https://avatars.githubusercontent.com/u/13544845?v=4",
"events_url": "https://api.github.com/users/laufere/events{/privacy}",
"followers_url": "https://api.github.com/users/laufere/followers",
"following_url": "https://api.github.com/users/laufere/following{/other_user}",
"gists_url": "https://api.github.com/users/laufere/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/laufere",
"id": 13544845,
"login": "laufere",
"node_id": "MDQ6VXNlcjEzNTQ0ODQ1",
"organizations_url": "https://api.github.com/users/laufere/orgs",
"received_events_url": "https://api.github.com/users/laufere/received_events",
"repos_url": "https://api.github.com/users/laufere/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/laufere/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/laufere/subscriptions",
"type": "User",
"url": "https://api.github.com/users/laufere"
} | [
{
"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": "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": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2016-02-29T20:37:35Z | 2017-02-06T00:10:45Z | 2016-03-01T12:14:11Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```
import numpy as np
import pandas as pd
# Generate some random dataframes with a common "id" column to merge on
# Transform some columns into type "category"
some_strings = ['aa', 'bb', 'cc', 'dd']
d1 = {'id': np.arange(100),
'var1': np.random.randint(0,10,size=100),
'var2': np.random.uniform(size=100),
'var3': np.random.randint(0,2,size=100),
'var4': np.random.choice(some_strings, 100)}
df1 = pd.DataFrame(d1)
df1['var1'] = df1['var1'].astype('category')
d2 = {'id': np.arange(100),
'var1': np.random.randint(0,10,size=100),
'var2': np.random.uniform(size=100),
'var3': np.random.randint(0,2,size=100),
'var4': np.random.choice(some_strings, 100)}
df2 = pd.DataFrame(d2)
df2['var1'] = df2['var1'].astype('category')
df2['var4'] = df2['var4'].astype('category')
print 'df1'
print df1.info() #Shows categorical columns
print 'df2'
print df2.info() #Shows categorical columns
print pd.merge(df1, df2, on='id').info() #Categorical columns are no longer categorical
```
#### Expected Output
The merged df1 and df2 no longer has category columns, and are reset to their original types.
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-431.23.3.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 7.1.2
setuptools: 18.5
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.5.0
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.4.4
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
Jinja2: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12497/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12497/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12498 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12498/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12498/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12498/events | https://github.com/pandas-dev/pandas/pull/12498 | 137,443,683 | MDExOlB1bGxSZXF1ZXN0NjExODEyNDI= | 12,498 | BUG: Allow assignment by indexing with duplicate column names | {
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18: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-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 15 | 2016-03-01T02:11:13Z | 2016-03-06T15:43:07Z | 2016-03-06T15:28:43Z | MEMBER | null | closes #12344
in which assignment to columns in `DataFrame` with duplicate column names caused all columns with the same name to be reassigned. The bug was located <a href="https://github.com/pydata/pandas/blob/master/pandas/core/indexing.py#L545">here</a>.
When you try to index into the DataFrame using `.iloc`, `pandas` will find the corresponding column name (or key) first before setting that key with the given value. Unfortunately, since all of your columns have the same key name, `pandas` ends up choosing all of the columns corresponding to that name.
This PR introduces a `_set_item_by_index` method for `DataFrame` objects that allows you to bypass that issue by using the indices of the columns to set the columns themselves whenever there are duplicates involved.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12498/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12498/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12498.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12498",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12498.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12498"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12499 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12499/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12499/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12499/events | https://github.com/pandas-dev/pandas/issues/12499 | 137,459,758 | MDU6SXNzdWUxMzc0NTk3NTg= | 12,499 | loc row assignment with NaN and NaT coerces to either NaN or NaT | {
"avatar_url": "https://avatars.githubusercontent.com/u/5497186?v=4",
"events_url": "https://api.github.com/users/jonathanstrong/events{/privacy}",
"followers_url": "https://api.github.com/users/jonathanstrong/followers",
"following_url": "https://api.github.com/users/jonathanstrong/following{/other_user}",
"gists_url": "https://api.github.com/users/jonathanstrong/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jonathanstrong",
"id": 5497186,
"login": "jonathanstrong",
"node_id": "MDQ6VXNlcjU0OTcxODY=",
"organizations_url": "https://api.github.com/users/jonathanstrong/orgs",
"received_events_url": "https://api.github.com/users/jonathanstrong/received_events",
"repos_url": "https://api.github.com/users/jonathanstrong/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jonathanstrong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonathanstrong/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jonathanstrong"
} | [
{
"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": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2016-03-01T03:46:44Z | 2021-04-23T01:12:35Z | null | NONE | null | ```
import datetime
import pandas as pd
import pytz
data = [{'one': 0, 'two': datetime.datetime(2016, 3, 1, 3, 13, 22, 98986, tzinfo=pytz.timezone('UTC'))}]
df = pd.DataFrame(data)
df.loc[1] = [np.nan, np.datetime64('NaT')]
```
traceback
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-14-7cc4bcff4319> in <module>()
4 data = [{'one': 0, 'two': datetime.datetime(2016, 3, 1, 3, 13, 22, 98986, tzinfo=pytz.timezone('UTC'))}]
5 df = pd.DataFrame(data)
----> 6 df.loc[1] = [np.nan, np.datetime64('NaT')]
/home/jstrong/src/envs/vc4/local/lib/python2.7/site-packages/pandas/core/indexing.pyc in __setitem__(self, key, value)
115 def __setitem__(self, key, value):
116 indexer = self._get_setitem_indexer(key)
--> 117 self._setitem_with_indexer(indexer, value)
118
119 def _has_valid_type(self, k, axis):
/home/jstrong/src/envs/vc4/local/lib/python2.7/site-packages/pandas/core/indexing.pyc in _setitem_with_indexer(self, indexer, value)
337 value = Series(value,index=self.obj.columns,name=indexer)
338
--> 339 self.obj._data = self.obj.append(value)._data
340 self.obj._maybe_update_cacher(clear=True)
341 return self.obj
/home/jstrong/src/envs/vc4/local/lib/python2.7/site-packages/pandas/core/frame.pyc in append(self, other, ignore_index, verify_integrity)
4229 to_concat = [self, other]
4230 return concat(to_concat, ignore_index=ignore_index,
-> 4231 verify_integrity=verify_integrity)
4232
4233 def join(self, other, on=None, how='left', lsuffix='', rsuffix='',
/home/jstrong/src/envs/vc4/local/lib/python2.7/site-packages/pandas/tools/merge.pyc in concat(objs, axis, join, join_axes, ignore_index, keys, levels, names, verify_integrity, copy)
811 verify_integrity=verify_integrity,
812 copy=copy)
--> 813 return op.get_result()
814
815
/home/jstrong/src/envs/vc4/local/lib/python2.7/site-packages/pandas/tools/merge.pyc in get_result(self)
993
994 new_data = concatenate_block_managers(
--> 995 mgrs_indexers, self.new_axes, concat_axis=self.axis, copy=self.copy)
996 if not self.copy:
997 new_data._consolidate_inplace()
/home/jstrong/src/envs/vc4/local/lib/python2.7/site-packages/pandas/core/internals.pyc in concatenate_block_managers(mgrs_indexers, axes, concat_axis, copy)
4454 copy=copy),
4455 placement=placement)
-> 4456 for placement, join_units in concat_plan]
4457
4458 return BlockManager(blocks, axes)
/home/jstrong/src/envs/vc4/local/lib/python2.7/site-packages/pandas/core/internals.pyc in concatenate_join_units(join_units, concat_axis, copy)
4551 to_concat = [ju.get_reindexed_values(empty_dtype=empty_dtype,
4552 upcasted_na=upcasted_na)
-> 4553 for ju in join_units]
4554
4555 if len(to_concat) == 1:
/home/jstrong/src/envs/vc4/local/lib/python2.7/site-packages/pandas/core/internals.pyc in get_reindexed_values(self, empty_dtype, upcasted_na)
4799
4800 if self.is_null and not getattr(self.block,'is_categorical',None):
-> 4801 missing_arr = np.empty(self.shape, dtype=empty_dtype)
4802 if np.prod(self.shape):
4803 # NumPy 1.6 workaround: this statement gets strange if all
TypeError: data type not understood
```
Same if you `loc[1] = [np.nan, np.nan]`. Seems the problem is loc assignment involving NaN for a datetime index column. Not sure the full breadth of the bug.
#### Expected Output
```
one two
0 0 2016-03-01 03:13:22.098986+00:00
1 1 NaT
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-79-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.2
setuptools: 0.6
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
IPython: 4.0.1
sphinx: None
patsy: 0.4.1
dateutil: 2.5.0
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.6
matplotlib: 1.5.0+1301.g7b517da
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: 3.4.1
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
Jinja2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12499/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12499/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12500 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12500/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12500/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12500/events | https://github.com/pandas-dev/pandas/issues/12500 | 137,461,456 | MDU6SXNzdWUxMzc0NjE0NTY= | 12,500 | Serialize numpy scalars in pd.msgpack | {
"avatar_url": "https://avatars.githubusercontent.com/u/306380?v=4",
"events_url": "https://api.github.com/users/mrocklin/events{/privacy}",
"followers_url": "https://api.github.com/users/mrocklin/followers",
"following_url": "https://api.github.com/users/mrocklin/following{/other_user}",
"gists_url": "https://api.github.com/users/mrocklin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mrocklin",
"id": 306380,
"login": "mrocklin",
"node_id": "MDQ6VXNlcjMwNjM4MA==",
"organizations_url": "https://api.github.com/users/mrocklin/orgs",
"received_events_url": "https://api.github.com/users/mrocklin/received_events",
"repos_url": "https://api.github.com/users/mrocklin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mrocklin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrocklin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mrocklin"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 8 | 2016-03-01T03:59:39Z | 2019-12-11T13:30:14Z | 2019-12-11T13:30:13Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
``` python
import numpy as np
import pandas as pd
pd.msgpack.dumps(np.int32(0))
```
Currently procduces:
``` python
TypeError: can't serialize 0
```
#### Expected Output
```
b'\x00'
```
#### output of `pd.show_versions()`
``` python
In [5]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.4.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-59-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.0rc1+752.gfe201a2
nose: 1.3.7
pip: 8.0.3
setuptools: 20.1.1
Cython: 0.22.1
numpy: 1.10.4
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.4
blosc: 1.2.8
bottleneck: 1.0.0
tables: 3.2.0
numexpr: 2.4.3
matplotlib: 1.4.3
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.5
pymysql: None
psycopg2: None
jinja2: 2.8
```
Related to https://github.com/msgpack/msgpack-python/issues/61
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12500/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12500/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12501 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12501/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12501/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12501/events | https://github.com/pandas-dev/pandas/issues/12501 | 137,533,579 | MDU6SXNzdWUxMzc1MzM1Nzk= | 12,501 | pd.to_datetime/pd.DatetimeIndex unexpected behavior | {
"avatar_url": "https://avatars.githubusercontent.com/u/10881376?v=4",
"events_url": "https://api.github.com/users/marcomayer/events{/privacy}",
"followers_url": "https://api.github.com/users/marcomayer/followers",
"following_url": "https://api.github.com/users/marcomayer/following{/other_user}",
"gists_url": "https://api.github.com/users/marcomayer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/marcomayer",
"id": 10881376,
"login": "marcomayer",
"node_id": "MDQ6VXNlcjEwODgxMzc2",
"organizations_url": "https://api.github.com/users/marcomayer/orgs",
"received_events_url": "https://api.github.com/users/marcomayer/received_events",
"repos_url": "https://api.github.com/users/marcomayer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/marcomayer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/marcomayer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/marcomayer"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 6 | 2016-03-01T10:29:29Z | 2016-03-10T10:34:53Z | 2016-03-01T12:29:48Z | NONE | null | I don't know if this is a bug or not (I guess not), but I think this behavior might be very confusing to many users who like me until now might not be aware of this.
When converting a string column to Date using pd.to_datetime or pd.DatetimeIndex the way the date is interpreted might change from row to row. I experienced this today where March 1st was interpreted as January 3rd. Probably pandas does this simply on a per row set considering only one sample at a time. One way to improve this would be to first go through the whole
At least I'd suggest to implement a warning if none of the format/dayfirst parameters are used.
Here's a screenshot to clarify:
http://snag.gy/mXT7g.jpg
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: de_DE.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.2
setuptools: 19.6.2
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
IPython: 4.1.1
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.6
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.5.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
Jinja2: 2.8
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12501/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12501/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12502 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12502/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12502/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12502/events | https://github.com/pandas-dev/pandas/issues/12502 | 137,559,417 | MDU6SXNzdWUxMzc1NTk0MTc= | 12,502 | Setting values in DataFrame with timezone-aware index fails using .loc | {
"avatar_url": "https://avatars.githubusercontent.com/u/1150402?v=4",
"events_url": "https://api.github.com/users/kdebrab/events{/privacy}",
"followers_url": "https://api.github.com/users/kdebrab/followers",
"following_url": "https://api.github.com/users/kdebrab/following{/other_user}",
"gists_url": "https://api.github.com/users/kdebrab/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kdebrab",
"id": 1150402,
"login": "kdebrab",
"node_id": "MDQ6VXNlcjExNTA0MDI=",
"organizations_url": "https://api.github.com/users/kdebrab/orgs",
"received_events_url": "https://api.github.com/users/kdebrab/received_events",
"repos_url": "https://api.github.com/users/kdebrab/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kdebrab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kdebrab/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kdebrab"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| null | 1 | 2016-03-01T12:22:49Z | 2016-03-01T12:31:43Z | 2016-03-01T12:31:27Z | CONTRIBUTOR | null | In Pandas 0.17.1, setting values in a DataFrame with .loc does not seem the work well in case of timezone-aware indices in combination with a list of columns:
```
In [1]: import pandas as pd
...: start = pd.Timestamp('2015-7-12', tz='utc')
...: end = pd.Timestamp('2015-7-12 12:00', tz='utc')
...: timestamps = pd.date_range(start, end, freq='H')
...: df1 = pd.DataFrame(index=timestamps, columns=['var'])
...: df2 = pd.DataFrame(1.2, index=timestamps, columns=['var'])
...: df1.loc[:,['var']] = df2
...: df1
Out[1]:
var
2015-07-12 00:00:00+00:00 NaN
2015-07-12 01:00:00+00:00 NaN
2015-07-12 02:00:00+00:00 NaN
2015-07-12 03:00:00+00:00 NaN
2015-07-12 04:00:00+00:00 NaN
2015-07-12 05:00:00+00:00 NaN
2015-07-12 06:00:00+00:00 NaN
2015-07-12 07:00:00+00:00 NaN
2015-07-12 08:00:00+00:00 NaN
2015-07-12 09:00:00+00:00 NaN
2015-07-12 10:00:00+00:00 NaN
2015-07-12 11:00:00+00:00 NaN
2015-07-12 12:00:00+00:00 NaN
```
Though it does work when replacing `['var']` by `'var'`:
```
In [2]: start = pd.Timestamp('2015-7-12', tz='utc')
...: end = pd.Timestamp('2015-7-12 12:00', tz='utc')
...: timestamps = pd.date_range(start, end, freq='H')
...: df1 = pd.DataFrame(index=timestamps, columns=['var'])
...: df2 = pd.DataFrame(1.2, index=timestamps, columns=['var'])
...: df1.loc[:,'var'] = df2
...: df1
Out[2]:
var
2015-07-12 00:00:00+00:00 1.2
2015-07-12 01:00:00+00:00 1.2
2015-07-12 02:00:00+00:00 1.2
2015-07-12 03:00:00+00:00 1.2
2015-07-12 04:00:00+00:00 1.2
2015-07-12 05:00:00+00:00 1.2
2015-07-12 06:00:00+00:00 1.2
2015-07-12 07:00:00+00:00 1.2
2015-07-12 08:00:00+00:00 1.2
2015-07-12 09:00:00+00:00 1.2
2015-07-12 10:00:00+00:00 1.2
2015-07-12 11:00:00+00:00 1.2
2015-07-12 12:00:00+00:00 1.2
```
Also, it works with a non-timezone-aware index:
```
In [3]: start = pd.Timestamp('2015-7-12')
...: end = pd.Timestamp('2015-7-12 12:00')
...: timestamps = pd.date_range(start, end, freq='H')
...: df1 = pd.DataFrame(index=timestamps, columns=['var'])
...: df2 = pd.DataFrame(1.2, index=timestamps, columns=['var'])
...: df1.loc[:,['var']] = df2
...: df1
Out[3]:
var
2015-07-12 00:00:00 1.2
2015-07-12 01:00:00 1.2
2015-07-12 02:00:00 1.2
2015-07-12 03:00:00 1.2
2015-07-12 04:00:00 1.2
2015-07-12 05:00:00 1.2
2015-07-12 06:00:00 1.2
2015-07-12 07:00:00 1.2
2015-07-12 08:00:00 1.2
2015-07-12 09:00:00 1.2
2015-07-12 10:00:00 1.2
2015-07-12 11:00:00 1.2
2015-07-12 12:00:00 1.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/12502/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12502/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12503 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12503/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12503/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12503/events | https://github.com/pandas-dev/pandas/issues/12503 | 137,575,217 | MDU6SXNzdWUxMzc1NzUyMTc= | 12,503 | CLN & REORG core/common.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-03-01T13:31:42Z | 2016-08-11T15:54:05Z | 2016-07-13T11:52:44Z | CONTRIBUTOR | null | some ideas on reorging.
- [X] rename `pandas/util/misc.py` to `pandas/util/tools.py` or `pandas/util/util.py` (https://github.com/pydata/pandas/commit/a69d628db77cc67f79590bbb3f13e178cb8b0e93)
- [X] move `core/generic.py/_validate_kwargs` (and new `validate_args`) here (https://github.com/pydata/pandas/commit/6e6478764a8e002e2436da3ee981512917d9b7c4)
- [x] move the `various python utilities` section from `core/common` (#13147)
- [x] create `pandas/types/` (#12804)
- [x] move `pandas/core/dtypes.py` here
- [x] create `pandas/types/types.py` (#12804)
- [x] move `bind_method`, `create_pandas_abc_types` here (from `core/common.py`)
- [x] move the `is_...._dtype` to here (#13147)
- [x] move `core/common.py/concat*` to new sub-package `types/concat` (#12844)
- [x] move `core/common.py/take*` stuff to `algorithms` (may need to create a sub-package for this) (#12804)
- [x] create new sub-package `pandas/formats` (#12804)
- [x] move `core/common.py/printing utilities` to new sub-package `pandas/formats/printing.py` (#12804)
- [x] move `core/format.py` here as well (maybe split later) (#12804)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12503/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12503/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.