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/12304 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12304/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12304/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12304/events | https://github.com/pandas-dev/pandas/issues/12304 | 133,132,796 | MDU6SXNzdWUxMzMxMzI3OTY= | 12,304 | DataFrame.to_hdf will write Unicode labels, but pd.read_hdf won't read them | {
"avatar_url": "https://avatars.githubusercontent.com/u/234227?v=4",
"events_url": "https://api.github.com/users/rspeer/events{/privacy}",
"followers_url": "https://api.github.com/users/rspeer/followers",
"following_url": "https://api.github.com/users/rspeer/following{/other_user}",
"gists_url": "https://api.github.com/users/rspeer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rspeer",
"id": 234227,
"login": "rspeer",
"node_id": "MDQ6VXNlcjIzNDIyNw==",
"organizations_url": "https://api.github.com/users/rspeer/orgs",
"received_events_url": "https://api.github.com/users/rspeer/received_events",
"repos_url": "https://api.github.com/users/rspeer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rspeer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rspeer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rspeer"
} | [
{
"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 | 3 | 2016-02-12T01:07:23Z | 2016-02-12T17:50:47Z | 2016-02-12T17:32:28Z | NONE | null | I've been having a very frustrating problem where I could save a DataFrame with unique labels to HDF5, and load it again, and find that the loaded version had non-unique labels. It turns out this is because `pd.read_hdf` is replacing all labels containing non-ASCII characters with the empty string. For example, a row with the label `'café'` will have the label `''` when it is loaded again.
I looked at the bytes that were written in the HDF5 file, and confirmed that the proper UTF-8 text was in there, so the bug is in `read_hdf`.
Version information:
```
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.0.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-51-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 1.5.4
setuptools: 2.2
Cython: 0.23.3
numpy: 1.10.4
scipy: 0.16.1
statsmodels: 0.6.1
IPython: 4.0.0
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
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/12304/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12304/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12305 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12305/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12305/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12305/events | https://github.com/pandas-dev/pandas/issues/12305 | 133,153,000 | MDU6SXNzdWUxMzMxNTMwMDA= | 12,305 | BUG: Pandas.DataFrame.where() behaves unexpectedly in v0.17.0 and up under Windows 8 x64 | {
"avatar_url": "https://avatars.githubusercontent.com/u/17189726?v=4",
"events_url": "https://api.github.com/users/zk42/events{/privacy}",
"followers_url": "https://api.github.com/users/zk42/followers",
"following_url": "https://api.github.com/users/zk42/following{/other_user}",
"gists_url": "https://api.github.com/users/zk42/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zk42",
"id": 17189726,
"login": "zk42",
"node_id": "MDQ6VXNlcjE3MTg5NzI2",
"organizations_url": "https://api.github.com/users/zk42/orgs",
"received_events_url": "https://api.github.com/users/zk42/received_events",
"repos_url": "https://api.github.com/users/zk42/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zk42/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zk42/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zk42"
} | [
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| null | 2 | 2016-02-12T03:59:02Z | 2016-02-15T00:05:29Z | 2016-02-12T04:20:39Z | NONE | null | Under Windows 8 (x64), with Pandas v0.17.0 (from Anaconda) and up, Pandas.DataFrame.where() function is found to behave sporadically, sometimes returning the expected result and sometimes returning a dataframe filled with zeros.
The following code demonstrates this behavior, observed for dataframes that have larger than 361 rows and columns.
I observed that this problem does NOT exist in Pandas v0.16.2 on the same machine (Windows 8 x64, Anaconda), and in Pandas v0.17.1 under Mac OS (Anaconda).
``` python
import numpy as np
import pandas as pd
n = 400
n_trials = 1000
df_1 = pd.DataFrame(data=np.random.random((n,n)), index=np.arange(0,n), columns=np.arange(0,n))
df_2 = pd.DataFrame(data=np.random.random((n,n)), index=np.arange(0,n), columns=np.arange(0,n))
count = 0
for i in xrange(0,n_trials):
res = df_1.where(df_2 > 0.5)
if (res < 1e-6).all().all():
count += 1
print "number of unexpected cases: ", count
```
returns non-zero 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/12305/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12305/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12306 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12306/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12306/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12306/events | https://github.com/pandas-dev/pandas/pull/12306 | 133,153,553 | MDExOlB1bGxSZXF1ZXN0NTkxMzEzNDM= | 12,306 | BUG: GH12290 where tz_convert used values of uninitialized arrays | {
"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": "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-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-12T04:06:08Z | 2016-02-12T13:39:21Z | 2016-02-12T13:39:08Z | CONTRIBUTOR | null | closes #12290
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12306/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12306/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12306.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12306",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12306.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12306"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12307 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12307/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12307/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12307/events | https://github.com/pandas-dev/pandas/pull/12307 | 133,159,272 | MDExOlB1bGxSZXF1ZXN0NTkxMzQxNTc= | 12,307 | BUG: fix NaT support for msgpack format. | {
"avatar_url": "https://avatars.githubusercontent.com/u/3064397?v=4",
"events_url": "https://api.github.com/users/llllllllll/events{/privacy}",
"followers_url": "https://api.github.com/users/llllllllll/followers",
"following_url": "https://api.github.com/users/llllllllll/following{/other_user}",
"gists_url": "https://api.github.com/users/llllllllll/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/llllllllll",
"id": 3064397,
"login": "llllllllll",
"node_id": "MDQ6VXNlcjMwNjQzOTc=",
"organizations_url": "https://api.github.com/users/llllllllll/orgs",
"received_events_url": "https://api.github.com/users/llllllllll/received_events",
"repos_url": "https://api.github.com/users/llllllllll/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/llllllllll/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/llllllllll/subscriptions",
"type": "User",
"url": "https://api.github.com/users/llllllllll"
} | [
{
"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"
} | 1 | 2016-02-12T05:12:00Z | 2016-02-12T13:47:55Z | 2016-02-12T13:47:44Z | CONTRIBUTOR | null | This currently fails with an attribute error trying to get the isoformat of `NaT`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12307/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12307/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12307.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12307",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12307.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12307"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12308 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12308/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12308/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12308/events | https://github.com/pandas-dev/pandas/pull/12308 | 133,194,176 | MDExOlB1bGxSZXF1ZXN0NTkxNDk4OTQ= | 12,308 | Subclassing improvements | {
"avatar_url": "https://avatars.githubusercontent.com/u/16191779?v=4",
"events_url": "https://api.github.com/users/cldy/events{/privacy}",
"followers_url": "https://api.github.com/users/cldy/followers",
"following_url": "https://api.github.com/users/cldy/following{/other_user}",
"gists_url": "https://api.github.com/users/cldy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cldy",
"id": 16191779,
"login": "cldy",
"node_id": "MDQ6VXNlcjE2MTkxNzc5",
"organizations_url": "https://api.github.com/users/cldy/orgs",
"received_events_url": "https://api.github.com/users/cldy/received_events",
"repos_url": "https://api.github.com/users/cldy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cldy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cldy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cldy"
} | [
{
"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 | []
| null | 24 | 2016-02-12T09:30:57Z | 2016-11-22T11:44:44Z | 2016-11-22T11:44:44Z | NONE | null | Addresses indexing issues related to subclassing (#11559).
Also made some changes to base, groupby, reshape, strings.
So for example, if df was a SubclassedDataFrame and s was a SubclassedSeries
`df.groupby('A').apply(lambda x: x)`
and
`s.value_counts()`
would return SubclassedDataFrame and SubclassedSeries instances, respectively.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12308/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12308/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12308.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12308",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12308.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12308"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12309 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12309/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12309/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12309/events | https://github.com/pandas-dev/pandas/issues/12309 | 133,258,002 | MDU6SXNzdWUxMzMyNTgwMDI= | 12,309 | Int64Index and Float64Index (and... ?) do not propagate name of passed index | {
"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": "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"
} | 13 | 2016-02-12T14:42:19Z | 2016-06-14T13:54:38Z | 2016-06-14T13:53:54Z | MEMBER | null | ```
In [8]: i = Index(range(3),name='foo')
In [9]: Index(i)
Out[9]: Int64Index([0, 1, 2], dtype='int64', name=u'foo')
In [10]: pd.Int64Index(i)
Out[10]: Int64Index([0, 1, 2], dtype='int64')
```
`Float64Index` as well
ideally move the tests to `Base` to test all index types.
See #12288.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12309/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12309/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12310 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12310/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12310/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12310/events | https://github.com/pandas-dev/pandas/pull/12310 | 133,263,835 | MDExOlB1bGxSZXF1ZXN0NTkxODQ3NjU= | 12,310 | DOC: Update wrong example in df.first doc-string | {
"avatar_url": "https://avatars.githubusercontent.com/u/964251?v=4",
"events_url": "https://api.github.com/users/scari/events{/privacy}",
"followers_url": "https://api.github.com/users/scari/followers",
"following_url": "https://api.github.com/users/scari/following{/other_user}",
"gists_url": "https://api.github.com/users/scari/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scari",
"id": 964251,
"login": "scari",
"node_id": "MDQ6VXNlcjk2NDI1MQ==",
"organizations_url": "https://api.github.com/users/scari/orgs",
"received_events_url": "https://api.github.com/users/scari/received_events",
"repos_url": "https://api.github.com/users/scari/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scari/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scari/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scari"
} | [
{
"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-12T15:08:37Z | 2016-02-12T15:16:09Z | 2016-02-12T15:16:06Z | 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/12310/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12310/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12310.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12310",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12310.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12310"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/12311 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12311/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12311/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12311/events | https://github.com/pandas-dev/pandas/issues/12311 | 133,274,788 | MDU6SXNzdWUxMzMyNzQ3ODg= | 12,311 | DEPR: warnings from style deprecation only in PY3 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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-12T15:52:34Z | 2016-02-13T02:35:59Z | 2016-02-13T02:35:59Z | CONTRIBUTOR | null | https://travis-ci.org/pydata/pandas/jobs/108709963
```
S.......S.S........................................................................./home/travis/build/pydata/pandas/pandas/core/config.py:219: FutureWarning:
mpl_style had been deprecated and will be removed in a future version.
Use `matplotlib.pyplot.style.use` instead.
return self.__func__(*args, **kwds)
```
cc @TomAugspurger
prob should bump the stacklevel as well
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12311/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12311/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12312 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12312/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12312/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12312/events | https://github.com/pandas-dev/pandas/issues/12312 | 133,282,387 | MDU6SXNzdWUxMzMyODIzODc= | 12,312 | Unicode not suported in Style | {
"avatar_url": "https://avatars.githubusercontent.com/u/3237939?v=4",
"events_url": "https://api.github.com/users/rsdenijs/events{/privacy}",
"followers_url": "https://api.github.com/users/rsdenijs/followers",
"following_url": "https://api.github.com/users/rsdenijs/following{/other_user}",
"gists_url": "https://api.github.com/users/rsdenijs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rsdenijs",
"id": 3237939,
"login": "rsdenijs",
"node_id": "MDQ6VXNlcjMyMzc5Mzk=",
"organizations_url": "https://api.github.com/users/rsdenijs/orgs",
"received_events_url": "https://api.github.com/users/rsdenijs/received_events",
"repos_url": "https://api.github.com/users/rsdenijs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rsdenijs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rsdenijs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rsdenijs"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"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": "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 | 11 | 2016-02-12T16:23:56Z | 2019-04-24T15:55:17Z | 2019-04-24T15:55:16Z | NONE | null | The styler does not seem to like unicode?
```
Reproduce by:
pd.DataFrame(['♚']).style
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 0: ordinal not in range(128)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12312/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12312/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12313 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12313/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12313/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12313/events | https://github.com/pandas-dev/pandas/issues/12313 | 133,305,475 | MDU6SXNzdWUxMzMzMDU0NzU= | 12,313 | Assigning from other NDFrame broken on multiple MultiIndex columns | {
"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": "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 | 5 | 2016-02-12T18:02:41Z | 2016-02-13T13:50:05Z | 2016-02-12T18:10:05Z | MEMBER | null | ```
In [2]: df = pd.DataFrame(columns=pd.MultiIndex.from_product([range(2), range(2)]))
In [3]: df.loc[0] = range(4)
In [4]: df.loc[1] = pd.Series(range(4))
In [5]: df
Out[5]:
0 1
0 1 0 1
0 0.0 1.0 2.0 3.0
1 NaN NaN NaN NaN
```
That is: the first `loc` is doing what we expect, but the second is only creating a row of `NaN`s. By the way, giving an explicit columns list does not help, and
```
In [6]: df.loc[2] = pd.Series(range(40))
```
does not even raise an error.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12313/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12313/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12314 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12314/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12314/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12314/events | https://github.com/pandas-dev/pandas/pull/12314 | 133,310,470 | MDExOlB1bGxSZXF1ZXN0NTkyMTE0Mjg= | 12,314 | TST: validation tests for resample/groupby preservation | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"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"
} | 0 | 2016-02-12T18:25:50Z | 2016-02-12T20:40:12Z | 2016-02-12T20:40:12Z | CONTRIBUTOR | null | closes #12202
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12314/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12314/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12314.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12314",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12314.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12314"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12315 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12315/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12315/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12315/events | https://github.com/pandas-dev/pandas/pull/12315 | 133,310,952 | MDExOlB1bGxSZXF1ZXN0NTkyMTE3NDQ= | 12,315 | COMPAT: silence mpl_style 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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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-12T18:28:39Z | 2016-02-13T02:35:59Z | 2016-02-13T02:35:59Z | CONTRIBUTOR | null | closes #12311
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12315/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12315/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12315.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12315",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12315.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12315"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12316 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12316/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12316/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12316/events | https://github.com/pandas-dev/pandas/pull/12316 | 133,319,263 | MDExOlB1bGxSZXF1ZXN0NTkyMTY3NTk= | 12,316 | TST: validation tests for concat of same timezones | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "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-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-12T19:09:50Z | 2016-02-13T01:15:50Z | 2016-02-13T01:15:50Z | CONTRIBUTOR | null | closes #12217
xref #12306 which I think fixed
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12316/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12316/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12316.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12316",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12316.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12316"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12317 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12317/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12317/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12317/events | https://github.com/pandas-dev/pandas/pull/12317 | 133,386,456 | MDExOlB1bGxSZXF1ZXN0NTkyNTQ5OTM= | 12,317 | DOC: whatsnews for style fixes | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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-13T02:02:00Z | 2016-02-13T02:36:00Z | 2016-02-13T02:36:00Z | CONTRIBUTOR | null | Forgot them in https://github.com/pydata/pandas/pull/12162
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12317/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12317/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12317.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12317",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12317.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12317"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12318 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12318/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12318/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12318/events | https://github.com/pandas-dev/pandas/pull/12318 | 133,394,120 | MDExOlB1bGxSZXF1ZXN0NTkyNTcyMjk= | 12,318 | BUG: Prevent abuse of kwargs in stat functions | {
"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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
]
| closed | false | null | []
| {
"closed_at": "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-13T03:32:15Z | 2016-02-14T19:16:45Z | 2016-02-14T17:08:43Z | MEMBER | null | Addresses issue #12301 by filtering `kwargs` argument in stat functions to prevent the passage of clearly invalid arguments while at the same time maintaining compatibility with analogous `numpy` functions.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12318/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12318/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12318.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12318",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12318.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12318"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12319 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12319/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12319/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12319/events | https://github.com/pandas-dev/pandas/issues/12319 | 133,428,690 | MDU6SXNzdWUxMzM0Mjg2OTA= | 12,319 | API: should reindex on a level introduce NaNs for missing entries per label of other levels? | {
"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": "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"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2016-02-13T12:35:14Z | 2021-04-23T00:54:29Z | null | MEMBER | null | Suppose the following dataframe and reindex operation:
```
In [65]: df = pd.DataFrame(np.arange(12).reshape(4,3), columns=pd.MultiIndex.from_tuples([('A', 'a'), ('A', 'b'), ('B', 'a')]))
In [66]: df
Out[66]:
A B
a b a
0 0 1 2
1 3 4 5
2 6 7 8
3 9 10 11
In [67]: df.reindex(columns=['a', 'b'], level=1)
Out[67]:
A B
a b a
0 0 1 2
1 3 4 5
2 6 7 8
3 9 10 11
```
Should this give the following?
```
In [67]: df.reindex(columns=['a', 'b'], level=1)
Out[67]:
A B
a b a b
0 0 1 2 NaN
1 3 4 5 NaN
2 6 7 8 NaN
3 9 10 11 NaN
```
I am not sure what the exact behaviour of the `level` keyword should be, but eg in the following example it does the selection of columns for each of label of the other level:
```
In [69]: df2 = pd.DataFrame(np.arange(18).reshape(3,6), columns=pd.MultiIndex.from_product([('A', 'B'), ('a', 'b', 'c')]))
In [70]:
In [70]: df2
Out[70]:
A B
a b c a b c
0 0 1 2 3 4 5
1 6 7 8 9 10 11
2 12 13 14 15 16 17
In [71]: df2.reindex(columns=['a', 'c'], level=1)
Out[71]:
A B
a c a c
0 0 2 3 5
1 6 8 9 11
2 12 14 15 17
```
| {
"+1": 5,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 5,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12319/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12319/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12320 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12320/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12320/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12320/events | https://github.com/pandas-dev/pandas/pull/12320 | 133,437,337 | MDExOlB1bGxSZXF1ZXN0NTkyNjgzNjA= | 12,320 | WARN: fix some 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": "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"
} | 0 | 2016-02-13T14:34:57Z | 2016-02-13T15:18:23Z | 2016-02-13T15:18:23Z | CONTRIBUTOR | null | catch warning on reindexing a boolean indexer
add some documentation on a na scalar comparison test warning
remove warning for plotting multiple on a sub-plot
closes #8397
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12320/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12320/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12320.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12320",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12320.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12320"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12321 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12321/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12321/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12321/events | https://github.com/pandas-dev/pandas/issues/12321 | 133,439,406 | MDU6SXNzdWUxMzM0Mzk0MDY= | 12,321 | WARN: some sql warnings on the 3.5 builds | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 2 | 2016-02-13T15:00:18Z | 2016-08-15T22:18:22Z | 2016-08-15T22:18:22Z | CONTRIBUTOR | null | https://travis-ci.org/pydata/pandas/jobs/108942384
other warnings are already taken care of
```
...........................................S....................................S..........................S/home/travis/miniconda/envs/pandas/lib/python3.5/site-packages/pymysql/cursors.py:146: Warning: Unknown table 'iris'
result = self._query(query)
./home/travis/miniconda/envs/pandas/lib/python3.5/site-packages/pymysql/cursors.py:146: Warning: Unknown table 'iris'
result = self._query(query)
...S...S.../home/travis/miniconda/envs/pandas/lib/python3.5/site-packages/pymysql/cursors.py:146: Warning: Unknown table 'test_frame_roundtrip'
result = self._query(query)
./home/travis/miniconda/envs/pandas/lib/python3.5/site-packages/pymysql/cursors.py:146: Warning: Unknown table 'test_frame1'
result = self._query(query)
................................................................................S................................................................................S....................................S.........................S...................................................../home/travis/miniconda/envs/pandas/lib/python3.5/site-packages/pymysql/cursors.py:146: Warning: Unknown table 'test'
result = self._query(query)
../home/travis/miniconda/envs/pandas/lib/python3.5/site-packages/pymysql/cursors.py:146: Warning: Unknown table 'test'
result = self._query(query)
../home/travis/miniconda/envs/pandas/lib/python3.5/site-packages/pymysql/cursors.py:146: Warning: Unknown table 'table_if_exists'
result = self._query(query)
..../home/travis/miniconda/envs/pandas/lib/python3.5/site-packages/pymysql/cursors.py:146: Warning: Unknown table 'test_table'
result = self._query(query)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12321/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12321/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12322 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12322/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12322/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12322/events | https://github.com/pandas-dev/pandas/issues/12322 | 133,450,109 | MDU6SXNzdWUxMzM0NTAxMDk= | 12,322 | COMPAT: issues w.r.t. deprecating float indexers | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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"
} | 1 | 2016-02-13T17:22:31Z | 2016-02-15T20:05:56Z | 2016-02-15T20:05:56Z | CONTRIBUTOR | null | from #12246
@jorisvandenbossche
Some after merge feedback:
I took a look and I also like the logic now as how you explained it in your last post (for label based indexing: if the label evaluates as equal, then it is interpreted as the existing label)
A few things:
- The whatsnew needs to be updated (as it still says it raises now for all cases, as you started the PR)
```
maybe mention that it only is about positional indexing? Otherwise people could think FloatIndex is removed.
```
- (minor) When using `iloc` with a float (so the case it still should raise an error), the error message is not fully correct:
```
In [76]: s2 = s.copy()
In [77]: s2.iloc[2.0] = 10
TypeError: cannot do label indexing on <class 'pandas.indexes.range.RangeIndex'>
with these indexers [2.0] of <type 'float'>
```
This is not 'label' indexing, but 'integer' or 'positional' indexing
- The behaviour of using a float indexer with `ix` on a non-numerical index has changed:
```
In [78]: s3 = pd.Series(range(3), index=list('abc'))
In [79]: s4 = s3.copy()
In [80]: s4.ix[1.0] = 10
In [81]: s4
Out[81]:
a 0
b 1
c 2
1.0 10
dtype: int64
In [82]: s4.index
Out[82]: Index([u'a', u'b', u'c', 1.0], dtype='object')
In [83]: pd.__version__
Out[83]: '0.17.1+350.g5f7c9e9'
```
and with 0.16.2
```
In [1]: pd.__version__
Out[1]: '0.16.2'
In [2]: s3 = pd.Series(range(3), index=list('abc'))
In [3]: s4 = s3.copy()
In [4]: s4.ix[1.0] = 10
C:\Anaconda\lib\site-packages\pandas\core\index.py:805: FutureWarning: scalar i
dexers for index type Index should be integers and not floating point
type(self).__name__),FutureWarning)
In [5]: s4
Out[5]:
a 0
b 10
c 2
dtype: int64
In [6]: s4.index
Out[6]: Index([u'a', u'b', u'c'], dtype='object')
```
The change is logical, as before the float was interpreted as a positional indexer (and for this the warning was raised). But now a float cannot be a positional indexer anymore, so it is interpreted as a new label.
To be clear, I think this change is OK, but just wanted to point out a case where this change will not raise an error but alter your results (worth mentioning in the whatsnew 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/12322/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12322/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12323 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12323/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12323/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12323/events | https://github.com/pandas-dev/pandas/pull/12323 | 133,464,435 | MDExOlB1bGxSZXF1ZXN0NTkyNzU4ODY= | 12,323 | DOC: some rewording of highlights | {
"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"
} | 3 | 2016-02-13T19:38:38Z | 2016-02-13T20:51:09Z | 2016-02-13T20:51:09Z | MEMBER | null | @jreback I proofread the highlights and made some edits (but language is always a bit subjective). Comments?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12323/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12323/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12323.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12323",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12323.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12323"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12324 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12324/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12324/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12324/events | https://github.com/pandas-dev/pandas/pull/12324 | 133,469,562 | MDExOlB1bGxSZXF1ZXN0NTkyNzcwNjU= | 12,324 | DOC: whatsnew link v0.18.0 for float_indexers | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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"
} | 0 | 2016-02-13T20:24:33Z | 2016-02-13T21:33:29Z | 2016-02-13T21:33:29Z | 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/12324/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12324/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12324.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12324",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12324.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12324"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/12325 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12325/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12325/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12325/events | https://github.com/pandas-dev/pandas/pull/12325 | 133,489,213 | MDExOlB1bGxSZXF1ZXN0NTkyODMzMzE= | 12,325 | CLN: change getargspec -> signature | {
"avatar_url": "https://avatars.githubusercontent.com/u/10955264?v=4",
"events_url": "https://api.github.com/users/troglotit/events{/privacy}",
"followers_url": "https://api.github.com/users/troglotit/followers",
"following_url": "https://api.github.com/users/troglotit/following{/other_user}",
"gists_url": "https://api.github.com/users/troglotit/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/troglotit",
"id": 10955264,
"login": "troglotit",
"node_id": "MDQ6VXNlcjEwOTU1MjY0",
"organizations_url": "https://api.github.com/users/troglotit/orgs",
"received_events_url": "https://api.github.com/users/troglotit/received_events",
"repos_url": "https://api.github.com/users/troglotit/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/troglotit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/troglotit/subscriptions",
"type": "User",
"url": "https://api.github.com/users/troglotit"
} | [
{
"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"
} | 4 | 2016-02-14T01:08:35Z | 2016-02-17T13:20:17Z | 2016-02-17T13:20:15Z | CONTRIBUTOR | null | Change signature in compat to be able to return defaults, varargs,
kwargs
Closes #12171
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12325/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12325/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12325.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12325",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12325.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12325"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12326 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12326/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12326/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12326/events | https://github.com/pandas-dev/pandas/pull/12326 | 133,534,862 | MDExOlB1bGxSZXF1ZXN0NTkyOTQyMTc= | 12,326 | DOC/DEPR: remove remaining occurences of mpl_style from docs (GH12190) | {
"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"
},
{
"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": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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-14T12:27:11Z | 2016-02-14T17:04:07Z | 2016-02-14T17:04:07Z | MEMBER | null | @TomAugspurger There were some remaining usages of `options.display.mpl_style` in the docs, so removed those + also removed the reference to it in the text.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12326/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12326/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12326.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12326",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12326.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12326"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12327 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12327/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12327/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12327/events | https://github.com/pandas-dev/pandas/pull/12327 | 133,634,002 | MDExOlB1bGxSZXF1ZXN0NTkzMjU5MTM= | 12,327 | FIX: pivot_table dropna=False drops index level names | {
"avatar_url": "https://avatars.githubusercontent.com/u/53390?v=4",
"events_url": "https://api.github.com/users/Winand/events{/privacy}",
"followers_url": "https://api.github.com/users/Winand/followers",
"following_url": "https://api.github.com/users/Winand/following{/other_user}",
"gists_url": "https://api.github.com/users/Winand/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Winand",
"id": 53390,
"login": "Winand",
"node_id": "MDQ6VXNlcjUzMzkw",
"organizations_url": "https://api.github.com/users/Winand/orgs",
"received_events_url": "https://api.github.com/users/Winand/received_events",
"repos_url": "https://api.github.com/users/Winand/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Winand/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Winand/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Winand"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
]
| closed | false | null | []
| null | 4 | 2016-02-15T06:39:20Z | 2016-04-14T04:03:56Z | 2016-04-14T01:27:52Z | CONTRIBUTOR | null | closes #12133
level names are lost on `MultiIndex.from_arrays(cartesian_product(table.index.levels))`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12327/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12327/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12327.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12327",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12327.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12327"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12328 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12328/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12328/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12328/events | https://github.com/pandas-dev/pandas/issues/12328 | 133,664,194 | MDU6SXNzdWUxMzM2NjQxOTQ= | 12,328 | DeprecationWarning in __init__.py:7: bad escape \s | {
"avatar_url": "https://avatars.githubusercontent.com/u/4377312?v=4",
"events_url": "https://api.github.com/users/cbrnr/events{/privacy}",
"followers_url": "https://api.github.com/users/cbrnr/followers",
"following_url": "https://api.github.com/users/cbrnr/following{/other_user}",
"gists_url": "https://api.github.com/users/cbrnr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cbrnr",
"id": 4377312,
"login": "cbrnr",
"node_id": "MDQ6VXNlcjQzNzczMTI=",
"organizations_url": "https://api.github.com/users/cbrnr/orgs",
"received_events_url": "https://api.github.com/users/cbrnr/received_events",
"repos_url": "https://api.github.com/users/cbrnr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cbrnr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cbrnr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cbrnr"
} | [
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| null | 2 | 2016-02-15T09:31:10Z | 2016-02-15T14:17:01Z | 2016-02-15T14:14:17Z | CONTRIBUTOR | null | When setting the warnings filter to show DeprecationWarnings, I get a warning when importing Pandas (which I discovered because mne-python changes the global warning settings, see https://github.com/mne-tools/mne-python/issues/2870):
```
import warnings
warnings.simplefilter("default")
import pandas as pd
```
This results in the following warning message:
```
/usr/local/lib/python3.5/site-packages/pandas/__init__.py:7: DeprecationWarning: bad escape \s
from pandas import hashtable, tslib, lib
```
I have no idea what's wrong with the code in line 7 though. Here's the 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: en_US.UTF-8
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.2
setuptools: 20.1
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: None
IPython: 4.1.1
sphinx: 1.3.5
patsy: 0.4.1
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": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12328/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12328/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12329 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12329/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12329/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12329/events | https://github.com/pandas-dev/pandas/pull/12329 | 133,730,932 | MDExOlB1bGxSZXF1ZXN0NTkzNzMxMzU= | 12,329 | BUG: addtl fix for compat summary of groupby/resample with dicts | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"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"
} | 0 | 2016-02-15T14:50:17Z | 2016-02-15T21:49:01Z | 2016-02-15T20:28:58Z | CONTRIBUTOR | null | closes #9052
closes #12332
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12329/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12329/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12329.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12329",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12329.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12329"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12330 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12330/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12330/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12330/events | https://github.com/pandas-dev/pandas/pull/12330 | 133,765,443 | MDExOlB1bGxSZXF1ZXN0NTkzODk2MDE= | 12,330 | DOC: add addtl docs for FloatIndexing changes in 0.18.0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "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-15T16:57:55Z | 2016-02-15T20:05:56Z | 2016-02-15T20:05:56Z | CONTRIBUTOR | null | closes #12322
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12330/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12330/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12330.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12330",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12330.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12330"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12331 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12331/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12331/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12331/events | https://github.com/pandas-dev/pandas/pull/12331 | 133,777,043 | MDExOlB1bGxSZXF1ZXN0NTkzOTUxNDU= | 12,331 | BUG: Common NumericIndex.__new__, with fixed name handling | {
"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": "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 | 8 | 2016-02-15T17:46:31Z | 2016-05-17T12:42:29Z | 2016-05-07T17:46:49Z | MEMBER | null | closes #12309
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12331/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12331/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12331.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12331",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12331.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12331"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12332 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12332/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12332/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12332/events | https://github.com/pandas-dev/pandas/issues/12332 | 133,792,909 | MDU6SXNzdWUxMzM3OTI5MDk= | 12,332 | Resample with OHLC sometimes results in series on pandas release 0.18.0.rc1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/2783717?v=4",
"events_url": "https://api.github.com/users/jcrist/events{/privacy}",
"followers_url": "https://api.github.com/users/jcrist/followers",
"following_url": "https://api.github.com/users/jcrist/following{/other_user}",
"gists_url": "https://api.github.com/users/jcrist/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jcrist",
"id": 2783717,
"login": "jcrist",
"node_id": "MDQ6VXNlcjI3ODM3MTc=",
"organizations_url": "https://api.github.com/users/jcrist/orgs",
"received_events_url": "https://api.github.com/users/jcrist/received_events",
"repos_url": "https://api.github.com/users/jcrist/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jcrist/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jcrist/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jcrist"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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-15T19:01:58Z | 2016-02-15T20:29:10Z | 2016-02-15T20:28:58Z | CONTRIBUTOR | null | ``` python
In [1]: import pandas as pd
In [2]: index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
In [3]: index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
In [4]: s = pd.Series(range(len(index)), index=index)
In [5]: a = s.loc[:'4-15-2000'].resample('30T').ohlc()
In [6]: b = s.loc[:'4-14-2000'].resample('30T').ohlc()
In [7]: a.head()
Out[7]:
open high low close
2000-01-01 00:00:00 0.0 0.0 0.0 0.0
2000-01-01 00:30:00 NaN NaN NaN NaN
2000-01-01 01:00:00 1.0 1.0 1.0 1.0
2000-01-01 01:30:00 NaN NaN NaN NaN
2000-01-01 02:00:00 2.0 2.0 2.0 2.0
In [8]: b.head()
Out[8]:
2000-01-01 00:00:00 0.0
2000-01-01 00:30:00 NaN
2000-01-01 01:00:00 1.0
2000-01-01 01:30:00 NaN
2000-01-01 02:00:00 2.0
Freq: 30T, dtype: float64
In [9]: pd.__version__
Out[9]: u'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/12332/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12332/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12333 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12333/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12333/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12333/events | https://github.com/pandas-dev/pandas/issues/12333 | 133,815,699 | MDU6SXNzdWUxMzM4MTU2OTk= | 12,333 | API: behaviour of label indexing with floats on integer index | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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": "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"
} | 21 | 2016-02-15T21:02:04Z | 2016-03-08T23:38:19Z | 2016-03-08T23:38:19Z | CONTRIBUTOR | null | from #12246
@jorisvandenbossche this looks odd
```
In [11]: s = pd.Series([1,2,3])
In [12]: s.loc[0.0] = 10
In [13]: s.loc[0.0]
TypeError: cannot do label indexing on <class 'pandas.indexes.range.RangeIndex'>
with these indexers [0.0] of <type 'float'>
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12333/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12333/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12334 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12334/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12334/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12334/events | https://github.com/pandas-dev/pandas/issues/12334 | 133,825,705 | MDU6SXNzdWUxMzM4MjU3MDU= | 12,334 | API: consistency is return results of aggregation on SeriesGroupby | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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"
}
]
| 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-15T21:52:43Z | 2016-02-17T01:12:08Z | 2016-02-17T01:12:08Z | CONTRIBUTOR | null | xref 12329
For consistency, the proposal is to make `[4]` have a multi-level index `('C','sum'),('C','std')` as its not a rename (like `[5]`). This previously raised in 0.17.1
```
In [2]: df = DataFrame({'A': ['foo', 'bar', 'foo', 'bar',
'foo', 'bar', 'foo', 'foo'],
'B': ['one', 'one', 'two', 'two',
'two', 'two', 'one', 'two'],
'C': np.random.randn(8) + 1.0,
'D': np.arange(8)})
In [3]: g = df.groupby(['A', 'B'])
In [4]: g['D'].agg({'C': ['sum', 'std']})
Out[4]:
sum std
A B
bar one 1 NaN
two 8 1.414214
foo one 6 4.242641
two 13 2.516611
In [5]: g['D'].agg({'C': 'sum', 'D' : 'std'})
Out[5]:
C D
A B
bar one 1 NaN
two 8 1.414214
foo one 6 4.242641
two 13 2.516611
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12334/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12334/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12335 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12335/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12335/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12335/events | https://github.com/pandas-dev/pandas/pull/12335 | 133,829,161 | MDExOlB1bGxSZXF1ZXN0NTk0MTkzOTI= | 12,335 | API: consistency in aggregate groupby results | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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"
}
]
| 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-15T22:12:16Z | 2016-02-17T01:12:08Z | 2016-02-17T01:12:08Z | CONTRIBUTOR | null | closes #12334
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12335/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12335/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12335.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12335",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12335.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12335"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12336 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12336/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12336/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12336/events | https://github.com/pandas-dev/pandas/issues/12336 | 133,839,496 | MDU6SXNzdWUxMzM4Mzk0OTY= | 12,336 | Initializing category with single value raises AttributeError | {
"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": "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"
} | 2 | 2016-02-15T23:08:46Z | 2016-02-18T13:15:08Z | 2016-02-18T13:15:08Z | MEMBER | null | ```
In [2]: pd.Series([0,0,0], dtype="category")
Out[2]:
0 0
1 0
2 0
dtype: category
Categories (1, int64): [0]
In [3]: pd.Series(0, index=range(3), dtype="category")
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-3-2c1d7a241071> in <module>()
----> 1 pd.Series(0, index=range(3), dtype="category")
/home/nobackup/repo/pandas/pandas/core/series.pyc in __init__(self, data, index, dtype, name, copy, fastpath)
224 else:
225 data = _sanitize_array(data, index, dtype, copy,
--> 226 raise_cast_failure=True)
227
228 data = SingleBlockManager(data, index, fastpath=True)
/home/nobackup/repo/pandas/pandas/core/series.pyc in _sanitize_array(data, index, dtype, copy, raise_cast_failure)
2961 if len(subarr) != len(index) and len(subarr) == 1:
2962 subarr = create_from_value(subarr[0], index,
-> 2963 subarr.dtype)
2964
2965 elif subarr.ndim > 1:
/home/nobackup/repo/pandas/pandas/core/series.pyc in create_from_value(value, index, dtype)
2929 else:
2930 if not isinstance(dtype, (np.dtype, type(np.dtype))):
-> 2931 dtype = dtype.dtype
2932 subarr = np.empty(len(index), dtype=dtype)
2933 subarr.fill(value)
AttributeError: 'CategoricalDtype' object has no attribute 'dtype'
```
(Not a particularly brilliant use of categories, but they can then be concatenated with others.)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12336/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12336/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12337 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12337/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12337/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12337/events | https://github.com/pandas-dev/pandas/issues/12337 | 133,844,750 | MDU6SXNzdWUxMzM4NDQ3NTA= | 12,337 | BUG: UnicodeEncodeError in test_to_latex_filename (pandas.tests.test_format.TestDataFrameFormatting) | {
"avatar_url": "https://avatars.githubusercontent.com/u/709020?v=4",
"events_url": "https://api.github.com/users/dhomeier/events{/privacy}",
"followers_url": "https://api.github.com/users/dhomeier/followers",
"following_url": "https://api.github.com/users/dhomeier/following{/other_user}",
"gists_url": "https://api.github.com/users/dhomeier/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dhomeier",
"id": 709020,
"login": "dhomeier",
"node_id": "MDQ6VXNlcjcwOTAyMA==",
"organizations_url": "https://api.github.com/users/dhomeier/orgs",
"received_events_url": "https://api.github.com/users/dhomeier/received_events",
"repos_url": "https://api.github.com/users/dhomeier/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dhomeier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dhomeier/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dhomeier"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "5319e7",
"default": false,
"description": "Unit tests that occasionally fail",
"id": 76939933,
"name": "Unreliable Test",
"node_id": "MDU6TGFiZWw3NjkzOTkzMw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unreliable%20Test"
},
{
"color": "006b75",
"default": false,
"description": "to_latex",
"id": 251382258,
"name": "IO LaTeX",
"node_id": "MDU6TGFiZWwyNTEzODIyNTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 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"
} | 17 | 2016-02-15T23:48:58Z | 2020-04-04T20:36:50Z | 2020-04-04T20:36:50Z | NONE | null | Getting this error if (and I think only if) `LANG` is not defined or not set to any `utf8`-conforming value on 0.18.0rc1 (Mac OS X 10.10, python 3.4.4, numpy 0.11.0b3):
```
ERROR: test_to_latex_filename (pandas.tests.test_format.TestDataFrameFormatting)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tests/test_format.py", line 2614, in test_to_latex_filename
df.to_latex(path)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 1593, in to_latex
encoding=encoding)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/format.py", line 641, in to_latex
latex_renderer.write_result(f)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/format.py", line 877, in write_result
buf.write(' & '.join(crow))
UnicodeEncodeError: 'ascii' codec can't encode character '\xdf' in position 7: ordinal not in range(128)
```
Don't know about the inner workings of this test; if there are any open files involved, this might be relevant: https://github.com/scipy/scipy/issues/5694
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12337/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12337/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12338 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12338/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12338/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12338/events | https://github.com/pandas-dev/pandas/issues/12338 | 133,849,245 | MDU6SXNzdWUxMzM4NDkyNDU= | 12,338 | TST: errors in test_constructor_compound_dtypes (pandas.tests.frame.test_block_internals.TestDataFrameBlockInternals) | {
"avatar_url": "https://avatars.githubusercontent.com/u/709020?v=4",
"events_url": "https://api.github.com/users/dhomeier/events{/privacy}",
"followers_url": "https://api.github.com/users/dhomeier/followers",
"following_url": "https://api.github.com/users/dhomeier/following{/other_user}",
"gists_url": "https://api.github.com/users/dhomeier/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dhomeier",
"id": 709020,
"login": "dhomeier",
"node_id": "MDQ6VXNlcjcwOTAyMA==",
"organizations_url": "https://api.github.com/users/dhomeier/orgs",
"received_events_url": "https://api.github.com/users/dhomeier/received_events",
"repos_url": "https://api.github.com/users/dhomeier/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dhomeier/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dhomeier/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dhomeier"
} | [
{
"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"
} | 7 | 2016-02-16T00:26:27Z | 2016-02-16T01:47:48Z | 2016-02-16T01:47:48Z | NONE | null | Getting these errors in the 0.18.0rc1 test suite on Mac OS X 10.10 (numpy 0.11.0b3):
with Python 2.7.11:
```
ERROR: test_constructor_compound_dtypes (pandas.tests.frame.test_block_internals.TestDataFrameBlockInternals)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tests/frame/test_block_internals.py", line 290, in test_constructor_compound_dtypes
f('M8[ns]')
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tests/frame/test_block_internals.py", line 276, in f
dtype=dtype)
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 262, in __init__
arrays, columns = _to_arrays(data, columns, dtype=dtype)
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 5349, in _to_arrays
dtype=dtype)
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 5428, in _list_to_arrays
coerce_float=coerce_float)
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 5495, in _convert_object_array
arrays = [convert(arr) for arr in content]
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 5492, in convert
arr = com._possibly_cast_to_datetime(arr, dtype)
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/common.py", line 1675, in _possibly_cast_to_datetime
value = to_datetime(value, errors=errors)._values
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/util/decorators.py", line 91, in wrapper
return func(*args, **kwargs)
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tseries/tools.py", line 280, in to_datetime
unit=unit, infer_datetime_format=infer_datetime_format)
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tseries/tools.py", line 407, in _to_datetime
return _convert_listlike(arg, box, format)
File "/scratch.noindex/fink.build/pandas-py27-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tseries/tools.py", line 381, in _convert_listlike
require_iso8601=require_iso8601
File "pandas/tslib.pyx", line 1956, in pandas.tslib.array_to_datetime (pandas/tslib.c:39318)
cpdef array_to_datetime(ndarray[object] values, errors='raise',
File "pandas/tslib.pyx", line 2145, in pandas.tslib.array_to_datetime (pandas/tslib.c:38913)
raise
File "pandas/tslib.pyx", line 2139, in pandas.tslib.array_to_datetime (pandas/tslib.c:38803)
oresult[i] = parse_datetime_string(val, dayfirst=dayfirst,
File "pandas/tslib.pyx", line 1728, in pandas.tslib.parse_datetime_string (pandas/tslib.c:31663)
dt = parse_date(date_string, default=_DEFAULT_DATETIME,
File "/sw/lib/python2.7/site-packages/dateutil/parser.py", line 748, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/sw/lib/python2.7/site-packages/dateutil/parser.py", line 310, in parse
res, skipped_tokens = self._parse(timestr, **kwargs)
TypeError: 'NoneType' object is not iterable
```
with Python 3.4.4 and 3.5.1:
```
ERROR: test_constructor_compound_dtypes (pandas.tests.frame.test_block_internals.TestDataFrameBlockInternals)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pandas/tslib.pyx", line 2055, in pandas.tslib.array_to_datetime (pandas/tslib.c:37286)
_string_to_dts(val, &dts, &out_local, &out_tzoffset)
File "pandas/src/datetime.pxd", line 141, in datetime._string_to_dts (pandas/tslib.c:83021)
raise ValueError('Unable to parse %s' % str(val))
ValueError: Unable to parse b'aa'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "pandas/tslib.pyx", line 2075, in pandas.tslib.array_to_datetime (pandas/tslib.c:37657)
py_dt = parse_datetime_string(val, dayfirst=dayfirst,
File "pandas/tslib.pyx", line 1728, in pandas.tslib.parse_datetime_string (pandas/tslib.c:31663)
dt = parse_date(date_string, default=_DEFAULT_DATETIME,
File "/sw/lib/python3.4/site-packages/dateutil/parser.py", line 748, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/sw/lib/python3.4/site-packages/dateutil/parser.py", line 310, in parse
res, skipped_tokens = self._parse(timestr, **kwargs)
TypeError: 'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "pandas/tslib.pyx", line 2081, in pandas.tslib.array_to_datetime (pandas/tslib.c:37756)
raise TypeError("invalid string coercion to datetime")
TypeError: invalid string coercion to datetime
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tests/frame/test_block_internals.py", line 290, in test_constructor_compound_dtypes
f('M8[ns]')
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tests/frame/test_block_internals.py", line 276, in f
dtype=dtype)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 262, in __init__
arrays, columns = _to_arrays(data, columns, dtype=dtype)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 5349, in _to_arrays
dtype=dtype)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 5428, in _list_to_arrays
coerce_float=coerce_float)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 5495, in _convert_object_array
arrays = [convert(arr) for arr in content]
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 5495, in <listcomp>
arrays = [convert(arr) for arr in content]
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/frame.py", line 5492, in convert
arr = com._possibly_cast_to_datetime(arr, dtype)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/core/common.py", line 1675, in _possibly_cast_to_datetime
value = to_datetime(value, errors=errors)._values
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/util/decorators.py", line 91, in wrapper
return func(*args, **kwargs)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tseries/tools.py", line 280, in to_datetime
unit=unit, infer_datetime_format=infer_datetime_format)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tseries/tools.py", line 407, in _to_datetime
return _convert_listlike(arg, box, format)
File "/scratch.noindex/fink.build/pandas-py34-0.18.0rc1-1/pandas-0.18.0rc1/pandas/tseries/tools.py", line 381, in _convert_listlike
require_iso8601=require_iso8601
File "pandas/tslib.pyx", line 1956, in pandas.tslib.array_to_datetime (pandas/tslib.c:39318)
cpdef array_to_datetime(ndarray[object] values, errors='raise',
File "pandas/tslib.pyx", line 2145, in pandas.tslib.array_to_datetime (pandas/tslib.c:38913)
raise
File "pandas/tslib.pyx", line 2139, in pandas.tslib.array_to_datetime (pandas/tslib.c:38803)
oresult[i] = parse_datetime_string(val, dayfirst=dayfirst,
File "pandas/tslib.pyx", line 1728, in pandas.tslib.parse_datetime_string (pandas/tslib.c:31663)
dt = parse_date(date_string, default=_DEFAULT_DATETIME,
File "/sw/lib/python3.4/site-packages/dateutil/parser.py", line 748, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/sw/lib/python3.4/site-packages/dateutil/parser.py", line 310, in parse
res, skipped_tokens = self._parse(timestr, **kwargs)
TypeError: 'NoneType' object is not iterable
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12338/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12338/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12339 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12339/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12339/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12339/events | https://github.com/pandas-dev/pandas/pull/12339 | 133,856,193 | MDExOlB1bGxSZXF1ZXN0NTk0MzE2NjQ= | 12,339 | COMPAT: dateutil=2.2 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": "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": "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-16T01:19:26Z | 2016-02-16T01:47:48Z | 2016-02-16T01:47:48Z | CONTRIBUTOR | null | closes #12338
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12339/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12339/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12339.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12339",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12339.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12339"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12340 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12340/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12340/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12340/events | https://github.com/pandas-dev/pandas/issues/12340 | 133,860,302 | MDU6SXNzdWUxMzM4NjAzMDI= | 12,340 | read_csv behavior with large floats | {
"avatar_url": "https://avatars.githubusercontent.com/u/2281358?v=4",
"events_url": "https://api.github.com/users/rbiswas4/events{/privacy}",
"followers_url": "https://api.github.com/users/rbiswas4/followers",
"following_url": "https://api.github.com/users/rbiswas4/following{/other_user}",
"gists_url": "https://api.github.com/users/rbiswas4/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rbiswas4",
"id": 2281358,
"login": "rbiswas4",
"node_id": "MDQ6VXNlcjIyODEzNTg=",
"organizations_url": "https://api.github.com/users/rbiswas4/orgs",
"received_events_url": "https://api.github.com/users/rbiswas4/received_events",
"repos_url": "https://api.github.com/users/rbiswas4/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rbiswas4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rbiswas4/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rbiswas4"
} | [
{
"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 | []
| null | 3 | 2016-02-16T01:48:05Z | 2016-02-16T02:15:02Z | 2016-02-16T02:14:53Z | NONE | null | I have a data file in text which has 4 columns
```
$head sample.txt
SourceID Photons AvgX AvgY
6144039378640938.000000 71 1457.802817 2692.802817
6144053114071082.000000 8 1498.125000 2696.375000
6145000614093866.000000 0 nan nan
6145000614092842.000000 0 nan nan
6144137763642410.000000 0 nan nan
```
The 0th column really ought to have been int, but this is how the data file looks.
On trying to read it into a pandas, the [0, 0] element is read in as 6144039378640936.0.
The behavior is correct is numpy, and might be related to the floating point representation of this huge
float. However, checking the dtypes both numpy and pandas seem to be using the same type.
(The sample file and an ipython notebook is also in https://github.com/rbiswas4/pandasProblem/blob/master/checkproblem.ipynb)
```
python
>>> import pandas as pd
>>> df = pd.read_csv('sample.txt', sep='\s+')
>>> df.ix[0,0]
6144039378640936.0
>>>import numpy as np
>>> ddf = pd.read_csv('sample.txt', sep='\s+', dtype={'SourceID': np.int64})
>>> ddf.ix[0, 0]
6144039378640936.0
>>> arr = np.loadtxt('sample.txt', skiprows=1)
>>> arr[0,0]
6144039378640938.0
>>> df.dtypes
SourceID float64
Photons int64
AvgX float64
AvgY float64
dtype: object
>>> ddf.dtypes
SourceID int64
Photons int64
AvgX float64
AvgY float64
dtype: object
>>> arr.dtype
dtype('float64')
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 14.4.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.2
setuptools: 19.6
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.15.1
statsmodels: 0.5.0
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.3.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: 1.8.5
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: 0.5.7
lxml: 3.4.0
bs4: 4.3.2
html5lib: 0.99999
httplib2: None
apiclient: None
sqlalchemy: 0.9.7
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/12340/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12340/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12341 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12341/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12341/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12341/events | https://github.com/pandas-dev/pandas/issues/12341 | 133,900,008 | MDU6SXNzdWUxMzM5MDAwMDg= | 12,341 | Categorical data not supported in plots of parallel coordinates | {
"avatar_url": "https://avatars.githubusercontent.com/u/1903672?v=4",
"events_url": "https://api.github.com/users/tantrev/events{/privacy}",
"followers_url": "https://api.github.com/users/tantrev/followers",
"following_url": "https://api.github.com/users/tantrev/following{/other_user}",
"gists_url": "https://api.github.com/users/tantrev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tantrev",
"id": 1903672,
"login": "tantrev",
"node_id": "MDQ6VXNlcjE5MDM2NzI=",
"organizations_url": "https://api.github.com/users/tantrev/orgs",
"received_events_url": "https://api.github.com/users/tantrev/received_events",
"repos_url": "https://api.github.com/users/tantrev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tantrev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tantrev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tantrev"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 14 | 2016-02-16T06:46:51Z | 2021-04-23T00:55:06Z | null | NONE | null | Just hoping to see if it might be possible to support categorical data in the fantastic parallel coordinates plot function.
I've uploaded an example script and dataset where the current code fails:
[Archive.zip](https://github.com/pydata/pandas/files/131996/Archive.zip)
Also, variable line widths that reflect frequency would also be highly appreciated. :)
| {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12341/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12341/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12342 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12342/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12342/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12342/events | https://github.com/pandas-dev/pandas/pull/12342 | 133,904,487 | MDExOlB1bGxSZXF1ZXN0NTk0NTE4OTQ= | 12,342 | BUG: Fix bug where sort_index if unsorted levels. | {
"avatar_url": "https://avatars.githubusercontent.com/u/421839?v=4",
"events_url": "https://api.github.com/users/tshauck/events{/privacy}",
"followers_url": "https://api.github.com/users/tshauck/followers",
"following_url": "https://api.github.com/users/tshauck/following{/other_user}",
"gists_url": "https://api.github.com/users/tshauck/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tshauck",
"id": 421839,
"login": "tshauck",
"node_id": "MDQ6VXNlcjQyMTgzOQ==",
"organizations_url": "https://api.github.com/users/tshauck/orgs",
"received_events_url": "https://api.github.com/users/tshauck/received_events",
"repos_url": "https://api.github.com/users/tshauck/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tshauck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tshauck/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tshauck"
} | []
| closed | false | null | []
| null | 5 | 2016-02-16T07:17:22Z | 2016-02-16T14:40:53Z | 2016-02-16T14:40:53Z | CONTRIBUTOR | null | Closes #12261
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12342/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12342/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12342.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12342",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12342.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12342"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12343 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12343/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12343/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12343/events | https://github.com/pandas-dev/pandas/issues/12343 | 133,930,342 | MDU6SXNzdWUxMzM5MzAzNDI= | 12,343 | Weird assignment behaviour with MultiIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/4789270?v=4",
"events_url": "https://api.github.com/users/mvds314/events{/privacy}",
"followers_url": "https://api.github.com/users/mvds314/followers",
"following_url": "https://api.github.com/users/mvds314/following{/other_user}",
"gists_url": "https://api.github.com/users/mvds314/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mvds314",
"id": 4789270,
"login": "mvds314",
"node_id": "MDQ6VXNlcjQ3ODkyNzA=",
"organizations_url": "https://api.github.com/users/mvds314/orgs",
"received_events_url": "https://api.github.com/users/mvds314/received_events",
"repos_url": "https://api.github.com/users/mvds314/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mvds314/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mvds314/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mvds314"
} | [
{
"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": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 2 | 2016-02-16T09:39:04Z | 2019-10-21T19:34:17Z | null | NONE | null | I came across some weird behavior when using assignment with a multi-index in Pandas 0.17.1
```
import pandas as pd
lvl0=range(2)
lvl1 = range(3)
index=pd.MultiIndex.from_product([lvl0,lvl1])
columns=['A','B']
df1=pd.DataFrame(data=1, columns=columns, index=index)
df2 = pd.DataFrame(data=2, index=lvl1, columns=['A'])
#this returns a dataframe without a multi index
print(df1.loc[0,df2.columns])
#but when you try an assignment it doesn't work
df1.loc[0,df2.columns]=df2
print(df1)
```
I debugged the pandas package a little bit and I think I know what is going. When you call `df1.loc[0,df2.columns]` it uses some getitem method. But, `df1.loc[0,df2.columns]=df2` uses some setitem method. When you set a break point in indexing.py in _NDFrameIndexer._get_setitem_indexer, then you see that the key that is being looked up in the index of the DataFrame is (0,['A']). Obviously, this key cannot be found, since A is a column. The result is that nothing is assigned.
I think this is a bug because there is inconsistent behaviour between setitem and getitem: when df1.loc[0,df2.columns] returns a DataFrame without a multindex (which isn't a copy) then assignment should be possible.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12343/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12343/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12344 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12344/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12344/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12344/events | https://github.com/pandas-dev/pandas/issues/12344 | 133,943,078 | MDU6SXNzdWUxMzM5NDMwNzg= | 12,344 | DataFrame.fillna corrupts columns with duplicated names | {
"avatar_url": "https://avatars.githubusercontent.com/u/7280549?v=4",
"events_url": "https://api.github.com/users/hantusk/events{/privacy}",
"followers_url": "https://api.github.com/users/hantusk/followers",
"following_url": "https://api.github.com/users/hantusk/following{/other_user}",
"gists_url": "https://api.github.com/users/hantusk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hantusk",
"id": 7280549,
"login": "hantusk",
"node_id": "MDQ6VXNlcjcyODA1NDk=",
"organizations_url": "https://api.github.com/users/hantusk/orgs",
"received_events_url": "https://api.github.com/users/hantusk/received_events",
"repos_url": "https://api.github.com/users/hantusk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hantusk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hantusk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hantusk"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
]
| closed | false | null | []
| {
"closed_at": "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-16T10:36:18Z | 2016-03-06T15:28:42Z | 2016-03-06T15:28:42Z | NONE | null | ```
# Pandas version 0.17.1
import pandas as pd
df = pd.DataFrame({'Same': 1.0, ' Same': pd.np.nan, ' Same': pd.np.nan}, index=[0,1,2])
df.columns = [c.strip() for c in df.columns]
df.iloc[:, 2] # Returns all 1.0
df.iloc[:, 0] = df.iloc[:, 0].fillna(df.iloc[:, 1])
df.iloc[:, 2] # Column 2 is corrupted and returns all NaN
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12344/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12344/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12345 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12345/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12345/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12345/events | https://github.com/pandas-dev/pandas/pull/12345 | 133,949,043 | MDExOlB1bGxSZXF1ZXN0NTk0NzQxOTk= | 12,345 | ENH: gbq docs update | {
"avatar_url": "https://avatars.githubusercontent.com/u/12720209?v=4",
"events_url": "https://api.github.com/users/tworec/events{/privacy}",
"followers_url": "https://api.github.com/users/tworec/followers",
"following_url": "https://api.github.com/users/tworec/following{/other_user}",
"gists_url": "https://api.github.com/users/tworec/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tworec",
"id": 12720209,
"login": "tworec",
"node_id": "MDQ6VXNlcjEyNzIwMjA5",
"organizations_url": "https://api.github.com/users/tworec/orgs",
"received_events_url": "https://api.github.com/users/tworec/received_events",
"repos_url": "https://api.github.com/users/tworec/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tworec/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tworec/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tworec"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
}
]
| closed | false | null | []
| {
"closed_at": "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-16T10:59:35Z | 2016-02-17T11:21:10Z | 2016-02-16T14:08:19Z | NONE | null | I've made small documentation update for gbq features.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12345/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12345/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12345.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12345",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12345.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12345"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12346 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12346/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12346/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12346/events | https://github.com/pandas-dev/pandas/issues/12346 | 133,964,426 | MDU6SXNzdWUxMzM5NjQ0MjY= | 12,346 | Inconsistencies in index comparisons | {
"avatar_url": "https://avatars.githubusercontent.com/u/1685045?v=4",
"events_url": "https://api.github.com/users/csiz/events{/privacy}",
"followers_url": "https://api.github.com/users/csiz/followers",
"following_url": "https://api.github.com/users/csiz/following{/other_user}",
"gists_url": "https://api.github.com/users/csiz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/csiz",
"id": 1685045,
"login": "csiz",
"node_id": "MDQ6VXNlcjE2ODUwNDU=",
"organizations_url": "https://api.github.com/users/csiz/orgs",
"received_events_url": "https://api.github.com/users/csiz/received_events",
"repos_url": "https://api.github.com/users/csiz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/csiz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/csiz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/csiz"
} | [
{
"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": "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 | []
| null | 1 | 2016-02-16T12:07:08Z | 2016-02-16T14:06:56Z | 2016-02-16T14:06:56Z | NONE | null | Comparing indexes returns two different data types. This is problematic since one of the types is a bool while the other is a Series which [explicitly can't be treated in a bool context](http://pandas.pydata.org/pandas-docs/stable/gotchas.html#using-if-truth-statements-with-pandas). Not to mention that the next section says `==` returns a Series object.
```
import pandas as pd
print pd.__version__
#0.14.0
index = pd.Int64Index([1, 2, 3])
print index == pd.Int64Index([])
# False
print index == pd.Int64Index([1])
# [True, False, False]
print index == pd.Int64Index([1, 2])
# False
print index == pd.Int64Index([4, 5, 6])
# [False, False, False]
series = pd.Series([1, 2, 3])
print series == pd.Series([1, 2])
# ValueError: Series lengths must match to compare
```
I'd suggest that comparing indexes with different lengths raise a `ValueError` like `Series` do. Possibly keeping the 1 element vs many as a special case
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12346/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12346/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12347 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12347/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12347/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12347/events | https://github.com/pandas-dev/pandas/issues/12347 | 133,993,724 | MDU6SXNzdWUxMzM5OTM3MjQ= | 12,347 | How to remove the " punctuation using .to_csv method? | {
"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": "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 | []
| null | 1 | 2016-02-16T14:22:59Z | 2016-02-16T14:32:42Z | 2016-02-16T14:32:35Z | NONE | null | I have a data frame as below:
```
#user item rating time word_count review
3 2 4.0 131600 123 1 1 3 3 3 4 4 5 ..
......
```
The number in review denotes the word_id. When I apply the `to_csv` function:
```
df.to_csv("data.votes", sep = " ", cols = ['user','item','rating','time','word count','review'], header = False, index = False)
```
The resulting text file is like:
```
3 2 4.0 131600 123 "1 1 3 3 3 4 4 5... 101 "
```
How can I remove the annoying `"` ? It has a bad effect on running my model. Thank you in advance!
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12347/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12347/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12348 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12348/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12348/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12348/events | https://github.com/pandas-dev/pandas/issues/12348 | 134,004,899 | MDU6SXNzdWUxMzQwMDQ4OTk= | 12,348 | datetimeindex resample issue | {
"avatar_url": "https://avatars.githubusercontent.com/u/6588385?v=4",
"events_url": "https://api.github.com/users/JohnSmizz/events{/privacy}",
"followers_url": "https://api.github.com/users/JohnSmizz/followers",
"following_url": "https://api.github.com/users/JohnSmizz/following{/other_user}",
"gists_url": "https://api.github.com/users/JohnSmizz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JohnSmizz",
"id": 6588385,
"login": "JohnSmizz",
"node_id": "MDQ6VXNlcjY1ODgzODU=",
"organizations_url": "https://api.github.com/users/JohnSmizz/orgs",
"received_events_url": "https://api.github.com/users/JohnSmizz/received_events",
"repos_url": "https://api.github.com/users/JohnSmizz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JohnSmizz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JohnSmizz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JohnSmizz"
} | [
{
"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": "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"
} | 1 | 2016-02-16T15:07:01Z | 2016-02-16T15:24:58Z | 2016-02-16T15:15:22Z | NONE | null | Hi- I am observing odd behavior when trying to use resample on an uneven datetimeindex. See the below code to reproduce:
```
import pandas as pd
import numpy as np
bug_datetimeindex = pd.date_range('2013-12-30', '2014-01-07')
bug_datetimeindex = bug_datetimeindex.drop([ \
pd.Timestamp('2014-01-01'), \
pd.Timestamp('2013-12-31'), \
pd.Timestamp('2014-01-04'), \
pd.Timestamp('2014-01-05')
])
temp_df = pd.DataFrame(index=bug_datetimeindex, data=np.random.randn(len(bug_datetimeindex), 2))
temp_df.resample('B')
```
throws up a ValueError: Length mismatch: Expected axis has 5 elements, new values have 7 elements
Using asfreq() does not throw up this error on my machine.
I am running pd 0.17.1 on Python 3.4.4. off Anaconda for Windows.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12348/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12348/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12349 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12349/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12349/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12349/events | https://github.com/pandas-dev/pandas/pull/12349 | 134,009,814 | MDExOlB1bGxSZXF1ZXN0NTk1MDU5Mjg= | 12,349 | TST: confirming tests for #12348 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"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"
} | 0 | 2016-02-16T15:24:36Z | 2016-02-16T16:00:18Z | 2016-02-16T16:00:18Z | CONTRIBUTOR | null | xref #12348
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12349/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12349/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12349.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12349",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12349.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12349"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12350 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12350/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12350/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12350/events | https://github.com/pandas-dev/pandas/pull/12350 | 134,010,158 | MDExOlB1bGxSZXF1ZXN0NTk1MDYxMjM= | 12,350 | docs: add hyperlinks to str.get_dummies | {
"avatar_url": "https://avatars.githubusercontent.com/u/86760?v=4",
"events_url": "https://api.github.com/users/wjt/events{/privacy}",
"followers_url": "https://api.github.com/users/wjt/followers",
"following_url": "https://api.github.com/users/wjt/following{/other_user}",
"gists_url": "https://api.github.com/users/wjt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wjt",
"id": 86760,
"login": "wjt",
"node_id": "MDQ6VXNlcjg2NzYw",
"organizations_url": "https://api.github.com/users/wjt/orgs",
"received_events_url": "https://api.github.com/users/wjt/received_events",
"repos_url": "https://api.github.com/users/wjt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wjt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wjt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wjt"
} | [
{
"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-16T15:25:49Z | 2016-02-17T01:09:19Z | 2016-02-17T01:09:18Z | CONTRIBUTOR | null | The description used in the summary table is the first sentence of
str_get_dummies()'s docstring, edited to match the style of other
summaries.
I tried to build this branch locally – the _Method Summary_ section doesn't render with this change and I can't see why, it looks syntactically correct to me…
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12350/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12350/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12350.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12350",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12350.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12350"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12351 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12351/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12351/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12351/events | https://github.com/pandas-dev/pandas/issues/12351 | 134,024,218 | MDU6SXNzdWUxMzQwMjQyMTg= | 12,351 | BUG: resample by BusinessHour raises ValueError | {
"avatar_url": "https://avatars.githubusercontent.com/u/964251?v=4",
"events_url": "https://api.github.com/users/scari/events{/privacy}",
"followers_url": "https://api.github.com/users/scari/followers",
"following_url": "https://api.github.com/users/scari/following{/other_user}",
"gists_url": "https://api.github.com/users/scari/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scari",
"id": 964251,
"login": "scari",
"node_id": "MDQ6VXNlcjk2NDI1MQ==",
"organizations_url": "https://api.github.com/users/scari/orgs",
"received_events_url": "https://api.github.com/users/scari/received_events",
"repos_url": "https://api.github.com/users/scari/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scari/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scari/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scari"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"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"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 8 | 2016-02-16T16:16:43Z | 2021-04-23T00:56:56Z | null | CONTRIBUTOR | null | I digged into a bit and found that `resample` by `BusinessHour` ran into here since the offset is neither string nor `Tick`:
https://github.com/pydata/pandas/blob/master/pandas/tseries/resample.py#L999
``` python
if not isinstance(offset, Tick): # and first.time() != last.time():
# hack!
first = first.normalize()
last = last.normalize()
```
`normalize` in `_get_range_edges` cut the time parts off from the offset so it causes the exception.
If I modify the line into following, the `resample` goes smoothly:
``` python
if not isinstance(offset, Tick) and not isinstance(offset, BusinessHour):
# hack!
first = first.normalize()
last = last.normalize()
```
If I made wrong approach, please point me out. I'll make a PR with test.
## Reproducible code
``` python
In [5]: df = pd.DataFrame(index=pd.date_range(
start='2016-02-11 00:00:00',
end='2016-02-12 23:00:00',
freq='H'))
In [6]: df.resample('BH').count()
```
## Traceback
```
In [6]: df.resample('BH').count()
> /Users/scari/codes/scari/pandas/pandas/tseries/resample.py(988)_get_range_edges()
-> if isinstance(offset, compat.string_types):
(Pdb) c
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-6-0ce6b0e15edc> in <module>()
----> 1 df.resample('BH').count()
/Users/scari/codes/scari/pandas/pandas/tseries/resample.py in f(self, _method)
457
458 def f(self, _method=method):
--> 459 return self._groupby_and_aggregate(None, _method)
460 f.__doc__ = getattr(GroupBy, method).__doc__
461 setattr(Resampler, method, f)
/Users/scari/codes/scari/pandas/pandas/tseries/resample.py in _groupby_and_aggregate(self, grouper, how, *args, **kwargs)
339
340 if grouper is None:
--> 341 self._set_binner()
342 grouper = self.grouper
343
/Users/scari/codes/scari/pandas/pandas/tseries/resample.py in _set_binner(self)
193
194 if self.binner is None:
--> 195 self.binner, self.grouper = self._get_binner()
196
197 def _get_binner(self):
/Users/scari/codes/scari/pandas/pandas/tseries/resample.py in _get_binner(self)
201 """
202
--> 203 binner, bins, binlabels = self._get_binner_for_time()
204 bin_grouper = BinGrouper(bins, binlabels)
205 return binner, bin_grouper
/Users/scari/codes/scari/pandas/pandas/tseries/resample.py in _get_binner_for_time(self)
476 if self.kind == 'period':
477 return self.groupby._get_time_period_bins(self.ax)
--> 478 return self.groupby._get_time_bins(self.ax)
479
480 def _downsample(self, how, **kwargs):
/Users/scari/codes/scari/pandas/pandas/tseries/resample.py in _get_time_bins(self, ax)
879 # general version, knowing nothing about relative frequencies
880 bins = lib.generate_bins_dt64(
--> 881 ax_values, bin_edges, self.closed, hasnans=ax.hasnans)
882
883 if self.closed == 'right':
/Users/scari/codes/scari/pandas/pandas/lib.pyx in pandas.lib.generate_bins_dt64 (pandas/lib.c:20883)()
1160
1161 if values[lenidx-1] > binner[lenbin-1]:
-> 1162 raise ValueError("Values falls after last bin")
1163
1164 bins = np.empty(lenbin - 1, dtype=np.int64)
ValueError: Values falls after last bin
```
## INSTALLED VERSIONS
commit: 8f1a31819f6b1fea1bfd25d973c28501ecaf5b3c
python: 3.4.4.final.0
python-bits: 64
OS: Darwin
OS-release: 15.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: ko_KR.UTF-8
LANG: ko_KR.UTF-8
pandas: 0.18.0rc1+8.g8f1a318.dirty
nose: 1.3.7
pip: 7.1.2
setuptools: 19.2
Cython: 0.23.4
numpy: 1.10.2
scipy: 0.16.0
statsmodels: 0.6.1
xarray: None
IPython: 4.0.0
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.4.3
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.1
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/12351/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12351/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12352 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12352/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12352/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12352/events | https://github.com/pandas-dev/pandas/issues/12352 | 134,028,663 | MDU6SXNzdWUxMzQwMjg2NjM= | 12,352 | nunique + TimeGrouper error | {
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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-16T16:34:52Z | 2016-02-17T13:22:18Z | 2016-02-17T13:22:18Z | NONE | null | This used to work in the past:
```
tmp = pd.DataFrame({
'ID': {pd.Timestamp('2015-06-05 00:00:00'): '0010100903', pd.Timestamp('2015-06-08 00:00:00'): '0010150847'},
'DATE': {pd.Timestamp('2015-06-05 00:00:00'): '2015-06-05', pd.Timestamp('2015-06-08 00:00:00'): '2015-06-08'}})
tmp.groupby(pd.TimeGrouper('D')).ID.nunique()
```
but now I get the obscure:
```
Traceback (most recent call last):
File "test.py", line 6, in <module>
tmp.groupby(pd.TimeGrouper('D')).ID.nunique()
File "/usr/lib/python3/dist-packages/pandas/core/groupby.py", line 2697, in nunique
name=self.name)
File "/usr/lib/python3/dist-packages/pandas/core/series.py", line 227, in __init__
data = SingleBlockManager(data, index, fastpath=True)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3736, in __init__
ndim=1, fastpath=True)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 2454, in make_block
placement=placement)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 87, in __init__
len(self.values), len(self.mgr_locs)))
ValueError: Wrong number of items passed 2, placement implies 4
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12352/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12352/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12353 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12353/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12353/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12353/events | https://github.com/pandas-dev/pandas/issues/12353 | 134,036,459 | MDU6SXNzdWUxMzQwMzY0NTk= | 12,353 | Supplying an xarray Dataset to DataFrame constructor breaks | {
"avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4",
"events_url": "https://api.github.com/users/max-sixty/events{/privacy}",
"followers_url": "https://api.github.com/users/max-sixty/followers",
"following_url": "https://api.github.com/users/max-sixty/following{/other_user}",
"gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/max-sixty",
"id": 5635139,
"login": "max-sixty",
"node_id": "MDQ6VXNlcjU2MzUxMzk=",
"organizations_url": "https://api.github.com/users/max-sixty/orgs",
"received_events_url": "https://api.github.com/users/max-sixty/received_events",
"repos_url": "https://api.github.com/users/max-sixty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/max-sixty"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "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"
}
]
| 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"
} | 23 | 2016-02-16T17:01:56Z | 2020-04-10T03:33:18Z | null | CONTRIBUTOR | null | ``` python
In [1]: import xarray as xr
In [2]: import pandas as pd
In [3]: df = pd.DataFrame({'a': pd.np.random.rand(10), 'b': pd.np.random.rand(10)})
In [4]: df
Out[4]:
a b
0 0.711341 0.636954
1 0.199090 0.370938
2 0.486677 0.274427
3 0.407370 0.282419
4 0.760676 0.069163
5 0.098402 0.820085
6 0.710977 0.777998
7 0.687722 0.764163
8 0.297734 0.740927
9 0.554381 0.388324
In [5]: xr.Dataset(df)
Out[5]:
<xarray.Dataset>
Dimensions: (dim_0: 10)
Coordinates:
* dim_0 (dim_0) int64 0 1 2 3 4 5 6 7 8 9
Data variables:
a (dim_0) float64 0.7113 0.1991 0.4867 0.4074 0.7607 0.0984 0.711 ...
b (dim_0) float64 0.637 0.3709 0.2744 0.2824 0.06916 0.8201 0.778 ...
In [6]: pd.DataFrame(xr.Dataset(df))
---------------------------------------------------------------------------
PandasError Traceback (most recent call last)
<ipython-input-6-be1c7b096414> in <module>()
----> 1 pd.DataFrame(xr.Dataset(df))
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/frame.py in __init__(self, data, index, columns, dtype, copy)
303 copy=False)
304 else:
--> 305 raise PandasError('DataFrame constructor not properly called!')
306
307 NDFrame.__init__(self, mgr, fastpath=True)
PandasError: DataFrame constructor not properly called!
```
I _think_ because this looks for `dict` rather than 'dict-like' or `Mapping`: https://github.com/pydata/pandas/blob/master/pandas/core/frame.py#L222
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12353/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12353/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12354 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12354/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12354/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12354/events | https://github.com/pandas-dev/pandas/issues/12354 | 134,056,951 | MDU6SXNzdWUxMzQwNTY5NTE= | 12,354 | Allow to set hatches in 'area' plots | {
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
]
| 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"
} | 13 | 2016-02-16T18:20:00Z | 2019-05-22T20:08:55Z | null | NONE | null | I'd like to be able to set the hatch styles (using a cycler) in plot(kind='area').
This would allow me to produce black&white plots correctly with more than two categories.
| {
"+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/12354/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12354/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12355 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12355/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12355/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12355/events | https://github.com/pandas-dev/pandas/issues/12355 | 134,071,023 | MDU6SXNzdWUxMzQwNzEwMjM= | 12,355 | Feature Sugesstion: date_range from end to start | {
"avatar_url": "https://avatars.githubusercontent.com/u/1518637?v=4",
"events_url": "https://api.github.com/users/npezolano/events{/privacy}",
"followers_url": "https://api.github.com/users/npezolano/followers",
"following_url": "https://api.github.com/users/npezolano/following{/other_user}",
"gists_url": "https://api.github.com/users/npezolano/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/npezolano",
"id": 1518637,
"login": "npezolano",
"node_id": "MDQ6VXNlcjE1MTg2Mzc=",
"organizations_url": "https://api.github.com/users/npezolano/orgs",
"received_events_url": "https://api.github.com/users/npezolano/received_events",
"repos_url": "https://api.github.com/users/npezolano/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/npezolano/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/npezolano/subscriptions",
"type": "User",
"url": "https://api.github.com/users/npezolano"
} | [
{
"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 | []
| null | 4 | 2016-02-16T19:13:07Z | 2020-01-27T15:55:16Z | 2016-09-22T15:17:11Z | NONE | null | When using `pd.date_range` we work our way forwards from start to end. It would be nice to pass a flag or use the dates in reverse to go from end to start when creating the date_range.
``` python
#EX:
pd.date_range(end, start)
#or
pd.date_range(start, end, end_to_start=True)
```
``` python
Ex:
start = datetime.datetime(2016 ,2, 8)
end = datetime.datetime(2018 , 6, 1)
pd.date_range(start end, freq='6m', start_to_end=True)
>>> DatetimeIndex(['2016-02-08', '2016-06-01', '2016-12-01', '2017-06-01',
'2017-12-01', '2018-06-01'])
```
| {
"+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/12355/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12355/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12356 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12356/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12356/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12356/events | https://github.com/pandas-dev/pandas/pull/12356 | 134,084,107 | MDExOlB1bGxSZXF1ZXN0NTk1NDYyNjU= | 12,356 | COMPAT: DataFrame construction compat with xarray.Dataset | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "0052cc",
"default": false,
"description": "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"
} | 1 | 2016-02-16T20:06:40Z | 2016-03-23T11:57:39Z | 2016-03-23T11:57:39Z | CONTRIBUTOR | null | closes #12353
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12356/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12356/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12356.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12356",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12356.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12356"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12357 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12357/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12357/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12357/events | https://github.com/pandas-dev/pandas/issues/12357 | 134,128,647 | MDU6SXNzdWUxMzQxMjg2NDc= | 12,357 | Inconsistent DataFrame.query results | {
"avatar_url": "https://avatars.githubusercontent.com/u/194201?v=4",
"events_url": "https://api.github.com/users/mattytrentini/events{/privacy}",
"followers_url": "https://api.github.com/users/mattytrentini/followers",
"following_url": "https://api.github.com/users/mattytrentini/following{/other_user}",
"gists_url": "https://api.github.com/users/mattytrentini/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mattytrentini",
"id": 194201,
"login": "mattytrentini",
"node_id": "MDQ6VXNlcjE5NDIwMQ==",
"organizations_url": "https://api.github.com/users/mattytrentini/orgs",
"received_events_url": "https://api.github.com/users/mattytrentini/received_events",
"repos_url": "https://api.github.com/users/mattytrentini/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mattytrentini/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mattytrentini/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mattytrentini"
} | [
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| null | 3 | 2016-02-16T23:41:22Z | 2016-02-17T00:24:34Z | 2016-02-16T23:44:54Z | NONE | null | Having seen some inconsistent results from processing DataFrames - literally, running scripts over static data would generate different outcomes - we were able to boil down the following example:
``` python
def compare(df):
df1 = df.query('x < 2000')
df2 = df.query('x < 2000')
return df1.equals(df2)
```
If I understand correctly, calling `compare` should never return false and yet it does, randomly:
```
>>> df = pd.DataFrame({'x': range(100000), 'y': range(100000)})
>>> for i in xrange(1000):
... if not compare(df):
... print ('failed at iteration', i)
...
failed at iteration 10
failed at iteration 66
failed at iteration 80
failed at iteration 141
failed at iteration 149
...
failed at iteration 878
failed at iteration 999
```
This seems like a defect in query?
Relevant versions:
```
>python --version
Python 2.7.11 :: Anaconda 2.4.0 (64-bit)
>systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
OS Name: Microsoft Windows 8.1 Pro
OS Version: 6.3.9600 N/A Build 9600
System Type: x64-based PC
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12357/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12357/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12358 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12358/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12358/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12358/events | https://github.com/pandas-dev/pandas/issues/12358 | 134,129,531 | MDU6SXNzdWUxMzQxMjk1MzE= | 12,358 | set_index(DatetimeIndex) unexpectedly shifts tz-aware datetime | {
"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": "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-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-16T23:44:34Z | 2016-02-17T14:29:42Z | 2016-02-17T14:29:42Z | NONE | null | This is another issue I've found in code that used to work:
```
import pandas as pd
tm = pd.DatetimeIndex(pd.to_datetime(["2014-01-01 10:10:10"]), tz='UTC').tz_convert('Europe/Rome')
df = pd.DataFrame({'tm': tm})
df.set_index(df.tm, inplace=True)
print(df.tm[0].hour)
print(df.index[0].hour)
```
writes:
```
11
10
```
It's unclear to me why the time is shifted. If we take a pd.DatetimeIndex which is not directly contained in the df, it works as it should:
```
tm = pd.DatetimeIndex(pd.to_datetime(["2014-01-01 10:10:10"]), tz='UTC').tz_convert('Europe/Rome')
df = pd.DataFrame({'tm': tm})
df.set_index(tm, inplace=True)
print(df.tm[0].hour)
print(df.index[0].hour)
```
```
11
11
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12358/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12358/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12359 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12359/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12359/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12359/events | https://github.com/pandas-dev/pandas/pull/12359 | 134,131,304 | MDExOlB1bGxSZXF1ZXN0NTk1NzUwOTg= | 12,359 | ENH: always make ndarrays from msgpack writable | {
"avatar_url": "https://avatars.githubusercontent.com/u/3064397?v=4",
"events_url": "https://api.github.com/users/llllllllll/events{/privacy}",
"followers_url": "https://api.github.com/users/llllllllll/followers",
"following_url": "https://api.github.com/users/llllllllll/following{/other_user}",
"gists_url": "https://api.github.com/users/llllllllll/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/llllllllll",
"id": 3064397,
"login": "llllllllll",
"node_id": "MDQ6VXNlcjMwNjQzOTc=",
"organizations_url": "https://api.github.com/users/llllllllll/orgs",
"received_events_url": "https://api.github.com/users/llllllllll/received_events",
"repos_url": "https://api.github.com/users/llllllllll/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/llllllllll/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/llllllllll/subscriptions",
"type": "User",
"url": "https://api.github.com/users/llllllllll"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
]
| closed | false | null | []
| {
"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"
} | 36 | 2016-02-16T23:55:01Z | 2016-03-18T16:06:36Z | 2016-03-18T00:01:28Z | CONTRIBUTOR | null | Addresses the case where 'compress' was not none. The old implementation
would decompress the data and then call np.frombuffer on a bytes
object. Because a bytes object is not a mutable buffer, the resulting
ndarray had writeable=False. The new implementation ensures that the
pandas is the only owner of this new buffer and then sets it to mutable
without copying it. This means that we don't need to do a copy of the
data coming in AND we can mutate it later. If we are not the only owner
of this data then we just copy it with np.fromstring.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12359/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12359/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12359.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12359",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12359.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12359"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12360 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12360/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12360/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12360/events | https://github.com/pandas-dev/pandas/pull/12360 | 134,134,957 | MDExOlB1bGxSZXF1ZXN0NTk1NzY5OTU= | 12,360 | COMPAT: invalid casting to 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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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-17T00:14:15Z | 2016-02-17T13:18:51Z | 2016-02-17T13:18:51Z | CONTRIBUTOR | null | closes #12303
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12360/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12360/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12360.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12360",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12360.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12360"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12361 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12361/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12361/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12361/events | https://github.com/pandas-dev/pandas/pull/12361 | 134,144,689 | MDExOlB1bGxSZXF1ZXN0NTk1ODE0NzE= | 12,361 | TST: skip blosc tests on msgpacks if not installed | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
]
| 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-17T01:05:48Z | 2016-02-17T02:51:47Z | 2016-02-17T02:51:47Z | 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/12361/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12361/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12361.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12361",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12361.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12361"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/12362 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12362/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12362/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12362/events | https://github.com/pandas-dev/pandas/pull/12362 | 134,154,983 | MDExOlB1bGxSZXF1ZXN0NTk1ODYxNjY= | 12,362 | ENH Consistent apply output when grouping with freq | {
"avatar_url": "https://avatars.githubusercontent.com/u/8355977?v=4",
"events_url": "https://api.github.com/users/stephen-hoover/events{/privacy}",
"followers_url": "https://api.github.com/users/stephen-hoover/followers",
"following_url": "https://api.github.com/users/stephen-hoover/following{/other_user}",
"gists_url": "https://api.github.com/users/stephen-hoover/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stephen-hoover",
"id": 8355977,
"login": "stephen-hoover",
"node_id": "MDQ6VXNlcjgzNTU5Nzc=",
"organizations_url": "https://api.github.com/users/stephen-hoover/orgs",
"received_events_url": "https://api.github.com/users/stephen-hoover/received_events",
"repos_url": "https://api.github.com/users/stephen-hoover/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stephen-hoover/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stephen-hoover/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stephen-hoover"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "207de5",
"default": false,
"description": "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"
} | 18 | 2016-02-17T02:04:45Z | 2016-04-01T13:13:36Z | 2016-04-01T13:13:27Z | CONTRIBUTOR | null | The `BinGrouper.apply` (used by the `TimeGrouper`) and `BaseGrouper.apply` (used by the `Grouper`) have different output types. To make them consistent, remove `BinGrouper.apply` and let it use the same method as the superclass `BaseGrouper`. This requires changing `BinGrouper.groupings` to return an object which looks sufficiently like a `Grouping` object for `BaseGrouper.apply` to be happy. Use a namedtuple to create an object with the needed attributes.
I think this change will only affect the output of `apply` with a custom function, and only when grouping by a `TimeGrouper` (although a `Grouper` with a `freq` specified turns into a `TimeGrouper`, so that counts).
Closes #11742 .
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12362/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12362/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12362.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12362",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12362.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12362"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12363 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12363/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12363/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12363/events | https://github.com/pandas-dev/pandas/issues/12363 | 134,161,117 | MDU6SXNzdWUxMzQxNjExMTc= | 12,363 | BUG: inconsistent name for returned Series in groupby | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
]
| closed | false | null | []
| {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 1 | 2016-02-17T02:48:12Z | 2016-04-26T15:03:02Z | 2016-04-26T15:03:02Z | CONTRIBUTOR | null | I would think `[7]` and `[8]` would be identical. Note this is true for all ops I have looked at, so it is a general issue.
```
In [6]: df = DataFrame({'A': ['foo', 'bar', 'foo', 'bar',
'foo', 'bar', 'foo', 'foo'],
'B': ['one', 'one', 'two', 'two',
'two', 'two', 'one', 'two'],
'C': np.random.randn(8) + 1.0,
'D': np.arange(8)})
In [7]: df.groupby(['A']).B.count()
Out[7]:
A
bar 3
foo 5
Name: B, dtype: int64
In [8]: df.B.groupby(df.A).count()
Out[8]:
A
bar 3
foo 5
dtype: int64
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12363/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12363/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12364 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12364/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12364/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12364/events | https://github.com/pandas-dev/pandas/pull/12364 | 134,161,423 | MDExOlB1bGxSZXF1ZXN0NTk1ODkwOTg= | 12,364 | BUG: resample with nunique | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
]
| closed | false | null | []
| {
"closed_at": "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-17T02:49:16Z | 2016-02-17T13:22:18Z | 2016-02-17T13:22:18Z | CONTRIBUTOR | null | closes #12352
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12364/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12364/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12364.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12364",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12364.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12364"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12365 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12365/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12365/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12365/events | https://github.com/pandas-dev/pandas/pull/12365 | 134,277,451 | MDExOlB1bGxSZXF1ZXN0NTk2NDE5OTQ= | 12,365 | BUG: Bug in DataFrame.set_index() with tz-aware Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"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-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-17T13:16:49Z | 2016-02-17T14:29:42Z | 2016-02-17T14:29:42Z | CONTRIBUTOR | null | closes #12358
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12365/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12365/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12365.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12365",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12365.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12365"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12366 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12366/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12366/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12366/events | https://github.com/pandas-dev/pandas/pull/12366 | 134,301,031 | MDExOlB1bGxSZXF1ZXN0NTk2NTQ2NDM= | 12,366 | BUG #12336: Fix init categorical series with scalar value | {
"avatar_url": "https://avatars.githubusercontent.com/u/1760374?v=4",
"events_url": "https://api.github.com/users/rinoc/events{/privacy}",
"followers_url": "https://api.github.com/users/rinoc/followers",
"following_url": "https://api.github.com/users/rinoc/following{/other_user}",
"gists_url": "https://api.github.com/users/rinoc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rinoc",
"id": 1760374,
"login": "rinoc",
"node_id": "MDQ6VXNlcjE3NjAzNzQ=",
"organizations_url": "https://api.github.com/users/rinoc/orgs",
"received_events_url": "https://api.github.com/users/rinoc/received_events",
"repos_url": "https://api.github.com/users/rinoc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rinoc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rinoc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rinoc"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "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-17T14:54:21Z | 2016-02-17T16:18:04Z | 2016-02-17T16:18:04Z | CONTRIBUTOR | null | closes #12336
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12366/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12366/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12366.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12366",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12366.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12366"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12367 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12367/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12367/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12367/events | https://github.com/pandas-dev/pandas/pull/12367 | 134,318,763 | MDExOlB1bGxSZXF1ZXN0NTk2NjM3MjE= | 12,367 | fmt in TimeFormatter is now changeable | {
"avatar_url": "https://avatars.githubusercontent.com/u/3010897?v=4",
"events_url": "https://api.github.com/users/twoframesperminute/events{/privacy}",
"followers_url": "https://api.github.com/users/twoframesperminute/followers",
"following_url": "https://api.github.com/users/twoframesperminute/following{/other_user}",
"gists_url": "https://api.github.com/users/twoframesperminute/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoframesperminute",
"id": 3010897,
"login": "twoframesperminute",
"node_id": "MDQ6VXNlcjMwMTA4OTc=",
"organizations_url": "https://api.github.com/users/twoframesperminute/orgs",
"received_events_url": "https://api.github.com/users/twoframesperminute/received_events",
"repos_url": "https://api.github.com/users/twoframesperminute/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoframesperminute/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoframesperminute/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoframesperminute"
} | []
| closed | false | null | []
| null | 4 | 2016-02-17T15:52:09Z | 2016-02-18T13:45:46Z | 2016-02-18T13:22:04Z | NONE | null | `datetime.time` objects are useful as index values, e.g. in a data frame
containing data of an experiment lasting a few minutes or hours. When
plotting such data frame, the x-axis ticks are formatted as `'%H:%M:%S'`
as standard. In most cases, either `'%H:%M'` or `'%M:%S'` contains enough
information, and the `'%H:%M:%S'` format is superfluous.
The xticks were formatted based on the fmt variable in the `__call__` method. In this commit, the tick format is saved in the `TimeFormatter.fmt`
variable. This is set in the `__init__` method to `'%H:%M:%S'`, but can
later be changed, e.g.:
```
ax = df.plot()
ax.xaxis.get_major_formatter().fmt = '%M:%S'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12367/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12367/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12367.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12367",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12367.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12367"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12368 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12368/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12368/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12368/events | https://github.com/pandas-dev/pandas/pull/12368 | 134,331,256 | MDExOlB1bGxSZXF1ZXN0NTk2NzA4ODY= | 12,368 | BUG #12336: Fix init categorical series with scalar value | {
"avatar_url": "https://avatars.githubusercontent.com/u/1760374?v=4",
"events_url": "https://api.github.com/users/rinoc/events{/privacy}",
"followers_url": "https://api.github.com/users/rinoc/followers",
"following_url": "https://api.github.com/users/rinoc/following{/other_user}",
"gists_url": "https://api.github.com/users/rinoc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rinoc",
"id": 1760374,
"login": "rinoc",
"node_id": "MDQ6VXNlcjE3NjAzNzQ=",
"organizations_url": "https://api.github.com/users/rinoc/orgs",
"received_events_url": "https://api.github.com/users/rinoc/received_events",
"repos_url": "https://api.github.com/users/rinoc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rinoc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rinoc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rinoc"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "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"
} | 3 | 2016-02-17T16:36:01Z | 2016-02-18T13:15:13Z | 2016-02-18T13:15:08Z | CONTRIBUTOR | null | closes #12336
Changed the tests to match the other ones in `test_fromValue`.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12368/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12368/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12368.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12368",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12368.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12368"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12369 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12369/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12369/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12369/events | https://github.com/pandas-dev/pandas/issues/12369 | 134,337,798 | MDU6SXNzdWUxMzQzMzc3OTg= | 12,369 | KeyError when retrieving columns with lists of incomplete tuples from MultiIndex | {
"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": "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-17T16:58:21Z | 2016-02-22T08:20:35Z | 2016-02-17T17:03:01Z | MEMBER | null | Sorry in advance if this was already reported - I searched a bit but didn't know exactly what to search.
```
In [2]: df = pd.DataFrame(0, index=range(1), columns=pd.MultiIndex.from_product([['a', 'b'], ['c']]))
In [3]: cols = [('a',), ('b',)]
In [4]: df[cols[0]]
Out[4]:
c
0 0
In [5]: df[cols[1]]
Out[5]:
c
0 0
In [6]: df[cols]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-6-957cf8a677a9> in <module>()
----> 1 df[cols]
/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)
2019 return self.take(indexer, axis=0, convert=False)
2020 else:
-> 2021 indexer = self.ix._convert_to_indexer(key, axis=1)
2022 return self.take(indexer, axis=1, convert=True)
2023
/home/pietro/nobackup/repo/pandas/pandas/core/indexing.pyc in _convert_to_indexer(self, obj, axis, is_setter)
1203 mask = check == -1
1204 if mask.any():
-> 1205 raise KeyError('%s not in index' % objarr[mask])
1206
1207 return _values_from_object(indexer)
KeyError: "[('a',) ('b',)] not in index"
```
Notice that `df[[c[0] for c in cols]]` works just fine... but still we probably want to consider as valid a list of valid keys.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12369/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12369/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12370 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12370/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12370/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12370/events | https://github.com/pandas-dev/pandas/pull/12370 | 134,377,479 | MDExOlB1bGxSZXF1ZXN0NTk2OTU3NzU= | 12,370 | API: allow scalar setting/getting via float indexer on integer indexes | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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"
} | 44 | 2016-02-17T19:31:24Z | 2016-03-08T23:38:19Z | 2016-03-08T23:38:19Z | CONTRIBUTOR | null | closes #12333
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12370/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12370/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12370.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12370",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12370.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12370"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12371 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12371/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12371/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12371/events | https://github.com/pandas-dev/pandas/issues/12371 | 134,419,222 | MDU6SXNzdWUxMzQ0MTkyMjI= | 12,371 | CLN/PERF: .get_loc on float with integer coercion | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
]
| 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-17T22:27:30Z | 2019-06-28T16:15:02Z | 2019-06-28T16:15:02Z | CONTRIBUTOR | null | xref: https://github.com/pydata/pandas/pull/12370
This should be done inside `index.pyx`
if the lookup fails and if its a non-float index, then coerce to int, and if its the same
lookup again.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12371/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12371/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12372 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12372/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12372/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12372/events | https://github.com/pandas-dev/pandas/pull/12372 | 134,421,249 | MDExOlB1bGxSZXF1ZXN0NTk3MjA0ODg= | 12,372 | API: correctly provide __name__ for cum functions | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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"
} | 4 | 2016-02-17T22:34:50Z | 2016-04-05T16:35:49Z | 2016-04-05T16:17:48Z | CONTRIBUTOR | null | closes #12021
```
(py3.5)[Tue Apr 05 08:16:18 ~/miniconda/envs/py3.5/pandas]$ ipython
Python 3.5.1 |Continuum Analytics, Inc.| (default, Dec 7 2015, 11:24:55)
In [1]: pd.Series.sum.__qualname__
Out[1]: 'Series.sum'
In [2]: pd.Series.cumsum.__qualname__
Out[2]: 'Series.cumsum'
In [3]: pd.Series.cumsum.__module__
Out[3]: 'pandas.core.series'
In [4]: pd.Series.cumsum.__name__
Out[4]: 'cumsum'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12372/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12372/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12372.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12372",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12372.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12372"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12373 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12373/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12373/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12373/events | https://github.com/pandas-dev/pandas/issues/12373 | 134,427,698 | MDU6SXNzdWUxMzQ0Mjc2OTg= | 12,373 | BUG: rolling functions raise ValueError on float32 data | {
"avatar_url": "https://avatars.githubusercontent.com/u/10360673?v=4",
"events_url": "https://api.github.com/users/jennolsen84/events{/privacy}",
"followers_url": "https://api.github.com/users/jennolsen84/followers",
"following_url": "https://api.github.com/users/jennolsen84/following{/other_user}",
"gists_url": "https://api.github.com/users/jennolsen84/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jennolsen84",
"id": 10360673,
"login": "jennolsen84",
"node_id": "MDQ6VXNlcjEwMzYwNjcz",
"organizations_url": "https://api.github.com/users/jennolsen84/orgs",
"received_events_url": "https://api.github.com/users/jennolsen84/received_events",
"repos_url": "https://api.github.com/users/jennolsen84/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jennolsen84/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jennolsen84/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jennolsen84"
} | [
{
"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-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-17T23:00:05Z | 2016-03-06T00:45:44Z | 2016-03-06T00:45:44Z | CONTRIBUTOR | null | pd version: v0.18.0rc1
minimal example:
```
import pandas as pd
import numpy as np
pd.DataFrame(np.arange(5, dtype=np.float32)).rolling(window=3).max()
```
stack trace:
```
<ipython-input-25-795ba6485799> in <module>()
----> 1 pd.DataFrame(np.arange(5, dtype=np.float32)).rolling(window=3).max()
/venv/lib/python3.4/site-packages/pandas/core/window.py in max(self, **kwargs)
767 @Appender(_shared_docs['max'])
768 def max(self, **kwargs):
--> 769 return super(Rolling, self).max(**kwargs)
770
771 @Substitution(name='rolling')
/venv/lib/python3.4/site-packages/pandas/core/window.py in max(self, how, **kwargs)
541 if self.freq is not None and how is None:
542 how = 'max'
--> 543 return self._apply('roll_max', how=how, **kwargs)
544
545 _shared_docs['min'] = dedent("""
/venv/lib/python3.4/site-packages/pandas/core/window.py in _apply(self, func, window, center, check_minp, how, **kwargs)
474
475 if values.ndim > 1:
--> 476 result = np.apply_along_axis(calc, self.axis, values)
477 else:
478 result = calc(values)
/venv/lib/python3.4/site-packages/numpy/lib/shape_base.py in apply_along_axis(func1d, axis, arr, *args, **kwargs)
89 outshape = asarray(arr.shape).take(indlist)
90 i.put(indlist, ind)
---> 91 res = func1d(arr[tuple(i.tolist())], *args, **kwargs)
92 # if res is a number, then we have a smaller output array
93 if isscalar(res):
/venv/lib/python3.4/site-packages/pandas/core/window.py in calc(x)
471
472 def calc(x):
--> 473 return func(x, window, min_periods=self.min_periods)
474
475 if values.ndim > 1:
/venv/lib/python3.4/site-packages/pandas/core/window.py in func(arg, window, min_periods)
458 def func(arg, window, min_periods=None):
459 minp = check_minp(min_periods, window)
--> 460 return cfunc(arg, window, minp, **kwargs)
461
462 # calculation function
pandas/algos.pyx in pandas.algos.roll_max (pandas/algos.c:37363)()
ValueError: Buffer dtype mismatch, expected 'float64_t' but got 'float'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12373/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12373/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12374 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12374/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12374/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12374/events | https://github.com/pandas-dev/pandas/issues/12374 | 134,436,403 | MDU6SXNzdWUxMzQ0MzY0MDM= | 12,374 | ENH: add option to suppress scientific notation (for small values?) | {
"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": "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"
}
]
| open | false | null | []
| null | 5 | 2016-02-17T23:49:54Z | 2021-04-23T00:58:31Z | null | CONTRIBUTOR | null | I find myself running into a situation where I don't want to see small numbers as scientific notation fairly frequently, things like:
```
In [3]: pd.set_option('display.precision', 2)
In [4]: pd.DataFrame(np.random.randn(5, 5)).corr()
Out[4]:
0 1 2 3 4
0 1.00 -0.57 2.15e-02 -3.48e-02 -0.64
1 -0.57 1.00 2.59e-01 -5.56e-01 0.51
2 0.02 0.26 1.00e+00 2.91e-03 -0.06
3 -0.03 -0.56 2.91e-03 1.00e+00 0.36
4 -0.64 0.51 -6.21e-02 3.63e-01 1.00
```
or
```
In [16]: pd.Series(np.random.poisson(size=1000)).value_counts(normalize=True)
Out[16]:
0 3.80e-01
1 3.63e-01
2 1.75e-01
3 5.70e-02
4 1.80e-02
5 5.00e-03
7 1.00e-03
6 1.00e-03
dtype: float64
```
Scientific notation isn't helpful when you are trying to make quick comparisons across elements, and have a well-defined notion of a -1 to 1 or 0 to 1 range.
I propose adding some sort of display flag to suppress scientific notation on small numbers, and just report zeros in these cases instead. Alternatively we could also suppress it on large numbers, but I am not sure how helpful that is. I usually only find myself going up against it on small numbers, in exactly the use cases (correlations, proportions) above.
| {
"+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/12374/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12374/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12375 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12375/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12375/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12375/events | https://github.com/pandas-dev/pandas/issues/12375 | 134,458,299 | MDU6SXNzdWUxMzQ0NTgyOTk= | 12,375 | DOC: creating CONTRIBUTING.md from 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": 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-18T01:54:17Z | 2017-02-17T13:41:15Z | 2017-02-17T13:41:08Z | CONTRIBUTOR | null | ## Pandas Issue Submission Template
This template will help you and us respond to your issues in an efficient and timely manner.
Please fill out all sections and use [github markdown for code blocks](https://help.github.com/articles/basic-writing-and-formatting-syntax/)
#### Actual Behavior
#### Expected Behavior
#### output of `pd.show_versions()`
so this is what the new ISSUE_TEMPLATE looks like its in `.github/ISSUE_TEMPLATE.md`. Furthermore, now the CONTRIBUTING.md shows up when you create a new issue.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12375/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12375/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12376 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12376/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12376/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12376/events | https://github.com/pandas-dev/pandas/pull/12376 | 134,481,293 | MDExOlB1bGxSZXF1ZXN0NTk3NTA4NTc= | 12,376 | Fix #12373: rolling functions raise ValueError on float32 data | {
"avatar_url": "https://avatars.githubusercontent.com/u/4443076?v=4",
"events_url": "https://api.github.com/users/BranYang/events{/privacy}",
"followers_url": "https://api.github.com/users/BranYang/followers",
"following_url": "https://api.github.com/users/BranYang/following{/other_user}",
"gists_url": "https://api.github.com/users/BranYang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BranYang",
"id": 4443076,
"login": "BranYang",
"node_id": "MDQ6VXNlcjQ0NDMwNzY=",
"organizations_url": "https://api.github.com/users/BranYang/orgs",
"received_events_url": "https://api.github.com/users/BranYang/received_events",
"repos_url": "https://api.github.com/users/BranYang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BranYang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BranYang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BranYang"
} | [
{
"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-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"
} | 23 | 2016-02-18T04:52:09Z | 2016-03-06T01:11:31Z | 2016-03-06T00:45:44Z | CONTRIBUTOR | null | - [x] closes #12373
- [x] tests added
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry added
- [x] add test for various other dtypes
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12376/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12376/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12376.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12376",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12376.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12376"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12377 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12377/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12377/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12377/events | https://github.com/pandas-dev/pandas/issues/12377 | 134,492,574 | MDU6SXNzdWUxMzQ0OTI1NzQ= | 12,377 | Support Resampling Weeks to/from FY5253Quarter | {
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
},
{
"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"
}
]
| open | false | null | []
| {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 1 | 2016-02-18T06:25:04Z | 2021-04-23T00:59:22Z | null | CONTRIBUTOR | null | [52–53-week fiscal year](https://en.wikipedia.org/wiki/4%E2%80%934%E2%80%935_calendar#52.E2.80.9353-week_fiscal_year) are designed to end on the same day of the week each quarter / year. Therefore it should be possible to upsample / downsample to/from weeks. I made an initial attempt at this in https://github.com/pydata/pandas/pull/5148 but that PR was never merged. This logic still makes sense.
/CC @fdion
Currently attempts to do so yield:
``` python
import pandas as pd
from pandas.tseries.offsets import FY5253Quarter, Week, WeekDay
from pandas.tseries.period import Period, PeriodIndex, period_range
from datetime import datetime
offset_fyq = FY5253Quarter(weekday=WeekDay.SAT, startingMonth=12,
variation="last", qtr_with_extra_week=4)
freq_week = Week(weekday=WeekDay.SAT)
prange = period_range(datetime(2013, 1, 5),
periods=2 * 13,
freq=freq_week)
df = pd.DataFrame({"A": [1] * 13 + [2] * 13}, index=prange)
resampled = df.resample(offset_fyq, fill_method="mean")
```
```
ValueError Traceback (most recent call last)
<ipython-input-8-38fa44432b0b> in <module>()
13
14 df = pd.DataFrame({"A": [1] * 13 + [2] * 13}, index=prange)
---> 15 resampled = df.resample(offset_fyq, fill_method="mean")
/Users/alex/.virtualenvs/work/lib/python2.7/site-packages/pandas/core/generic.pyc in resample(self, rule, how, axis, fill_method, closed, label, convention, kind, loffset, limit, base)
3641 fill_method=fill_method, convention=convention,
3642 limit=limit, base=base)
-> 3643 return sampler.resample(self).__finalize__(self)
3644
3645 def first(self, offset):
/Users/alex/.virtualenvs/work/lib/python2.7/site-packages/pandas/tseries/resample.pyc in resample(self, obj)
90
91 if self.kind is None or self.kind == 'period':
---> 92 rs = self._resample_periods()
93 else:
94 obj = self.obj.to_timestamp(how=self.convention)
/Users/alex/.virtualenvs/work/lib/python2.7/site-packages/pandas/tseries/resample.pyc in _resample_periods(self)
340 return obj.reindex(new_index)
341 else:
--> 342 start = axlabels[0].asfreq(self.freq, how=self.convention)
343 end = axlabels[-1].asfreq(self.freq, how='end')
344
pandas/src/period.pyx in pandas._period.Period.asfreq (pandas/src/period.c:14801)()
/Users/alex/.virtualenvs/work/lib/python2.7/site-packages/pandas/tseries/frequencies.pyc in get_freq_code(freqstr)
253 # e.g., freqstr = ('T', 5)
254 try:
--> 255 code = _period_str_to_code(freqstr[0])
256 stride = freqstr[1]
257 except:
/Users/alex/.virtualenvs/work/lib/python2.7/site-packages/pandas/tseries/frequencies.pyc in _period_str_to_code(freqstr)
809 FutureWarning, stacklevel=3)
810 except KeyError:
--> 811 raise ValueError("Unknown freqstr: %s" % freqstr)
812
813 return _period_code_map[alias]
ValueError: Unknown freqstr: REQ-L-DEC-SAT-4
```
Also should be able to downsample to Day and upsample to FY5254
| {
"+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/12377/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12377/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12378 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12378/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12378/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12378/events | https://github.com/pandas-dev/pandas/issues/12378 | 134,494,770 | MDU6SXNzdWUxMzQ0OTQ3NzA= | 12,378 | Canonicalize Offset Names | {
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
]
| closed | false | null | []
| null | 1 | 2016-02-18T06:40:36Z | 2016-02-18T13:07:44Z | 2016-02-18T13:07:44Z | CONTRIBUTOR | null | Reposted from: https://github.com/pydata/pandas/pull/5148/files#r10454189
Currently you get the following behavior because there is not a canonicalized offset name:
```
In [10]: get_offset("QS-JAN") == get_offset("QS")
Out[10]: True
In [29]: get_offset("QS-JAN").name == get_offset("QS").name
Out[29]: False
n [31]: get_offset("QS-JAN") is get_offset("QS")
Out[31]: False
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12378/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12378/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12379 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12379/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12379/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12379/events | https://github.com/pandas-dev/pandas/issues/12379 | 134,495,942 | MDU6SXNzdWUxMzQ0OTU5NDI= | 12,379 | No str for FY5253Quarter | {
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "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-18T06:46:51Z | 2021-04-23T01:02:03Z | null | CONTRIBUTOR | null | ``` python
from pandas.tseries.offsets import FY5253Quarter
offset_fyq = FY5253Quarter(weekday=6, startingMonth=12,
variation="last", qtr_with_extra_week=4)
str(pd.Period("2011-1-2", freq=offset_fyq))
```
```
ValueError Traceback (most recent call last)
<ipython-input-1-b92e5a634df4> in <module>()
5 variation="last", qtr_with_extra_week=4)
6
----> 7 str(Period("2011-1-2", freq=offset_fyq))
pandas/src/period.pyx in pandas._period.Period.__init__ (pandas/src/period.c:12139)()
/Users/alex/.virtualenvs/work/lib/python2.7/site-packages/pandas/tseries/frequencies.pyc in get_freq_code(freqstr)
253 # e.g., freqstr = ('T', 5)
254 try:
--> 255 code = _period_str_to_code(freqstr[0])
256 stride = freqstr[1]
257 except:
/Users/alex/.virtualenvs/work/lib/python2.7/site-packages/pandas/tseries/frequencies.pyc in _period_str_to_code(freqstr)
809 FutureWarning, stacklevel=3)
810 except KeyError:
--> 811 raise ValueError("Unknown freqstr: %s" % freqstr)
812
813 return _period_code_map[alias]
ValueError: Unknown freqstr: REQ-L-DEC-SAT-4
```
Expected: `'2010Q4'`.
See for more tests: https://github.com/pydata/pandas/pull/5148/files#diff-f9b276c4aa39a6161726d8b43ce62516R2420
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12379/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12379/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12380 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12380/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12380/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12380/events | https://github.com/pandas-dev/pandas/issues/12380 | 134,509,853 | MDU6SXNzdWUxMzQ1MDk4NTM= | 12,380 | Scatter plot should have a discrete colorbar when 'c' is integer | {
"avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4",
"events_url": "https://api.github.com/users/scls19fr/events{/privacy}",
"followers_url": "https://api.github.com/users/scls19fr/followers",
"following_url": "https://api.github.com/users/scls19fr/following{/other_user}",
"gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/scls19fr",
"id": 109167,
"login": "scls19fr",
"node_id": "MDQ6VXNlcjEwOTE2Nw==",
"organizations_url": "https://api.github.com/users/scls19fr/orgs",
"received_events_url": "https://api.github.com/users/scls19fr/received_events",
"repos_url": "https://api.github.com/users/scls19fr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/scls19fr"
} | [
{
"color": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 3 | 2016-02-18T08:12:17Z | 2021-01-27T15:47:43Z | 2021-01-27T15:47:43Z | CONTRIBUTOR | null | ``` python
import pandas as pd
pd.set_option('max_rows', 10)
import sklearn.datasets as datasets
import pandas_ml as pdml # https://github.com/pandas-ml/pandas-ml
import matplotlib.pyplot as plt
df = pdml.ModelFrame(datasets.load_iris())
print(df)
.target sepal length (cm) sepal width (cm) petal length (cm) \
0 0 5.1 3.5 1.4
1 0 4.9 3.0 1.4
2 0 4.7 3.2 1.3
3 0 4.6 3.1 1.5
4 0 5.0 3.6 1.4
.. ... ... ... ...
145 2 6.7 3.0 5.2
146 2 6.3 2.5 5.0
147 2 6.5 3.0 5.2
148 2 6.2 3.4 5.4
149 2 5.9 3.0 5.1
petal width (cm)
0 0.2
1 0.2
2 0.2
3 0.2
4 0.2
.. ...
145 2.3
146 1.9
147 2.0
148 2.3
149 1.8
[150 rows x 5 columns]
print(df.dtypes)
.target int64
sepal length (cm) float64
sepal width (cm) float64
petal length (cm) float64
petal width (cm) float64
dtype: object
df.plot.scatter(x='sepal length (cm)', y='sepal width (cm)', c='.target')
plt.show()
```

#### Expected Output
A scatter plot with a colobar with a discrete colormap
#### Additional information
Converting `.target` column to a category doesn't fix the problem.
Maybe I should open an other issue about it.
``` python
df['.target'] = df['.target'].astype('category')
df.plot.scatter(x='sepal length (cm)', y='sepal width (cm)', c='.target')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
//anaconda/lib/python3.5/site-packages/matplotlib/colors.py in to_rgb(self, arg)
305 else:
--> 306 fl = float(argl)
307 if fl < 0 or fl > 1:
ValueError: could not convert string to float: '.target'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
//anaconda/lib/python3.5/site-packages/matplotlib/colors.py in to_rgba(self, arg, alpha)
369 else:
--> 370 r, g, b = self.to_rgb(arg)
371 if alpha is None:
//anaconda/lib/python3.5/site-packages/matplotlib/colors.py in to_rgb(self, arg)
327 raise ValueError(
--> 328 'to_rgb: Invalid rgb arg "%s"\n%s' % (str(arg), exc))
329 # Error messages could be improved by handling TypeError
ValueError: to_rgb: Invalid rgb arg ".target"
could not convert string to float: '.target'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
//anaconda/lib/python3.5/site-packages/matplotlib/colors.py in to_rgba_array(self, c, alpha)
398 # Single value? Put it in an array with a single row.
--> 399 return np.array([self.to_rgba(c, alpha)], dtype=np.float)
400 except ValueError:
//anaconda/lib/python3.5/site-packages/matplotlib/colors.py in to_rgba(self, arg, alpha)
375 raise ValueError(
--> 376 'to_rgba: Invalid rgba arg "%s"\n%s' % (str(arg), exc))
377
ValueError: to_rgba: Invalid rgba arg ".target"
to_rgb: Invalid rgb arg ".target"
could not convert string to float: '.target'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
//anaconda/lib/python3.5/site-packages/matplotlib/colors.py in to_rgb(self, arg)
305 else:
--> 306 fl = float(argl)
307 if fl < 0 or fl > 1:
ValueError: could not convert string to float: '.'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
//anaconda/lib/python3.5/site-packages/matplotlib/colors.py in to_rgba(self, arg, alpha)
369 else:
--> 370 r, g, b = self.to_rgb(arg)
371 if alpha is None:
//anaconda/lib/python3.5/site-packages/matplotlib/colors.py in to_rgb(self, arg)
327 raise ValueError(
--> 328 'to_rgb: Invalid rgb arg "%s"\n%s' % (str(arg), exc))
329 # Error messages could be improved by handling TypeError
ValueError: to_rgb: Invalid rgb arg "."
could not convert string to float: '.'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
<ipython-input-8-19145e105567> in <module>()
----> 1 df.plot.scatter(x='sepal length (cm)', y='sepal width (cm)', c='.target')
//anaconda/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,
//anaconda/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
//anaconda/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
//anaconda/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
//anaconda/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()
//anaconda/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]
//anaconda/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:
//anaconda/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())
//anaconda/lib/python3.5/site-packages/matplotlib/collections.py in __init__(self, paths, sizes, **kwargs)
829 """
830
--> 831 Collection.__init__(self, **kwargs)
832 self.set_paths(paths)
833 self.set_sizes(sizes)
//anaconda/lib/python3.5/site-packages/matplotlib/collections.py in __init__(self, edgecolors, facecolors, linewidths, linestyles, antialiaseds, offsets, transOffset, norm, cmap, pickradius, hatch, urls, offset_position, zorder, **kwargs)
115
116 self.set_edgecolor(edgecolors)
--> 117 self.set_facecolor(facecolors)
118 self.set_linewidth(linewidths)
119 self.set_linestyle(linestyles)
//anaconda/lib/python3.5/site-packages/matplotlib/collections.py in set_facecolor(self, c)
610 c = mpl.rcParams['patch.facecolor']
611 self._facecolors_original = c
--> 612 self._facecolors = mcolors.colorConverter.to_rgba_array(c, self._alpha)
613 self.stale = True
614
//anaconda/lib/python3.5/site-packages/matplotlib/colors.py in to_rgba_array(self, c, alpha)
420 result = np.zeros((nc, 4), dtype=np.float)
421 for i, cc in enumerate(c):
--> 422 result[i] = self.to_rgba(cc, alpha)
423 return result
424
//anaconda/lib/python3.5/site-packages/matplotlib/colors.py in to_rgba(self, arg, alpha)
374 except (TypeError, ValueError) as exc:
375 raise ValueError(
--> 376 'to_rgba: Invalid rgba arg "%s"\n%s' % (str(arg), exc))
377
378 def to_rgba_array(self, c, alpha=None):
ValueError: to_rgba: Invalid rgba arg "."
to_rgb: Invalid rgb arg "."
could not convert string to float: '.'
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: fr_FR.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.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.1
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.4.4
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
Jinja2: 2.8
```
Pinging @sinhrks
See also http://stanford.edu/~mwaskom/software/seaborn/examples/scatterplot_matrix.html
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12380/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12380/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12381 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12381/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12381/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12381/events | https://github.com/pandas-dev/pandas/issues/12381 | 134,522,532 | MDU6SXNzdWUxMzQ1MjI1MzI= | 12,381 | workspace snapshot like R's save.image() | {
"avatar_url": "https://avatars.githubusercontent.com/u/76883?v=4",
"events_url": "https://api.github.com/users/sandys/events{/privacy}",
"followers_url": "https://api.github.com/users/sandys/followers",
"following_url": "https://api.github.com/users/sandys/following{/other_user}",
"gists_url": "https://api.github.com/users/sandys/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sandys",
"id": 76883,
"login": "sandys",
"node_id": "MDQ6VXNlcjc2ODgz",
"organizations_url": "https://api.github.com/users/sandys/orgs",
"received_events_url": "https://api.github.com/users/sandys/received_events",
"repos_url": "https://api.github.com/users/sandys/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sandys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sandys/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sandys"
} | [
{
"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 | 11 | 2016-02-18T09:15:40Z | 2016-02-18T16:55:52Z | 2016-02-18T12:59:05Z | NONE | null | there are a couple of questions on this on Stackoverflow:
http://stackoverflow.com/questions/35465534/how-do-i-save-the-entire-workspace-in-pandas-like-rdata
http://stackoverflow.com/questions/12504951/save-session-in-ipython-like-in-matlab
Even the individual dataframe saving is a bit confusing - http://stackoverflow.com/questions/17098654/how-to-store-data-frame-using-pandas-python
From IRC, the following comments were made
- You can use hdf5, but in this case, always roundtrip it before using it, even when it was just computed -- unfortunately, the to_hdf/read_hdf won't necessarily give you the dataframe you started with
- pickle is undebuggable, non-version-compatible, Python-only, insecure-to-unserliazed, and potentially-incorrect-given-the-right-data
The recent news that Pandas is collaborating with Apache Arrow is encouraging - but what is going to be the long term official way for persisting the workspace ?
A lot of workflows come from R, where the entire workspace is snapshotted (and backed up to s3,etc) . This is perfectly production ready in R - but in Pandas a lot of creative invention is needed to make this work (for example - http://cyrille.rossant.net/moving-away-hdf5/).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12381/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12381/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12382 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12382/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12382/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12382/events | https://github.com/pandas-dev/pandas/issues/12382 | 134,540,744 | MDU6SXNzdWUxMzQ1NDA3NDQ= | 12,382 | apply() silently removes time zone information from DateTime values | {
"avatar_url": "https://avatars.githubusercontent.com/u/5107186?v=4",
"events_url": "https://api.github.com/users/yosuah/events{/privacy}",
"followers_url": "https://api.github.com/users/yosuah/followers",
"following_url": "https://api.github.com/users/yosuah/following{/other_user}",
"gists_url": "https://api.github.com/users/yosuah/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yosuah",
"id": 5107186,
"login": "yosuah",
"node_id": "MDQ6VXNlcjUxMDcxODY=",
"organizations_url": "https://api.github.com/users/yosuah/orgs",
"received_events_url": "https://api.github.com/users/yosuah/received_events",
"repos_url": "https://api.github.com/users/yosuah/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yosuah/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yosuah/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yosuah"
} | [
{
"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": "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-18T10:35:01Z | 2016-02-18T12:48:30Z | 2016-02-18T12:48:30Z | NONE | null | Hi,
apply() silently removes time zone information from DateTime values. I think this bug is related to https://github.com/pydata/pandas/issues/10668, but it is apparently not the same.
#### Code Sample, a copy-pastable example if possible
``` python
import pandas as pd
date_range = pd.date_range('1/1/2011', periods=5, freq='H')
date_range = date_range.tz_localize('Europe/Budapest')
s = pd.Series(date_range, index=date_range)
s
```
```
2011-01-01 00:00:00+01:00 2011-01-01 00:00:00+01:00
2011-01-01 01:00:00+01:00 2011-01-01 01:00:00+01:00
2011-01-01 02:00:00+01:00 2011-01-01 02:00:00+01:00
2011-01-01 03:00:00+01:00 2011-01-01 03:00:00+01:00
2011-01-01 04:00:00+01:00 2011-01-01 04:00:00+01:00
Freq: H, dtype: datetime64[ns, Europe/Budapest]
```
Create a simple apply function which does nothing but returns each value. Notice that that values are converted to UTC by default and the timezone information is lost, and a timezone-naive value is returned instead.
``` python
def apply_function(dt):
return dt
s.apply(apply_function)
```
```
2011-01-01 00:00:00+01:00 2010-12-31 23:00:00
2011-01-01 01:00:00+01:00 2011-01-01 00:00:00
2011-01-01 02:00:00+01:00 2011-01-01 01:00:00
2011-01-01 03:00:00+01:00 2011-01-01 02:00:00
2011-01-01 04:00:00+01:00 2011-01-01 03:00:00
Freq: H, dtype: datetime64[ns]
```
#### Expected Output
Apply is expected to return the original series, values unchanged, including the time zone information.
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.4.final.0
python-bits: 64
OS: Linux
OS-release: 4.2.0-27-generic
machine: x86_64
processor:
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
pandas: 0.17.1
nose: None
pip: 8.0.2
setuptools: 20.1.1
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
IPython: 4.1.1
sphinx: None
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12382/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12382/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12383 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12383/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12383/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12383/events | https://github.com/pandas-dev/pandas/issues/12383 | 134,648,285 | MDU6SXNzdWUxMzQ2NDgyODU= | 12,383 | unexpected shape: np.nanmax returns Series when ran on a Series, unlike np.nanmean, np.max | {
"avatar_url": "https://avatars.githubusercontent.com/u/8426290?v=4",
"events_url": "https://api.github.com/users/DSLituiev/events{/privacy}",
"followers_url": "https://api.github.com/users/DSLituiev/followers",
"following_url": "https://api.github.com/users/DSLituiev/following{/other_user}",
"gists_url": "https://api.github.com/users/DSLituiev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DSLituiev",
"id": 8426290,
"login": "DSLituiev",
"node_id": "MDQ6VXNlcjg0MjYyOTA=",
"organizations_url": "https://api.github.com/users/DSLituiev/orgs",
"received_events_url": "https://api.github.com/users/DSLituiev/received_events",
"repos_url": "https://api.github.com/users/DSLituiev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DSLituiev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DSLituiev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DSLituiev"
} | [
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
]
| closed | false | null | []
| null | 2 | 2016-02-18T17:53:31Z | 2016-02-18T18:05:29Z | 2016-02-18T18:02:09Z | NONE | null | When ran on a pd.Series np.nanmax returns Series, while `np.nanmean` and `np.max` return a scalar:
#### Code Sample, a copy-pastable example if possible
```
li = [1,2,3,4,5]
ds = pd.Series(li, index= ["%s"%x for x in li])
# these returns a scalar
print(np.nanmean(ds))
print(np.max(ds))
#this returns a Series
print(np.nanmax(ds))
```
#### Expected Output
a scalar
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-73-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1+306.g8cdfd4d
nose: 1.3.7
pip: 8.0.2
setuptools: 20.0
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.16.1
statsmodels: 0.6.1
IPython: 4.0.3
sphinx: 1.2.2
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.2.0
numexpr: 2.4.3
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.3.2
html5lib: 0.999
httplib2: 0.8
apiclient: None
sqlalchemy: 0.9.8
pymysql: None
psycopg2: None
jinja2: 2.7.3
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12383/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12383/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12384 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12384/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12384/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12384/events | https://github.com/pandas-dev/pandas/pull/12384 | 134,701,391 | MDExOlB1bGxSZXF1ZXN0NTk4NjU3ODA= | 12,384 | Use correct random choice function in code snippet | {
"avatar_url": "https://avatars.githubusercontent.com/u/5157761?v=4",
"events_url": "https://api.github.com/users/carroux/events{/privacy}",
"followers_url": "https://api.github.com/users/carroux/followers",
"following_url": "https://api.github.com/users/carroux/following{/other_user}",
"gists_url": "https://api.github.com/users/carroux/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/carroux",
"id": 5157761,
"login": "carroux",
"node_id": "MDQ6VXNlcjUxNTc3NjE=",
"organizations_url": "https://api.github.com/users/carroux/orgs",
"received_events_url": "https://api.github.com/users/carroux/received_events",
"repos_url": "https://api.github.com/users/carroux/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/carroux/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/carroux/subscriptions",
"type": "User",
"url": "https://api.github.com/users/carroux"
} | [
{
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"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"
} | 5 | 2016-02-18T21:25:40Z | 2016-02-18T22:01:41Z | 2016-02-18T21:42:50Z | CONTRIBUTOR | null | A hidden code snippet uses `tm.choice()` when it should use `np.random.choice()`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12384/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12384/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12384.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12384",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12384.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12384"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12385 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12385/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12385/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12385/events | https://github.com/pandas-dev/pandas/pull/12385 | 134,702,554 | MDExOlB1bGxSZXF1ZXN0NTk4NjY1NzA= | 12,385 | Update groupby.rst | {
"avatar_url": "https://avatars.githubusercontent.com/u/15786543?v=4",
"events_url": "https://api.github.com/users/websurfin/events{/privacy}",
"followers_url": "https://api.github.com/users/websurfin/followers",
"following_url": "https://api.github.com/users/websurfin/following{/other_user}",
"gists_url": "https://api.github.com/users/websurfin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/websurfin",
"id": 15786543,
"login": "websurfin",
"node_id": "MDQ6VXNlcjE1Nzg2NTQz",
"organizations_url": "https://api.github.com/users/websurfin/orgs",
"received_events_url": "https://api.github.com/users/websurfin/received_events",
"repos_url": "https://api.github.com/users/websurfin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/websurfin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/websurfin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/websurfin"
} | [
{
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
]
| closed | false | null | []
| null | 1 | 2016-02-18T21:31:40Z | 2016-02-18T21:55:16Z | 2016-02-18T21:55:07Z | NONE | null | Fixed typo (replaced tm with np.random as there is no tm module in this doc) so that the choice method at line 220 will work. @ellisonbg
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12385/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12385/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12385.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12385",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12385.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12385"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12386 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12386/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12386/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12386/events | https://github.com/pandas-dev/pandas/issues/12386 | 134,707,408 | MDU6SXNzdWUxMzQ3MDc0MDg= | 12,386 | CLN: remove pandas.util.testing.choice | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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-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-18T21:54:16Z | 2016-03-02T12:46:00Z | 2016-03-02T12:46:00Z | CONTRIBUTOR | null | xref #12384
so I think this was for numpy < 1.7 compat.
we should remove `pandas.util.testing.choice`
https://github.com/pydata/pandas/blob/master/pandas/util/testing.py#L173
there might be some latent doc references
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12386/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12386/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12387 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12387/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12387/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12387/events | https://github.com/pandas-dev/pandas/issues/12387 | 134,740,425 | MDU6SXNzdWUxMzQ3NDA0MjU= | 12,387 | `DataFrame.from_dict()` does not behave as documented. | {
"avatar_url": "https://avatars.githubusercontent.com/u/295428?v=4",
"events_url": "https://api.github.com/users/cswarth/events{/privacy}",
"followers_url": "https://api.github.com/users/cswarth/followers",
"following_url": "https://api.github.com/users/cswarth/following{/other_user}",
"gists_url": "https://api.github.com/users/cswarth/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cswarth",
"id": 295428,
"login": "cswarth",
"node_id": "MDQ6VXNlcjI5NTQyOA==",
"organizations_url": "https://api.github.com/users/cswarth/orgs",
"received_events_url": "https://api.github.com/users/cswarth/received_events",
"repos_url": "https://api.github.com/users/cswarth/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cswarth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cswarth/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cswarth"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 9 | 2016-02-19T00:44:06Z | 2021-06-22T13:24:33Z | 2016-02-19T01:13:41Z | CONTRIBUTOR | null | `DataFrame.from_dict` does not seem to behave [according to the documentation](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.from_dict.html).
```
import pandas as pd
print("pandas.from_dict(<dict>, orient='index')")
print(pd.DataFrame.from_dict(dict([ ['key1', 1],['key2',2] ]), orient='index'))
print("pandas.from_dict(<list [<list>]>, orient='columns')")
print(pd.DataFrame.from_dict([ ['key1', 1],['key2',2] ], orient='columns'))
print("pandas.from_dict(<dict>, orient='columns')")
print(pd.DataFrame.from_dict(dict([ ['key1', 1],['key2',2] ]), orient='columns'))
```
#### Produces
```
pandas.from_dict(<dict>, orient='index')
0
key2 2
key1 1
pandas.from_dict(<list [<list>]>, orient='columns')
0 1
0 key1 1
1 key2 2
pandas.from_dict(<dict>, orient='columns')
Traceback (most recent call last):
File "../../bin/pandaserr.py", line 10, in <module>
print(pd.DataFrame.from_dict(dict([ ['key1', 1],['key2',2] ]), orient='columns'))
File "/home/cwarth/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 804, in from_dict
return cls(data, index=index, columns=columns, dtype=dtype)
File "/home/cwarth/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 226, in __init__
mgr = self._init_dict(data, index, columns, dtype=dtype)
File "/home/cwarth/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 363, in _init_dict
dtype=dtype)
File "/home/cwarth/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 5158, in _arrays_to_mgr
index = extract_index(arrays)
File "/home/cwarth/.local/lib/python2.7/site-packages/pandas/core/frame.py", line 5197, in extract_index
raise ValueError('If using all scalar values, you must pass'
ValueError: If using all scalar values, you must pass an index
```
According to the reference documentation, "If the keys of the passed dict should be the columns of the resulting DataFrame, pass ‘columns’" That doesn't appear to be what is happening.
#### Expected Output
`from_dict(<dict>, orient='index')` works as expected.
I would expect `from_dict(..., orient='columns')` to return a dataframe with the dictionary keys forming the column index, like this:
```
key1 key2
0 1 2
```
I would expect `from_dict()` to take a dict as a parameter in either case. Instead it appears to take a a dict for `orient='index'` and a list of lists (or tuples) for `orient='columns'`. Passing a dict with integer values when `orient='columns'` causes a crash.
#### 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-45-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.6
pip: 8.0.2
setuptools: 18.8
Cython: 0.23.2
numpy: 1.10.4
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 4.0.3
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.1.1
numexpr: 2.2.2
matplotlib: 1.5.0
openpyxl: 2.2.0-b1
xlrd: 0.9.4
xlwt: 0.7.5
xlsxwriter: None
lxml: 3.3.3
bs4: 4.3.2
html5lib: 0.999
httplib2: 0.9
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
Jinja2: None
```
| {
"+1": 3,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 3,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12387/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12387/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12388 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12388/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12388/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12388/events | https://github.com/pandas-dev/pandas/issues/12388 | 134,748,423 | MDU6SXNzdWUxMzQ3NDg0MjM= | 12,388 | pd.eval division operation upcasts float32 to float64 | {
"avatar_url": "https://avatars.githubusercontent.com/u/10360673?v=4",
"events_url": "https://api.github.com/users/jennolsen84/events{/privacy}",
"followers_url": "https://api.github.com/users/jennolsen84/followers",
"following_url": "https://api.github.com/users/jennolsen84/following{/other_user}",
"gists_url": "https://api.github.com/users/jennolsen84/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jennolsen84",
"id": 10360673,
"login": "jennolsen84",
"node_id": "MDQ6VXNlcjEwMzYwNjcz",
"organizations_url": "https://api.github.com/users/jennolsen84/orgs",
"received_events_url": "https://api.github.com/users/jennolsen84/received_events",
"repos_url": "https://api.github.com/users/jennolsen84/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jennolsen84/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jennolsen84/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jennolsen84"
} | [
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 13 | 2016-02-19T01:44:40Z | 2016-05-30T14:39:34Z | 2016-05-30T14:39:34Z | CONTRIBUTOR | null | The current behavior is inconsistent with normal python division of two `DataFrame`s (see code sample).
Pandas upcasts both terms to 64-bit floats when it detects a division, see:
https://github.com/pydata/pandas/blob/528108bba4104b939bcfe6923677ddacc916ff00/pandas/computation/ops.py#L453
I think numexpr can handle different types too, and upcast automatically, though I am not 100% sure. I can submit a PR, but how do you recommend fixing this? Something like the following?
```
if truediv or PY3:
for term in com.flatten(self):
try:
dt = term.values.dtype # can .values be expensive?
except AttributeError:
dt = type(term)
if dt == np.float32:
continue
else:
_cast_inplace([term], np.float_)
```
The downside is that if someone does `2 + df`, they'll probably still end up upcasting it. But this proposal is still better than what we have today
I might re-write the above using `filter` too, but at this time I just wanted to discuss the general approach
#### Code Sample, a copy-pastable example if possible
```
import numpy as np
import pandas as pd
df = pd.DataFrame(np.arange(3, dtype=np.float32))
print('normal', (df/df).values.dtype)
print('pd_eval', pd.eval('df/df').values.dtype)
assert ((df/df).dtypes == pd.eval('df/df').dtypes).all()
```
#### Expected Output
```
normal float32
pd_eval float32
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 3.16.0-4-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: None
pip: 8.0.2
setuptools: 19.6.2
Cython: 0.23.4
numpy: 1.10.4
scipy: None
statsmodels: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: 0.9.2
apiclient: 1.4.2
sqlalchemy: 1.0.9
pymysql: 0.6.7.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/12388/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12388/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12389 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12389/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12389/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12389/events | https://github.com/pandas-dev/pandas/pull/12389 | 134,754,379 | MDExOlB1bGxSZXF1ZXN0NTk4OTYxNDQ= | 12,389 | TST: skip bool_ops_scalar tests for numexpr if numpy >= 1.11 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "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"
} | 1 | 2016-02-19T02:25:02Z | 2016-02-19T13:06:42Z | 2016-02-19T13:06:42Z | CONTRIBUTOR | null | numpy >= 1.11failing on 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/12389/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12389/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12389.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12389",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12389.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12389"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12390 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12390/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12390/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12390/events | https://github.com/pandas-dev/pandas/issues/12390 | 134,756,632 | MDU6SXNzdWUxMzQ3NTY2MzI= | 12,390 | COMPAT: numpy master changes broke some boolean vs scalar tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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"
} | 1 | 2016-02-19T02:47:06Z | 2016-02-21T15:15:56Z | 2016-02-21T15:15:56Z | CONTRIBUTOR | null | `1.12.0.dev0+f4cc58c (good)`
`1.12.0.dev0+a2f5392 (bad)`
https://travis-ci.org/pydata/pandas/jobs/110022540 (bad)
skipping with #12389
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12390/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12390/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12391 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12391/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12391/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12391/events | https://github.com/pandas-dev/pandas/pull/12391 | 134,762,452 | MDExOlB1bGxSZXF1ZXN0NTk5MDA1MjQ= | 12,391 | BUG: Return UTC DateTimeIndex when specified in to_datetime | {
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
} | [
{
"color": "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-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-19T03:36:30Z | 2016-02-21T00:41:34Z | 2016-02-20T18:27:34Z | MEMBER | null | Title is self-explanatory. Closes #11934.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12391/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12391/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12391.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12391",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12391.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12391"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12392 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12392/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12392/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12392/events | https://github.com/pandas-dev/pandas/issues/12392 | 134,767,386 | MDU6SXNzdWUxMzQ3NjczODY= | 12,392 | ENH: Harmonize drop and rename API | {
"avatar_url": "https://avatars.githubusercontent.com/u/9683693?v=4",
"events_url": "https://api.github.com/users/nickeubank/events{/privacy}",
"followers_url": "https://api.github.com/users/nickeubank/followers",
"following_url": "https://api.github.com/users/nickeubank/following{/other_user}",
"gists_url": "https://api.github.com/users/nickeubank/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nickeubank",
"id": 9683693,
"login": "nickeubank",
"node_id": "MDQ6VXNlcjk2ODM2OTM=",
"organizations_url": "https://api.github.com/users/nickeubank/orgs",
"received_events_url": "https://api.github.com/users/nickeubank/received_events",
"repos_url": "https://api.github.com/users/nickeubank/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nickeubank/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nickeubank/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nickeubank"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
]
| closed | false | null | []
| {
"closed_at": "2017-10-28T18:54:27Z",
"closed_issues": 764,
"created_at": "2017-03-23T13:26:25Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2017-10-27T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/46",
"id": 2406656,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels",
"node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==",
"number": 46,
"open_issues": 0,
"state": "closed",
"title": "0.21.0",
"updated_at": "2018-07-08T21:53:21Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46"
} | 44 | 2016-02-19T04:12:45Z | 2017-10-13T08:46:27Z | 2017-10-13T08:46:22Z | CONTRIBUTOR | null | `rename` accepts a `columns` argument or an `index` argument, while `drop` looks for a `labels` and `axis` pair. I don't know about anyone else, but I have to check the help file every time I come back to pandas to remember which takes which.
How would people feel about adding `columns` and `index` arguments to `drop`? They could just be added in addition to `labels`/`axis` if we want to provide backwards compatibility and just raise an exception if the user tries to mix them.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12392/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12392/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12393 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12393/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12393/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12393/events | https://github.com/pandas-dev/pandas/issues/12393 | 134,846,957 | MDU6SXNzdWUxMzQ4NDY5NTc= | 12,393 | Confusing behaviour of df.empty | {
"avatar_url": "https://avatars.githubusercontent.com/u/6398777?v=4",
"events_url": "https://api.github.com/users/phil20686/events{/privacy}",
"followers_url": "https://api.github.com/users/phil20686/followers",
"following_url": "https://api.github.com/users/phil20686/following{/other_user}",
"gists_url": "https://api.github.com/users/phil20686/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phil20686",
"id": 6398777,
"login": "phil20686",
"node_id": "MDQ6VXNlcjYzOTg3Nzc=",
"organizations_url": "https://api.github.com/users/phil20686/orgs",
"received_events_url": "https://api.github.com/users/phil20686/received_events",
"repos_url": "https://api.github.com/users/phil20686/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phil20686/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phil20686/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phil20686"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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"
} | 16 | 2016-02-19T11:53:45Z | 2016-02-26T02:14:52Z | 2016-02-26T02:13:43Z | NONE | null | This is as much a documentation issue as anything else. Basically it seems confusing that df.empty != df.dropna().empty I.e. that a a dataframe consiting entirely of na is not treated as empty. Obviously this is a bit of an edge case, but it caused a bunch of failures for me when used eith pd.read_sql methods, as database tables will often have columns that are not available for partiicular entities, and so can return an entire series of na.
It seems to me that in all cases df.empty should be the same as df.dropna().empty, but I understand that opinions might differ on this point, but at least the behaviour should be clearly documented.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12393/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12393/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12394 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12394/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12394/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12394/events | https://github.com/pandas-dev/pandas/issues/12394 | 134,868,637 | MDU6SXNzdWUxMzQ4Njg2Mzc= | 12,394 | datetime gets converted to int64 in groupby agg | {
"avatar_url": "https://avatars.githubusercontent.com/u/674200?v=4",
"events_url": "https://api.github.com/users/twiecki/events{/privacy}",
"followers_url": "https://api.github.com/users/twiecki/followers",
"following_url": "https://api.github.com/users/twiecki/following{/other_user}",
"gists_url": "https://api.github.com/users/twiecki/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twiecki",
"id": 674200,
"login": "twiecki",
"node_id": "MDQ6VXNlcjY3NDIwMA==",
"organizations_url": "https://api.github.com/users/twiecki/orgs",
"received_events_url": "https://api.github.com/users/twiecki/received_events",
"repos_url": "https://api.github.com/users/twiecki/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twiecki/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twiecki/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twiecki"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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": "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"
} | 4 | 2016-02-19T13:47:05Z | 2016-02-19T14:32:23Z | 2016-02-19T14:32:23Z | CONTRIBUTOR | null | I tried to produce a stand-alone example but couldn't so far. Maybe the answer is already apparent though. This started happening just recently (maybe after updated pandas to 0.17.1) but worked well before. I'm doing a multi-column `agg` in a groupby. One of the columns is a datetime of which I want the first element:
```
(Pdb) t.groupby(['block_dir']).first()
dt sid amount price symbol \
block_dir
1 2003-01-02 15:56:00+00:00 21719 -62 0.963811 AIRN
```
Works fine, however:
```
order_sign block_time
block_dir
1 False 0
(Pdb) t.groupby(['block_dir']).agg({'dt': 'first'})
dt
block_dir
1 1041522960000000000
```
#### Expected Output
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-77-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.2
setuptools: 19.6.2
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.16.1
statsmodels: 0.6.1
IPython: 3.2.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.3
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.8
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext)
Jinja2: 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/12394/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12394/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12395 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12395/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12395/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12395/events | https://github.com/pandas-dev/pandas/pull/12395 | 134,943,936 | MDExOlB1bGxSZXF1ZXN0NTk5ODk4MDk= | 12,395 | Doc/df filter | {
"avatar_url": "https://avatars.githubusercontent.com/u/295428?v=4",
"events_url": "https://api.github.com/users/cswarth/events{/privacy}",
"followers_url": "https://api.github.com/users/cswarth/followers",
"following_url": "https://api.github.com/users/cswarth/following{/other_user}",
"gists_url": "https://api.github.com/users/cswarth/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cswarth",
"id": 295428,
"login": "cswarth",
"node_id": "MDQ6VXNlcjI5NTQyOA==",
"organizations_url": "https://api.github.com/users/cswarth/orgs",
"received_events_url": "https://api.github.com/users/cswarth/received_events",
"repos_url": "https://api.github.com/users/cswarth/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cswarth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cswarth/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cswarth"
} | []
| closed | false | null | []
| null | 10 | 2016-02-19T18:44:32Z | 2016-02-20T18:19:05Z | 2016-02-19T23:59:24Z | CONTRIBUTOR | null | Updates doc comments for `DataFrame.filter` and adds usage examples.
<dl class="method">
<dt id="pandas.DataFrame.filter">
<code class="descclassname">DataFrame.</code><code class="descname">filter</code><span class="sig-paren">(</span><em>items=None</em>, <em>like=None</em>, <em>regex=None</em>, <em>axis=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pandas.DataFrame.filter" title="Permalink to this definition">¶</a></dt>
<dd><p>Subset rows or columns of dataframe according to labels in the index.</p>
<p>Note that this routine does not filter a dataframe on its contents. The filter is
applied to the labels of the index.
This method is a thin veneer on top of <span class="xref std std-ref">DateFrame Select</span></p>
<table class="docutils field-list" frame="void" rules="none">
<colgroup><col class="field-name">
<col class="field-body">
</colgroup><tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>items</strong> : list-like</p>
<blockquote>
<div><p>List of info axis to restrict to (must not all be present)</p>
</div></blockquote>
<p><strong>like</strong> : string</p>
<blockquote>
<div><p>Keep info axis where “arg in col == True”</p>
</div></blockquote>
<p><strong>regex</strong> : string (regular expression)</p>
<blockquote>
<div><p>Keep info axis with re.search(regex, col) == True</p>
</div></blockquote>
<p><strong>axis</strong> : int or None</p>
<blockquote>
<div><p>The axis to filter on.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">same type as input object with filtered info axis</p>
</td>
</tr>
</tbody>
</table>
<p class="rubric">Notes</p>
<p>The <code class="docutils literal"><span class="pre">items</span></code>, <code class="docutils literal"><span class="pre">like</span></code>, and <code class="docutils literal"><span class="pre">regex</span></code> parameters should be mutually exclusive, but this is not checked.</p>
<p><code class="docutils literal"><span class="pre">axis</span></code> defaults to the info axis that is used when indexing with <code class="docutils literal"><span class="pre">[]</span></code>.</p>
<p class="rubric">Examples</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">df</span>
<span class="go"> one two three</span>
<span class="go">mouse 1 2 3</span>
<span class="go">rabbit 4 5 6</span>
</pre></div>
</div>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="c1"># select columns by name</span>
<span class="gp">>>> </span><span class="n">df</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">items</span><span class="o">=</span><span class="p">[</span><span class="s1">'one'</span><span class="p">,</span> <span class="s1">'three'</span><span class="p">])</span>
<span class="go"> one three</span>
<span class="go">mouse 1 3</span>
<span class="go">rabbit 4 6</span>
</pre></div>
</div>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="c1"># select columns by regular expression</span>
<span class="gp">>>> </span><span class="n">df</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">regex</span><span class="o">=</span><span class="s1">'e$'</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
<span class="go"> one three</span>
<span class="go">mouse 1 3</span>
<span class="go">rabbit 4 6</span>
</pre></div>
</div>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="c1"># select rows containing 'bbi'</span>
<span class="gp">>>> </span><span class="n">df</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">like</span><span class="o">=</span><span class="s1">'bbi'</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
<span class="go"> one two three</span>
<span class="go">rabbit 4 5 6</span>
</pre></div>
</div>
</dd></dl>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12395/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12395/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12395.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12395",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12395.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12395"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12396 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12396/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12396/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12396/events | https://github.com/pandas-dev/pandas/issues/12396 | 134,951,968 | MDU6SXNzdWUxMzQ5NTE5Njg= | 12,396 | Concatenation of DFs with all NaT columns and TZ-aware ones breaks | {
"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": "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": "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"
} | 9 | 2016-02-19T19:26:24Z | 2018-05-30T16:19:34Z | 2018-05-13T13:17:49Z | CONTRIBUTOR | null | Concatenating DFs that have columns with all NaTs and TZ-aware ones breaks as of 0.17.1:
```
In [1]: import pandas as pd
In [2]: df1 = pd.DataFrame([[pd.NaT], [pd.NaT]])
In [3]: df1
Out[2]:
0
0 NaT
1 NaT
In [4]: df2 = pd.DataFrame([[pd.Timestamp('2015/01/01', tz='UTC')], [pd.Timestamp('2016/01/01', tz='UTC')]])
In [5]: df2
Out[4]:
0
0 2015-01-01 00:00:00+00:00
1 2016-01-01 00:00:00+00:00
In [6]: pd.concat([df1, df2])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-f61a1ab4009e> in <module>()
----> 1 pd.concat([df1, df2])
/.../env/local/lib/python2.7/site-packages/pandas/tools/merge.py 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
/.../env/local/lib/python2.7/site-packages/pandas/tools/merge.py 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()
/.../env/local/lib/python2.7/site-packages/pandas/core/internals.py 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)
/.../env/local/lib/python2.7/site-packages/pandas/core/internals.py 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:
/.../env/local/lib/python2.7/site-packages/pandas/core/internals.py 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
```
Possibly related to #11693, #11705 and the #11456 family. However, this doesn't appear to be caused by the TZ-aware vs. non-TZ aware problems referenced there.
Versions:
```
In [4]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.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.6
pip: 6.0.8
setuptools: 12.0.5
Cython: 0.22
numpy: 1.9.2
scipy: 0.15.1
statsmodels: 0.6.1.post1
IPython: 3.1.0
sphinx: 1.3.1
patsy: 0.2.1
dateutil: 2.4.2
pytz: 2015.4
blosc: 1.2.8
bottleneck: 1.0.0
tables: 3.2.0
numexpr: 2.4.3
matplotlib: None
openpyxl: None
xlrd: 0.9.3
xlwt: 0.7.5
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/12396/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12396/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12397 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12397/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12397/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12397/events | https://github.com/pandas-dev/pandas/issues/12397 | 134,982,765 | MDU6SXNzdWUxMzQ5ODI3NjU= | 12,397 | Add to_dataframe() method to MultiIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/371039?v=4",
"events_url": "https://api.github.com/users/relativistic/events{/privacy}",
"followers_url": "https://api.github.com/users/relativistic/followers",
"following_url": "https://api.github.com/users/relativistic/following{/other_user}",
"gists_url": "https://api.github.com/users/relativistic/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/relativistic",
"id": 371039,
"login": "relativistic",
"node_id": "MDQ6VXNlcjM3MTAzOQ==",
"organizations_url": "https://api.github.com/users/relativistic/orgs",
"received_events_url": "https://api.github.com/users/relativistic/received_events",
"repos_url": "https://api.github.com/users/relativistic/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/relativistic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/relativistic/subscriptions",
"type": "User",
"url": "https://api.github.com/users/relativistic"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| {
"closed_at": "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"
} | 8 | 2016-02-19T21:44:56Z | 2017-01-25T21:20:37Z | 2017-01-25T21:20:37Z | NONE | null | I find the `Index.to_series` method is a convenient way to allow indices to act as columns of a dataframe where desired. However, the behavior of `MultiIndex.to_series`, which gives a `Series` of tuples, is less useful.
Would it be convenient to provide a `to_dataframe` method for index classes? This would be a natural extension of the utility of `to_series`, and more useful for `MultiIndex` objects I would think.
I'm something equivalent to:
> ```
> def to_dataframe(self):
> DataFrame(self.tolist(), columns=self.names, index=self)
> ```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12397/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12397/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12398 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12398/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12398/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12398/events | https://github.com/pandas-dev/pandas/issues/12398 | 134,998,678 | MDU6SXNzdWUxMzQ5OTg2Nzg= | 12,398 | ENH: Series between inclusive end point bifurcation | {
"avatar_url": "https://avatars.githubusercontent.com/u/3209516?v=4",
"events_url": "https://api.github.com/users/colinalexander/events{/privacy}",
"followers_url": "https://api.github.com/users/colinalexander/followers",
"following_url": "https://api.github.com/users/colinalexander/following{/other_user}",
"gists_url": "https://api.github.com/users/colinalexander/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/colinalexander",
"id": 3209516,
"login": "colinalexander",
"node_id": "MDQ6VXNlcjMyMDk1MTY=",
"organizations_url": "https://api.github.com/users/colinalexander/orgs",
"received_events_url": "https://api.github.com/users/colinalexander/received_events",
"repos_url": "https://api.github.com/users/colinalexander/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/colinalexander/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/colinalexander/subscriptions",
"type": "User",
"url": "https://api.github.com/users/colinalexander"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| 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-19T23:14:12Z | 2016-04-30T14:35:56Z | 2016-04-30T14:35:52Z | NONE | null | Allow ability to distinguish inclusiveness of left and right boundaries. I've written the code and tests, but need a GH tracking number prior to submitting a PR.
```
def between(self, left, right, inclusive=True):
"""
Return boolean Series equivalent to left <= series <= right. NA values
will be treated as False
Parameters
----------
left : scalar
Left boundary
right : scalar
Right boundary
inclusive : boolean for both left and right or iterable pair.
Whether or not to include the left and right boundary.
If a tuple pair, the boundaries can be set separately
(e.g. (False, True) for left < series <= right).
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12398/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12398/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12399 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12399/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12399/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12399/events | https://github.com/pandas-dev/pandas/pull/12399 | 135,013,000 | MDExOlB1bGxSZXF1ZXN0NjAwMjkwOTg= | 12,399 | Add example usage to DataFrame.filter | {
"avatar_url": "https://avatars.githubusercontent.com/u/295428?v=4",
"events_url": "https://api.github.com/users/cswarth/events{/privacy}",
"followers_url": "https://api.github.com/users/cswarth/followers",
"following_url": "https://api.github.com/users/cswarth/following{/other_user}",
"gists_url": "https://api.github.com/users/cswarth/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cswarth",
"id": 295428,
"login": "cswarth",
"node_id": "MDQ6VXNlcjI5NTQyOA==",
"organizations_url": "https://api.github.com/users/cswarth/orgs",
"received_events_url": "https://api.github.com/users/cswarth/received_events",
"repos_url": "https://api.github.com/users/cswarth/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cswarth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cswarth/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cswarth"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 15 | 2016-02-20T00:49:44Z | 2016-06-03T21:01:39Z | 2016-06-03T21:01:24Z | CONTRIBUTOR | null | Updates doc comments for `DataFrame.filter` and adds usage examples.
Fixed errors identified by `flake8` and correctly rebase my branch before issuing PR.
<dl class="method">
<dt id="pandas.DataFrame.filter">
<code class="descclassname">DataFrame.</code><code class="descname">filter</code><span class="sig-paren">(</span><em>items=None</em>, <em>like=None</em>, <em>regex=None</em>, <em>axis=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pandas.DataFrame.filter" title="Permalink to this definition">¶</a></dt>
<dd><p>Subset rows or columns of dataframe according to labels in the index.</p>
<p>Note that this routine does not filter a dataframe on its contents. The filter is
applied to the labels of the index.
This method is a thin veneer on top of <span class="xref std std-ref">DateFrame Select</span></p>
<table class="docutils field-list" frame="void" rules="none">
<colgroup><col class="field-name">
<col class="field-body">
</colgroup><tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>items</strong> : list-like</p>
<blockquote>
<div><p>List of info axis to restrict to (must not all be present)</p>
</div></blockquote>
<p><strong>like</strong> : string</p>
<blockquote>
<div><p>Keep info axis where “arg in col == True”</p>
</div></blockquote>
<p><strong>regex</strong> : string (regular expression)</p>
<blockquote>
<div><p>Keep info axis with re.search(regex, col) == True</p>
</div></blockquote>
<p><strong>axis</strong> : int or None</p>
<blockquote>
<div><p>The axis to filter on.</p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">same type as input object with filtered info axis</p>
</td>
</tr>
</tbody>
</table>
<p class="rubric">Notes</p>
<p>The <code class="docutils literal"><span class="pre">items</span></code>, <code class="docutils literal"><span class="pre">like</span></code>, and <code class="docutils literal"><span class="pre">regex</span></code> parameters should be mutually exclusive, but this is not checked.</p>
<p><code class="docutils literal"><span class="pre">axis</span></code> defaults to the info axis that is used when indexing with <code class="docutils literal"><span class="pre">[]</span></code>.</p>
<p class="rubric">Examples</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">df</span>
<span class="go"> one two three</span>
<span class="go">mouse 1 2 3</span>
<span class="go">rabbit 4 5 6</span>
</pre></div>
</div>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="c1"># select columns by name</span>
<span class="gp">>>> </span><span class="n">df</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">items</span><span class="o">=</span><span class="p">[</span><span class="s1">'one'</span><span class="p">,</span> <span class="s1">'three'</span><span class="p">])</span>
<span class="go"> one three</span>
<span class="go">mouse 1 3</span>
<span class="go">rabbit 4 6</span>
</pre></div>
</div>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="c1"># select columns by regular expression</span>
<span class="gp">>>> </span><span class="n">df</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">regex</span><span class="o">=</span><span class="s1">'e$'</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
<span class="go"> one three</span>
<span class="go">mouse 1 3</span>
<span class="go">rabbit 4 6</span>
</pre></div>
</div>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="c1"># select rows containing 'bbi'</span>
<span class="gp">>>> </span><span class="n">df</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">like</span><span class="o">=</span><span class="s1">'bbi'</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
<span class="go"> one two three</span>
<span class="go">rabbit 4 5 6</span>
</pre></div>
</div>
</dd></dl>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12399/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12399/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12399.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12399",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12399.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12399"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12400 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12400/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12400/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12400/events | https://github.com/pandas-dev/pandas/pull/12400 | 135,043,060 | MDExOlB1bGxSZXF1ZXN0NjAwNDA0MDc= | 12,400 | COMPAT: Objects construction compat with xarray.Dataset | {
"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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "0052cc",
"default": false,
"description": "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 | 23 | 2016-02-20T06:59:54Z | 2017-08-17T10:28:43Z | 2017-08-17T10:28:43Z | CONTRIBUTOR | null | - [x] closes #12353
- [x] tests added
- [ ] tests passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
I'm changed the dict / mapping issue, but I can't get this part working (so the tests fail at the moment):
> But pd.Series(dict(xr.Dataset({'a': 2, 'b': 3}))) doesn't work either, because the values in the dict are 0-th dimension arrays, and Series doesn't unpack them (list(dict(xr.Dataset({'a': 2, 'b': 3})).values())[0] for the full code)
> https://github.com/pydata/pandas/issues/12353#issuecomment-184968747
Is that a reasonable goal? Where would be a good place to do the conversion?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12400/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12400/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12400.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12400",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12400.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12400"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12401 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12401/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12401/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12401/events | https://github.com/pandas-dev/pandas/issues/12401 | 135,108,040 | MDU6SXNzdWUxMzUxMDgwNDA= | 12,401 | DEPR: filter & select | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
]
| closed | false | null | []
| {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 15 | 2016-02-20T18:23:15Z | 2018-09-07T22:31:36Z | 2017-10-04T11:07:59Z | CONTRIBUTOR | null | do we need label selectors? we should for sure just have a single method for this. maybe call it `query_labels`? to be consistent with `.query` as the workhorse for data selection.
- [x] ``.select`` (#17633)
- [ ] ``.filter``
xref #6599
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12401/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12401/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/12402 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12402/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12402/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12402/events | https://github.com/pandas-dev/pandas/pull/12402 | 135,117,473 | MDExOlB1bGxSZXF1ZXN0NjAwNTkzNzg= | 12,402 | ENH: Series between inclusive pair (GH: 12398) | {
"avatar_url": "https://avatars.githubusercontent.com/u/3209516?v=4",
"events_url": "https://api.github.com/users/colinalexander/events{/privacy}",
"followers_url": "https://api.github.com/users/colinalexander/followers",
"following_url": "https://api.github.com/users/colinalexander/following{/other_user}",
"gists_url": "https://api.github.com/users/colinalexander/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/colinalexander",
"id": 3209516,
"login": "colinalexander",
"node_id": "MDQ6VXNlcjMyMDk1MTY=",
"organizations_url": "https://api.github.com/users/colinalexander/orgs",
"received_events_url": "https://api.github.com/users/colinalexander/received_events",
"repos_url": "https://api.github.com/users/colinalexander/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/colinalexander/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/colinalexander/subscriptions",
"type": "User",
"url": "https://api.github.com/users/colinalexander"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 3 | 2016-02-20T20:34:31Z | 2016-04-30T14:36:12Z | 2016-04-29T22:08:57Z | NONE | null | - [ X ] closes #12398
- [ X ] tests added / passed
- [ X ] passes `git diff upstream/master | flake8 --diff`
- [ X ] whatsnew entry
Amends pandas.Series.between method to set different inclusive/exclusive endpoints.
inclusive : Boolean to indicate whether or not to include both the left
and right endpoints (True: a <= series <= b, False: a < series < b),
or an iterable boolean pair to set them separately, e.g
inclusive=(False, True) for a < series <= b.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/12402/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12402/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12402.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12402",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12402.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12402"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/12403 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/12403/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/12403/comments | https://api.github.com/repos/pandas-dev/pandas/issues/12403/events | https://github.com/pandas-dev/pandas/pull/12403 | 135,132,015 | MDExOlB1bGxSZXF1ZXN0NjAwNjQxNDI= | 12,403 | BUG: Concatenation of DFs with all NaT columns and TZ-aware ones breaks #12396 | {
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
]
| closed | false | null | []
| null | 29 | 2016-02-20T23:06:11Z | 2018-01-20T02:21:29Z | 2016-11-16T22:22:21Z | CONTRIBUTOR | null | - [X] closes #12396
- [X] tests added / passed
- [X] passes `git diff upstream/master | flake8 --diff`
- [X] whatsnew entry
- `concat` to handle tz-aware all NaT/mixed cases
- added unit 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/12403/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/12403/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/12403.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/12403",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/12403.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/12403"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.