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/13504 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13504/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13504/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13504/events | https://github.com/pandas-dev/pandas/pull/13504 | 161,986,731 | MDExOlB1bGxSZXF1ZXN0NzUwMDA0MjQ= | 13,504 | BUG: Fix bug with symmetric difference of two equal MultiIndexes GH12490 | {
"avatar_url": "https://avatars.githubusercontent.com/u/2871757?v=4",
"events_url": "https://api.github.com/users/lstout/events{/privacy}",
"followers_url": "https://api.github.com/users/lstout/followers",
"following_url": "https://api.github.com/users/lstout/following{/other_user}",
"gists_url": "https://api.github.com/users/lstout/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lstout",
"id": 2871757,
"login": "lstout",
"node_id": "MDQ6VXNlcjI4NzE3NTc=",
"organizations_url": "https://api.github.com/users/lstout/orgs",
"received_events_url": "https://api.github.com/users/lstout/received_events",
"repos_url": "https://api.github.com/users/lstout/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lstout/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lstout/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lstout"
} | [
{
"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"
}
]
| closed | false | null | []
| null | 4 | 2016-06-23T18:08:16Z | 2016-11-16T22:23:17Z | 2016-11-16T22:23:17Z | NONE | null | - [x] closes #13490
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Fixes a bug where the symmetric difference of two equal MultiIndexes would raise a TypeError. MultiIndex used to use the `Index.symmetric_difference`. With this PR it it's own implementation that is more like `MultiIndex.difference`.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13504/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13504/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13504.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13504",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13504.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13504"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13505 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13505/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13505/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13505/events | https://github.com/pandas-dev/pandas/issues/13505 | 162,019,261 | MDU6SXNzdWUxNjIwMTkyNjE= | 13,505 | read_csv EmptyDataError when using a buffer and selecting an index column | {
"avatar_url": "https://avatars.githubusercontent.com/u/15304285?v=4",
"events_url": "https://api.github.com/users/meowser/events{/privacy}",
"followers_url": "https://api.github.com/users/meowser/followers",
"following_url": "https://api.github.com/users/meowser/following{/other_user}",
"gists_url": "https://api.github.com/users/meowser/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meowser",
"id": 15304285,
"login": "meowser",
"node_id": "MDQ6VXNlcjE1MzA0Mjg1",
"organizations_url": "https://api.github.com/users/meowser/orgs",
"received_events_url": "https://api.github.com/users/meowser/received_events",
"repos_url": "https://api.github.com/users/meowser/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meowser/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meowser/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meowser"
} | [
{
"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 | 2 | 2016-06-23T20:46:24Z | 2016-06-27T15:09:46Z | 2016-06-27T15:09:46Z | NONE | null | I am trying to read_csv from a csv buffer object while selecting an index column, but I am recieving an EmptyDataError. I can read the plain file and select an index_col no problem, but for some reason the buffer object is not achieving the same results. I pasted my code below.
```
import pandas as pd
from six import StringIO
# reading from a file and setting the index works
df = pd.read_csv('somedata.csv', index_col=0)
print(df.to_csv())
,Data
2008-01-01,2106195622.22
2008-02-01,2049275024.52
2008-03-01,2653068424.54
2008-04-01,2523254963.17
2008-05-01,2504513912.88
# reading from a buffer and trying to setting an index does not work,
buffy = StringIO()
df.to_csv(buffy)
buffy.seek(0)
print(buffy.read())
,Data
2008-01-01,2106195622.22
2008-02-01,2049275024.52
2008-03-01,2653068424.54
2008-04-01,2523254963.17
2008-05-01,2504513912.88
buffy.seek(0)
df_buff = pd.read_csv(buffy, index_col=0)
<ipython-input-243-95002384e2b3> in <module>()
----> 1 pd.read_csv(buffy, index_col=0)
560 skip_blank_lines=skip_blank_lines)
561
--> 562 return _read(filepath_or_buffer, kwds)
563
564 parser_f.__name__ = name
/home/eholmes/.virtualenv/py27/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in _read(filepath_or_buffer, kwds)
313
314 # Create the parser.
--> 315 parser = TextFileReader(filepath_or_buffer, **kwds)
316
317 if (nrows is not None) and (chunksize is not None):
/home/eholmes/.virtualenv/py27/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, f, engine, **kwds)
643 self.options['has_index_names'] = kwds['has_index_names']
644
--> 645 self._make_engine(self.engine)
646
647 def close(self):
/home/eholmes/.virtualenv/py27/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in _make_engine(self, engine)
797 def _make_engine(self, engine='c'):
798 if engine == 'c':
--> 799 self._engine = CParserWrapper(self.f, **self.options)
800 else:
801 if engine == 'python':
/home/eholmes/.virtualenv/py27/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, src, **kwds)
1211 kwds['allow_leading_cols'] = self.index_col is not False
1212
-> 1213 self._reader = _parser.TextReader(src, **kwds)
1214
1215 # XXX
pandas/parser.pyx in pandas.parser.TextReader.__cinit__ (pandas/parser.c:5214)()
EmptyDataError: No columns to parse from file
```
## INSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-24-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 22.0.5
Cython: None
numpy: 1.11.0
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: None
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 2.0.0b1
openpyxl: 2.3.5
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: 0.2.1
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13505/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13505/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13506 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13506/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13506/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13506/events | https://github.com/pandas-dev/pandas/issues/13506 | 162,038,438 | MDU6SXNzdWUxNjIwMzg0Mzg= | 13,506 | API/ENH: unprotected Categorical | {
"avatar_url": "https://avatars.githubusercontent.com/u/7279321?v=4",
"events_url": "https://api.github.com/users/adbull/events{/privacy}",
"followers_url": "https://api.github.com/users/adbull/followers",
"following_url": "https://api.github.com/users/adbull/following{/other_user}",
"gists_url": "https://api.github.com/users/adbull/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/adbull",
"id": 7279321,
"login": "adbull",
"node_id": "MDQ6VXNlcjcyNzkzMjE=",
"organizations_url": "https://api.github.com/users/adbull/orgs",
"received_events_url": "https://api.github.com/users/adbull/received_events",
"repos_url": "https://api.github.com/users/adbull/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/adbull/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adbull/subscriptions",
"type": "User",
"url": "https://api.github.com/users/adbull"
} | [
{
"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": "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"
}
]
| open | false | null | []
| null | 0 | 2016-06-23T22:32:53Z | 2021-05-01T22:31:03Z | null | CONTRIBUTOR | null | xref #8640 #12699 #13361 #13410
There's been discussion of a few overlapping uses of `Categorical`:
1. as 'true' categorical data with a known set of values
2. as 'lazy' categorical data which adds new categories as needed
3. as an interned string data type, with no particular categorical interpretation
Option 1 is currently well-supported. Option 2 can be achieved explicitly by `union_categorical`, see #13361 #13410, but will not happen automatically e.g. when setting values or concatenating, see #12699. Option 3 is similar to 2, and has been discussed as a new `String` type, see #8640, but may have different semantics to 2.
While I completely agree that option 1 should be the default, I'd like to see more support for option 2 if possible; there are cases where I really do want to work with categorical data, but I don't yet know what the categories are, e.g. when concatenating a table together from several different source files.
One option would be to mimic Matlab's 'protected' flag for categorical data. By default, a `Categorical` would be created protected, and throw errors when performing actions which implicitly change the category set. However, the user could choose to declare a `Categorical` as unprotected, in which case these operations would be performed as intended.
While this behaviour could be achieved with the proposed `String` type, it's unclear whether that type would share the `Categorical` API, or be efficiently convertible to `Categorical`. Having the behaviour as part of `Categorical` would allow the user to build up a `Categorical` iteratively, from multiple sources, and then quickly mark it protected once the category set is known.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13506/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13506/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13507 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13507/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13507/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13507/events | https://github.com/pandas-dev/pandas/pull/13507 | 162,044,348 | MDExOlB1bGxSZXF1ZXN0NzUwNDI4NTI= | 13,507 | mmap error is not always returned in English | {
"avatar_url": "https://avatars.githubusercontent.com/u/6215361?v=4",
"events_url": "https://api.github.com/users/nparley/events{/privacy}",
"followers_url": "https://api.github.com/users/nparley/followers",
"following_url": "https://api.github.com/users/nparley/following{/other_user}",
"gists_url": "https://api.github.com/users/nparley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nparley",
"id": 6215361,
"login": "nparley",
"node_id": "MDQ6VXNlcjYyMTUzNjE=",
"organizations_url": "https://api.github.com/users/nparley/orgs",
"received_events_url": "https://api.github.com/users/nparley/received_events",
"repos_url": "https://api.github.com/users/nparley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nparley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nparley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nparley"
} | [
{
"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"
} | 1 | 2016-06-23T23:17:34Z | 2016-06-23T23:59:45Z | 2016-06-23T23:59:45Z | CONTRIBUTOR | null | Fixes a build error from https://github.com/pydata/pandas/pull/12946 caused by mmap error being returned in Italian when `LOCALE_OVERRIDE="it_IT.UTF-8"`. The test fails with:
`AssertionError: "Invalid argument" does not match "[Errno 22] Argomento non valido"`
``` python
msg = "Invalid argument"
tm.assertRaisesRegexp(mmap.error, msg, common.MMapWrapper, non_file)
```
i.e. message is not being matched. Change to match the errno instead as that's the same across languages.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13507/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13507/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13507.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13507",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13507.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13507"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13508 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13508/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13508/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13508/events | https://github.com/pandas-dev/pandas/issues/13508 | 162,194,004 | MDU6SXNzdWUxNjIxOTQwMDQ= | 13,508 | Use \multirow \multicolumn in latex output | {
"avatar_url": "https://avatars.githubusercontent.com/u/143389?v=4",
"events_url": "https://api.github.com/users/wiso/events{/privacy}",
"followers_url": "https://api.github.com/users/wiso/followers",
"following_url": "https://api.github.com/users/wiso/following{/other_user}",
"gists_url": "https://api.github.com/users/wiso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wiso",
"id": 143389,
"login": "wiso",
"node_id": "MDQ6VXNlcjE0MzM4OQ==",
"organizations_url": "https://api.github.com/users/wiso/orgs",
"received_events_url": "https://api.github.com/users/wiso/received_events",
"repos_url": "https://api.github.com/users/wiso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wiso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wiso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wiso"
} | [
{
"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": "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": "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"
} | 0 | 2016-06-24T17:30:57Z | 2017-03-03T09:17:29Z | 2017-03-03T09:16:46Z | NONE | null | It would be nice to have `\multicolumn` and `\multirow` in the `to_latex` output when using multilayer indexes or columns.
| {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13508/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13508/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13509 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13509/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13509/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13509/events | https://github.com/pandas-dev/pandas/issues/13509 | 162,239,059 | MDU6SXNzdWUxNjIyMzkwNTk= | 13,509 | BUG: Float64Index getitem raises error with tuple-like values | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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"
} | 3 | 2016-06-24T22:02:53Z | 2016-08-26T20:21:02Z | 2016-08-26T20:21:02Z | MEMBER | null | So when you have a Series with the combination of a Float64Index and tuple values, getitem/`[]` gives an error:
```
In [46]: s = pd.Series([1,2,3], index=[0.0,0.1,0.2])
In [47]: s[0.0]
Out[47]: 1
In [48]: s = pd.Series([(1,1),(2,2),(3,3)], index=[0.0,0.1,0.2])
In [49]: s[0.0]
...
TypeError: len() of unsized object
```
When the values are not tuples, or when you have a regular index, or when using `ix/loc/iloc` this issue does not appear.
This issue is coming from geopandas (https://github.com/geopandas/geopandas/issues/351), where a Series of Point geometries give the same error:
```
In [66]: import shapely.geometry
In [67]: s = pd.Series([(1,1),(2,2),(3,3)], index=[0.0,0.1,0.2])
In [68]: s = s.map(shapely.geometry.Point)
In [69]: s
Out[69]:
0.0 POINT (1 1)
0.1 POINT (2 2)
0.2 POINT (3 3)
dtype: object
In [70]: s[0.0]
...
TypeError: len() of unsized object
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13509/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13509/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13510 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13510/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13510/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13510/events | https://github.com/pandas-dev/pandas/pull/13510 | 162,239,741 | MDExOlB1bGxSZXF1ZXN0NzUxODA0NDQ= | 13,510 | BUG: date_range closed keyword with timezone aware start/end (GH12684) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
]
| 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-06-24T22:08:11Z | 2016-06-29T12:16:23Z | 2016-06-29T12:16:22Z | MEMBER | null | closes #12684
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13510/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13510/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13510.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13510",
"merged_at": "2016-06-29T12:16:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13510.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13510"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13511 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13511/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13511/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13511/events | https://github.com/pandas-dev/pandas/issues/13511 | 162,273,646 | MDU6SXNzdWUxNjIyNzM2NDY= | 13,511 | NaN label in MultiIndex is assigned a non NaN value when writing to excel file | {
"avatar_url": "https://avatars.githubusercontent.com/u/2924816?v=4",
"events_url": "https://api.github.com/users/mpuels/events{/privacy}",
"followers_url": "https://api.github.com/users/mpuels/followers",
"following_url": "https://api.github.com/users/mpuels/following{/other_user}",
"gists_url": "https://api.github.com/users/mpuels/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mpuels",
"id": 2924816,
"login": "mpuels",
"node_id": "MDQ6VXNlcjI5MjQ4MTY=",
"organizations_url": "https://api.github.com/users/mpuels/orgs",
"received_events_url": "https://api.github.com/users/mpuels/received_events",
"repos_url": "https://api.github.com/users/mpuels/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mpuels/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mpuels/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mpuels"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2016-06-25T09:54:49Z | 2016-07-25T15:07:00Z | 2016-07-25T15:07:00Z | CONTRIBUTOR | null | Given a DataFrame which has a MultiIndex. When a label of the MultiIndex has the value NaN and the DataFrame is written to an excel file, the label will have a value which is not NaN in the excel file.
#### Code Sample, a copy-pastable example if possible
```
df = pd.DataFrame({'c1': [1,1,2,2],
'c2': [None] + "b a b".split()})
df
```
returns a DataFrame where the first element of column 'c2' is NaN:
```
c1 c2
0 1
1 1 b
2 2 a
3 2 b
```
Set both columns as the index:
```
df_midx = df.set_index(['c1', 'c2'])
df_midx
```
returns
```
c1 c2
1
1 b
2 a
2 b
```
Write DataFrame to excel file and read it back in:
```
df_midx.to_excel('df_midx.xlsx')
df_midx_from_xlsx = pd.read_excel('df_midx.xlsx')
df_midx_from_xlsx
```
returns
```
c1 c2
0 1.0 b
1 b
2 2.0 a
3 b
```
The first element of column 'c2' is now set to 'b' instead of NaN.
#### Expected Output
```
c1 c2
0 1.0
1 b
2 2.0 a
3 b
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: ac174349b0e1525475c2354e1c0b8ee1ed1cabad
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-88-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: None
pip: 1.5.4
setuptools: 2.2
Cython: None
numpy: 1.11.0
scipy: 0.16.1
statsmodels: 0.6.1
xarray: None
IPython: 4.0.1
sphinx: None
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: 2.5.2
matplotlib: 1.5.0
openpyxl: 2.3.5
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13511/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13511/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13512 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13512/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13512/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13512/events | https://github.com/pandas-dev/pandas/pull/13512 | 162,288,623 | MDExOlB1bGxSZXF1ZXN0NzUyMDg0Nzc= | 13,512 | To numeric enhance | {
"avatar_url": "https://avatars.githubusercontent.com/u/6215361?v=4",
"events_url": "https://api.github.com/users/nparley/events{/privacy}",
"followers_url": "https://api.github.com/users/nparley/followers",
"following_url": "https://api.github.com/users/nparley/following{/other_user}",
"gists_url": "https://api.github.com/users/nparley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nparley",
"id": 6215361,
"login": "nparley",
"node_id": "MDQ6VXNlcjYyMTUzNjE=",
"organizations_url": "https://api.github.com/users/nparley/orgs",
"received_events_url": "https://api.github.com/users/nparley/received_events",
"repos_url": "https://api.github.com/users/nparley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nparley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nparley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nparley"
} | []
| closed | false | null | []
| null | 1 | 2016-06-25T16:27:22Z | 2016-06-27T06:42:30Z | 2016-06-27T06:42:30Z | CONTRIBUTOR | null | This is a test PR copy of #13425 to test travis - do not merge
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13512/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13512/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13512.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13512",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13512.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13512"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13513 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13513/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13513/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13513/events | https://github.com/pandas-dev/pandas/pull/13513 | 162,308,805 | MDExOlB1bGxSZXF1ZXN0NzUyMTk0NTQ= | 13,513 | ENH: add time-window capability to .rolling | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"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"
} | 71 | 2016-06-26T02:15:05Z | 2020-09-18T11:02:50Z | 2016-07-20T17:23:59Z | CONTRIBUTOR | null | xref #13327
closes #936
This [notebook shows the usecase](http://nbviewer.jupyter.org/gist/jreback/186d09a99902a17a095d99ac6a5e4cd3)
- implement lint checking for cython (currently only for windows.pyx), xref #12995
This implements time-ware windows, IOW, to a `.rolling()` you can now pass a ragged / sparse timeseries and have it work with an offset (e.g. like `2s`). Previously you _could_ achieve these results by resampling first, then using an integer period (though you would have to jump thru hoops when crossing day boundaries and such).
This now provides a nice easy / performant implementation (as indicated on the linked notebook, min/max impl is giving scaling issues).
```
In [1]: df = DataFrame({'B': range(5)})
In [2]: df.index = [Timestamp('20130101 09:00:00'),
...: Timestamp('20130101 09:00:02'),
...: Timestamp('20130101 09:00:03'),
...: Timestamp('20130101 09:00:05'),
...: Timestamp('20130101 09:00:06')]
In [3]: df
Out[3]:
B
2013-01-01 09:00:00 0
2013-01-01 09:00:02 1
2013-01-01 09:00:03 2
2013-01-01 09:00:05 3
2013-01-01 09:00:06 4
In [4]: df.rolling(2, min_periods=1).sum()
Out[4]:
B
2013-01-01 09:00:00 0.0
2013-01-01 09:00:02 1.0
2013-01-01 09:00:03 3.0
2013-01-01 09:00:05 5.0
2013-01-01 09:00:06 7.0
In [5]: df.rolling('2s', min_periods=1).sum()
Out[5]:
B
2013-01-01 09:00:00 0.0
2013-01-01 09:00:02 1.0
2013-01-01 09:00:03 3.0
2013-01-01 09:00:05 3.0
2013-01-01 09:00:06 7.0
```
| {
"+1": 4,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 4,
"laugh": 0,
"rocket": 0,
"total_count": 8,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13513/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13513/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13513.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13513",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13513.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13513"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13514 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13514/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13514/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13514/events | https://github.com/pandas-dev/pandas/pull/13514 | 162,312,131 | MDExOlB1bGxSZXF1ZXN0NzUyMjEzMDM= | 13,514 | BUG/PERF: Sort mixed-int in Py3, fix Index.difference | {
"avatar_url": "https://avatars.githubusercontent.com/u/9507544?v=4",
"events_url": "https://api.github.com/users/pijucha/events{/privacy}",
"followers_url": "https://api.github.com/users/pijucha/followers",
"following_url": "https://api.github.com/users/pijucha/following{/other_user}",
"gists_url": "https://api.github.com/users/pijucha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pijucha",
"id": 9507544,
"login": "pijucha",
"node_id": "MDQ6VXNlcjk1MDc1NDQ=",
"organizations_url": "https://api.github.com/users/pijucha/orgs",
"received_events_url": "https://api.github.com/users/pijucha/received_events",
"repos_url": "https://api.github.com/users/pijucha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pijucha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pijucha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pijucha"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "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-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"
} | 29 | 2016-06-26T04:33:36Z | 2016-07-19T14:50:49Z | 2016-07-19T01:52:00Z | CONTRIBUTOR | null | - [x] fixes some issues from #13432
- [x] closes #12044
- [x] closes #12814
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
---
1. Added an internal `safe_sort` to safely sort mixed-integer
arrays in Python3.
2. Changed Index.difference and Index.symmetric_difference
in order to:
- sort mixed-int Indexes (#13432)
- improve performance (#12044)
3. Fixed DataFrame.join which raised in Python3 with mixed-int
non-unique indexes (issue with sorting mixed-ints, #12814)
4. Fixed Index.union returning an empty Index when one of
arguments was a named empty Index (#13432)
Benchmarks (for `index_object` only):
```
]$ asv compare bf47 a02f -f 1.5 -s
Benchmarks that have improved:
before after ratio
[bf47 ] [a02f ]
- 155.66ms 10.32ms 0.07 index_object.index_datetime_set_difference.time_index_datetime_difference
- 154.66ms 2.98ms 0.02 index_object.index_datetime_set_difference.time_index_datetime_difference_disjoint
- 391.45ms 10.65ms 0.03 index_object.index_datetime_set_difference.time_index_datetime_symmetric_difference
- 195.55ms 88.95ms 0.45 index_object.index_int64_set_difference.time_index_int64_difference
- 440.93ms 103.65ms 0.24 index_object.index_int64_set_difference.time_index_int64_symmetric_difference
- 8.77ms 4.88ms 0.56 index_object.index_str_set_difference.time_str_symmetric_difference
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13514/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13514/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13514.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13514",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13514.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13514"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13515 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13515/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13515/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13515/events | https://github.com/pandas-dev/pandas/pull/13515 | 162,325,220 | MDExOlB1bGxSZXF1ZXN0NzUyMjgzMjg= | 13,515 | Force rebuilding of python files in PR | {
"avatar_url": "https://avatars.githubusercontent.com/u/6215361?v=4",
"events_url": "https://api.github.com/users/nparley/events{/privacy}",
"followers_url": "https://api.github.com/users/nparley/followers",
"following_url": "https://api.github.com/users/nparley/following{/other_user}",
"gists_url": "https://api.github.com/users/nparley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nparley",
"id": 6215361,
"login": "nparley",
"node_id": "MDQ6VXNlcjYyMTUzNjE=",
"organizations_url": "https://api.github.com/users/nparley/orgs",
"received_events_url": "https://api.github.com/users/nparley/received_events",
"repos_url": "https://api.github.com/users/nparley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nparley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nparley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nparley"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 11 | 2016-06-26T12:14:51Z | 2016-06-27T13:04:04Z | 2016-06-27T13:04:03Z | CONTRIBUTOR | null | Force the rebuilding of cython files in PR as can't rely on the git history
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13515/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13515/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13515.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13515",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13515.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13515"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13516 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13516/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13516/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13516/events | https://github.com/pandas-dev/pandas/pull/13516 | 162,333,020 | MDExOlB1bGxSZXF1ZXN0NzUyMzI3MzY= | 13,516 | BUG: Can't store callables using __setitem__ | {
"avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4",
"events_url": "https://api.github.com/users/evanpw/events{/privacy}",
"followers_url": "https://api.github.com/users/evanpw/followers",
"following_url": "https://api.github.com/users/evanpw/following{/other_user}",
"gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/evanpw",
"id": 1621449,
"login": "evanpw",
"node_id": "MDQ6VXNlcjE2MjE0NDk=",
"organizations_url": "https://api.github.com/users/evanpw/orgs",
"received_events_url": "https://api.github.com/users/evanpw/received_events",
"repos_url": "https://api.github.com/users/evanpw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/evanpw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/evanpw"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 5 | 2016-06-26T15:40:42Z | 2016-07-01T14:18:43Z | 2016-07-01T14:18:37Z | CONTRIBUTOR | null | - [X] closes #13299
- [X] tests added / passed
- [X] passes `git diff upstream/master | flake8 --diff`
- [X] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13516/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13516/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13516.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13516",
"merged_at": "2016-07-01T14:18:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13516.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13516"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13517 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13517/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13517/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13517/events | https://github.com/pandas-dev/pandas/issues/13517 | 162,336,083 | MDU6SXNzdWUxNjIzMzYwODM= | 13,517 | Index.map should allow dict as argument | {
"avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4",
"events_url": "https://api.github.com/users/evanpw/events{/privacy}",
"followers_url": "https://api.github.com/users/evanpw/followers",
"following_url": "https://api.github.com/users/evanpw/following{/other_user}",
"gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/evanpw",
"id": 1621449,
"login": "evanpw",
"node_id": "MDQ6VXNlcjE2MjE0NDk=",
"organizations_url": "https://api.github.com/users/evanpw/orgs",
"received_events_url": "https://api.github.com/users/evanpw/received_events",
"repos_url": "https://api.github.com/users/evanpw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/evanpw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/evanpw"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "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": "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 | []
| null | 2 | 2016-06-26T16:45:45Z | 2019-06-28T16:27:52Z | 2019-06-28T16:27:51Z | CONTRIBUTOR | null | Series.map works when passed a dict, but Index.map doesn't:
``` .python
>>> s = pd.Series(['a', 'b', 'c', 'd'], index=['a', 'b', 'c', 'd'])
>>> d = {'a': 0, 'b': 1, 'c': 2, 'd': 3}
>>> s.map(d)
a 0
b 1
c 2
d 3
dtype: int64
>>> s.index.map(d)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/evanpw/Workspace/pandas/pandas/indexes/base.py", line 2305, in map
return self._arrmap(self.values, mapper)
File "pandas/src/generated.pyx", line 2356, in pandas.algos.arrmap_object (pandas/algos.c:70221)
TypeError: 'dict' object is not callable
```
PR to follow shortly
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13517/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13517/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13518 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13518/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13518/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13518/events | https://github.com/pandas-dev/pandas/pull/13518 | 162,337,536 | MDExOlB1bGxSZXF1ZXN0NzUyMzUyMDY= | 13,518 | ENH: Allow dict as the argument to Index.map (GH13517) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1621449?v=4",
"events_url": "https://api.github.com/users/evanpw/events{/privacy}",
"followers_url": "https://api.github.com/users/evanpw/followers",
"following_url": "https://api.github.com/users/evanpw/following{/other_user}",
"gists_url": "https://api.github.com/users/evanpw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/evanpw",
"id": 1621449,
"login": "evanpw",
"node_id": "MDQ6VXNlcjE2MjE0NDk=",
"organizations_url": "https://api.github.com/users/evanpw/orgs",
"received_events_url": "https://api.github.com/users/evanpw/received_events",
"repos_url": "https://api.github.com/users/evanpw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/evanpw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/evanpw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/evanpw"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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 | []
| null | 4 | 2016-06-26T17:22:49Z | 2016-11-16T22:23:39Z | 2016-11-16T22:23:39Z | CONTRIBUTOR | null | - [X] closes #13517
- [X] tests added / passed
- [X] passes `git diff upstream/master | flake8 --diff`
- [X] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13518/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13518/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13518.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13518",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13518.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13518"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13519 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13519/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13519/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13519/events | https://github.com/pandas-dev/pandas/issues/13519 | 162,348,541 | MDU6SXNzdWUxNjIzNDg1NDE= | 13,519 | groupby + shift drops group columns when as_index is False | {
"avatar_url": "https://avatars.githubusercontent.com/u/4710853?v=4",
"events_url": "https://api.github.com/users/tjader/events{/privacy}",
"followers_url": "https://api.github.com/users/tjader/followers",
"following_url": "https://api.github.com/users/tjader/following{/other_user}",
"gists_url": "https://api.github.com/users/tjader/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tjader",
"id": 4710853,
"login": "tjader",
"node_id": "MDQ6VXNlcjQ3MTA4NTM=",
"organizations_url": "https://api.github.com/users/tjader/orgs",
"received_events_url": "https://api.github.com/users/tjader/received_events",
"repos_url": "https://api.github.com/users/tjader/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tjader/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tjader/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tjader"
} | [
{
"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"
}
]
| 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"
} | 7 | 2016-06-26T21:23:52Z | 2021-05-01T22:32:16Z | null | NONE | null | Using groupby + shift seems to have changed behaviour in 0.17 and 0.18 compared to 0.16.
With as_index=False, I would expect the columns that the groupby is made over to remain in the output dataframe, but they are no longer present.
#### Code Sample, a copy-pastable example if possible
``` python
>>>import pandas as pd
>>>import numpy as np
>>>df = pd.DataFrame({'A': [1.0, 1, 1, 2, 2, 3], 'B': [1.0, 2, 3, 4, 5, 6]})
>>>df
A B
0 1.0 1.0
1 1.0 2.0
2 1.0 3.0
3 2.0 4.0
4 2.0 5.0
5 3.0 6.0
>>>df_sorted.groupby('A', as_index=False).shift(1)
B
0 NaN
1 1.0
2 2.0
3 NaN
4 4.0
5 NaN
```
#### Expected Output
``` python
>>>pd.DataFrame({'A':[np.nan, 1, 1, np.nan, 2, np.nan], 'B':[np.nan, 1, 2, np.nan, 4, np.nan]})
A B
0 NaN NaN
1 1.0 1.0
2 1.0 2.0
3 NaN NaN
4 2.0 4.0
5 NaN NaN
```
#### output of `pd.show_versions()`
``` python
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.10.4
scipy: 0.17.1
statsmodels: None
xarray: 0.7.2
IPython: None
sphinx: None
patsy: None
dateutil: 2.4.1
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
```
I have also confirmed the issue on an similar install Linux installation using pandas 0.18.1
| {
"+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/13519/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13519/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13520 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13520/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13520/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13520/events | https://github.com/pandas-dev/pandas/issues/13520 | 162,463,522 | MDU6SXNzdWUxNjI0NjM1MjI= | 13,520 | DOC: better warning on chained resample(...) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4",
"events_url": "https://api.github.com/users/chris-b1/events{/privacy}",
"followers_url": "https://api.github.com/users/chris-b1/followers",
"following_url": "https://api.github.com/users/chris-b1/following{/other_user}",
"gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chris-b1",
"id": 1924092,
"login": "chris-b1",
"node_id": "MDQ6VXNlcjE5MjQwOTI=",
"organizations_url": "https://api.github.com/users/chris-b1/orgs",
"received_events_url": "https://api.github.com/users/chris-b1/received_events",
"repos_url": "https://api.github.com/users/chris-b1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chris-b1"
} | [
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 5 | 2016-06-27T14:19:57Z | 2016-07-19T13:15:22Z | 2016-07-19T13:15:22Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
``` python
In [49]: df = pd.DataFrame({'a': 1.}, index=pd.date_range('2014-01-01', '2015-12-31'))
In [50]: df.resample('M').pct_change()
FutureWarning: .resample() is now a deferred operation
use .resample(...).mean() instead of .resample(...)
if __name__ == '__main__':
Out[50]:
a
2014-01-31 NaN
<snip>
```
#### Expected Output
no warning
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.0
setuptools: 20.2.2
Cython: 0.22.1
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.6.1
xarray: None
IPython: 4.0.3
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: 2.0.2
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: 0.999
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: 1.0.5
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: 0.2.0
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13520/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13520/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13521 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13521/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13521/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13521/events | https://github.com/pandas-dev/pandas/issues/13521 | 162,542,320 | MDU6SXNzdWUxNjI1NDIzMjA= | 13,521 | DataFrame.query() could be vulnerable to SQL injections like attacks if the user doesn't know what they are doing | {
"avatar_url": "https://avatars.githubusercontent.com/u/5765379?v=4",
"events_url": "https://api.github.com/users/ChristianKleineidam/events{/privacy}",
"followers_url": "https://api.github.com/users/ChristianKleineidam/followers",
"following_url": "https://api.github.com/users/ChristianKleineidam/following{/other_user}",
"gists_url": "https://api.github.com/users/ChristianKleineidam/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ChristianKleineidam",
"id": 5765379,
"login": "ChristianKleineidam",
"node_id": "MDQ6VXNlcjU3NjUzNzk=",
"organizations_url": "https://api.github.com/users/ChristianKleineidam/orgs",
"received_events_url": "https://api.github.com/users/ChristianKleineidam/received_events",
"repos_url": "https://api.github.com/users/ChristianKleineidam/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ChristianKleineidam/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ChristianKleineidam/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ChristianKleineidam"
} | [
{
"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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 7 | 2016-06-27T20:35:29Z | 2020-03-03T13:02:32Z | 2016-06-28T23:02:33Z | NONE | null | Currently DataFrame.query() takes a string to query a database in a way that's quite similar to how an SQL query reads data from a database. If a user writes code that uses pythons standard string replacement or that uses regex, the code is vunerable in a similar way to how SQL queries that are build with string replacement and regex are vulnerable.
Pythons [sqlite3 ](https://docs.python.org/2/library/sqlite3.html) writes in it's documentation:
```
# Never do this -- insecure!
symbol = 'RHAT'
c.execute("SELECT * FROM stocks WHERE symbol = '%s'" % symbol)
# Do this instead
t = ('RHAT',)
c.execute('SELECT * FROM stocks WHERE symbol=?', t)
```
I think it would be valuable to provide a similar API for DataFrame.query(). In most cases DataFrame.query() likely will be used in scientific computing context where injection attacks aren't a concern but sooner or later someone will write code with DataFrame.query() where injection attacks are a concern.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13521/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13521/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13522 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13522/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13522/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13522/events | https://github.com/pandas-dev/pandas/issues/13522 | 162,569,194 | MDU6SXNzdWUxNjI1NjkxOTQ= | 13,522 | Assigning a string index as a column once can make further assignments affect both index and column. | {
"avatar_url": "https://avatars.githubusercontent.com/u/4710853?v=4",
"events_url": "https://api.github.com/users/tjader/events{/privacy}",
"followers_url": "https://api.github.com/users/tjader/followers",
"following_url": "https://api.github.com/users/tjader/following{/other_user}",
"gists_url": "https://api.github.com/users/tjader/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tjader",
"id": 4710853,
"login": "tjader",
"node_id": "MDQ6VXNlcjQ3MTA4NTM=",
"organizations_url": "https://api.github.com/users/tjader/orgs",
"received_events_url": "https://api.github.com/users/tjader/received_events",
"repos_url": "https://api.github.com/users/tjader/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tjader/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tjader/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tjader"
} | [
{
"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": "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"
} | 1 | 2016-06-27T23:14:37Z | 2016-08-17T22:03:59Z | 2016-08-17T22:03:59Z | NONE | null | If you assign the dataframe's index to as a column as well, without resetting the index, any subsequent assignments on the column seem to affect both the column as well as the index.
The behaviour is there for Index, Int64Index, and Float64Index but not DatetimeIndex.
#### Code Sample, a copy-pastable example if possible.
``` python
>>> import pandas as pd
>>> df=pd.DataFrame(index=['A', 'B', 'C'])
>>> df['X']=df.index
>>> df
X
A A
B B
C C
>>> df['X']=['x', 'y', 'z']
>>> df
X
x x
y y
z z
>>> df.ix[0, 'X']='q'
>>> df
X
q q
y y
z z
```
#### Expected Output
``` python
X
A x
B y
C z
```
#### output of `pd.show_versions()`
``` python
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.10.4
scipy: 0.17.1
statsmodels: None
xarray: 0.7.2
IPython: None
sphinx: None
patsy: None
dateutil: 2.4.1
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13522/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13522/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13523 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13523/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13523/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13523/events | https://github.com/pandas-dev/pandas/issues/13523 | 162,647,540 | MDU6SXNzdWUxNjI2NDc1NDA= | 13,523 | COMPAT: statsmodels 0.8 release | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 10 | 2016-06-28T09:59:04Z | 2017-03-23T22:36:58Z | 2017-03-23T13:39:59Z | CONTRIBUTOR | null | https://groups.google.com/forum/m/?pli=1#!topic/pystatsmodels/VT24vE45oog
is out in pre release - would be nice to test with pandas (master and release) and report any issues
should also add to the ci once released
https://github.com/statsmodels/statsmodels/
| {
"+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/13523/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13523/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13524 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13524/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13524/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13524/events | https://github.com/pandas-dev/pandas/issues/13524 | 162,698,328 | MDU6SXNzdWUxNjI2OTgzMjg= | 13,524 | Appending Pandas dataframes in for loop results in ValueError | {
"avatar_url": "https://avatars.githubusercontent.com/u/15664307?v=4",
"events_url": "https://api.github.com/users/lvphj/events{/privacy}",
"followers_url": "https://api.github.com/users/lvphj/followers",
"following_url": "https://api.github.com/users/lvphj/following{/other_user}",
"gists_url": "https://api.github.com/users/lvphj/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lvphj",
"id": 15664307,
"login": "lvphj",
"node_id": "MDQ6VXNlcjE1NjY0MzA3",
"organizations_url": "https://api.github.com/users/lvphj/orgs",
"received_events_url": "https://api.github.com/users/lvphj/received_events",
"repos_url": "https://api.github.com/users/lvphj/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lvphj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lvphj/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lvphj"
} | [
{
"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-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-06-28T14:22:02Z | 2016-09-07T13:18:27Z | 2016-09-07T13:18:27Z | NONE | null | I recently posted this on StackOverflow. It seems to be a bug so I am posting here as well.
I want to generate a dataframe that is created by appended several separate dataframes generated in a for loop. Each individual dataframe consists of a name column, a range of integers and a column identifying a category to which the integer belongs (e.g. quintile 1 to 5). If I generate each dataframe individually and then append one to the other to create a 'master' dataframe then there are no problems. However, when I use a loop to create each individual dataframe then trying to append a dataframe to the master dataframe results in:
`ValueError: incompatible categories in categorical concat`
A work-around (suggested by jezrael) involved appending each dataframe to a list of dataframes and concatenating them using pd.concat.
I've written a simplified loop to illustrate:
#### Code Sample, a copy-pastable example if possible
``` python
import numpy as np
import pandas as pd
# Define column names
colNames = ('a','b','c')
# Define a dataframe with the required column names
masterDF = pd.DataFrame(columns = colNames)
# A list of the group names
names = ['Group1','Group2','Group3']
# Create a dataframe for each group
for i in names:
tempDF = pd.DataFrame(columns = colNames)
tempDF['a'] = np.arange(1,11,1)
tempDF['b'] = i
tempDF['c'] = pd.cut(np.arange(1,11,1),
bins = np.linspace(0,10,6),
labels = [1,2,3,4,5])
print(tempDF)
print('\n')
# Try to append temporary DF to master DF
masterDF = masterDF.append(tempDF,ignore_index=True)
print(masterDF)
```
#### Expected Output
```
a b c
0 1 Group1 1
1 2 Group1 1
2 3 Group1 2
3 4 Group1 2
4 5 Group1 3
5 6 Group1 3
6 7 Group1 4
7 8 Group1 4
8 9 Group1 5
9 10 Group1 5
10 11 Group2 1
11 12 Group2 1
12 13 Group2 2
13 14 Group2 2
...
28 29 Group3 5
29 30 Group3 5
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.4.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
pandas: 0.18.1
nose: None
pip: 1.5.6
setuptools: 20.1.1
Cython: None
numpy: 1.11.0
scipy: 0.16.1
statsmodels: None
xarray: None
IPython: 4.1.1
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: 2.3.2
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: 0.7.4.None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13524/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13524/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13525 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13525/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13525/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13525/events | https://github.com/pandas-dev/pandas/pull/13525 | 162,724,953 | MDExOlB1bGxSZXF1ZXN0NzU1MDU0MDM= | 13,525 | Fixes a missing ".reshape" call | {
"avatar_url": "https://avatars.githubusercontent.com/u/662606?v=4",
"events_url": "https://api.github.com/users/andyljones/events{/privacy}",
"followers_url": "https://api.github.com/users/andyljones/followers",
"following_url": "https://api.github.com/users/andyljones/following{/other_user}",
"gists_url": "https://api.github.com/users/andyljones/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/andyljones",
"id": 662606,
"login": "andyljones",
"node_id": "MDQ6VXNlcjY2MjYwNg==",
"organizations_url": "https://api.github.com/users/andyljones/orgs",
"received_events_url": "https://api.github.com/users/andyljones/received_events",
"repos_url": "https://api.github.com/users/andyljones/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/andyljones/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andyljones/subscriptions",
"type": "User",
"url": "https://api.github.com/users/andyljones"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 4 | 2016-06-28T16:08:09Z | 2016-07-21T16:47:34Z | 2016-07-06T21:31:17Z | NONE | null | closes https://github.com/pydata/pandas/issues/13287
Currently, some 2D arrays can go into [_possibly_infer_to_datetimelike](https://github.com/andyljones/pandas/blob/59b9e835d49036cabad19cf2c53140ac9f2eb465/pandas/core/common.py#L1133-L1222) and come out 1D. The issue is that the input is ravelled [at one point](https://github.com/andyljones/pandas/blob/59b9e835d49036cabad19cf2c53140ac9f2eb465/pandas/core/common.py#L1165), but only unravelled back to it's original form [if a certain path it taken through the function](https://github.com/andyljones/pandas/blob/59b9e835d49036cabad19cf2c53140ac9f2eb465/pandas/core/common.py#L1187). This pull request adds the same `.reshape(shape)` call to the _other_ path through the function.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13525/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13525/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13525.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13525",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13525.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13525"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13526 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13526/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13526/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13526/events | https://github.com/pandas-dev/pandas/pull/13526 | 162,764,976 | MDExOlB1bGxSZXF1ZXN0NzU1MzQ3MDE= | 13,526 | Cython cache diff compare | {
"avatar_url": "https://avatars.githubusercontent.com/u/6215361?v=4",
"events_url": "https://api.github.com/users/nparley/events{/privacy}",
"followers_url": "https://api.github.com/users/nparley/followers",
"following_url": "https://api.github.com/users/nparley/following{/other_user}",
"gists_url": "https://api.github.com/users/nparley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nparley",
"id": 6215361,
"login": "nparley",
"node_id": "MDQ6VXNlcjYyMTUzNjE=",
"organizations_url": "https://api.github.com/users/nparley/orgs",
"received_events_url": "https://api.github.com/users/nparley/received_events",
"repos_url": "https://api.github.com/users/nparley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nparley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nparley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nparley"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 9 | 2016-06-28T19:21:03Z | 2016-07-03T23:25:04Z | 2016-07-03T23:24:49Z | CONTRIBUTOR | null | As talked about in #13425 with @gfyoung and @jreback this PR does cython caching by comparing the pyx files and not relying on the git history.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13526/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13526/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13526.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13526",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13526.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13526"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13527 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13527/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13527/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13527/events | https://github.com/pandas-dev/pandas/issues/13527 | 162,804,239 | MDU6SXNzdWUxNjI4MDQyMzk= | 13,527 | Cannot get pandas.DataFrame.from_dict() to work with variable dict.values() length | {
"avatar_url": "https://avatars.githubusercontent.com/u/9138356?v=4",
"events_url": "https://api.github.com/users/akshayparopkari/events{/privacy}",
"followers_url": "https://api.github.com/users/akshayparopkari/followers",
"following_url": "https://api.github.com/users/akshayparopkari/following{/other_user}",
"gists_url": "https://api.github.com/users/akshayparopkari/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/akshayparopkari",
"id": 9138356,
"login": "akshayparopkari",
"node_id": "MDQ6VXNlcjkxMzgzNTY=",
"organizations_url": "https://api.github.com/users/akshayparopkari/orgs",
"received_events_url": "https://api.github.com/users/akshayparopkari/received_events",
"repos_url": "https://api.github.com/users/akshayparopkari/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/akshayparopkari/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akshayparopkari/subscriptions",
"type": "User",
"url": "https://api.github.com/users/akshayparopkari"
} | [
{
"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 | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2016-06-28T22:42:54Z | 2016-06-29T19:17:57Z | 2016-06-28T22:58:58Z | NONE | null | ### Code Sample
I am trying to get a DataFrame from dict whose values are of variable length. However, I get a `ValueError`.
```
In [1]: import numpy as np
In [2]: import pandas as pd
In [3]: x_dict = {"A{}".format(i): np.random.randint(1, 25, data) for i, data in enumerate([5, 10, 15, 20])}
In [4]: x_dict
Out[4]:
{'A0': array([ 5, 7, 17, 10, 24]),
'A1': array([ 4, 8, 11, 7, 9, 1, 23, 22, 20, 15]),
'A2': array([ 9, 5, 20, 2, 21, 12, 21, 8, 1, 10, 5, 21, 7, 9, 5]),
'A3': array([ 2, 1, 24, 21, 24, 16, 6, 9, 20, 7, 24, 11, 23, 15, 3, 22, 5,
21, 1, 20])}
In [5]: x_df = pd.DataFrame.from_dict(x_dict)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-e23195a7d765> in <module>()
----> 1 x_df = pd.DataFrame.from_dict(x_dict)
/python2.7/site-packages/pandas/core/frame.pyc in from_dict(cls, data, orient, dtype)
807 raise ValueError('only recognize index or columns for orient')
808
--> 809 return cls(data, index=index, columns=columns, dtype=dtype)
810
811 @deprecate_kwarg(old_arg_name='outtype', new_arg_name='orient')
/python2.7/site-packages/pandas/core/frame.pyc in __init__(self, data, index, columns, dtype, copy)
222 dtype=dtype, copy=copy)
223 elif isinstance(data, dict):
--> 224 mgr = self._init_dict(data, index, columns, dtype=dtype)
225 elif isinstance(data, ma.MaskedArray):
226 import numpy.ma.mrecords as mrecords
/python2.7/site-packages/pandas/core/frame.pyc in _init_dict(self, data, index, columns, dtype)
358 arrays = [data[k] for k in keys]
359
--> 360 return _arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype)
361
362 def _init_ndarray(self, values, index, columns, dtype=None, copy=False):
/python2.7/site-packages/pandas/core/frame.pyc in _arrays_to_mgr(arrays, arr_names, index, columns, dtype)
5229 # figure out the index, if necessary
5230 if index is None:
-> 5231 index = extract_index(arrays)
5232 else:
5233 index = _ensure_index(index)
/python2.7/site-packages/pandas/core/frame.pyc in extract_index(data)
5277 lengths = list(set(raw_lengths))
5278 if len(lengths) > 1:
-> 5279 raise ValueError('arrays must all be same length')
5280
5281 if have_dicts:
ValueError: arrays must all be same length
```
### Expected output
DataFrame with keys as columns and values as rows.
```
In [11]: x_df
Out[11]:
A1 A0 A3 A2
0 4.0 5.0 2.0 9.0
1 8.0 7.0 1.0 5.0
2 11.0 17.0 24.0 20.0
3 7.0 10.0 21.0 2.0
4 9.0 24.0 24.0 21.0
5 1.0 NaN 16.0 12.0
6 23.0 NaN 6.0 21.0
7 22.0 NaN 9.0 8.0
8 20.0 NaN 20.0 1.0
9 15.0 NaN 7.0 10.0
10 NaN NaN 24.0 5.0
11 NaN NaN 11.0 21.0
12 NaN NaN 23.0 7.0
13 NaN NaN 15.0 9.0
14 NaN NaN 3.0 5.0
15 NaN NaN 22.0 NaN
16 NaN NaN 5.0 NaN
17 NaN NaN 21.0 NaN
18 NaN NaN 1.0 NaN
19 NaN NaN 20.0 NaN
```
### output of `pd.show_versions()`
INSTALLED VERSIONS
- commit: None
- python: 2.7.11.final.0
- python-bits: 64
- OS: Darwin
- OS-release: 15.5.0
- machine: x86_64
- processor: i386
- byteorder: little
- LC_ALL: None
- LANG: en_US.UTF
- pandas: 0.18.1
- nose: 1.3.7
- pip: 8.1.2
- setuptools: 23.1.0
- Cython: 0.24
- numpy: 1.11.1
- scipy: 0.17.1
- statsmodels: 0.6.1
- xarray: None
- IPython: 4.2.0
- sphinx: 1.4.4
- patsy: None
- dateutil: 2.5.3
- pytz: 2016.4
- blosc: None
- bottleneck: None
- tables: None
- numexpr: None
- matplotlib: 1.5.1
- openpyxl: None
- xlrd: 1.0.0
- xlwt: None
- xlsxwriter: None
- lxml: None
- bs4: 4.4.1
- html5lib: None
- httplib2: None
- apiclient: None
- sqlalchemy: None
- pymysql: None
- psycopg2: None
- jinja2: 2.8
- boto: None
- pandas_datareader: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13527/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13527/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13528 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13528/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13528/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13528/events | https://github.com/pandas-dev/pandas/pull/13528 | 162,824,885 | MDExOlB1bGxSZXF1ZXN0NzU1Nzc2MTk= | 13,528 | DOC: update brief documentation on visualization projects | {
"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"
}
]
| 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-06-29T01:54:32Z | 2016-06-29T10:16:18Z | 2016-06-29T10:15:56Z | CONTRIBUTOR | null | - [ X] passes `git diff upstream/master | flake8 --diff`
Minor Documentaion change to note that Vincent project has intentionally been abandoned and is not longer maintained. Add a pointer to IPython Vega successor.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13528/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13528/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13528.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13528",
"merged_at": "2016-06-29T10:15:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13528.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13528"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13529 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13529/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13529/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13529/events | https://github.com/pandas-dev/pandas/issues/13529 | 162,881,697 | MDU6SXNzdWUxNjI4ODE2OTc= | 13,529 | FloatingPointError on ewm().std() | {
"avatar_url": "https://avatars.githubusercontent.com/u/456541?v=4",
"events_url": "https://api.github.com/users/chrism2671/events{/privacy}",
"followers_url": "https://api.github.com/users/chrism2671/followers",
"following_url": "https://api.github.com/users/chrism2671/following{/other_user}",
"gists_url": "https://api.github.com/users/chrism2671/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrism2671",
"id": 456541,
"login": "chrism2671",
"node_id": "MDQ6VXNlcjQ1NjU0MQ==",
"organizations_url": "https://api.github.com/users/chrism2671/orgs",
"received_events_url": "https://api.github.com/users/chrism2671/received_events",
"repos_url": "https://api.github.com/users/chrism2671/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrism2671/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrism2671/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrism2671"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| null | 3 | 2016-06-29T09:36:16Z | 2016-06-29T12:28:54Z | 2016-06-29T11:17:32Z | NONE | null | I'm not sure if this is a bug, but I'm pretty sure I shouldn't be seeing these warnings. Any clarification would be a real help, as I need to ensure the accuracy of the calculations in all circumstances (including situations where the deviation is effectively zero)
Paste-ready code:
```
import traceback
import warnings
import sys
import pandas as pd
import numpy as np
np.seterr(all='raise')
def warn_with_traceback(message, category, filename, lineno, file=None, line=None):
traceback.print_stack()
log = file if hasattr(file,'write') else sys.stderr
log.write(warnings.formatwarning(message, category, filename, lineno, line))
warnings.showwarning = warn_with_traceback
pd.Series(np.random.randn(50)).pct_change().ewm(span=35, min_periods=35).std()
```
**Expected output:**
pd.Series of exponentially weighted standard deviation.
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.2.0-34-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.10.4
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: 3.6.0
bs4: 4.4.0
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: 0.2.1
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13529/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13529/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13530 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13530/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13530/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13530/events | https://github.com/pandas-dev/pandas/issues/13530 | 162,932,173 | MDU6SXNzdWUxNjI5MzIxNzM= | 13,530 | groupby on single col df results in ValueError on Master, works on 0.18.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/2933165?v=4",
"events_url": "https://api.github.com/users/alan-wong/events{/privacy}",
"followers_url": "https://api.github.com/users/alan-wong/followers",
"following_url": "https://api.github.com/users/alan-wong/following{/other_user}",
"gists_url": "https://api.github.com/users/alan-wong/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alan-wong",
"id": 2933165,
"login": "alan-wong",
"node_id": "MDQ6VXNlcjI5MzMxNjU=",
"organizations_url": "https://api.github.com/users/alan-wong/orgs",
"received_events_url": "https://api.github.com/users/alan-wong/received_events",
"repos_url": "https://api.github.com/users/alan-wong/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alan-wong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alan-wong/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alan-wong"
} | [
{
"color": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 5 | 2016-06-29T13:57:43Z | 2016-07-05T08:40:12Z | 2016-07-05T08:39:35Z | NONE | null | On 0.18.1 the following works without error
```
df = pd.DataFrame({'a':list('abssbab')})
df.groupby('a').count()
```
this results in an empty df:
```
Out[255]:
Empty DataFrame
Columns: []
Index: [a, b, s]
```
On Master it results in an error see related: https://github.com/pydata/pandas/issues/13393
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13530/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13530/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13531 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13531/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13531/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13531/events | https://github.com/pandas-dev/pandas/issues/13531 | 162,945,037 | MDU6SXNzdWUxNjI5NDUwMzc= | 13,531 | read_gbq should offer an option to save to dataset | {
"avatar_url": "https://avatars.githubusercontent.com/u/18690?v=4",
"events_url": "https://api.github.com/users/iros/events{/privacy}",
"followers_url": "https://api.github.com/users/iros/followers",
"following_url": "https://api.github.com/users/iros/following{/other_user}",
"gists_url": "https://api.github.com/users/iros/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/iros",
"id": 18690,
"login": "iros",
"node_id": "MDQ6VXNlcjE4Njkw",
"organizations_url": "https://api.github.com/users/iros/orgs",
"received_events_url": "https://api.github.com/users/iros/received_events",
"repos_url": "https://api.github.com/users/iros/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/iros/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iros/subscriptions",
"type": "User",
"url": "https://api.github.com/users/iros"
} | [
{
"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": "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 | []
| null | 6 | 2016-06-29T14:48:23Z | 2016-09-11T16:48:44Z | 2016-09-11T16:48:39Z | NONE | null | Right now `read_gbq` runs a query and retrieves the results into a data_frame. If one wants to also save it into a dataset table, one then has to call `to_gbq` which would stream the results back.
The `bq` command line tool has an option to pass a destination dataset table immediately on query to store the results.
```
cat queries/sample.sql | bq query --format csv
--destination_table=collection.table_name > output.csv
```
Ideally `read_gbq` would have an additional option like `destination_table` that could store the results immediately.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13531/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13531/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13532 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13532/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13532/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13532/events | https://github.com/pandas-dev/pandas/pull/13532 | 163,004,538 | MDExOlB1bGxSZXF1ZXN0NzU3MDUxMDc= | 13,532 | DOC: update sphinx requirements for doc building | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 8 | 2016-06-29T19:16:49Z | 2016-07-04T10:37:53Z | 2016-07-04T10:37:52Z | MEMBER | null | Simplified the version requirement for sphinx (>= 1.3.2). In principle >= 1.2.2 but < 1.3.0 also works, but left it out for simplicity.
@cswarth Do you have other things that you find unclear about the requirements for the doc build environment?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13532/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13532/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13532.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13532",
"merged_at": "2016-07-04T10:37:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13532.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13532"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13533 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13533/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13533/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13533/events | https://github.com/pandas-dev/pandas/pull/13533 | 163,062,416 | MDExOlB1bGxSZXF1ZXN0NzU3NDc1Mjc= | 13,533 | Update documentation for rename | {
"avatar_url": "https://avatars.githubusercontent.com/u/50109?v=4",
"events_url": "https://api.github.com/users/gliptak/events{/privacy}",
"followers_url": "https://api.github.com/users/gliptak/followers",
"following_url": "https://api.github.com/users/gliptak/following{/other_user}",
"gists_url": "https://api.github.com/users/gliptak/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gliptak",
"id": 50109,
"login": "gliptak",
"node_id": "MDQ6VXNlcjUwMTA5",
"organizations_url": "https://api.github.com/users/gliptak/orgs",
"received_events_url": "https://api.github.com/users/gliptak/received_events",
"repos_url": "https://api.github.com/users/gliptak/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gliptak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gliptak/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gliptak"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 5 | 2016-06-30T01:26:49Z | 2016-06-30T22:59:17Z | 2016-06-30T22:59:11Z | CONTRIBUTOR | null | - [x] closes #13473
- [ ] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13533/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13533/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13533.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13533",
"merged_at": "2016-06-30T22:59:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13533.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13533"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13534 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13534/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13534/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13534/events | https://github.com/pandas-dev/pandas/pull/13534 | 163,074,460 | MDExOlB1bGxSZXF1ZXN0NzU3NTU3MjA= | 13,534 | DOC: Update old Google Code and SourceForge links | {
"avatar_url": "https://avatars.githubusercontent.com/u/2073530?v=4",
"events_url": "https://api.github.com/users/proinsias/events{/privacy}",
"followers_url": "https://api.github.com/users/proinsias/followers",
"following_url": "https://api.github.com/users/proinsias/following{/other_user}",
"gists_url": "https://api.github.com/users/proinsias/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/proinsias",
"id": 2073530,
"login": "proinsias",
"node_id": "MDQ6VXNlcjIwNzM1MzA=",
"organizations_url": "https://api.github.com/users/proinsias/orgs",
"received_events_url": "https://api.github.com/users/proinsias/received_events",
"repos_url": "https://api.github.com/users/proinsias/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/proinsias/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/proinsias/subscriptions",
"type": "User",
"url": "https://api.github.com/users/proinsias"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2016-06-30T03:38:02Z | 2016-07-05T08:38:32Z | 2016-07-05T08:38:26Z | 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/13534/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13534/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13534.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13534",
"merged_at": "2016-07-05T08:38:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13534.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13534"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/13535 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13535/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13535/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13535/events | https://github.com/pandas-dev/pandas/issues/13535 | 163,149,374 | MDU6SXNzdWUxNjMxNDkzNzQ= | 13,535 | Document pandas.DataFrame.to_stata data_label | {
"avatar_url": "https://avatars.githubusercontent.com/u/19708351?v=4",
"events_url": "https://api.github.com/users/frehoy/events{/privacy}",
"followers_url": "https://api.github.com/users/frehoy/followers",
"following_url": "https://api.github.com/users/frehoy/following{/other_user}",
"gists_url": "https://api.github.com/users/frehoy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/frehoy",
"id": 19708351,
"login": "frehoy",
"node_id": "MDQ6VXNlcjE5NzA4MzUx",
"organizations_url": "https://api.github.com/users/frehoy/orgs",
"received_events_url": "https://api.github.com/users/frehoy/received_events",
"repos_url": "https://api.github.com/users/frehoy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/frehoy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/frehoy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/frehoy"
} | [
{
"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": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
}
]
| 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"
} | 6 | 2016-06-30T12:06:29Z | 2016-07-19T01:59:54Z | 2016-07-19T01:59:54Z | NONE | null | I work with Pandas and Stata and found the DataFrame.to_stata() method very valuable. I would like to be able to assign variable labels in my .dta files but the data_label parameter of the DataFrame.to_stata() method is not documented so I do not know in which format to supply my variable labels.
I tried a dictionary of the form {'df column name' : 'wanted label'} but that returns
TypeError: unhashable type: 'slice'
Here is the page in the documentation I am referring to: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_stata.html#pandas.DataFrame.to_stata
If it could be updated to provide a working example of data_label I would be eternally grateful. This is my first issue on github, hope I specified it correctly, feel free to point out if I messed up the format somehow.
Thanks!
#### Code Sample, a copy-pastable example if possible
import pandas as pd
d = {'one' : [1., 2., 3., 4.]}
df = pd.DataFrame(d)
labdict = {'one': 'foo'}
df.to_stata('test.dta', write_index=False, data_label=labdict)
#### Expected Output
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.17.1
nose: 1.3.7
pip: 8.1.1
setuptools: 19.6.2
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
IPython: 4.0.3
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.6
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.5.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
Jinja2: 2.8
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13535/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13535/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13536 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13536/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13536/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13536/events | https://github.com/pandas-dev/pandas/issues/13536 | 163,162,429 | MDU6SXNzdWUxNjMxNjI0Mjk= | 13,536 | ENH: Support Stata variable labels | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
}
]
| 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"
} | 0 | 2016-06-30T13:14:56Z | 2016-07-19T01:59:54Z | 2016-07-19T01:59:54Z | CONTRIBUTOR | null | xref https://github.com/pydata/pandas/issues/13535#issuecomment-229652201
cc @frehoy
> It seems that is is almost implemented here.
>
> See
> https://github.com/pydata/pandas/blob/master/pandas/io/stata.py#L2057
>
> and
>
> https://github.com/pydata/pandas/blob/master/pandas/io/stata.py#L2134
>
> As you can see, this always passes the default None and so no labels are written.
>
> Mostly needs an external interface and a tiny amount of wiring up. And testing, esp that the labels can be read into Stata.
A possible API
``` python
import pandas as pd
d = {'one' : [1., 2., 3., 4.]}
df = pd.DataFrame(d)
labdict = {'one': 'foo'}
df.to_stata('test.dta', write_index=False, variab_labels=labdict)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13536/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13536/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13537 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13537/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13537/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13537/events | https://github.com/pandas-dev/pandas/issues/13537 | 163,172,958 | MDU6SXNzdWUxNjMxNzI5NTg= | 13,537 | Plot expressions | {
"avatar_url": "https://avatars.githubusercontent.com/u/143389?v=4",
"events_url": "https://api.github.com/users/wiso/events{/privacy}",
"followers_url": "https://api.github.com/users/wiso/followers",
"following_url": "https://api.github.com/users/wiso/following{/other_user}",
"gists_url": "https://api.github.com/users/wiso/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wiso",
"id": 143389,
"login": "wiso",
"node_id": "MDQ6VXNlcjE0MzM4OQ==",
"organizations_url": "https://api.github.com/users/wiso/orgs",
"received_events_url": "https://api.github.com/users/wiso/received_events",
"repos_url": "https://api.github.com/users/wiso/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wiso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wiso/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wiso"
} | [
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2016-06-30T14:01:26Z | 2016-07-01T07:31:13Z | 2016-07-01T02:25:00Z | NONE | null | It would be nice to have the possibility to plot expressions. Suppose I have a dataframe with three columns: col1, col2, col3. Now I can do:
```
df.plot.scatter(x='col1', y='col2')
```
it would be nice to be able to plot expressions directly:
```
df.plot.scatter(x='col1 ** 2', y = 'col2 / sqrt(col3)')
```
and also for other plotting methods (e.g. histograms)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13537/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13537/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13538 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13538/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13538/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13538/events | https://github.com/pandas-dev/pandas/issues/13538 | 163,174,912 | MDU6SXNzdWUxNjMxNzQ5MTI= | 13,538 | bug in bool type series logical AND operation | {
"avatar_url": "https://avatars.githubusercontent.com/u/2013465?v=4",
"events_url": "https://api.github.com/users/stsouko/events{/privacy}",
"followers_url": "https://api.github.com/users/stsouko/followers",
"following_url": "https://api.github.com/users/stsouko/following{/other_user}",
"gists_url": "https://api.github.com/users/stsouko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stsouko",
"id": 2013465,
"login": "stsouko",
"node_id": "MDQ6VXNlcjIwMTM0NjU=",
"organizations_url": "https://api.github.com/users/stsouko/orgs",
"received_events_url": "https://api.github.com/users/stsouko/received_events",
"repos_url": "https://api.github.com/users/stsouko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stsouko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stsouko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stsouko"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-06-30T14:10:25Z | 2016-08-25T10:20:52Z | 2016-08-25T10:20:52Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```
s1=pd.Series([True,False,True,True])
s2=pd.Series([True,True,False])
s1.index=pd.MultiIndex.from_tuples( [(0, 2), (1, 1), (1, 2), (2, 1)],names=['st', 'at'])
s2.index=pd.Index([0,1,2], name='st')
ds1=pd.DataFrame(s1)
ds2=pd.DataFrame(s2)
s3=pd.Series([True,False,True])
s4=pd.Series([True,True,False])
```
#### Expected Output
```
st at
0 2 True
1 1 False
1 2 True
2 1 False
dtype: bool
```
For series, `*` and `&` give different result:
```
In: s1 & s2
Out:
st at
0 2 False
1 1 False
1 2 False
2 1 False
dtype: bool
In: s1 * s2
Out:
st at
0 2 True
1 1 False
1 2 True
2 1 False
dtype: bool
```
BUT for dataframes they give the same:
```
In: ds1 * ds2
Out:
0
st at
0 2 True
1 1 False
1 2 True
2 1 False
In: ds1 & ds2
Out:
0
st at
0 2 True
1 1 False
1 2 True
2 1 False
```
and last for series with single index, also both `s3 & s4` or `s3 * s4` give:
```
0 True
1 False
2 False
dtype: bool
```
#### output of `pd.show_versions()`
pandas: 0.18.1
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13538/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13538/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13539 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13539/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13539/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13539/events | https://github.com/pandas-dev/pandas/issues/13539 | 163,233,958 | MDU6SXNzdWUxNjMyMzM5NTg= | 13,539 | partial slicing FAILS with a datetimeindex | {
"avatar_url": "https://avatars.githubusercontent.com/u/8282510?v=4",
"events_url": "https://api.github.com/users/randomgambit/events{/privacy}",
"followers_url": "https://api.github.com/users/randomgambit/followers",
"following_url": "https://api.github.com/users/randomgambit/following{/other_user}",
"gists_url": "https://api.github.com/users/randomgambit/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/randomgambit",
"id": 8282510,
"login": "randomgambit",
"node_id": "MDQ6VXNlcjgyODI1MTA=",
"organizations_url": "https://api.github.com/users/randomgambit/orgs",
"received_events_url": "https://api.github.com/users/randomgambit/received_events",
"repos_url": "https://api.github.com/users/randomgambit/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/randomgambit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/randomgambit/subscriptions",
"type": "User",
"url": "https://api.github.com/users/randomgambit"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 6 | 2016-06-30T18:33:52Z | 2016-07-01T12:42:26Z | 2016-07-01T11:45:42Z | NONE | null | Hi,
I have a simple dataframe with a multiindex.
```
stats.index.names
Out[67]: FrozenList([u'day', u'category'])
```
day is a time variable, category is a string.
```
stats.index.inferred_type
Out[69]: 'mixed'
stats.index.dtype_str
Out[68]: 'object'
```
if I type
```
idx=pd.IndexSlice
stats.loc[idx['2015-01-01',:],:]
```
I get the correct slice at '2015-01-01', that is all the observations for all the categories on that day.
If I type
```
idx=pd.IndexSlice
stats.loc[idx['2015',:],:]
```
I get back (almost) all my observations, even for years other than 2015.
What can be the problem here? I cannot paste the data unfortunately but I am happy to help in any way.
Thanks
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13539/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13539/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13540 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13540/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13540/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13540/events | https://github.com/pandas-dev/pandas/issues/13540 | 163,287,624 | MDU6SXNzdWUxNjMyODc2MjQ= | 13,540 | [Feature Request] Pandas.Series.info | {
"avatar_url": "https://avatars.githubusercontent.com/u/8196363?v=4",
"events_url": "https://api.github.com/users/dragonator4/events{/privacy}",
"followers_url": "https://api.github.com/users/dragonator4/followers",
"following_url": "https://api.github.com/users/dragonator4/following{/other_user}",
"gists_url": "https://api.github.com/users/dragonator4/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dragonator4",
"id": 8196363,
"login": "dragonator4",
"node_id": "MDQ6VXNlcjgxOTYzNjM=",
"organizations_url": "https://api.github.com/users/dragonator4/orgs",
"received_events_url": "https://api.github.com/users/dragonator4/received_events",
"repos_url": "https://api.github.com/users/dragonator4/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dragonator4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dragonator4/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dragonator4"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| {
"closed_at": 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-06-30T23:19:12Z | 2016-07-01T01:24:57Z | 2016-06-30T23:42:41Z | NONE | null | It would be great if Pandas Series got an info method, like Pandas DataFrame. My main interest is to find out memory usage.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13540/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13540/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13541 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13541/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13541/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13541/events | https://github.com/pandas-dev/pandas/issues/13541 | 163,379,393 | MDU6SXNzdWUxNjMzNzkzOTM= | 13,541 | CLN: unused parameters in 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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 2 | 2016-07-01T11:47:48Z | 2016-07-03T23:23:08Z | 2016-07-03T23:23:08Z | CONTRIBUTOR | null | xref #13167
cc @gfyoung
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13541/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13541/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13542 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13542/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13542/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13542/events | https://github.com/pandas-dev/pandas/issues/13542 | 163,383,935 | MDU6SXNzdWUxNjMzODM5MzU= | 13,542 | BUG: groupby.transform fails with incompatible size | {
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2016-07-01T12:17:55Z | 2016-08-15T17:52:44Z | 2016-08-15T17:52:44Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
``` python
np.random.seed(12345)
panel = pd.Panel(np.random.randn(125,200,10))
panel.iloc[:,:,0] = np.round(panel.iloc[:,:,0])
panel.iloc[:,:,1] = np.round(panel.iloc[:,:,1])
x = panel
cols = [0,1]
_x = x.swapaxes(0, 2).to_frame()
numeric_cols = []
for df_col in _x:
if df_col not in cols and pd.core.common.is_numeric_dtype(_x[df_col].dtype):
numeric_cols.append(df_col)
def _noop(df):
return df
groups = _x.groupby(cols)
groups.transform(_noop)
```
#### Expected Output
The original input. `_noop` is just a trivial example.
#### Error
``` python
C:\anaconda\lib\site-packages\pandas\core\internals.py in construction_error(tot_items, block_shape, axes, e)
3968 raise ValueError("Empty data passed with indices specified.")
3969 raise ValueError("Shape of passed values is {0}, indices imply {1}".format(
-> 3970 passed, implied))
3971
3972
ValueError: Shape of passed values is (8, 25000), indices imply (8, 25799)
```
#### Comments
The indices have reversed order, which is problem 1. Also, one index has lost a value.
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.1
statsmodels: 0.8.0.dev0+f060948
xarray: 0.7.2
IPython: 4.2.0
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: None
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: 0.2.1
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13542/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13542/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13543 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13543/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13543/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13543/events | https://github.com/pandas-dev/pandas/issues/13543 | 163,390,998 | MDU6SXNzdWUxNjMzOTA5OTg= | 13,543 | BUG: groupby.transform passing `Series` to transformation | {
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"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"
} | 11 | 2016-07-01T13:01:41Z | 2017-03-25T18:40:39Z | 2017-03-25T18:40:39Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
``` python
np.random.seed(12345)
panel = pd.Panel(np.random.randn(125,200,10))
panel.iloc[:,:,0] = np.round(panel.iloc[:,:,0])
panel.iloc[:,:,1] = np.round(panel.iloc[:,:,1])
x = panel
cols = [0,1]
_x = x.swapaxes(0, 2).to_frame()
numeric_cols = []
for df_col in _x:
if df_col not in cols and pd.core.common.is_numeric_dtype(_x[df_col].dtype):
numeric_cols.append(df_col)
calls = 0
def _print_type(df):
print(type(df))
return df
index = _x.index
_x.index = pd.RangeIndex(0, _x.shape[0])
groups = _x.groupby(cols)
out = groups.transform(_print_type)
```
#### Comment
The `slow_path` operated series by series rather than on a group DataFrame. Once the slow path is accepted, it operated on the group DataFrames. I have 59 groups in my example with 8 columns, and so it runs 8 times with Series from the first group DataFrame and then, once happy, runs 58 more times on the DataFrames.
The description says that it onlly operated on the group DataFrames (which is the correct behavior IMO)
#### Expected Output
Many lines of
```
<class 'pandas.core.frame.DataFrame'>
```
#### Actual Output
```
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
<class 'pandas.core.frame.DataFrame'>
...
<class 'pandas.core.frame.DataFrame'>
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.0
scipy: 0.17.1
statsmodels: 0.8.0.dev0+f060948
xarray: 0.7.2
IPython: 4.2.0
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.1
openpyxl: None
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: 0.2.1
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13543/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13543/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13544 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13544/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13544/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13544/events | https://github.com/pandas-dev/pandas/issues/13544 | 163,442,516 | MDU6SXNzdWUxNjM0NDI1MTY= | 13,544 | Plot area legend rendered incorrectly when moved out of the plot | {
"avatar_url": "https://avatars.githubusercontent.com/u/66145?v=4",
"events_url": "https://api.github.com/users/jldiaz/events{/privacy}",
"followers_url": "https://api.github.com/users/jldiaz/followers",
"following_url": "https://api.github.com/users/jldiaz/following{/other_user}",
"gists_url": "https://api.github.com/users/jldiaz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jldiaz",
"id": 66145,
"login": "jldiaz",
"node_id": "MDQ6VXNlcjY2MTQ1",
"organizations_url": "https://api.github.com/users/jldiaz/orgs",
"received_events_url": "https://api.github.com/users/jldiaz/received_events",
"repos_url": "https://api.github.com/users/jldiaz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jldiaz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jldiaz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jldiaz"
} | [
{
"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-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"
} | 6 | 2016-07-01T17:42:19Z | 2017-03-04T11:11:14Z | 2017-03-04T07:28:01Z | NONE | null | #### Code Sample, a copy-pastable example if possible
In area plots, the handles in the legend are made with filled rectangles, as for example in:
``` python
df = pd.DataFrame(np.random.rand(20, 5), columns=['A', 'B', 'C', 'D', 'E'])
df.plot(kind='area', linewidth=0.1)
```

However, if method `legend()` is used to alter the position of the legend, the handles are rendered as lines, which poses a problem if the line width is small, as in the following example:
``` python
df = pd.DataFrame(np.random.rand(20, 5), columns=['A', 'B', 'C', 'D', 'E'])
df.plot(kind='area', linewidth=0.1).legend(loc="center left", bbox_to_anchor=(1.02, 0.5))
```

#### output of `pd.show_versions()`
``` txt
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 3.19.0-37-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 8.0.2
setuptools: 19.6.2
Cython: None
numpy: 1.10.4
scipy: 0.16.1
statsmodels: None
IPython: 4.0.1
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.4.6
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: 0.999
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/13544/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13544/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13545 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13545/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13545/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13545/events | https://github.com/pandas-dev/pandas/issues/13545 | 163,455,909 | MDU6SXNzdWUxNjM0NTU5MDk= | 13,545 | Support converters across multiple Excel spreadsheets | {
"avatar_url": "https://avatars.githubusercontent.com/u/270691?v=4",
"events_url": "https://api.github.com/users/stefan-pdx/events{/privacy}",
"followers_url": "https://api.github.com/users/stefan-pdx/followers",
"following_url": "https://api.github.com/users/stefan-pdx/following{/other_user}",
"gists_url": "https://api.github.com/users/stefan-pdx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stefan-pdx",
"id": 270691,
"login": "stefan-pdx",
"node_id": "MDQ6VXNlcjI3MDY5MQ==",
"organizations_url": "https://api.github.com/users/stefan-pdx/orgs",
"received_events_url": "https://api.github.com/users/stefan-pdx/received_events",
"repos_url": "https://api.github.com/users/stefan-pdx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stefan-pdx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stefan-pdx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stefan-pdx"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
]
| closed | false | null | []
| null | 3 | 2016-07-01T19:01:47Z | 2016-07-06T21:00:05Z | 2016-07-06T21:00:05Z | NONE | null | Hi,
When using `pd.read_excel(..., sheetname=None, converters={...})` to load all data in an Excel workbook, the columns specified in `converters` gets applied to any matching column names across _all_ spreadsheets. I have a use case where I would like to use different converter functions for columns of the same name across multiple sheets.
One potential implementation could yield:
``` python
pd.read_excel("my_data.xlsx", sheetname=None, converters={
"Sheet1": { "my_column": do_something },
"Sheet2": { "my_column": do_something_else }})
```
Another implementation could be:
``` python
pd.read_excel("my_data.xlsx", sheetname=None, converters={
("Sheet1", "my_column"): do_something,
("Sheet2", "my_column"): do_something_else })
```
Thanks! Please let me know if I can help out with an implementation -- I'd love to contribute to Pandas!
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13545/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13545/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13546 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13546/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13546/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13546/events | https://github.com/pandas-dev/pandas/issues/13546 | 163,463,592 | MDU6SXNzdWUxNjM0NjM1OTI= | 13,546 | TypeError bug in core/base.py when used with memory profilers. | {
"avatar_url": "https://avatars.githubusercontent.com/u/2631566?v=4",
"events_url": "https://api.github.com/users/ericmjl/events{/privacy}",
"followers_url": "https://api.github.com/users/ericmjl/followers",
"following_url": "https://api.github.com/users/ericmjl/following{/other_user}",
"gists_url": "https://api.github.com/users/ericmjl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ericmjl",
"id": 2631566,
"login": "ericmjl",
"node_id": "MDQ6VXNlcjI2MzE1NjY=",
"organizations_url": "https://api.github.com/users/ericmjl/orgs",
"received_events_url": "https://api.github.com/users/ericmjl/received_events",
"repos_url": "https://api.github.com/users/ericmjl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ericmjl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ericmjl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ericmjl"
} | [
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2016-07-01T19:52:07Z | 2016-07-02T14:19:33Z | 2016-07-01T19:54:56Z | NONE | null | I have been trying to use some memory profiling tools, to profile my code. With two different memory profilers, both of which use `sys.getsizeof(obj)`, `pandas` has been the cause of a `TypeError` returned. I am posting below an example using the [`memory-tools`](https://github.com/maxzheng/memory-tools) package.
#### Code Sample
I have tested the following code independently in a Jupyter notebook environment, separate from my other code. It should (hopefully) be a minimal example that can be reproduced. I am happy to provide more information on my environment if needed.
```
from memorytools import summarize_objects
import pandas as pd
summarize_objects()
```
#### Error Returned
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-c46dbac041c7> in <module>()
----> 1 summarize_objects()
/Users/ericmjl/Documents/github/memory-tools/src/memorytools/__init__.py in summarize_objects(objs, echo, limit)
90 objs = gc.get_objects()
91
---> 92 objs_dict = _summarize_objects(objs)
93 size_summary = ['{0:>10s} {1:>5s} {2}'.format('Size', 'Count', 'Type')]
94 count_summary = ['{0:>5s} {1:>10s} {2}'.format('Count', 'Size', 'Type')]
/Users/ericmjl/Documents/github/memory-tools/src/memorytools/__init__.py in _summarize_objects(objs)
133 for obj in objs:
134 _incr(objs_dict, type(obj), 'count')
--> 135 _incr(objs_dict, type(obj), 'size', sys.getsizeof(obj))
136
137 return objs_dict
/Users/ericmjl/anaconda/lib/python3.5/site-packages/pandas/core/base.py in __sizeof__(self)
128 # no memory_usage attribute, so fall back to
129 # object's 'sizeof'
--> 130 return super(self, PandasObject).__sizeof__()
131
132
TypeError: must be type, not FrozenList
```
Please pardon my ignorance on this matter, but would someone be kind enough to educate me on why this error is thrown, and how I might be able to fix this? If there's a maintainer who could provide some guidance, I am happy to dig into the codebase and submit a PR if that will fix the error.
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_CA.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 18.2
Cython: 0.23.4
numpy: 1.11.0
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 4.1.1
sphinx: 1.3.5
patsy: 0.4.1
dateutil: 2.4.2
pytz: 2015.4
blosc: None
bottleneck: 1.0.0
tables: None
numexpr: None
matplotlib: 1.4.3
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.0
pandas_datareader: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13546/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13546/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13547 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13547/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13547/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13547/events | https://github.com/pandas-dev/pandas/issues/13547 | 163,464,119 | MDU6SXNzdWUxNjM0NjQxMTk= | 13,547 | HDFStore.append_to_multiple() with a MultiIndex DataFrame leads to duplicate entries | {
"avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4",
"events_url": "https://api.github.com/users/chrisaycock/events{/privacy}",
"followers_url": "https://api.github.com/users/chrisaycock/followers",
"following_url": "https://api.github.com/users/chrisaycock/following{/other_user}",
"gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrisaycock",
"id": 453745,
"login": "chrisaycock",
"node_id": "MDQ6VXNlcjQ1Mzc0NQ==",
"organizations_url": "https://api.github.com/users/chrisaycock/orgs",
"received_events_url": "https://api.github.com/users/chrisaycock/received_events",
"repos_url": "https://api.github.com/users/chrisaycock/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrisaycock"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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"
}
]
| 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-07-01T19:55:16Z | 2019-10-21T19:34:18Z | null | CONTRIBUTOR | null | http://stackoverflow.com/questions/38152606/pandas-hdfstore-append-to-multiple-with-pandas-multiindex
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13547/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13547/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13548 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13548/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13548/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13548/events | https://github.com/pandas-dev/pandas/issues/13548 | 163,492,161 | MDU6SXNzdWUxNjM0OTIxNjE= | 13,548 | Indexing and slicing datetime columns using strings | {
"avatar_url": "https://avatars.githubusercontent.com/u/334435?v=4",
"events_url": "https://api.github.com/users/bbirand/events{/privacy}",
"followers_url": "https://api.github.com/users/bbirand/followers",
"following_url": "https://api.github.com/users/bbirand/following{/other_user}",
"gists_url": "https://api.github.com/users/bbirand/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bbirand",
"id": 334435,
"login": "bbirand",
"node_id": "MDQ6VXNlcjMzNDQzNQ==",
"organizations_url": "https://api.github.com/users/bbirand/orgs",
"received_events_url": "https://api.github.com/users/bbirand/received_events",
"repos_url": "https://api.github.com/users/bbirand/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bbirand/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bbirand/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bbirand"
} | [
{
"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"
}
]
| 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"
} | 14 | 2016-07-02T00:08:39Z | 2016-08-01T09:59:34Z | 2016-07-03T23:35:44Z | NONE | null | I deal with DateTime columns extensively. Using strings to slice and select items is extremely useful, but it requires a DatetimeIndex.
I think it would be great to include the same functionality for any column.
Consider this DF:
```
>>> a = pd.DataFrame([pd.to_datetime('2016-4-3 15:32:04'), pd.to_datetime('2016-4-9 15:32:04')], columns=['a_col'])
>>> print(a)
a_col
0 2016-04-03 15:32:04
1 2016-04-09 15:32:04
```
This is what I usually do, but it's extremely cluttered, and fails when the index is already something useful.
```
>>>print(a.set_index('a_col')['2016-4-3'].reset_index())
a_col
0 2016-04-03 15:32:04
```
I imagine this is the preferred way of doing the same thing (please correct me if I'm wrong). Requires a lot of typing, and not elegant at all (especially for chosing a single day, as in this example).
```
>>> print(a[(a.a_col >= pd.to_datetime('2016-4-3')) & (a.a_col < pd.to_datetime('2016-4-4'))])
a_col
0 2016-04-03 15:32:04
```
I think something like the `ds` would be great:
```
>>> print(a.ds['a_col', '2016-4-3'])
```
The second element could be any argument that is accepted to DatetimeIndex elements.
What do you think? Am I missing something?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13548/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13548/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13549 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13549/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13549/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13549/events | https://github.com/pandas-dev/pandas/issues/13549 | 163,512,470 | MDU6SXNzdWUxNjM1MTI0NzA= | 13,549 | Codec `utf-16` aliases do not work in read_csv with c engine | {
"avatar_url": "https://avatars.githubusercontent.com/u/1579723?v=4",
"events_url": "https://api.github.com/users/Anaphory/events{/privacy}",
"followers_url": "https://api.github.com/users/Anaphory/followers",
"following_url": "https://api.github.com/users/Anaphory/following{/other_user}",
"gists_url": "https://api.github.com/users/Anaphory/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Anaphory",
"id": 1579723,
"login": "Anaphory",
"node_id": "MDQ6VXNlcjE1Nzk3MjM=",
"organizations_url": "https://api.github.com/users/Anaphory/orgs",
"received_events_url": "https://api.github.com/users/Anaphory/received_events",
"repos_url": "https://api.github.com/users/Anaphory/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Anaphory/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Anaphory/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Anaphory"
} | [
{
"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_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2016-07-02T10:28:39Z | 2016-08-22T20:47:18Z | 2016-08-22T20:47:18Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```
import pandas
path = "test.csv"
pandas.DataFrame({"A": [0,1], "B": [2,3]}).to_csv(
path, encoding="utf-16")
for encoding in ["utf-16","utf_16","UTF_16","UTF-16"]:
try:
pandas.io.parsers.read_csv(
path,
engine='c',
encoding=encoding)
print(encoding, "succeeded in c-pandas")
except UnicodeDecodeError:
print(encoding, "failed in c-pandas")
try:
pandas.io.parsers.read_csv(
path,
engine='python',
encoding=encoding)
print(encoding, "succeeded in pandas")
except UnicodeDecodeError:
print(encoding, "failed in pandas")
try:
with open(path, encoding=encoding) as file:
file.read()
print(encoding, "succeeded in open")
except UnicodeDecodeError:
print(encoding, "failed in open")
```
#### Expected Output
```
utf-16 succeeded in c-pandas
utf-16 succeeded in pandas
utf-16 succeeded in open
utf_16 succeeded in c-pandas
utf_16 succeeded in pandas
utf_16 succeeded in open
UTF_16 succeeded in c-pandas
UTF_16 succeeded in pandas
UTF_16 succeeded in open
UTF-16 succeeded in c-pandas
UTF-16 succeeded in pandas
UTF-16 succeeded in open
```
#### Actual Output
```
utf-16 succeeded in c-pandas
utf-16 succeeded in pandas
utf-16 succeeded in open
utf_16 failed in c-pandas
utf_16 succeeded in pandas
utf_16 succeeded in open
UTF_16 failed in c-pandas
UTF_16 succeeded in pandas
UTF_16 succeeded in open
UTF-16 failed in c-pandas
UTF-16 succeeded in pandas
UTF-16 succeeded in open
```
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.6.2-1-ARCH
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.1
setuptools: 23.0.0
Cython: None
numpy: 1.11.0
scipy: 0.17.1
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: None
patsy: None
dateutil: 2.4.2
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13549/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13549/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13550 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13550/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13550/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13550/events | https://github.com/pandas-dev/pandas/pull/13550 | 163,537,960 | MDExOlB1bGxSZXF1ZXN0NzYwNzU4NzA= | 13,550 | Removed unnecessary params in cum_func | {
"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": "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"
} | 9 | 2016-07-02T22:24:08Z | 2016-07-03T23:23:09Z | 2016-07-03T23:23:09Z | MEMBER | null | Picks up from #13167 by properly removing the parameters and ensuring that `numpy` compatibility has been maintained. The current test suite does a good job of checking that already, so no tests were added.
Closes #13541.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13550/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13550/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13550.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13550",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13550.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13550"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13551 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13551/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13551/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13551/events | https://github.com/pandas-dev/pandas/pull/13551 | 163,542,988 | MDExOlB1bGxSZXF1ZXN0NzYwNzg2NDQ= | 13,551 | BUG: Fix .to_excel() for MultiIndex containing a NaN value #13511 | {
"avatar_url": "https://avatars.githubusercontent.com/u/2924816?v=4",
"events_url": "https://api.github.com/users/mpuels/events{/privacy}",
"followers_url": "https://api.github.com/users/mpuels/followers",
"following_url": "https://api.github.com/users/mpuels/following{/other_user}",
"gists_url": "https://api.github.com/users/mpuels/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mpuels",
"id": 2924816,
"login": "mpuels",
"node_id": "MDQ6VXNlcjI5MjQ4MTY=",
"organizations_url": "https://api.github.com/users/mpuels/orgs",
"received_events_url": "https://api.github.com/users/mpuels/received_events",
"repos_url": "https://api.github.com/users/mpuels/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mpuels/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mpuels/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mpuels"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 11 | 2016-07-03T01:46:10Z | 2016-07-25T15:07:12Z | 2016-07-25T15:07:00Z | CONTRIBUTOR | null | - [X] closes #13511
- [X] tests added / passed
- [X] passes `git diff upstream/master | flake8 --diff`
- [X] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13551/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13551/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13551.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13551",
"merged_at": "2016-07-25T15:07:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13551.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13551"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13552 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13552/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13552/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13552/events | https://github.com/pandas-dev/pandas/pull/13552 | 163,551,041 | MDExOlB1bGxSZXF1ZXN0NzYwODI4ODg= | 13,552 | Fix missing not in format._put_lines | {
"avatar_url": "https://avatars.githubusercontent.com/u/4816153?v=4",
"events_url": "https://api.github.com/users/limx0/events{/privacy}",
"followers_url": "https://api.github.com/users/limx0/followers",
"following_url": "https://api.github.com/users/limx0/following{/other_user}",
"gists_url": "https://api.github.com/users/limx0/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/limx0",
"id": 4816153,
"login": "limx0",
"node_id": "MDQ6VXNlcjQ4MTYxNTM=",
"organizations_url": "https://api.github.com/users/limx0/orgs",
"received_events_url": "https://api.github.com/users/limx0/received_events",
"repos_url": "https://api.github.com/users/limx0/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/limx0/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/limx0/subscriptions",
"type": "User",
"url": "https://api.github.com/users/limx0"
} | [
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
}
]
| closed | false | null | []
| null | 4 | 2016-07-03T07:22:19Z | 2016-08-17T08:10:04Z | 2016-08-17T08:10:03Z | NONE | 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/13552/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13552/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13552.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13552",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13552.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13552"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/13553 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13553/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13553/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13553/events | https://github.com/pandas-dev/pandas/pull/13553 | 163,562,690 | MDExOlB1bGxSZXF1ZXN0NzYwODkyNjE= | 13,553 | TST: Move `test_crosstab_margins` to `TestPivotTable` | {
"avatar_url": "https://avatars.githubusercontent.com/u/5356517?v=4",
"events_url": "https://api.github.com/users/yui-knk/events{/privacy}",
"followers_url": "https://api.github.com/users/yui-knk/followers",
"following_url": "https://api.github.com/users/yui-knk/following{/other_user}",
"gists_url": "https://api.github.com/users/yui-knk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yui-knk",
"id": 5356517,
"login": "yui-knk",
"node_id": "MDQ6VXNlcjUzNTY1MTc=",
"organizations_url": "https://api.github.com/users/yui-knk/orgs",
"received_events_url": "https://api.github.com/users/yui-knk/received_events",
"repos_url": "https://api.github.com/users/yui-knk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yui-knk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yui-knk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yui-knk"
} | [
{
"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"
} | 3 | 2016-07-03T13:39:28Z | 2016-07-04T16:01:16Z | 2016-07-04T16:01:16Z | CONTRIBUTOR | null | This test case assert `pivot_table` method.
So it should be defined on `TestPivotTable`.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13553/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13553/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13553.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13553",
"merged_at": "2016-07-04T16:01:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13553.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13553"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13554 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13554/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13554/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13554/events | https://github.com/pandas-dev/pandas/pull/13554 | 163,566,355 | MDExOlB1bGxSZXF1ZXN0NzYwOTEzNTE= | 13,554 | BUG: pivot_table always returns a DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/5356517?v=4",
"events_url": "https://api.github.com/users/yui-knk/events{/privacy}",
"followers_url": "https://api.github.com/users/yui-knk/followers",
"following_url": "https://api.github.com/users/yui-knk/following{/other_user}",
"gists_url": "https://api.github.com/users/yui-knk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yui-knk",
"id": 5356517,
"login": "yui-knk",
"node_id": "MDQ6VXNlcjUzNTY1MTc=",
"organizations_url": "https://api.github.com/users/yui-knk/orgs",
"received_events_url": "https://api.github.com/users/yui-knk/received_events",
"repos_url": "https://api.github.com/users/yui-knk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yui-knk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yui-knk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yui-knk"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
]
| closed | false | null | []
| {
"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"
} | 11 | 2016-07-03T15:16:08Z | 2017-04-18T22:37:28Z | 2017-04-18T22:37:28Z | CONTRIBUTOR | null | - [x] closes #4386
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Before this commit, if
- `values` is not list like
- `columns` is `None`
- `aggfunc` is not instance of `list`
`pivot_table` returns a `Series`.
This commit adds checking for `columns.nlevels` is
greater than 1 to prevent from casting `table` to
a `Series`.
This will fix #4386.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13554/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13554/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13554.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13554",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13554.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13554"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13555 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13555/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13555/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13555/events | https://github.com/pandas-dev/pandas/issues/13555 | 163,570,574 | MDU6SXNzdWUxNjM1NzA1NzQ= | 13,555 | Modules operation on DataFrame return -0 result. | {
"avatar_url": "https://avatars.githubusercontent.com/u/10204255?v=4",
"events_url": "https://api.github.com/users/amolkahat/events{/privacy}",
"followers_url": "https://api.github.com/users/amolkahat/followers",
"following_url": "https://api.github.com/users/amolkahat/following{/other_user}",
"gists_url": "https://api.github.com/users/amolkahat/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/amolkahat",
"id": 10204255,
"login": "amolkahat",
"node_id": "MDQ6VXNlcjEwMjA0MjU1",
"organizations_url": "https://api.github.com/users/amolkahat/orgs",
"received_events_url": "https://api.github.com/users/amolkahat/received_events",
"repos_url": "https://api.github.com/users/amolkahat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/amolkahat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amolkahat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/amolkahat"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
]
| closed | false | null | []
| null | 2 | 2016-07-03T17:02:27Z | 2016-07-03T23:31:29Z | 2016-07-03T23:31:29Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
import pandas as pd
import numpy as np
dates = pd.date_range('20160101', periods=12)
df = pd.DataFrame(np.random.randn(12, 4), index=dates, columns=list('ABCD'))
df.sort_index(axis=1, ascending=False) % df.sort_index(axis=1, ascending=True)
Output : -
A B C D
2016-01-01 0 -0 0 -0
2016-01-02 -0 0 0 0
2016-01-03 0 0 0 -0
2016-01-04 0 0 0 0
2016-01-05 0 -0 -0 0
2016-01-06 0 -0 0 0
2016-01-07 -0 -0 0 0
2016-01-08 0 0 -0 -0
2016-01-09 -0 -0 -0 -0
2016-01-10 -0 -0 -0 0
2016-01-11 -0 0 -0 0
2016-01-12 0 -0 -0 -0
#### Expected Output
```
A B C D
```
2016-01-01 0 0 0 0
2016-01-02 0 0 0 0
2016-01-03 0 0 0 0
2016-01-04 0 0 0 0
2016-01-05 0 0 0 0
2016-01-06 0 0 0 0
2016-01-07 0 0 0 0
2016-01-08 0 0 0 0
2016-01-09 0 0 0 0
2016-01-10 0 0 0 0
2016-01-11 0 0 0 0
2016-01-12 0 0 0 0
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.5-300.fc23.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 7.1.0
setuptools: 20.10.1
Cython: None
numpy: 1.9.2
scipy: 0.14.1
statsmodels: None
IPython: 3.2.1
sphinx: 1.2.3
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 0.6.0
tables: 3.2.2
numexpr: 2.4.6
matplotlib: 1.4.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
Jinja2: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13555/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13555/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13556 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13556/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13556/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13556/events | https://github.com/pandas-dev/pandas/issues/13556 | 163,594,358 | MDU6SXNzdWUxNjM1OTQzNTg= | 13,556 | Unexpected behavior -- crosstab with dropna=False | {
"avatar_url": "https://avatars.githubusercontent.com/u/12767881?v=4",
"events_url": "https://api.github.com/users/cotterman/events{/privacy}",
"followers_url": "https://api.github.com/users/cotterman/followers",
"following_url": "https://api.github.com/users/cotterman/following{/other_user}",
"gists_url": "https://api.github.com/users/cotterman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cotterman",
"id": 12767881,
"login": "cotterman",
"node_id": "MDQ6VXNlcjEyNzY3ODgx",
"organizations_url": "https://api.github.com/users/cotterman/orgs",
"received_events_url": "https://api.github.com/users/cotterman/received_events",
"repos_url": "https://api.github.com/users/cotterman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cotterman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cotterman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cotterman"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2016-07-04T02:43:34Z | 2016-07-04T07:55:26Z | 2016-07-04T03:00:19Z | NONE | null | ### Summary of issue
By the name of it, I expected using the 'dropna=False' option with crosstab would have given me results that include rows for which my column value is missing. However, I instead found that missing values continue to be ignored.
#### Code Sample
```
df = pd.DataFrame({'geography': ['tropic', 'tropic', 'desert', None, 'tundra', 'tundra'],
'dragons': ['many', None, 'few', 'few', 'many', None]})
print(df)
pd.crosstab(df.geography, df.dragons)
pd.crosstab(df.geography, df.dragons, dropna=False)
pd.crosstab(df.dragons, df.geography, dropna=False)
```
#### Expected Output
```
geography NA desert tropic tundra
dragons
NA 0 0 1 1
few 1 1 0 0
many 0 0 1 1
```
#### Actual output
```
In [210]: print(df)
dragons geography
0 many tropic
1 None tropic
2 few desert
3 few None
4 many tundra
5 None tundra
In [211]: pd.crosstab(df.geography, df.dragons)
Out[211]:
dragons few many
geography
desert 1 0
tropic 0 1
tundra 0 1
In [212]: pd.crosstab(df.geography, df.dragons, dropna=False)
Out[212]:
dragons few many
geography
desert 1 0
tropic 0 1
tundra 0 1
In [213]: pd.crosstab(df.dragons, df.geography, dropna=False)
Out[213]:
geography desert tropic tundra
dragons
few 1 0 0
many 0 1 1
```
### This work-around gives me what I expected.
```
pd.crosstab(df.dragons.fillna('NA'), df.geography.fillna('NA'), dropna=False)
```
I'd hate for others to also not realize that the NAs are being dropped from the output, even when dropna=False. Perhaps altering the documentation or the behavior of this function would help.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13556/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13556/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13557 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13557/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13557/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13557/events | https://github.com/pandas-dev/pandas/issues/13557 | 163,595,549 | MDU6SXNzdWUxNjM1OTU1NDk= | 13,557 | to_frame() broken by RangeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/5253102?v=4",
"events_url": "https://api.github.com/users/gdbaldw/events{/privacy}",
"followers_url": "https://api.github.com/users/gdbaldw/followers",
"following_url": "https://api.github.com/users/gdbaldw/following{/other_user}",
"gists_url": "https://api.github.com/users/gdbaldw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gdbaldw",
"id": 5253102,
"login": "gdbaldw",
"node_id": "MDQ6VXNlcjUyNTMxMDI=",
"organizations_url": "https://api.github.com/users/gdbaldw/orgs",
"received_events_url": "https://api.github.com/users/gdbaldw/received_events",
"repos_url": "https://api.github.com/users/gdbaldw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gdbaldw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gdbaldw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gdbaldw"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
]
| closed | false | null | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 5 | 2016-07-04T03:01:38Z | 2016-07-05T08:41:26Z | 2016-07-05T00:09:13Z | NONE | null | #### Code Sample, a copy-pastable example if possible
In [1]: import pandas as pd
In [2]: import numpy as np
In [3]: p = pd.Panel(np.arange(512).reshape((8,8,8)))
In [4]: p.to_frame()
Out[4]: <repr(<pandas.core.frame.DataFrame at 0x7fcd99f25590>) failed: TypeError: data type "major" not understood>
In [5]: p.axes
Out[5]:
[RangeIndex(start=0, stop=8, step=1),
RangeIndex(start=0, stop=8, step=1),
RangeIndex(start=0, stop=8, step=1)]
Issue is similar to [ Related TypeErrors in multi-indexed DataFrame #12893 ](https://github.com/pydata/pandas/issues/12893)
#### Expected Output
Similar to this...
In [6]: p = pd.Panel(np.arange(8).reshape((2,2,2)))
In [7]: p.to_frame()
Out[7]:
```
0 1
major minor
0 0 0 4
1 1 5
1 0 2 6
1 3 7
```
In [8]: p.axes
Out[8]:
[RangeIndex(start=0, stop=2, step=1),
RangeIndex(start=0, stop=2, step=1),
RangeIndex(start=0, stop=2, step=1)]
#### output of `pd.show_versions()`
In [9]: pd.show_versions()
## INSTALLED VERSIONS
commit: None
python: 2.7.12.candidate.1
python-bits: 64
OS: Linux
OS-release: 4.5.0-2-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0+git114-g6c692ae
nose: 1.3.7
pip: None
setuptools: 20.10.1
Cython: None
numpy: 1.11.1rc1
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: 2.4.1
sphinx: None
patsy: 0.4.1
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.2rc2
openpyxl: 2.3.0
xlrd: 0.9.4
xlwt: 0.7.5
xlsxwriter: None
lxml: 3.6.0
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13557/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13557/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13558 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13558/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13558/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13558/events | https://github.com/pandas-dev/pandas/issues/13558 | 163,612,677 | MDU6SXNzdWUxNjM2MTI2Nzc= | 13,558 | Dont do selection by callable if not wanted | {
"avatar_url": "https://avatars.githubusercontent.com/u/9327071?v=4",
"events_url": "https://api.github.com/users/Chaoste/events{/privacy}",
"followers_url": "https://api.github.com/users/Chaoste/followers",
"following_url": "https://api.github.com/users/Chaoste/following{/other_user}",
"gists_url": "https://api.github.com/users/Chaoste/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Chaoste",
"id": 9327071,
"login": "Chaoste",
"node_id": "MDQ6VXNlcjkzMjcwNzE=",
"organizations_url": "https://api.github.com/users/Chaoste/orgs",
"received_events_url": "https://api.github.com/users/Chaoste/received_events",
"repos_url": "https://api.github.com/users/Chaoste/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Chaoste/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Chaoste/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Chaoste"
} | [
{
"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"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 7 | 2016-07-04T06:45:31Z | 2016-07-05T11:07:47Z | 2016-07-05T11:07:47Z | NONE | null | #### Copy-pastable Code Sample
``` python
import pandas as pd
import pandas.util.testing as tm
class myClass1:
def __call__(self):
return "Result 1"
def __str__(self):
return "Class 1"
class myClass2:
def __call__(self):
return "Result 2"
def __str__(self):
return "Class 2"
obj1 = myClass1()
obj2 = myClass2()
df = pd.DataFrame([], index=[0], columns=[obj1, obj2])
# Throws error because new pandas version wants to select by callable
df[obj1] = obj1()
df[obj2] = obj2()
```
#### Expected Output
``` python
expected = pd.DataFrame([["Result 1", "Result 2"]], columns=[obj1, obj2])
tm.assert_frame_equal(df, expected)
```
#### How I fixed the test for the moment
``` python
class myClass1:
def __call__(self, *args):
if args:
return self
return "Result 1"
def __str__(self):
return "Class 1"
class myClass2:
def __call__(self, *args):
if args:
return self
return "Result 2"
def __str__(self):
return "Class 2"
```
If pandas invokes a callable object it passes the frame itself as a parameter. Because i dont need arguments for my call function i can prevent this call by checking if a argument is passed. Is there a better way of doing this or can you add an option so i can disable the new behavior.
#### output of `pd.show_versions()`
``` python
commit: None
python: 3.4.3.final.0
python-bits: 32
OS: Windows
OS-release: 8
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 19.6.2
Cython: None
numpy: 1.11.0
scipy: 0.16.1
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: 1.4.1
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13558/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13558/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13559 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13559/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13559/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13559/events | https://github.com/pandas-dev/pandas/pull/13559 | 163,644,116 | MDExOlB1bGxSZXF1ZXN0NzYxNDAyMDY= | 13,559 | TST: confirm bug in partial string multi-index slicing is fixed (GH12685) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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"
} | 1 | 2016-07-04T10:04:22Z | 2016-07-05T08:37:18Z | 2016-07-05T08:37:18Z | MEMBER | null | Closes #12685
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13559/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13559/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13559.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13559",
"merged_at": "2016-07-05T08:37:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13559.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13559"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13560 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13560/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13560/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13560/events | https://github.com/pandas-dev/pandas/pull/13560 | 163,708,408 | MDExOlB1bGxSZXF1ZXN0NzYxODUwMzM= | 13,560 | Update gotchas.rst | {
"avatar_url": "https://avatars.githubusercontent.com/u/1721104?v=4",
"events_url": "https://api.github.com/users/PaulMest/events{/privacy}",
"followers_url": "https://api.github.com/users/PaulMest/followers",
"following_url": "https://api.github.com/users/PaulMest/following{/other_user}",
"gists_url": "https://api.github.com/users/PaulMest/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/PaulMest",
"id": 1721104,
"login": "PaulMest",
"node_id": "MDQ6VXNlcjE3MjExMDQ=",
"organizations_url": "https://api.github.com/users/PaulMest/orgs",
"received_events_url": "https://api.github.com/users/PaulMest/received_events",
"repos_url": "https://api.github.com/users/PaulMest/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/PaulMest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PaulMest/subscriptions",
"type": "User",
"url": "https://api.github.com/users/PaulMest"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 2 | 2016-07-04T16:31:16Z | 2016-07-05T10:40:45Z | 2016-07-05T10:40:45Z | CONTRIBUTOR | null | Removed redundant words
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13560/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13560/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13560.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13560",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13560.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13560"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13561 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13561/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13561/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13561/events | https://github.com/pandas-dev/pandas/pull/13561 | 163,750,785 | MDExOlB1bGxSZXF1ZXN0NzYyMDQ5MDQ= | 13,561 | TST: Add tests for single group | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-07-04T23:19:43Z | 2016-07-05T08:39:35Z | 2016-07-05T08:39:35Z | MEMBER | null | - [x] closes #13530
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
| {
"+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/13561/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13561/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13561.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13561",
"merged_at": "2016-07-05T08:39:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13561.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13561"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13562 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13562/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13562/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13562/events | https://github.com/pandas-dev/pandas/issues/13562 | 163,753,218 | MDU6SXNzdWUxNjM3NTMyMTg= | 13,562 | RLS: 0.18.2 | {
"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": "006b75",
"default": false,
"description": null,
"id": 131473665,
"name": "Release",
"node_id": "MDU6TGFiZWwxMzE0NzM2NjU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Release"
}
]
| closed | false | null | []
| {
"closed_at": "2016-07-09T16:39:11Z",
"closed_issues": 1,
"created_at": "2016-07-08T13:31:33Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "",
"due_on": "2016-07-14T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/41",
"id": 1872173,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/41/labels",
"node_id": "MDk6TWlsZXN0b25lMTg3MjE3Mw==",
"number": 41,
"open_issues": 0,
"state": "closed",
"title": "0.18.2",
"updated_at": "2016-07-09T16:39:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/41"
} | 12 | 2016-07-05T00:13:43Z | 2016-07-11T22:22:16Z | 2016-07-09T16:38:59Z | MEMBER | null | It is two months since 0.18.1 is released, and there are already quite a lot of changes in master, so it is time to think about a next release.
Currently, the release is targeted to be 0.18.2.
Personally, I think current master has already more new features and slight API changes than would be expected from a bug-fix release, so my proposal would be to just call it 0.19.0 instead (as also discussed on the dev meeting).
If there is agreement on this, I can do the change this week (not much work, just changing all references of 0.18.2 to 0.19.0 and retargeting the issues).
Besides that, there are two other questions in case of a rename of master to 0.19.0:
- Do we want to release current master as 0.19.0 as is (in the short time, meaning we could tag a release candidate shortly)? Or do we want to give it some more time?
- Do we still want to release a 0.18.2 bugfix release? We could select some bug fixes that are now in master to put in a 0.18.2 release.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13562/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13562/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13563 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13563/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13563/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13563/events | https://github.com/pandas-dev/pandas/issues/13563 | 163,753,406 | MDU6SXNzdWUxNjM3NTM0MDY= | 13,563 | Deprecation of Panel ? | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "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 | []
| null | 10 | 2016-07-05T00:18:14Z | 2018-12-02T22:56:04Z | 2017-04-07T19:10:25Z | MEMBER | null | This is a topic that has come up recently (https://github.com/pydata/pandas/issues/10000, https://github.com/pydata/pandas/issues/8906, pandas-dev mailing list discussion), let's make this an issue to track the discussion about it.
- https://github.com/pydata/pandas/issues/8906#issuecomment-152613473 experience of the 'experimental' status of Panels by @MaximilianR and following discussion on pointing users to xarray
- Issue for docs on using xarray instead of Panels: https://github.com/pydata/pandas/issues/12283
- "WIP for transitioning from Panel docs" PR https://github.com/pydata/xarray/pull/832
Deprecating Panels would be a rather large change, so:
- Do we need to further discuss if we actually want to do this?
- Are there people who make intensive use of Panels to ask feedback?
- How do we go about such a deprecation? First making a note in the whatsnew / pinging mailing list or other fora before actually deprecating?
cc @pydata/pandas @MaximilianR
| {
"+1": 5,
"-1": 1,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 6,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13563/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13563/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13564 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13564/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13564/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13564/events | https://github.com/pandas-dev/pandas/issues/13564 | 163,753,660 | MDU6SXNzdWUxNjM3NTM2NjA= | 13,564 | Deprecation of Panel4D/PanelND | {
"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": "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": "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-07-05T00:23:38Z | 2016-07-25T23:34:18Z | 2016-07-25T23:34:18Z | MEMBER | null | Related to https://github.com/pydata/pandas/issues/13563 (deprecation of Panels), we could/should also deprecate Panel4D / PanelND.
(xref https://github.com/pydata/pandas/issues/5049)
Deprecating Panel4D/ND could probably be done sooner than deprecating Panels (e.g. actually deprecating in 0.19.0 ?)
| {
"+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/13564/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13564/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13565 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13565/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13565/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13565/events | https://github.com/pandas-dev/pandas/issues/13565 | 163,825,964 | MDU6SXNzdWUxNjM4MjU5NjQ= | 13,565 | Call unique() on a timezone aware datetime series returns non timezone aware result | {
"avatar_url": "https://avatars.githubusercontent.com/u/8334424?v=4",
"events_url": "https://api.github.com/users/paulgueltekin/events{/privacy}",
"followers_url": "https://api.github.com/users/paulgueltekin/followers",
"following_url": "https://api.github.com/users/paulgueltekin/following{/other_user}",
"gists_url": "https://api.github.com/users/paulgueltekin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/paulgueltekin",
"id": 8334424,
"login": "paulgueltekin",
"node_id": "MDQ6VXNlcjgzMzQ0MjQ=",
"organizations_url": "https://api.github.com/users/paulgueltekin/orgs",
"received_events_url": "https://api.github.com/users/paulgueltekin/received_events",
"repos_url": "https://api.github.com/users/paulgueltekin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/paulgueltekin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/paulgueltekin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/paulgueltekin"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 11 | 2016-07-05T11:08:23Z | 2016-08-29T12:29:04Z | 2016-08-29T12:29:04Z | NONE | null | Call unique() on a timezone aware datetime series returns non timezone aware result.
#### Code Sample
import pandas as pd
import pytz
import datetime
In [242]: ts = pd.Series([datetime.datetime(2011,2,11,20,0,0,0,pytz.utc), datetime.datetime(2011,2,11,20,0,0,0,pytz.utc), datetime.datetime(2011,2,11,21,0,0,0,pytz.utc)])
In [243]: ts
Out[243]:
0 2011-02-11 20:00:00+00:00
1 2011-02-11 20:00:00+00:00
2 2011-02-11 21:00:00+00:00
dtype: datetime64[ns, UTC]
In [244]: ts.unique()
Out[244]: array(['2011-02-11T20:00:00.000000000', '2011-02-11T21:00:00.000000000'], dtype='datetime64[ns]')
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Linux
OS-release: 3.16.0-4-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: de_AT.UTF-8
pandas: 0.18.1
nose: 1.3.4
pip: 8.1.2
setuptools: 22.0.5
Cython: 0.21.1
numpy: 1.11.0
scipy: 0.14.0
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: 1.2.3
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: 3.1.1
numexpr: 2.4
matplotlib: 1.4.2
openpyxl: 2.3.5
xlrd: 0.9.2
xlwt: 0.7.4
xlsxwriter: None
lxml: 3.6.0
bs4: None
html5lib: 1.0b3
httplib2: 0.9
apiclient: None
sqlalchemy: 0.9.8
pymysql: None
psycopg2: None
jinja2: 2.7.3
boto: None
pandas_datareader: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13565/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13565/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13566 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13566/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13566/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13566/events | https://github.com/pandas-dev/pandas/issues/13566 | 163,829,304 | MDU6SXNzdWUxNjM4MjkzMDQ= | 13,566 | Test failures on 32-bit Linux | {
"avatar_url": "https://avatars.githubusercontent.com/u/67612?v=4",
"events_url": "https://api.github.com/users/matthew-brett/events{/privacy}",
"followers_url": "https://api.github.com/users/matthew-brett/followers",
"following_url": "https://api.github.com/users/matthew-brett/following{/other_user}",
"gists_url": "https://api.github.com/users/matthew-brett/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matthew-brett",
"id": 67612,
"login": "matthew-brett",
"node_id": "MDQ6VXNlcjY3NjEy",
"organizations_url": "https://api.github.com/users/matthew-brett/orgs",
"received_events_url": "https://api.github.com/users/matthew-brett/received_events",
"repos_url": "https://api.github.com/users/matthew-brett/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matthew-brett/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matthew-brett/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matthew-brett"
} | [
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2016-07-05T11:29:17Z | 2016-07-21T16:47:01Z | 2016-07-09T18:16:40Z | CONTRIBUTOR | null | Testing 32-bit Manylinux1 wheels for Pandas 0.18.1 gives the following errors:
```
======================================================================
ERROR: test_read_dta12 (pandas.io.tests.test_stata.TestStata)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/venv/local/lib/python2.7/site-packages/pandas/io/tests/test_stata.py", line 244, in test_read_dta12
parsed_117 = self.read_dta(self.dta21_117)
File "/venv/local/lib/python2.7/site-packages/pandas/io/tests/test_stata.py", line 86, in read_dta
return read_stata(file, convert_dates=True)
File "/venv/local/lib/python2.7/site-packages/pandas/io/stata.py", line 170, in read_stata
return reader.read()
File "/venv/local/lib/python2.7/site-packages/pandas/io/stata.py", line 1499, in read
data = self._insert_strls(data)
File "/venv/local/lib/python2.7/site-packages/pandas/io/stata.py", line 1595, in _insert_strls
data.iloc[:, i] = [self.GSO[k] for k in data.iloc[:, i]]
KeyError: 4294967299
======================================================================
FAIL: test_isin (pandas.tseries.tests.test_timedeltas.TestTimedeltaIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/venv/local/lib/python2.7/site-packages/pandas/tseries/tests/test_timedeltas.py", line 1681, in test_isin
self.assertTrue(result.all())
AssertionError: False is not true
======================================================================
FAIL: test_isin (pandas.tseries.tests.test_timeseries.TestDatetimeIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/venv/local/lib/python2.7/site-packages/pandas/tseries/tests/test_timeseries.py", line 3452, in test_isin
self.assertTrue(result.all())
AssertionError: False is not true
======================================================================
FAIL: test_isin_with_i8 (pandas.tests.series.test_analytics.TestSeriesAnalytics)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/venv/local/lib/python2.7/site-packages/pandas/tests/series/test_analytics.py", line 1128, in test_isin_with_i8
assert_series_equal(result, expected)
File "/venv/local/lib/python2.7/site-packages/pandas/util/testing.py", line 1049, in assert_series_equal
check_less_precise, obj='{0}'.format(obj))
File "pandas/src/testing.pyx", line 58, in pandas._testing.assert_almost_equal (pandas/src/testing.c:3887)
File "pandas/src/testing.pyx", line 147, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2769)
File "/venv/local/lib/python2.7/site-packages/pandas/util/testing.py", line 915, in raise_assert_detail
raise AssertionError(msg)
AssertionError: Series are different
Series values are different (40.0 %)
[left]: [False, False, False, False, False]
[right]: [True, True, False, False, False]
======================================================================
FAIL: test_basic (pandas.tests.test_algos.TestIsin)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/venv/local/lib/python2.7/site-packages/pandas/tests/test_algos.py", line 371, in test_basic
tm.assert_numpy_array_equal(result, expected)
File "/venv/local/lib/python2.7/site-packages/pandas/util/testing.py", line 957, in assert_numpy_array_equal
raise_assert_detail(obj, msg, left, right)
File "/venv/local/lib/python2.7/site-packages/pandas/util/testing.py", line 915, in raise_assert_detail
raise AssertionError(msg)
AssertionError: numpy array are different
numpy array values are different (33.33333 %)
[left]: [False, False, False]
[right]: [True, False, False]
======================================================================
FAIL: test_drop_level_nonunique_datetime (pandas.tests.test_multilevel.TestMultiLevel)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/venv/local/lib/python2.7/site-packages/pandas/tests/test_multilevel.py", line 1978, in test_drop_level_nonunique_datetime
assert_frame_equal(result, expected)
File "/venv/local/lib/python2.7/site-packages/pandas/util/testing.py", line 1119, in assert_frame_equal
'{0}, {1}'.format(right.shape[0], right.index))
File "/venv/local/lib/python2.7/site-packages/pandas/util/testing.py", line 915, in raise_assert_detail
raise AssertionError(msg)
AssertionError: DataFrame are different
DataFrame shape (number of rows) are different
[left]: 5, MultiIndex(levels=[[2, 3, 4, 5], [2016-03-23 14:00:00, 2016-03-23 15:00:00, 2016-03-23 16:00:00, 2016-03-23 17:00:00]],
labels=[[0, 1, 2, 2, 3], [0, 1, 2, 2, 3]],
names=[u'id', u'tstamp'])
[right]: 3, MultiIndex(levels=[[2, 3, 4, 5], [2016-03-23 14:00:00, 2016-03-23 15:00:00, 2016-03-23 16:00:00, 2016-03-23 17:00:00]],
labels=[[0, 1, 3], [0, 1, 3]],
names=[u'id', u'tstamp'])
```
https://travis-ci.org/MacPython/pandas-wheels/jobs/142424407
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13566/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13566/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13567 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13567/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13567/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13567/events | https://github.com/pandas-dev/pandas/pull/13567 | 163,865,336 | MDExOlB1bGxSZXF1ZXN0NzYyODQ0Njg= | 13,567 | BUG: Datetime64Formatter not respecting ``formatter`` | {
"avatar_url": "https://avatars.githubusercontent.com/u/6108231?v=4",
"events_url": "https://api.github.com/users/haleemur/events{/privacy}",
"followers_url": "https://api.github.com/users/haleemur/followers",
"following_url": "https://api.github.com/users/haleemur/following{/other_user}",
"gists_url": "https://api.github.com/users/haleemur/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/haleemur",
"id": 6108231,
"login": "haleemur",
"node_id": "MDQ6VXNlcjYxMDgyMzE=",
"organizations_url": "https://api.github.com/users/haleemur/orgs",
"received_events_url": "https://api.github.com/users/haleemur/received_events",
"repos_url": "https://api.github.com/users/haleemur/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/haleemur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/haleemur/subscriptions",
"type": "User",
"url": "https://api.github.com/users/haleemur"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "006b75",
"default": false,
"description": "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 | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-07-05T14:32:16Z | 2016-07-08T15:17:39Z | 2016-07-08T15:16:46Z | CONTRIBUTOR | null | - [x] closes #10690
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
the Datetime64Formatter class did not accept a `formatter` argument, so custom formatters passed in through `df.to_string` or `df.to_html` were silently ignored.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13567/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13567/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13567.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13567",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13567.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13567"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13568 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13568/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13568/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13568/events | https://github.com/pandas-dev/pandas/issues/13568 | 163,873,741 | MDU6SXNzdWUxNjM4NzM3NDE= | 13,568 | Apply on selected columns of a groupby object - stopped working with 0.18.1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/4418382?v=4",
"events_url": "https://api.github.com/users/tpietruszka/events{/privacy}",
"followers_url": "https://api.github.com/users/tpietruszka/followers",
"following_url": "https://api.github.com/users/tpietruszka/following{/other_user}",
"gists_url": "https://api.github.com/users/tpietruszka/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tpietruszka",
"id": 4418382,
"login": "tpietruszka",
"node_id": "MDQ6VXNlcjQ0MTgzODI=",
"organizations_url": "https://api.github.com/users/tpietruszka/orgs",
"received_events_url": "https://api.github.com/users/tpietruszka/received_events",
"repos_url": "https://api.github.com/users/tpietruszka/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tpietruszka/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tpietruszka/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tpietruszka"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2016-07-05T15:06:42Z | 2016-07-11T15:03:02Z | 2016-07-11T15:02:25Z | NONE | null | #### Code Sample
``` python
>>> import pandas as pd
>>> import numpy as np
>>>
>>> df = pd.DataFrame({'A' : ['foo', 'bar', 'foo', 'bar',
... 'foo', 'bar', 'foo', 'foo'],
... 'B' : ['one', 'one', 'two', 'three',
... 'two', 'two', 'one', 'three'],
... 'C' : np.random.randn(8),
... 'D' : np.random.randn(8)})
>>>
>>> gb = df.groupby('B')
>>>
>>> gb[['C', 'D']].apply(lambda group: group.C.mean() - group.D.mean())
```
Works fine on 0.18.0.
On 0.18.1 throws:
> TypeError: Series.name must be a hashable type
#### Expected Output
> B
> one 0.609650
> three -1.027308
> two 0.515237
> dtype: float64
(some other random numbers)
### Comment
With 0.18.1 update, some piece of my code stopped working, in a quite surprising way.
The code is easy to fix - just by removing [['C', 'D']] and applying on the whole groupby object.
Nevertheless, its a regression in a point release and I think someone else may run into the same problem.
I am guessing that pandas is trying to generate a name for the result series based on the column list - unfortunately I cannot investigate further right now.
#### output of `pd.show_versions()`
## INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-24-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 24.0.2
Cython: None
numpy: 1.11.1
scipy: None
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13568/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13568/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13569 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13569/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13569/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13569/events | https://github.com/pandas-dev/pandas/issues/13569 | 163,902,948 | MDU6SXNzdWUxNjM5MDI5NDg= | 13,569 | frame and columns can get out of sync | {
"avatar_url": "https://avatars.githubusercontent.com/u/980054?v=4",
"events_url": "https://api.github.com/users/dsm054/events{/privacy}",
"followers_url": "https://api.github.com/users/dsm054/followers",
"following_url": "https://api.github.com/users/dsm054/following{/other_user}",
"gists_url": "https://api.github.com/users/dsm054/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsm054",
"id": 980054,
"login": "dsm054",
"node_id": "MDQ6VXNlcjk4MDA1NA==",
"organizations_url": "https://api.github.com/users/dsm054/orgs",
"received_events_url": "https://api.github.com/users/dsm054/received_events",
"repos_url": "https://api.github.com/users/dsm054/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsm054/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsm054/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsm054"
} | [
{
"color": "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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
]
| closed | false | null | []
| {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2016-07-05T17:24:18Z | 2021-05-17T15:17:29Z | 2021-05-17T15:17:29Z | CONTRIBUTOR | null | When using `.loc` to expand a column, the dataframe and the constituent Series can get out of sync. This led to a strange issue in some legacy code I inherited. Because of the copy/view issues I wouldn't have written this particular code myself, but it still cost me some time tracking down what was happening:
```
df = pd.DataFrame({"a": [10,20,30]})
df["a"].loc[4] = 40
```
gives me
```
In [224]: df
Out[224]:
a
0 10
1 20
2 30
In [225]: df["a"]
Out[225]:
0 10
1 20
2 30
4 40
Name: a, dtype: int64
In [226]: df.shape, df["a"].shape
Out[226]: ((3, 1), (4,))
```
which is a little unnerving. I expected that `df` and `df["a"]` would both be unchanged or both be changed. Not sure if it's too much trouble to fix and we should just say "don't move your arm like that", though.
@jorisvandenbossche reported the same thing in master; here I'm on 0.18.0.
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.3
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.5.1
pytz: 2016.2
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.0
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13569/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13569/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13570 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13570/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13570/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13570/events | https://github.com/pandas-dev/pandas/issues/13570 | 163,930,974 | MDU6SXNzdWUxNjM5MzA5NzQ= | 13,570 | Test failure with matplotlib 1.5.2rc2 on Debian | {
"avatar_url": "https://avatars.githubusercontent.com/u/397223?v=4",
"events_url": "https://api.github.com/users/olebole/events{/privacy}",
"followers_url": "https://api.github.com/users/olebole/followers",
"following_url": "https://api.github.com/users/olebole/following{/other_user}",
"gists_url": "https://api.github.com/users/olebole/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/olebole",
"id": 397223,
"login": "olebole",
"node_id": "MDQ6VXNlcjM5NzIyMw==",
"organizations_url": "https://api.github.com/users/olebole/orgs",
"received_events_url": "https://api.github.com/users/olebole/received_events",
"repos_url": "https://api.github.com/users/olebole/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/olebole/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/olebole/subscriptions",
"type": "User",
"url": "https://api.github.com/users/olebole"
} | [
{
"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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 9 | 2016-07-05T19:48:28Z | 2016-07-14T08:44:19Z | 2016-07-14T08:44:19Z | NONE | null | When running the test suite after the package was built, we get the following failure:
```
ERROR: test_plot (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/$BUILD/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/test_graphics.py", line 1322, in test_plot
df.plot.line(blarg=True)
File "/$BUILD/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tools/plotting.py", line 3758, in line
return self(kind='line', x=x, y=y, **kwds)
[...]
File "/$BUILD/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tools/plotting.py", line 1340, in _plot
return ax.plot(*args, **kwds)
File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 1821, in inner
return func(ax, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_axes.py", line 1432, in plot
for line in self._get_lines(*args, **kwargs):
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 381, in _grab_next_args
for seg in self._plot_args(remaining, kwargs):
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 369, in _plot_args
seg = func(x[:, j % ncx], y[:, j % ncy], kw, kwargs)
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 276, in _makeline
seg = mlines.Line2D(x, y, **kw)
File "/usr/lib/python2.7/dist-packages/matplotlib/lines.py", line 380, in __init__
self.update(kwargs)
File "/usr/lib/python2.7/dist-packages/matplotlib/artist.py", line 859, in update
raise AttributeError('Unknown property %s' % k)
AttributeError: Unknown property blarg
```
Full log [here](https://tests.reproducible-builds.org/debian/rbuild/testing/amd64/pandas_0.18.0+git114-g6c692ae-1.rbuild.log) (from the [Debian bug report](https://bugs.debian.org/827938)).
`pandas.show_versions()` gives:
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.6.0-1-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: C
LANG: C
pandas: 0.18.0+git114-g6c692ae
nose: 1.3.7
pip: None
setuptools: 20.10.1
Cython: None
numpy: 1.11.1rc1
scipy: 0.17.1
statsmodels: 0.6.1
xarray: None
IPython: None
sphinx: 1.4.4
patsy: 0.4.1
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.6.0
matplotlib: 1.5.2rc2
openpyxl: 2.3.0
xlrd: 1.0.0
xlwt: 0.7.5
xlsxwriter: None
lxml: 3.6.0
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13570/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13570/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13571 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13571/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13571/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13571/events | https://github.com/pandas-dev/pandas/pull/13571 | 163,951,811 | MDExOlB1bGxSZXF1ZXN0NzYzNDY3MzQ= | 13,571 | BUG: read_csv throws UnicodeDecodeError with unicode aliases | {
"avatar_url": "https://avatars.githubusercontent.com/u/10804060?v=4",
"events_url": "https://api.github.com/users/nateGeorge/events{/privacy}",
"followers_url": "https://api.github.com/users/nateGeorge/followers",
"following_url": "https://api.github.com/users/nateGeorge/following{/other_user}",
"gists_url": "https://api.github.com/users/nateGeorge/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nateGeorge",
"id": 10804060,
"login": "nateGeorge",
"node_id": "MDQ6VXNlcjEwODA0MDYw",
"organizations_url": "https://api.github.com/users/nateGeorge/orgs",
"received_events_url": "https://api.github.com/users/nateGeorge/received_events",
"repos_url": "https://api.github.com/users/nateGeorge/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nateGeorge/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nateGeorge/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nateGeorge"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 19 | 2016-07-05T21:32:40Z | 2016-08-21T20:47:08Z | 2016-08-19T23:07:50Z | CONTRIBUTOR | null | Rebased as PR https://github.com/pydata/pandas/pull/14060
---
- [x] closes #13549
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
-read_csv with engine=c throws error when encoding=UTF_16 (anything other than utf-16)
-improved nosetests and moved to in pandas/io/tests/common.py
-passes `pep8radius upstream/master --diff` and `git diff upstream/master | flake8 --diff`
-put what's new entry in 0.19.0 in accordance with milestone posted on issue
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13571/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13571/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13571.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13571",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13571.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13571"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13572 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13572/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13572/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13572/events | https://github.com/pandas-dev/pandas/issues/13572 | 164,063,406 | MDU6SXNzdWUxNjQwNjM0MDY= | 13,572 | Not possible to find first element in non-monotonic DateTimeIndex if string is used | {
"avatar_url": "https://avatars.githubusercontent.com/u/4710853?v=4",
"events_url": "https://api.github.com/users/tjader/events{/privacy}",
"followers_url": "https://api.github.com/users/tjader/followers",
"following_url": "https://api.github.com/users/tjader/following{/other_user}",
"gists_url": "https://api.github.com/users/tjader/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tjader",
"id": 4710853,
"login": "tjader",
"node_id": "MDQ6VXNlcjQ3MTA4NTM=",
"organizations_url": "https://api.github.com/users/tjader/orgs",
"received_events_url": "https://api.github.com/users/tjader/received_events",
"repos_url": "https://api.github.com/users/tjader/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tjader/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tjader/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tjader"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "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"
} | 7 | 2016-07-06T12:23:22Z | 2019-06-28T16:32:00Z | 2019-06-28T16:32:00Z | NONE | null | There is an inconsistency when you look for dates in a DateTimeIndex if you query using strings and the index is non-monotonic. The first element in the index cannot be found in this way, but if you manually convert it to a timestamp object, or if you look for elements other than the first, then the lookup is successful.
#### Code Sample, a copy-pastable example if possible
``` python
>>> import pandas as pd
>>> idx = pd.to_datetime(['2015-01-01', '2015-01-02', '2015-01-05', '2015-01-04'])
>>> idx
Out[38]: DatetimeIndex(['2015-01-01', '2015-01-02', '2015-01-05', '2015-01-04'], dtype='datetime64[ns]', freq=None)
>>> idx.is_monotonic
Out[29]: False
>>> idx = pd.to_datetime(['2015-01-01', '2015-01-02', '2015-01-05', '2015-01-04'])
>>> '2015-01-01' in idx # This should work
Out[31]: False
>>> pd.Timestamp('2015-01-01') in idx
Out[32]: True
>>> '2015-01-02' in idx
Out[33]: True
>>> '2015-01-04' in idx
Out[34]: True
```
#### Expected Output
``` python
>>> '2015-01-01' in idx
Out[31]: True
```
#### output of `pd.show_versions()`
``` python
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-573.7.1.el6.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7.commod
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: 0.7.2
IPython: 4.1.2
sphinx: 1.3.5
patsy: 0.4.1
dateutil: 2.5.2
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.3.2
html5lib: 0.999
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.0
pandas_datareader: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13572/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13572/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13573 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13573/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13573/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13573/events | https://github.com/pandas-dev/pandas/pull/13573 | 164,077,386 | MDExOlB1bGxSZXF1ZXN0NzY0MzMzMTQ= | 13,573 | Remove test plot line blarg | {
"avatar_url": "https://avatars.githubusercontent.com/u/397223?v=4",
"events_url": "https://api.github.com/users/olebole/events{/privacy}",
"followers_url": "https://api.github.com/users/olebole/followers",
"following_url": "https://api.github.com/users/olebole/following{/other_user}",
"gists_url": "https://api.github.com/users/olebole/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/olebole",
"id": 397223,
"login": "olebole",
"node_id": "MDQ6VXNlcjM5NzIyMw==",
"organizations_url": "https://api.github.com/users/olebole/orgs",
"received_events_url": "https://api.github.com/users/olebole/received_events",
"repos_url": "https://api.github.com/users/olebole/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/olebole/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/olebole/subscriptions",
"type": "User",
"url": "https://api.github.com/users/olebole"
} | [
{
"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": "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": 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-07-06T13:38:00Z | 2016-07-13T18:05:54Z | 2016-07-13T15:41:44Z | NONE | null | Superceded by #13641
---
- [x] closes #13570
- [x] tests passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [X] whatsnew entry
The "blarg" argument is propagated to matplotlib and there it raises an
AttributeError (and not a TypeError).
However, since the test doesn't seem to have a rationale, it is removed here.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13573/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13573/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13573.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13573",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13573.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13573"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13574 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13574/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13574/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13574/events | https://github.com/pandas-dev/pandas/pull/13574 | 164,177,163 | MDExOlB1bGxSZXF1ZXN0NzY1MDQwNjk= | 13,574 | Fix bug in contains when looking up a string in a non-monotonic datet… | {
"avatar_url": "https://avatars.githubusercontent.com/u/4710853?v=4",
"events_url": "https://api.github.com/users/tjader/events{/privacy}",
"followers_url": "https://api.github.com/users/tjader/followers",
"following_url": "https://api.github.com/users/tjader/following{/other_user}",
"gists_url": "https://api.github.com/users/tjader/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tjader",
"id": 4710853,
"login": "tjader",
"node_id": "MDQ6VXNlcjQ3MTA4NTM=",
"organizations_url": "https://api.github.com/users/tjader/orgs",
"received_events_url": "https://api.github.com/users/tjader/received_events",
"repos_url": "https://api.github.com/users/tjader/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tjader/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tjader/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tjader"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-07-06T21:21:25Z | 2016-07-16T23:04:06Z | 2016-07-16T23:04:06Z | NONE | null | - [ ] closes #13572
- [x] tests added / passed
pandas.tests.indexes.test_datetimelike.TestDatetimeIndex:test_contains
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
…ime index and the object in question is first in the index.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13574/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13574/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13574.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13574",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13574.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13574"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13575 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13575/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13575/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13575/events | https://github.com/pandas-dev/pandas/pull/13575 | 164,240,865 | MDExOlB1bGxSZXF1ZXN0NzY1NDY0NzM= | 13,575 | ENH: Adding additional keywords to read_html for #13461 | {
"avatar_url": "https://avatars.githubusercontent.com/u/2158394?v=4",
"events_url": "https://api.github.com/users/gte620v/events{/privacy}",
"followers_url": "https://api.github.com/users/gte620v/followers",
"following_url": "https://api.github.com/users/gte620v/following{/other_user}",
"gists_url": "https://api.github.com/users/gte620v/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gte620v",
"id": 2158394,
"login": "gte620v",
"node_id": "MDQ6VXNlcjIxNTgzOTQ=",
"organizations_url": "https://api.github.com/users/gte620v/orgs",
"received_events_url": "https://api.github.com/users/gte620v/received_events",
"repos_url": "https://api.github.com/users/gte620v/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gte620v/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gte620v/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gte620v"
} | [
{
"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": "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 | []
| {
"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-07-07T06:47:15Z | 2016-07-21T14:21:03Z | 2016-07-21T14:16:50Z | CONTRIBUTOR | null | - [x] closes #13461
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13575/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13575/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13575.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13575",
"merged_at": "2016-07-21T14:16:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13575.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13575"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13576 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13576/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13576/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13576/events | https://github.com/pandas-dev/pandas/issues/13576 | 164,244,521 | MDU6SXNzdWUxNjQyNDQ1MjE= | 13,576 | BUG: python and c engines for read_csv treat blank spaces differently, when using converters | {
"avatar_url": "https://avatars.githubusercontent.com/u/2158394?v=4",
"events_url": "https://api.github.com/users/gte620v/events{/privacy}",
"followers_url": "https://api.github.com/users/gte620v/followers",
"following_url": "https://api.github.com/users/gte620v/following{/other_user}",
"gists_url": "https://api.github.com/users/gte620v/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gte620v",
"id": 2158394,
"login": "gte620v",
"node_id": "MDQ6VXNlcjIxNTgzOTQ=",
"organizations_url": "https://api.github.com/users/gte620v/orgs",
"received_events_url": "https://api.github.com/users/gte620v/received_events",
"repos_url": "https://api.github.com/users/gte620v/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gte620v/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gte620v/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gte620v"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 7 | 2016-07-07T07:15:51Z | 2016-07-08T09:56:54Z | 2016-07-08T09:56:41Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```
In [109]:
data = np.array([[ 'c1', 'c2'],
[ '', 0.285],
[ 10.1, 0.285]], dtype=object)
In [110]:
pd.DataFrame(data).to_csv('test.csv',header=False,index=False)
In [111]:
!cat test.csv
Out[111]:
c1,c2
,0.285
10.1,0.285
In [113]:
pd.read_csv('test.csv',converters={'c1':str},engine='c').values
Out[113]:
array([['', 0.285],
['10.1', 0.285]], dtype=object)
In [114]:
pd.read_csv('test.csv',converters={'c1':str},engine='python').values
Out[114]:
array([[nan, 0.285],
['10.1', 0.285]], dtype=object)
```
#### Expected Output
Notice that the output for the python engine and the c engine are different. I am not sure which one is preferable/expected.
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 13.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 21.0.0
Cython: 0.23.4
numpy: 1.11.0
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.5.2
pytz: 2016.3
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.6
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.5.0
bs4: 4.4.1
html5lib: 0.9999999
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: 2.39.0
```
### Details
The culpruit seems to be this function: https://github.com/pydata/pandas/blob/master/pandas/io/parsers.py#L1299
Before that call, `results` and `values` both contain the `''` string in the python engine version of the parser. That call changes the `''`' value in `values` to `nan` and thus changes the value of `results` as well. Specifically, the change for the python engine happens here: https://github.com/pydata/pandas/blob/0c6226cbbc319ec22cf4c957bdcc055eaa7aea99/pandas/src/inference.pyx#L1009
```
if (convert_empty and val == '') or (val in na_values)
```
It seems that `na_values` contains `''` by default for certain parsing calls. This means that when `val == ''` triggers the `nan` conversion whether or not `convert_empty` is true.
I haven't tracked down the change in the `c` engine.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13576/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13576/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13577 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13577/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13577/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13577/events | https://github.com/pandas-dev/pandas/issues/13577 | 164,262,241 | MDU6SXNzdWUxNjQyNjIyNDE= | 13,577 | GbqConnector should be able to fetch default credentials on Google Compute Engine | {
"avatar_url": "https://avatars.githubusercontent.com/u/7199752?v=4",
"events_url": "https://api.github.com/users/mhaseebtariq/events{/privacy}",
"followers_url": "https://api.github.com/users/mhaseebtariq/followers",
"following_url": "https://api.github.com/users/mhaseebtariq/following{/other_user}",
"gists_url": "https://api.github.com/users/mhaseebtariq/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mhaseebtariq",
"id": 7199752,
"login": "mhaseebtariq",
"node_id": "MDQ6VXNlcjcxOTk3NTI=",
"organizations_url": "https://api.github.com/users/mhaseebtariq/orgs",
"received_events_url": "https://api.github.com/users/mhaseebtariq/received_events",
"repos_url": "https://api.github.com/users/mhaseebtariq/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mhaseebtariq/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mhaseebtariq/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mhaseebtariq"
} | [
{
"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-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-07-07T09:04:06Z | 2016-08-18T10:49:30Z | 2016-08-18T10:49:30Z | CONTRIBUTOR | null | https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py
```
class GbqConnector(object):
...
def get_user_account_credentials(self):
...
...
```
Google Compute Engine and Google Dataproc etc. already have default application credentials on them. Therefore, there is no need of running `OAuth2WebServerFlow` while the method `get_user_account_credentials` is being called - instead `return GoogleCredentials.get_application_default()` is all you need. This change will allow you to run `GbqConnector` on commandline-only systems on Google Compute Engine without a need of a service account json key.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13577/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13577/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13578 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13578/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13578/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13578/events | https://github.com/pandas-dev/pandas/pull/13578 | 164,265,331 | MDExOlB1bGxSZXF1ZXN0NzY1NjM0MzM= | 13,578 | Default credentials for Google Compute Engine (#13577) | {
"avatar_url": "https://avatars.githubusercontent.com/u/7199752?v=4",
"events_url": "https://api.github.com/users/mhaseebtariq/events{/privacy}",
"followers_url": "https://api.github.com/users/mhaseebtariq/followers",
"following_url": "https://api.github.com/users/mhaseebtariq/following{/other_user}",
"gists_url": "https://api.github.com/users/mhaseebtariq/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mhaseebtariq",
"id": 7199752,
"login": "mhaseebtariq",
"node_id": "MDQ6VXNlcjcxOTk3NTI=",
"organizations_url": "https://api.github.com/users/mhaseebtariq/orgs",
"received_events_url": "https://api.github.com/users/mhaseebtariq/received_events",
"repos_url": "https://api.github.com/users/mhaseebtariq/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mhaseebtariq/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mhaseebtariq/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mhaseebtariq"
} | [
{
"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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2016-07-07T09:20:00Z | 2016-07-11T08:36:47Z | 2016-07-10T20:18:41Z | CONTRIBUTOR | null | - [x] closes #13577
- [x] passed all existing tests for GbqConnector
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13578/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13578/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13578.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13578",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13578.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13578"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13579 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13579/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13579/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13579/events | https://github.com/pandas-dev/pandas/pull/13579 | 164,328,360 | MDExOlB1bGxSZXF1ZXN0NzY2MDg5NTg= | 13,579 | CLN: move plotting funcs to pd.plotting | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"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": 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"
} | 13 | 2016-07-07T14:51:30Z | 2019-10-25T16:37:24Z | 2017-04-14T23:54:36Z | MEMBER | null | Rebased in #16005
---
- [x] closes #12548
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
cleanup `tools/plotting` as `plotting` subpackage. Because the differences are being huge, would like to split 3 part if base direction is OK:
~~1. Move plotting related tests under `pandas/tests/plotting` splitting to `Series`, `DataFrame`, etc. (0.18.2)~~ (#13621)
2. Create `pd.plotting` and move related files (0.20.0)
3. Split / refactor `pd.plotting` to use small utility functions / property control classes. Add tests. (0.20.0)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13579/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13579/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13579.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13579",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13579.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13579"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13580 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13580/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13580/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13580/events | https://github.com/pandas-dev/pandas/issues/13580 | 164,391,824 | MDU6SXNzdWUxNjQzOTE4MjQ= | 13,580 | InStr Comparison between two values on the same row in the same DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/15171389?v=4",
"events_url": "https://api.github.com/users/vlstrode/events{/privacy}",
"followers_url": "https://api.github.com/users/vlstrode/followers",
"following_url": "https://api.github.com/users/vlstrode/following{/other_user}",
"gists_url": "https://api.github.com/users/vlstrode/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vlstrode",
"id": 15171389,
"login": "vlstrode",
"node_id": "MDQ6VXNlcjE1MTcxMzg5",
"organizations_url": "https://api.github.com/users/vlstrode/orgs",
"received_events_url": "https://api.github.com/users/vlstrode/received_events",
"repos_url": "https://api.github.com/users/vlstrode/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vlstrode/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vlstrode/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vlstrode"
} | [
{
"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": "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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 4 | 2016-07-07T19:47:21Z | 2016-07-11T12:02:16Z | 2016-07-09T05:30:47Z | NONE | null | Enhancement Request:
- InStr Comparison between two values on the same row in the same DataFrame
Would be great if pandas would enable some 'instr' functionality between two columns.
For instance, being able to tell when the contents of one value exist in another:
- Excel does this in the following manner:
`=instr(0, a1&"."&b1, c1, vbTextCompare)`
- In Teradata SQL (not ansi compliant):
`select databsename, tablename, requeststring,`
`index(createstring, databasename||'.'||tablename)`
`from dbc.tables;`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13580/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13580/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13581 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13581/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13581/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13581/events | https://github.com/pandas-dev/pandas/pull/13581 | 164,405,207 | MDExOlB1bGxSZXF1ZXN0NzY2NjM2ODQ= | 13,581 | BUG: DatetimeIndex - Period shows ununderstandable error | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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-07-07T20:55:22Z | 2016-07-10T21:03:00Z | 2016-07-10T21:02:56Z | MEMBER | null | - [x] closes #13078
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13581/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13581/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13581.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13581",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13581.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13581"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13582 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13582/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13582/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13582/events | https://github.com/pandas-dev/pandas/issues/13582 | 164,417,568 | MDU6SXNzdWUxNjQ0MTc1Njg= | 13,582 | Checking for NaT in PeriodIndex doesn't work with None, pd.NaT | {
"avatar_url": "https://avatars.githubusercontent.com/u/4710853?v=4",
"events_url": "https://api.github.com/users/tjader/events{/privacy}",
"followers_url": "https://api.github.com/users/tjader/followers",
"following_url": "https://api.github.com/users/tjader/following{/other_user}",
"gists_url": "https://api.github.com/users/tjader/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tjader",
"id": 4710853,
"login": "tjader",
"node_id": "MDQ6VXNlcjQ3MTA4NTM=",
"organizations_url": "https://api.github.com/users/tjader/orgs",
"received_events_url": "https://api.github.com/users/tjader/received_events",
"repos_url": "https://api.github.com/users/tjader/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tjader/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tjader/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tjader"
} | [
{
"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": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 1 | 2016-07-07T22:02:16Z | 2016-07-15T00:30:34Z | 2016-07-15T00:30:34Z | NONE | null | #### Code Sample, a copy-pastable example if possible
``` python
>>> None in pd.period_range('2015-01-01', periods=1, freq='D').insert(0, pd.NaT)
False
```
Incorrect behavior for `pd.NaT, None, float('nan'), np.nan`
#### Expected Output
``` python
>>> None in pd.period_range('2015-01-01', periods=1, freq='D').insert(0, pd.NaT)
True
```
#### output of `pd.show_versions()`
``` python
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.10.4
scipy: 0.17.1
statsmodels: None
xarray: 0.7.2
IPython: None
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
```
| {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13582/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13582/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13583 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13583/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13583/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13583/events | https://github.com/pandas-dev/pandas/pull/13583 | 164,426,159 | MDExOlB1bGxSZXF1ZXN0NzY2NzkzNTM= | 13,583 | BUG: Block/DTI doesnt handle tzlocal properly | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "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-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-07-07T23:02:00Z | 2016-07-10T22:05:12Z | 2016-07-10T22:05:03Z | MEMBER | null | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Unable to concatenate `Series` with `tzlocal`
```
s = pd.Series([pd.Timestamp('2011-01-01', tz=dateutil.tz.tzlocal())])
s
#0 2011-01-01 00:00:00+09:00
# dtype: datetime64[ns, tzlocal()]
pd.concat([s, s])
# UnknownTimeZoneError: 'tzlocal()'
```
It is caused by 2 issues:
#### 1. `tslib.maybe_get_tz` can't handle `tzlocal`.
```
pd.tslib.maybe_get_tz('tzlocal()')
# UnknownTimeZoneError: 'tzlocal()'
```
#### 2. `DatetimeIndex.tz_localize` may return incorrect result when `tzlocal` is used.
it's internally used in `conat`.
```
pd.DatetimeIndex(['2011-01-01', '2011-01-02'], tz=dateutil.tz.tzlocal()).tz_localize(None)
# DatetimeIndex(['2011-01-01', '1970-01-01'], dtype='datetime64[ns]', freq=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/13583/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13583/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13583.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13583",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13583.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13583"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13584 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13584/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13584/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13584/events | https://github.com/pandas-dev/pandas/pull/13584 | 164,441,108 | MDExOlB1bGxSZXF1ZXN0NzY2ODk2MTU= | 13,584 | COMPAT: 32-bit compat fixes mainly in testing | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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-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"
} | 8 | 2016-07-08T01:18:22Z | 2016-07-09T18:16:40Z | 2016-07-09T18:16:40Z | CONTRIBUTOR | null | closes #13566
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13584/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13584/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13584.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13584",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13584.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13584"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13585 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13585/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13585/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13585/events | https://github.com/pandas-dev/pandas/pull/13585 | 164,493,985 | MDExOlB1bGxSZXF1ZXN0NzY3MjU4Mjc= | 13,585 | BUG: groupby apply on selected columns yielding scalar (GH13568) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
]
| closed | false | null | []
| {
"closed_at": "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"
} | 6 | 2016-07-08T09:35:57Z | 2016-07-11T15:02:25Z | 2016-07-11T15:02:25Z | MEMBER | null | - [x] closes #13568
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13585/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13585/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13585.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13585",
"merged_at": "2016-07-11T15:02:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13585.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13585"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13586 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13586/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13586/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13586/events | https://github.com/pandas-dev/pandas/pull/13586 | 164,503,870 | MDExOlB1bGxSZXF1ZXN0NzY3MzMwMzc= | 13,586 | RLS: switch master from 0.18.2 to 0.19.0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "006b75",
"default": false,
"description": null,
"id": 131473665,
"name": "Release",
"node_id": "MDU6TGFiZWwxMzE0NzM2NjU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Release"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2016-07-08T10:35:11Z | 2016-07-08T15:08:26Z | 2016-07-08T15:08:02Z | MEMBER | null | xref #13562
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13586/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13586/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13586.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13586",
"merged_at": "2016-07-08T15:08:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13586.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13586"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13587 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13587/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13587/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13587/events | https://github.com/pandas-dev/pandas/issues/13587 | 164,553,546 | MDU6SXNzdWUxNjQ1NTM1NDY= | 13,587 | Logical comparison operators and mathematical operators are applied inconsistently for series. | {
"avatar_url": "https://avatars.githubusercontent.com/u/7705100?v=4",
"events_url": "https://api.github.com/users/RobertasA/events{/privacy}",
"followers_url": "https://api.github.com/users/RobertasA/followers",
"following_url": "https://api.github.com/users/RobertasA/following{/other_user}",
"gists_url": "https://api.github.com/users/RobertasA/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RobertasA",
"id": 7705100,
"login": "RobertasA",
"node_id": "MDQ6VXNlcjc3MDUxMDA=",
"organizations_url": "https://api.github.com/users/RobertasA/orgs",
"received_events_url": "https://api.github.com/users/RobertasA/received_events",
"repos_url": "https://api.github.com/users/RobertasA/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RobertasA/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RobertasA/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RobertasA"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
]
| closed | false | null | []
| null | 1 | 2016-07-08T15:18:17Z | 2016-07-12T10:21:21Z | 2016-07-12T10:21:21Z | NONE | null | In series all logical operators are by position (iloc) while all mathematical operators are by location (loc).
This is probably similar to https://github.com/pydata/pandas/issues/4581.
e.g.
`import pandas as pd`
`a = pd.Series([1, 4], index=[0, 1])`
`b = pd.Series([3, 7], index=[1, 0])`
`a>b`
Gives
`0 False`
`1 False`
`dtype: bool`
But
`a - b`
gives
`0 -6`
`1 1`
`dtype: int64`
#### output of `pd.show_versions()`
`
> > > pd.show_versions()
## INSTALLED VERSIONS
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Darwin
OS-release: 15.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
pandas: 0.18.1
nose: None
pip: 1.5.6
setuptools: 3.6
Cython: None
numpy: 1.11.1
scipy: None
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13587/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13587/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13588 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13588/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13588/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13588/events | https://github.com/pandas-dev/pandas/pull/13588 | 164,599,368 | MDExOlB1bGxSZXF1ZXN0NzY4MDE4NTE= | 13,588 | DOC: Add Fedora and Centos install instructions | {
"avatar_url": "https://avatars.githubusercontent.com/u/230335?v=4",
"events_url": "https://api.github.com/users/mscherer/events{/privacy}",
"followers_url": "https://api.github.com/users/mscherer/followers",
"following_url": "https://api.github.com/users/mscherer/following{/other_user}",
"gists_url": "https://api.github.com/users/mscherer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mscherer",
"id": 230335,
"login": "mscherer",
"node_id": "MDQ6VXNlcjIzMDMzNQ==",
"organizations_url": "https://api.github.com/users/mscherer/orgs",
"received_events_url": "https://api.github.com/users/mscherer/received_events",
"repos_url": "https://api.github.com/users/mscherer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mscherer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mscherer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mscherer"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2016-07-08T19:24:13Z | 2016-07-24T18:13:43Z | 2016-07-24T18:13:43Z | CONTRIBUTOR | null | Since Fedora and Centos use a different tools than OpenSuse, and
have their own packages in official repositories, it is better
to point to them than the one from OpenSuse.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13588/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13588/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13588.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13588",
"merged_at": "2016-07-24T18:13:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13588.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13588"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13589 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13589/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13589/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13589/events | https://github.com/pandas-dev/pandas/issues/13589 | 164,599,929 | MDU6SXNzdWUxNjQ1OTk5Mjk= | 13,589 | Series.sort_index does not accept kwargs kind and na_position. | {
"avatar_url": "https://avatars.githubusercontent.com/u/2002703?v=4",
"events_url": "https://api.github.com/users/IamJeffG/events{/privacy}",
"followers_url": "https://api.github.com/users/IamJeffG/followers",
"following_url": "https://api.github.com/users/IamJeffG/following{/other_user}",
"gists_url": "https://api.github.com/users/IamJeffG/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/IamJeffG",
"id": 2002703,
"login": "IamJeffG",
"node_id": "MDQ6VXNlcjIwMDI3MDM=",
"organizations_url": "https://api.github.com/users/IamJeffG/orgs",
"received_events_url": "https://api.github.com/users/IamJeffG/received_events",
"repos_url": "https://api.github.com/users/IamJeffG/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/IamJeffG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IamJeffG/subscriptions",
"type": "User",
"url": "https://api.github.com/users/IamJeffG"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
]
| 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"
} | 3 | 2016-07-08T19:27:36Z | 2016-12-04T20:32:42Z | 2016-12-04T20:32:42Z | CONTRIBUTOR | null | The sort_index method on DataFrame and NDFrame takes kwargs `kind` and `na_position`, but `Series` does not currently support it. (In addition their shared docstring says Series would support it.)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13589/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13589/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13590 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13590/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13590/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13590/events | https://github.com/pandas-dev/pandas/pull/13590 | 164,652,042 | MDExOlB1bGxSZXF1ZXN0NzY4Mzg3MjM= | 13,590 | DEPR: Remove legacy offsets | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-07-09T05:56:57Z | 2016-07-19T01:30:42Z | 2016-07-19T01:30:42Z | MEMBER | null | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
Follow-up of #10951. Remove legacy offsets deprecated in 0.17.0.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13590/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13590/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13590.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13590",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13590.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13590"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13591 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13591/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13591/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13591/events | https://github.com/pandas-dev/pandas/issues/13591 | 164,657,422 | MDU6SXNzdWUxNjQ2NTc0MjI= | 13,591 | Non expected result from to_msgpack with Python 2 and read_msgpack Python 3 | {
"avatar_url": "https://avatars.githubusercontent.com/u/8209940?v=4",
"events_url": "https://api.github.com/users/VelizarVESSELINOV/events{/privacy}",
"followers_url": "https://api.github.com/users/VelizarVESSELINOV/followers",
"following_url": "https://api.github.com/users/VelizarVESSELINOV/following{/other_user}",
"gists_url": "https://api.github.com/users/VelizarVESSELINOV/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/VelizarVESSELINOV",
"id": 8209940,
"login": "VelizarVESSELINOV",
"node_id": "MDQ6VXNlcjgyMDk5NDA=",
"organizations_url": "https://api.github.com/users/VelizarVESSELINOV/orgs",
"received_events_url": "https://api.github.com/users/VelizarVESSELINOV/received_events",
"repos_url": "https://api.github.com/users/VelizarVESSELINOV/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/VelizarVESSELINOV/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VelizarVESSELINOV/subscriptions",
"type": "User",
"url": "https://api.github.com/users/VelizarVESSELINOV"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "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": 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-07-09T08:30:49Z | 2019-10-12T23:51:05Z | 2019-10-12T23:51:05Z | NONE | null | #### Code Sample, a copy-pastable example if possible
Step 1. Run the code with Python 2 and Python 3
``` python
from sys import version
from pandas import DataFrame
print(version)
vers = version[0]
file_name = 'foobar'
data = {'a': [1], 'b': [2]}
dtf = DataFrame(data=data)
dtf.to_msgpack(file_name + '_py{}.msg'.format(vers))
```
Step 2. Run the code with Python 2 and Python 3
``` python
from sys import version
from pandas import read_msgpack
print(version)
vers = version[0]
file_name = 'foobar'
dtf = read_msgpack(file_name + '_py3.msg'.format(vers))
print(dtf.columns)
print(dtf.a)
dtf = read_msgpack(file_name + '_py2.msg'.format(vers))
# dtf.columns = [i.decode("utf-8") for i in dtf.columns]
print(dtf.columns)
print(dtf.a)
```
#### Expected Output
Same result with Python 2 and Python 3
Python 2 output:
```
2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]
Index([u'a', u'b'], dtype='object')
0 1
Name: a, dtype: int64
Index([u'a', u'b'], dtype='object')
0 1
Name: a, dtype: int64
```
Python 3 output, the exception it is not expected:
```
3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
Index(['a', 'b'], dtype='object')
0 1
Name: a, dtype: int64
Index([b'a', b'b'], dtype='object')
Traceback (most recent call last):
File "/Users/VV/GitHub/doptimization/bug_msgpack_reader.py", line 16, in <module>
print(dtf.a)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/generic.py", line 2669, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'a'
```
#### output of `pd.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.0
nose: None
pip: 8.1.2
setuptools: 20.6.7
Cython: None
numpy: 1.11.0
scipy: 0.16.1
statsmodels: None
xarray: None
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.0
nose: None
pip: 8.1.2
setuptools: 20.6.7
Cython: None
numpy: 1.11.0
scipy: 0.16.1
statsmodels: None
xarray: None
IPython: 4.0.1
sphinx: None
patsy: None
dateutil: 2.5.2
pytz: 2016.3
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: 2.3.5
xlrd: 1.0.0
xlwt: 1.0.0
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
None
3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
Index(['a', 'b'], dtype='object')
0 1
Name: a, dtype: int64
Index([b'a', b'b'], dtype='object')
IPython: 4.0.1
sphinx: None
patsy: None
dateutil: 2.5.2
pytz: 2016.3
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.0
openpyxl: 2.3.5
xlrd: 1.0.0
xlwt: 1.0.0
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: 0.9.2
apiclient: 1.5.0
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13591/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13591/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13592 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13592/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13592/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13592/events | https://github.com/pandas-dev/pandas/pull/13592 | 164,664,985 | MDExOlB1bGxSZXF1ZXN0NzY4NDU4NzQ= | 13,592 | BUG: Series/Index contains NaT with object dtype comparison incorrect | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 5 | 2016-07-09T12:26:50Z | 2016-07-11T01:37:13Z | 2016-07-11T01:37:09Z | MEMBER | null | - [x] closes #9005
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
`Series` and `Index` compares `NaT == NaT` as `True` if it has `object` dtype.
```
pd.Series([pd.NaT])
#0 NaT
# dtype: datetime64[ns]
# OK
pd.Series([pd.NaT]) == pd.NaT
#0 False
# dtype: bool
# NG in object dtype
pd.Series([pd.NaT], dtype=object) == pd.NaT
#0 True
# dtype: bool
# OK
pd.Index([pd.NaT]) == pd.NaT
array([False], dtype=bool)
# NG in object dtype
pd.Index([pd.NaT], dtype=object) == pd.NaT
# array([ True], dtype=bool)
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13592/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13592/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13592.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13592",
"merged_at": "2016-07-11T01:37:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13592.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13592"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13593 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13593/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13593/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13593/events | https://github.com/pandas-dev/pandas/pull/13593 | 164,670,547 | MDExOlB1bGxSZXF1ZXN0NzY4NDg4MTA= | 13,593 | DEPR: rename Timestamp.offset to .freq | {
"avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4",
"events_url": "https://api.github.com/users/sinhrks/events{/privacy}",
"followers_url": "https://api.github.com/users/sinhrks/followers",
"following_url": "https://api.github.com/users/sinhrks/following{/other_user}",
"gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sinhrks",
"id": 1696302,
"login": "sinhrks",
"node_id": "MDQ6VXNlcjE2OTYzMDI=",
"organizations_url": "https://api.github.com/users/sinhrks/orgs",
"received_events_url": "https://api.github.com/users/sinhrks/received_events",
"repos_url": "https://api.github.com/users/sinhrks/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sinhrks"
} | [
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-07-09T15:02:31Z | 2016-07-10T22:09:47Z | 2016-07-10T21:39:51Z | MEMBER | null | - [x] closes #12160
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13593/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13593/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13593.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13593",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13593.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13593"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13594 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13594/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13594/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13594/events | https://github.com/pandas-dev/pandas/pull/13594 | 164,670,762 | MDExOlB1bGxSZXF1ZXN0NzY4NDg5MjM= | 13,594 | CLN: Initialization coincides with mapping, hence with uniqueness check | {
"avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4",
"events_url": "https://api.github.com/users/toobaz/events{/privacy}",
"followers_url": "https://api.github.com/users/toobaz/followers",
"following_url": "https://api.github.com/users/toobaz/following{/other_user}",
"gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/toobaz",
"id": 1224492,
"login": "toobaz",
"node_id": "MDQ6VXNlcjEyMjQ0OTI=",
"organizations_url": "https://api.github.com/users/toobaz/orgs",
"received_events_url": "https://api.github.com/users/toobaz/received_events",
"repos_url": "https://api.github.com/users/toobaz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toobaz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/toobaz"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
]
| closed | false | null | []
| {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 3 | 2016-07-09T15:07:20Z | 2016-07-15T00:21:58Z | 2016-07-15T00:21:47Z | MEMBER | null | - [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
Rebased version of https://github.com/pydata/pandas/pull/10229 which was [actually not](https://github.com/pydata/pandas/pull/10229#issuecomment-131470116) fixed by https://github.com/pydata/pandas/pull/10199.
Nothing particular relevant, just wanted to delete this branch locally and noticed it still applies: you'll judge what to do of it.
| {
"+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/13594/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13594/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13594.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13594",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13594.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13594"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13595 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13595/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13595/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13595/events | https://github.com/pandas-dev/pandas/issues/13595 | 164,670,890 | MDU6SXNzdWUxNjQ2NzA4OTA= | 13,595 | Series.argmax() fails with np.inf | {
"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"
}
]
| 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"
} | 1 | 2016-07-09T15:10:42Z | 2017-08-15T22:44:55Z | 2017-08-15T22:44:55Z | MEMBER | null | #### Code Sample, a copy-pastable example if possible
```
In [3]: s = pd.Series([1, 2, np.inf])
In [4]: s.argmax()
Out[4]: 1
In [5]: s.argmax(skipna=False)
Out[5]: nan
```
#### Expected Output
2 in both cases.
#### output of `pd.show_versions()`
In [6]: pd.show_versions()
```
INSTALLED VERSIONS
------------------
commit: a63bd12529ff309d957d714825b1753d0e02b7fa
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.0-2-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
LOCALE: it_IT.UTF-8
pandas: 0.18.1+174.ga63bd12
nose: 1.3.7
pip: 1.5.6
setuptools: 18.4
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.8.0.dev0+111ddc0
xarray: None
IPython: 5.0.0.dev
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: 1.1.0dev
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: 1.1.2
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: 1.5.0
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: 0.2.1
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13595/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13595/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13596 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13596/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13596/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13596/events | https://github.com/pandas-dev/pandas/issues/13596 | 164,671,093 | MDU6SXNzdWUxNjQ2NzEwOTM= | 13,596 | MultiIndex values cache changes but don't preserve them on .copy() | {
"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": 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 | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2016-07-09T15:15:53Z | 2016-07-09T16:49:44Z | 2016-07-09T16:48:34Z | MEMBER | null | #### Code Sample, a copy-pastable example if possible
```
In [2]: mi = pd.MultiIndex.from_product([[1,2], ['a', 'b']])
In [3]: mi.values
Out[3]: array([(1, 'a'), (1, 'b'), (2, 'a'), (2, 'b')], dtype=object)
In [4]: mi.values[0] = (3, 'c')
In [5]: mi.values
Out[5]: array([(3, 'c'), (1, 'b'), (2, 'a'), (2, 'b')], dtype=object)
In [6]: mi.copy().values
Out[6]: array([(1, 'a'), (1, 'b'), (2, 'a'), (2, 'b')], dtype=object)
```
#### Expected Output
The same as `mi.values`, whatever it is.
#### output of `pd.show_versions()`
```
In [7]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: a63bd12529ff309d957d714825b1753d0e02b7fa
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.0-2-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
LOCALE: it_IT.UTF-8
pandas: 0.18.1+174.ga63bd12
nose: 1.3.7
pip: 1.5.6
setuptools: 18.4
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.8.0.dev0+111ddc0
xarray: None
IPython: 5.0.0.dev
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: 1.1.0dev
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: 1.1.2
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: 1.5.0
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: 0.2.1
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13596/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13596/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13597 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13597/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13597/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13597/events | https://github.com/pandas-dev/pandas/issues/13597 | 164,671,224 | MDU6SXNzdWUxNjQ2NzEyMjQ= | 13,597 | KeyError when indexing the MultiIndex of a DataFrame with ":" as first field | {
"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 | []
| {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 4 | 2016-07-09T15:19:16Z | 2016-07-11T13:20:06Z | 2016-07-09T16:45:06Z | MEMBER | null | #### Code Sample, a copy-pastable example if possible
```
In [2]: df = pd.DataFrame(index=pd.MultiIndex.from_tuples([['a', 'b', 'c']]), columns=[1, 2])
In [3]: df.loc['a', 'b', 'c']
Out[3]:
1 NaN
2 NaN
Name: (a, b, c), dtype: object
In [4]: df.loc['a', 'b', :]
Out[4]:
1 2
c NaN NaN
In [5]: df.loc[:, 'b', 'c']
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
/home/nobackup/repo/pandas/pandas/core/indexing.py in _has_valid_type(self, key, axis)
1397 if key not in ax:
-> 1398 error()
1399 except TypeError as e:
/home/nobackup/repo/pandas/pandas/core/indexing.py in error()
1392 raise KeyError("the label [%s] is not in the [%s]" %
-> 1393 (key, self.obj._get_axis_name(axis)))
1394
KeyError: 'the label [b] is not in the [columns]'
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
<ipython-input-5-116a40d4994c> in <module>()
----> 1 df.loc[:, 'b', 'c']
/home/nobackup/repo/pandas/pandas/core/indexing.py in __getitem__(self, key)
1295
1296 if type(key) is tuple:
-> 1297 return self._getitem_tuple(key)
1298 else:
1299 return self._getitem_axis(key, axis=0)
/home/nobackup/repo/pandas/pandas/core/indexing.py in _getitem_tuple(self, tup)
790
791 # no multi-index, so validate all of the indexers
--> 792 self._has_valid_tuple(tup)
793
794 # ugly hack for GH #836
/home/nobackup/repo/pandas/pandas/core/indexing.py in _has_valid_tuple(self, key)
140 if i >= self.obj.ndim:
141 raise IndexingError('Too many indexers')
--> 142 if not self._has_valid_type(k, i):
143 raise ValueError("Location based indexing can only have [%s] "
144 "types" % self._valid_types)
/home/nobackup/repo/pandas/pandas/core/indexing.py in _has_valid_type(self, key, axis)
1404 raise
1405 except:
-> 1406 error()
1407
1408 return True
/home/nobackup/repo/pandas/pandas/core/indexing.py in error()
1391 "key")
1392 raise KeyError("the label [%s] is not in the [%s]" %
-> 1393 (key, self.obj._get_axis_name(axis)))
1394
1395 try:
KeyError: 'the label [b] is not in the [columns]'
```
#### Expected Output
Either something analogous to the previous command, or all 3 should raise an error I guess.
#### output of `pd.show_versions()`
```
In [6]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: a63bd12529ff309d957d714825b1753d0e02b7fa
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.0-2-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
LOCALE: it_IT.UTF-8
pandas: 0.18.1+174.ga63bd12
nose: 1.3.7
pip: 1.5.6
setuptools: 18.4
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.8.0.dev0+111ddc0
xarray: None
IPython: 5.0.0.dev
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: 1.1.0dev
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: 1.1.2
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: 1.5.0
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: 0.2.1
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13597/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13597/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13598 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13598/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13598/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13598/events | https://github.com/pandas-dev/pandas/issues/13598 | 164,671,341 | MDU6SXNzdWUxNjQ2NzEzNDE= | 13,598 | Series.str.zfill() doesn't check type | {
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "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-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"
} | 6 | 2016-07-09T15:22:08Z | 2016-07-19T01:11:27Z | 2016-07-19T01:11:18Z | MEMBER | null | #### Code Sample, a copy-pastable example if possible
```
In [5]: pd.Series(['a', 'b']).str.zfill('hi')
Out[5]:
0 NaN
1 NaN
dtype: float64
```
#### Expected Output
A `ValueError`.
#### output of `pd.show_versions()`
```
In [3]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: a63bd12529ff309d957d714825b1753d0e02b7fa
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.0-2-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
LOCALE: it_IT.UTF-8
pandas: 0.18.1+174.ga63bd12
nose: 1.3.7
pip: 1.5.6
setuptools: 18.4
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.8.0.dev0+111ddc0
xarray: None
IPython: 5.0.0.dev
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: 1.1.0dev
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: 1.1.2
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: 1.5.0
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: 0.2.1
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13598/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13598/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13599 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13599/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13599/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13599/events | https://github.com/pandas-dev/pandas/issues/13599 | 164,671,428 | MDU6SXNzdWUxNjQ2NzE0Mjg= | 13,599 | MultiIndex.from_arrays() does not check lenghts | {
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "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": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 5 | 2016-07-09T15:24:31Z | 2016-07-20T22:25:22Z | 2016-07-20T22:25:22Z | MEMBER | null | #### Code Sample, a copy-pastable example if possible
```
In [2]: pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']])
Out[2]:
MultiIndex(levels=[[1, 2, 3], ['a', 'b']],
labels=[[0, 1, 2], [0, 1]])
In [3]: pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']]).values
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-65e6fa14e07f> in <module>()
----> 1 pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']]).values
/home/nobackup/repo/pandas/pandas/indexes/multi.py in values(self)
552 values.append(taken)
553
--> 554 self._tuples = lib.fast_zip(values)
555 return self._tuples
556
/home/nobackup/repo/pandas/pandas/lib.pyx in pandas.lib.fast_zip (pandas/lib.c:11131)()
587 it = <flatiter> PyArray_IterNew(arr)
588 if len(arr) != n:
--> 589 raise ValueError('all arrays must be same length')
590
591 for i in range(n):
ValueError: all arrays must be same length
```
#### Expected Output
The first previous command should already raise an error.
#### output of `pd.show_versions()`
```
In [4]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: a63bd12529ff309d957d714825b1753d0e02b7fa
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.0-2-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
LOCALE: it_IT.UTF-8
pandas: 0.18.1+174.ga63bd12
nose: 1.3.7
pip: 1.5.6
setuptools: 18.4
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.8.0.dev0+111ddc0
xarray: None
IPython: 5.0.0.dev
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: 1.1.0dev
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: 1.1.2
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: 1.5.0
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: 0.2.1
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13599/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13599/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13600 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13600/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13600/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13600/events | https://github.com/pandas-dev/pandas/pull/13600 | 164,671,618 | MDExOlB1bGxSZXF1ZXN0NzY4NDkzNjQ= | 13,600 | ERR: Fix TimeDelta to Timedelta | {
"avatar_url": "https://avatars.githubusercontent.com/u/5356517?v=4",
"events_url": "https://api.github.com/users/yui-knk/events{/privacy}",
"followers_url": "https://api.github.com/users/yui-knk/followers",
"following_url": "https://api.github.com/users/yui-knk/following{/other_user}",
"gists_url": "https://api.github.com/users/yui-knk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yui-knk",
"id": 5356517,
"login": "yui-knk",
"node_id": "MDQ6VXNlcjUzNTY1MTc=",
"organizations_url": "https://api.github.com/users/yui-knk/orgs",
"received_events_url": "https://api.github.com/users/yui-knk/received_events",
"repos_url": "https://api.github.com/users/yui-knk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yui-knk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yui-knk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yui-knk"
} | [
{
"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": "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-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"
} | 0 | 2016-07-09T15:29:16Z | 2016-07-09T23:47:27Z | 2016-07-09T17:01:59Z | CONTRIBUTOR | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13600/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13600/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13600.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13600",
"merged_at": "2016-07-09T17:01:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/13600.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13600"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13601 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13601/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13601/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13601/events | https://github.com/pandas-dev/pandas/issues/13601 | 164,671,642 | MDU6SXNzdWUxNjQ2NzE2NDI= | 13,601 | Assigning array of >1 dim to index produces inconsistent 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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "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": "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"
} | 1 | 2016-07-09T15:29:56Z | 2020-01-09T21:17:06Z | 2020-01-09T21:17:06Z | MEMBER | null | #### Code Sample, a copy-pastable example if possible
```
In [3]: s = pd.Series(0, range(4))
In [4]: s.index = np.array([[2,3]]*4)
In [5]: s
Out[5]: ---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/nobackup/repo/ipython/IPython/core/formatters.py in __call__(self, obj)
683 type_pprinters=self.type_printers,
684 deferred_pprinters=self.deferred_printers)
--> 685 printer.pretty(obj)
686 printer.flush()
687 return stream.getvalue()
/home/nobackup/repo/ipython/IPython/lib/pretty.py in pretty(self, obj)
381 if callable(meth):
382 return meth(obj, self, cycle)
--> 383 return _default_pprint(obj, self, cycle)
384 finally:
385 self.end_group()
/home/nobackup/repo/ipython/IPython/lib/pretty.py in _default_pprint(obj, p, cycle)
501 if _safe_getattr(klass, '__repr__', None) not in _baseclass_reprs:
502 # A user-provided repr. Find newlines and replace them with p.break_()
--> 503 _repr_pprint(obj, p, cycle)
504 return
505 p.begin_group(1, '<')
/home/nobackup/repo/ipython/IPython/lib/pretty.py in _repr_pprint(obj, p, cycle)
692 """A pprint that just redirects to the normal repr function."""
693 # Find newlines and replace them with p.break_()
--> 694 output = repr(obj)
695 for idx,output_line in enumerate(output.splitlines()):
696 if idx:
/home/nobackup/repo/pandas/pandas/core/base.py in __repr__(self)
65 Yields Bytestring in Py2, Unicode String in py3.
66 """
---> 67 return str(self)
68
69
/home/nobackup/repo/pandas/pandas/core/base.py in __str__(self)
44
45 if compat.PY3:
---> 46 return self.__unicode__()
47 return self.__bytes__()
48
/home/nobackup/repo/pandas/pandas/core/series.py in __unicode__(self)
979
980 self.to_string(buf=buf, name=self.name, dtype=self.dtype,
--> 981 max_rows=max_rows)
982 result = buf.getvalue()
983
/home/nobackup/repo/pandas/pandas/core/series.py in to_string(self, buf, na_rep, float_format, header, index, length, dtype, name, max_rows)
1020 the_repr = self._get_repr(float_format=float_format, na_rep=na_rep,
1021 header=header, index=index, length=length,
-> 1022 dtype=dtype, name=name, max_rows=max_rows)
1023
1024 # catch contract violations
/home/nobackup/repo/pandas/pandas/core/series.py in _get_repr(self, name, header, index, length, dtype, na_rep, float_format, max_rows)
1048 float_format=float_format,
1049 max_rows=max_rows)
-> 1050 result = formatter.to_string()
1051
1052 # TODO: following check prob. not neces.
/home/nobackup/repo/pandas/pandas/formats/format.py in to_string(self)
227 return 'Series([], ' + footer + ')'
228
--> 229 fmt_index, have_header = self._get_formatted_index()
230 fmt_values = self._get_formatted_values()
231
/home/nobackup/repo/pandas/pandas/formats/format.py in _get_formatted_index(self)
213 else:
214 have_header = index.name is not None
--> 215 fmt_index = index.format(name=True)
216 return fmt_index, have_header
217
/home/nobackup/repo/pandas/pandas/indexes/base.py in format(self, name, formatter, **kwargs)
1525 return header + list(self.map(formatter))
1526
-> 1527 return self._format_with_header(header, **kwargs)
1528
1529 def _format_with_header(self, header, na_rep='NaN', **kwargs):
/home/nobackup/repo/pandas/pandas/indexes/base.py in _format_with_header(self, header, na_rep, **kwargs)
1549
1550 else:
-> 1551 result = _trim_front(format_array(values, None, justify='left'))
1552 return header + result
1553
/home/nobackup/repo/pandas/pandas/formats/format.py in format_array(values, formatter, float_format, na_rep, digits, space, justify, decimal)
2021 space=space, justify=justify, decimal=decimal)
2022
-> 2023 return fmt_obj.get_result()
2024
2025
/home/nobackup/repo/pandas/pandas/formats/format.py in get_result(self)
2040
2041 def get_result(self):
-> 2042 fmt_values = self._format_strings()
2043 return _make_fixed_width(fmt_values, self.justify)
2044
/home/nobackup/repo/pandas/pandas/formats/format.py in _format_strings(self)
2226 def _format_strings(self):
2227 formatter = self.formatter or (lambda x: '% d' % x)
-> 2228 fmt_values = [formatter(x) for x in self.values]
2229 return fmt_values
2230
/home/nobackup/repo/pandas/pandas/formats/format.py in <listcomp>(.0)
2226 def _format_strings(self):
2227 formatter = self.formatter or (lambda x: '% d' % x)
-> 2228 fmt_values = [formatter(x) for x in self.values]
2229 return fmt_values
2230
/home/nobackup/repo/pandas/pandas/formats/format.py in <lambda>(x)
2225 class IntArrayFormatter(GenericArrayFormatter):
2226 def _format_strings(self):
-> 2227 formatter = self.formatter or (lambda x: '% d' % x)
2228 fmt_values = [formatter(x) for x in self.values]
2229 return fmt_values
TypeError: %d format: a number is required, not numpy.ndarray
```
#### Expected Output
It would be cool if this became a `MultiIndex` automatically, but otherwise it should just raise an error (or maybe it's just the string representation which is broken?)
#### output of `pd.show_versions()`
```
In [6]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: a63bd12529ff309d957d714825b1753d0e02b7fa
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.0-2-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
LOCALE: it_IT.UTF-8
pandas: 0.18.1+174.ga63bd12
nose: 1.3.7
pip: 1.5.6
setuptools: 18.4
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.8.0.dev0+111ddc0
xarray: None
IPython: 5.0.0.dev
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: 1.1.0dev
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: 1.1.2
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: 1.5.0
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: 0.2.1
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13601/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13601/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/13602 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13602/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13602/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13602/events | https://github.com/pandas-dev/pandas/pull/13602 | 164,687,337 | MDExOlB1bGxSZXF1ZXN0NzY4NTgwMDA= | 13,602 | CLN: Removed coerce param in pd.to_timedelta and pd.to_datetime | {
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
} | [
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"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": "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"
} | 27 | 2016-07-09T21:51:53Z | 2016-10-15T20:08:03Z | 2016-10-15T19:58:27Z | MEMBER | null | Deprecated back in `v0.17.0` <a href="https://github.com/pydata/pandas/commit/987b7e7e586b8df1d127406c69e0a9094a1a5322">here</a>. Seems appropriate to carry though now.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13602/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13602/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/13602.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/13602",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/13602.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/13602"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/13603 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/13603/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/13603/comments | https://api.github.com/repos/pandas-dev/pandas/issues/13603/events | https://github.com/pandas-dev/pandas/issues/13603 | 164,687,563 | MDU6SXNzdWUxNjQ2ODc1NjM= | 13,603 | Checking for any NaT-like objects in a TimedeltaIndex always returns True | {
"avatar_url": "https://avatars.githubusercontent.com/u/4710853?v=4",
"events_url": "https://api.github.com/users/tjader/events{/privacy}",
"followers_url": "https://api.github.com/users/tjader/followers",
"following_url": "https://api.github.com/users/tjader/following{/other_user}",
"gists_url": "https://api.github.com/users/tjader/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tjader",
"id": 4710853,
"login": "tjader",
"node_id": "MDQ6VXNlcjQ3MTA4NTM=",
"organizations_url": "https://api.github.com/users/tjader/orgs",
"received_events_url": "https://api.github.com/users/tjader/received_events",
"repos_url": "https://api.github.com/users/tjader/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tjader/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tjader/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tjader"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
]
| closed | false | null | []
| {
"closed_at": "2016-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"
} | 0 | 2016-07-09T21:57:45Z | 2016-07-19T01:14:14Z | 2016-07-19T01:14:14Z | NONE | null | #### Code Sample, a copy-pastable example if possible
``` python
>>> None in pd.to_timedelta(range(5), unit='d') + pd.offsets.Hour(1)
True
```
Returns `True` for any one of `[pd.NaT, None, float('nan'), np.nan]`
#### Expected Output
``` python
>>> None in pd.to_timedelta(range(5), unit='d') + pd.offsets.Hour(1)
False
```
#### output of `pd.show_versions()`
``` python
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: 3c202b1cbcc73c4006c967c8abe1b8d9089c5be4
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.18.1+171.g3c202b1
nose: 1.3.7
pip: 8.1.2
setuptools: 23.0.0
Cython: 0.24
numpy: 1.10.4
scipy: 0.17.1
statsmodels: None
xarray: 0.7.2
IPython: None
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5.2
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.40.0
pandas_datareader: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/13603/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/13603/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.