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/8601
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8601/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8601/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8601/events
https://github.com/pandas-dev/pandas/issues/8601
46,499,065
MDU6SXNzdWU0NjQ5OTA2NQ==
8,601
Exception during resample w/ tz
{ "avatar_url": "https://avatars.githubusercontent.com/u/1969965?v=4", "events_url": "https://api.github.com/users/gbakalian/events{/privacy}", "followers_url": "https://api.github.com/users/gbakalian/followers", "following_url": "https://api.github.com/users/gbakalian/following{/other_user}", "gists_url": "https://api.github.com/users/gbakalian/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gbakalian", "id": 1969965, "login": "gbakalian", "node_id": "MDQ6VXNlcjE5Njk5NjU=", "organizations_url": "https://api.github.com/users/gbakalian/orgs", "received_events_url": "https://api.github.com/users/gbakalian/received_events", "repos_url": "https://api.github.com/users/gbakalian/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gbakalian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbakalian/subscriptions", "type": "User", "url": "https://api.github.com/users/gbakalian" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
closed
false
null
[]
{ "closed_at": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
4
2014-10-22T11:27:11Z
2014-11-06T12:43:58Z
2014-11-06T12:43:58Z
NONE
null
xref #8653 Having a similar issue idx = date_range('2014-10-08 00:00','2014-10-09 00:00', freq='D', tz='Europe/Berlin') pd.Series(5, idx).resample('MS') ValueError: Values falls after last bin While if I remove the tz : idx = date_range('2014-10-08 00:00','2014-10-09 00:00', freq='D') pd.Series(5, idx).resample('MS') that works perfectly version : '0.15.0rc1'
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8601/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8601/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8602
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8602/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8602/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8602/events
https://github.com/pandas-dev/pandas/issues/8602
46,539,694
MDU6SXNzdWU0NjUzOTY5NA==
8,602
pandas 0.15+ is not deployable via py2app with python 3.4.2
{ "avatar_url": "https://avatars.githubusercontent.com/u/1119641?v=4", "events_url": "https://api.github.com/users/skycaptain/events{/privacy}", "followers_url": "https://api.github.com/users/skycaptain/followers", "following_url": "https://api.github.com/users/skycaptain/following{/other_user}", "gists_url": "https://api.github.com/users/skycaptain/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/skycaptain", "id": 1119641, "login": "skycaptain", "node_id": "MDQ6VXNlcjExMTk2NDE=", "organizations_url": "https://api.github.com/users/skycaptain/orgs", "received_events_url": "https://api.github.com/users/skycaptain/received_events", "repos_url": "https://api.github.com/users/skycaptain/repos", "site_admin": false, "starred_url": "https://api.github.com/users/skycaptain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/skycaptain/subscriptions", "type": "User", "url": "https://api.github.com/users/skycaptain" }
[ { "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": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
9
2014-10-22T17:54:20Z
2014-11-17T00:34:21Z
2014-11-17T00:34:21Z
CONTRIBUTOR
null
I'm deploying an PyQt(5.3.2) application using py2app. Everything works fine with 0.14.1, 0.15.0 fails at importing. As an example one can take the following `main.py`: ``` python import pandas def main(): x = pandas.Series([0, 1, 2]) print(x) if __name__ == "__main__": main() ``` and use the default `setup.py`: ``` python from setuptools import setup import py2app setup( app=['main.py'], options={'py2app': {'argv_emulation': True}}, setup_requires=['py2app'], ) ``` and run `python3 setup.py py2app` to build the .app and then start the application (Please note the example can only be runned via Terminal, since it lacks a GUI) In both Python 2.7.8 and 3.4.2 the .app builds fine but fails on 3.4.2 to start and dumps (stripped to the helpful parts): ``` 'module' object has no attribute '__pyx_capi__' 2014-10-22 19:36:32.784 main[26763:321107] main Error Traceback (most recent call last): File ".../dist/main.app/Contents/Resources/__ _run() File ".../dist/main.app/Contents/Resources/__ exec(compile(source, path, 'exec'), globals(), globals()) File ".../dist/main.app/Contents/Resources/main. import pandas File "pandas/__init__.pyc", line 7, in <module> File "pandas/tslib.pyc", line 14, in <module> File "pandas/tslib.pyc", line 10, in __load File "pandas/tslib.pyx", line 2839, in init pandas.tslib (pandas/tslib.c:80041) File "pandas/algos.pyc", line 14, in <module> File "pandas/algos.pyc", line 10, in __load File "pandas/algos.pyx", line 64, in init pandas.algos (pandas/algos.c:180213) File "pandas/lib.pyc", line 14, in <module> File "pandas/lib.pyc", line 10, in __load File "pandas/lib.pyx", line 1, in init pandas.lib (pandas/lib.c:78098) AttributeError: 'module' object has no attribute '__pyx_capi__' ``` If the example would run as expected it would print (again stripped): ``` 0 0 1 1 2 2 dtype: int64 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8602/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8602/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8603
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8603/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8603/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8603/events
https://github.com/pandas-dev/pandas/issues/8603
46,543,695
MDU6SXNzdWU0NjU0MzY5NQ==
8,603
BUG: HDFStore fails to save panel with mixed type minor axis when format='table'
{ "avatar_url": "https://avatars.githubusercontent.com/u/4625457?v=4", "events_url": "https://api.github.com/users/alorenzo175/events{/privacy}", "followers_url": "https://api.github.com/users/alorenzo175/followers", "following_url": "https://api.github.com/users/alorenzo175/following{/other_user}", "gists_url": "https://api.github.com/users/alorenzo175/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alorenzo175", "id": 4625457, "login": "alorenzo175", "node_id": "MDQ6VXNlcjQ2MjU0NTc=", "organizations_url": "https://api.github.com/users/alorenzo175/orgs", "received_events_url": "https://api.github.com/users/alorenzo175/received_events", "repos_url": "https://api.github.com/users/alorenzo175/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alorenzo175/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alorenzo175/subscriptions", "type": "User", "url": "https://api.github.com/users/alorenzo175" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" } ]
closed
false
null
[]
{ "closed_at": 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
2014-10-22T18:30:26Z
2018-07-06T20:21:05Z
2017-07-11T09:56:56Z
CONTRIBUTOR
null
I'm trying to save a panel that has a mixed type minor axis using HDFStore. I can save the panel when using the fixed format (although I get a PerformanceWarning), but it fails for the table format. Example code: ``` python import pandas as pd import numpy as np d1 = pd.DataFrame({1:pd.Series(np.random.randn(10)), 2:pd.Series(np.random.randn(10))}) d2 = pd.DataFrame({1:pd.Series(np.random.randn(10)), 2:pd.Series(np.random.randn(10))}) good_panel = pd.Panel({'a':d1, 'b':d2}) print good_panel with pd.get_store('/tmp/goodstore.h5', mode='w') as store: store.put('/test', good_panel, 'table', append=False) b1 = pd.DataFrame({1:pd.Series(np.random.randn(10)), 'a':pd.Series(np.random.randn(10))}) b2 = pd.DataFrame({1:pd.Series(np.random.randn(10)), 'a':pd.Series(np.random.randn(10))}) bad_panel = pd.Panel({'a':b1, 'b':b2}) print bad_panel with pd.get_store('/tmp/badstore.h5', mode='w') as store: store.put('/test', bad_panel, 'fixed', append=False) print 'saved as fixed' with pd.get_store('/tmp/badstore.h5', mode='w') as store: store.put('/test', bad_panel, 'table', append=False) ``` The error I get is: ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-5-3528d8319daf> in <module>() 9 10 with pd.get_store('/tmp/badstore.h5', mode='w') as store: ---> 11 store.put('/test', bad_panel, 'table', append=False) /home/tony/.virtualenvs/dev2/lib/python2.7/site-packages/pandas/io/pytables.pyc in put(self, key, value, format, append, **kwargs) 829 format = get_option("io.hdf.default_format") or 'fixed' 830 kwargs = self._validate_format(format, kwargs) --> 831 self._write_to_group(key, value, append=append, **kwargs) 832 833 def remove(self, key, where=None, start=None, stop=None): /home/tony/.virtualenvs/dev2/lib/python2.7/site-packages/pandas/io/pytables.pyc in _write_to_group(self, key, value, format, index, append, complib, encoding, **kwargs) 1278 1279 # write the object -> 1280 s.write(obj=value, append=append, complib=complib, **kwargs) 1281 1282 if s.is_table and index: /home/tony/.virtualenvs/dev2/lib/python2.7/site-packages/pandas/io/pytables.pyc in write(self, obj, axes, append, complib, complevel, fletcher32, min_itemsize, chunksize, expectedrows, dropna, **kwargs) 3657 3658 # create the table -> 3659 table = self._handle.create_table(self.group, **options) 3660 3661 else: /home/tony/.virtualenvs/dev2/lib/python2.7/site-packages/tables/file.pyc in create_table(self, where, name, description, title, filters, expectedrows, chunkshape, byteorder, createparents, obj) 1065 description=description, title=title, 1066 filters=filters, expectedrows=expectedrows, -> 1067 chunkshape=chunkshape, byteorder=byteorder) 1068 1069 if obj is not None: /home/tony/.virtualenvs/dev2/lib/python2.7/site-packages/tables/table.pyc in __init__(self, parentnode, name, description, title, filters, expectedrows, chunkshape, byteorder, _log) 805 if new and isinstance(description, dict): 806 # Dictionary case --> 807 self.description = Description(description) 808 elif new and (type(description) == type(IsDescription) 809 and issubclass(description, IsDescription)): /home/tony/.virtualenvs/dev2/lib/python2.7/site-packages/tables/description.pyc in __init__(self, classdict, nestedlvl, validate) 493 'got: "%s". Please make use of the Col(), or ' 494 'descendant, constructor to properly ' --> 495 'initialize columns.' % object) 496 object._v_pos = pos # Set the position of this object 497 object._v_parent = self # The parent description TypeError: Passing an incorrect value to a table column. Expected a Col (or subclass) instance and got: "ObjectAtom()". Please make use of the Col(), or descendant, constructor to properly initialize columns. ``` My system info: ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 2.6.32-431.17.1.el6.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.15.0 nose: 1.3.4 Cython: 0.20.1 numpy: 1.9.0 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.3.0 sphinx: 1.2.2 patsy: 0.2.1 dateutil: 2.2 pytz: 2014.7 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.0 openpyxl: 1.8.6 xlrd: None xlwt: None xlsxwriter: None lxml: 3.3.5 bs4: 4.3.2 html5lib: 0.999 httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.4 pymysql: None psycopg2: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8603/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8603/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8604
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8604/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8604/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8604/events
https://github.com/pandas-dev/pandas/pull/8604
46,550,068
MDExOlB1bGxSZXF1ZXN0MjMxODI5MzA=
8,604
Fix typo in visualization.rst doc
{ "avatar_url": "https://avatars.githubusercontent.com/u/68444?v=4", "events_url": "https://api.github.com/users/aisipos/events{/privacy}", "followers_url": "https://api.github.com/users/aisipos/followers", "following_url": "https://api.github.com/users/aisipos/following{/other_user}", "gists_url": "https://api.github.com/users/aisipos/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aisipos", "id": 68444, "login": "aisipos", "node_id": "MDQ6VXNlcjY4NDQ0", "organizations_url": "https://api.github.com/users/aisipos/orgs", "received_events_url": "https://api.github.com/users/aisipos/received_events", "repos_url": "https://api.github.com/users/aisipos/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aisipos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aisipos/subscriptions", "type": "User", "url": "https://api.github.com/users/aisipos" }
[]
closed
false
null
[]
null
1
2014-10-22T19:28:18Z
2014-10-22T20:47:45Z
2014-10-22T20:47:38Z
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/8604/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8604/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8604.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8604", "merged_at": "2014-10-22T20:47:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8604.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8604" }
https://api.github.com/repos/pandas-dev/pandas/issues/8605
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8605/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8605/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8605/events
https://github.com/pandas-dev/pandas/pull/8605
46,558,101
MDExOlB1bGxSZXF1ZXN0MjMxODgwMTY=
8,605
DOC: read_html docstring update link to read_csv and infer_types mention
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
0
2014-10-22T20:43:13Z
2014-10-27T15:39:02Z
2014-10-27T15:39:02Z
MEMBER
null
- changed link to toplevel read_csv - since `infer_types` is in essence removed, the comment made no sense anymore I think
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8605/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8605/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8605.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8605", "merged_at": "2014-10-27T15:39:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8605.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8605" }
https://api.github.com/repos/pandas-dev/pandas/issues/8606
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8606/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8606/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8606/events
https://github.com/pandas-dev/pandas/pull/8606
46,558,735
MDExOlB1bGxSZXF1ZXN0MjMxODgzNjY=
8,606
DOC: reorg whatsnew files to subfolder
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[]
closed
false
null
[]
null
1
2014-10-22T20:48:17Z
2014-10-23T06:57:57Z
2014-10-23T06:57:57Z
MEMBER
null
Moved all whatsnew files into a subfolder, because it are becoming a bit too many files in one folder (doc/source/) I think. @jreback What do you think?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8606/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8606/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8606.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8606", "merged_at": "2014-10-23T06:57:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8606.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8606" }
https://api.github.com/repos/pandas-dev/pandas/issues/8607
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8607/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8607/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8607/events
https://github.com/pandas-dev/pandas/issues/8607
46,561,671
MDU6SXNzdWU0NjU2MTY3MQ==
8,607
column datatype conversion impacts whole dataframe when using df.ix indexing
{ "avatar_url": "https://avatars.githubusercontent.com/u/1466881?v=4", "events_url": "https://api.github.com/users/dmarx/events{/privacy}", "followers_url": "https://api.github.com/users/dmarx/followers", "following_url": "https://api.github.com/users/dmarx/following{/other_user}", "gists_url": "https://api.github.com/users/dmarx/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dmarx", "id": 1466881, "login": "dmarx", "node_id": "MDQ6VXNlcjE0NjY4ODE=", "organizations_url": "https://api.github.com/users/dmarx/orgs", "received_events_url": "https://api.github.com/users/dmarx/received_events", "repos_url": "https://api.github.com/users/dmarx/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dmarx/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dmarx/subscriptions", "type": "User", "url": "https://api.github.com/users/dmarx" }
[ { "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
8
2014-10-22T21:15:03Z
2014-10-30T11:19:44Z
2014-10-27T12:13:31Z
NONE
null
My dataframe has a timestamp column that is encoded as unix epoch. When I convert the column using named index selection it works fine, but when I use the '.ix' syntax it coerces the whole dataframe. Example: ``` import pandas as pd df = pd.DataFrame( {'timestamp':[1413840976, 1413842580, 1413760580], 'delta':[1174, 904, 161], 'elapsed':[7673, 9277, 1470] }) df2 = df.copy() df['timestamp'] = pd.to_datetime(df['timestamp'], unit='s') df2.ix[:,2] = pd.to_datetime(df['timestamp'], unit='s') df delta elapsed timestamp 0 1174 7673 2014-10-20 21:36:16 1 904 9277 2014-10-20 22:03:00 2 161 1470 2014-10-19 23:16:20 df2 delta elapsed timestamp 0 2014-10-20 21:36:16 1970-01-01 00:00:00.000007673 1970-01-01 00:00:01.413840976 1 2014-10-20 22:03:00 1970-01-01 00:00:00.000009277 1970-01-01 00:00:01.413842580 2 2014-10-19 23:16:20 1970-01-01 00:00:00.000001470 1970-01-01 00:00:01.413760580 ``` I strongly suspect the difference in behavior here is problematic and should be resolved. If this is actually "how things should work," I'd greatly appreciate it if someone could explain why the different indexing styles produce these different results
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8607/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8607/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8608
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8608/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8608/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8608/events
https://github.com/pandas-dev/pandas/issues/8608
46,576,866
MDU6SXNzdWU0NjU3Njg2Ng==
8,608
Behavior of numeric ops on Index has changed
{ "avatar_url": "https://avatars.githubusercontent.com/u/1078448?v=4", "events_url": "https://api.github.com/users/bryevdv/events{/privacy}", "followers_url": "https://api.github.com/users/bryevdv/followers", "following_url": "https://api.github.com/users/bryevdv/following{/other_user}", "gists_url": "https://api.github.com/users/bryevdv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bryevdv", "id": 1078448, "login": "bryevdv", "node_id": "MDQ6VXNlcjEwNzg0NDg=", "organizations_url": "https://api.github.com/users/bryevdv/orgs", "received_events_url": "https://api.github.com/users/bryevdv/received_events", "repos_url": "https://api.github.com/users/bryevdv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bryevdv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bryevdv/subscriptions", "type": "User", "url": "https://api.github.com/users/bryevdv" }
[ { "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": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
4
2014-10-23T00:31:10Z
2014-10-30T11:19:44Z
2014-10-25T23:35:27Z
NONE
null
The following used to work: ``` In [7]: import pandas as pd In [8]: import numpy as np In [9]: a = np.zeros(5, dtype=np.float) In [10]: df = pd.DataFrame({"foo": [10, 20, 30, 40, 50]}) In [11]: df.index Out[11]: Int64Index([0, 1, 2, 3, 4], dtype='int64') In [12]: df.index * 3.2 Out[12]: Int64Index([0.0, 3.2, 6.4, 9.6, 12.8], dtype='float64') In [13]: a - df.index * 3.2 --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-13-8a6574b7beca> in <module>() ----> 1 a - df.index * 3.2 TypeError: unsupported operand type(s) for -: 'numpy.ndarray' and 'Int64Index' In [14]: pd.__version__ Out[14]: '0.15.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/8608/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8608/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8609
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8609/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8609/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8609/events
https://github.com/pandas-dev/pandas/pull/8609
46,582,508
MDExOlB1bGxSZXF1ZXN0MjMyMDMzOTY=
8,609
Fix shape attribute for MultiIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4", "events_url": "https://api.github.com/users/shoyer/events{/privacy}", "followers_url": "https://api.github.com/users/shoyer/followers", "following_url": "https://api.github.com/users/shoyer/following{/other_user}", "gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shoyer", "id": 1217238, "login": "shoyer", "node_id": "MDQ6VXNlcjEyMTcyMzg=", "organizations_url": "https://api.github.com/users/shoyer/orgs", "received_events_url": "https://api.github.com/users/shoyer/received_events", "repos_url": "https://api.github.com/users/shoyer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shoyer/subscriptions", "type": "User", "url": "https://api.github.com/users/shoyer" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
8
2014-10-23T02:29:08Z
2014-10-30T11:20:23Z
2014-10-24T23:51:37Z
MEMBER
null
This fix ensures that `idx.shape == (len(idx),)` if `idx` is a MultiIndex. Also added tests for other ndarray compat properties.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8609/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8609/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8609.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8609", "merged_at": "2014-10-24T23:51:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8609.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8609" }
https://api.github.com/repos/pandas-dev/pandas/issues/8610
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8610/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8610/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8610/events
https://github.com/pandas-dev/pandas/issues/8610
46,583,106
MDU6SXNzdWU0NjU4MzEwNg==
8,610
DOC: DataFrame.to_html() documentation isn't rendering properly
{ "avatar_url": "https://avatars.githubusercontent.com/u/6062071?v=4", "events_url": "https://api.github.com/users/jnmclarty/events{/privacy}", "followers_url": "https://api.github.com/users/jnmclarty/followers", "following_url": "https://api.github.com/users/jnmclarty/following{/other_user}", "gists_url": "https://api.github.com/users/jnmclarty/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jnmclarty", "id": 6062071, "login": "jnmclarty", "node_id": "MDQ6VXNlcjYwNjIwNzE=", "organizations_url": "https://api.github.com/users/jnmclarty/orgs", "received_events_url": "https://api.github.com/users/jnmclarty/received_events", "repos_url": "https://api.github.com/users/jnmclarty/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jnmclarty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jnmclarty/subscriptions", "type": "User", "url": "https://api.github.com/users/jnmclarty" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
2
2014-10-23T02:41:56Z
2014-10-25T02:28:09Z
2014-10-25T02:27:17Z
CONTRIBUTOR
null
The arguments are showing in two lists. [Link](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_html.html) I'll fix this myself, if somebody doesn't get to it quickly. It's good for a first PR, and I've done a couple PRs myself. ![image](https://cloud.githubusercontent.com/assets/6062071/4747544/1995b8b8-5a5e-11e4-8471-d43dcbd33864.png) Edit: Removed reference to formatters.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8610/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8610/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8611
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8611/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8611/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8611/events
https://github.com/pandas-dev/pandas/issues/8611
46,608,575
MDU6SXNzdWU0NjYwODU3NQ==
8,611
Why DataFrame creation from ndarray record do not consist with other method, and how to overcome it
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
9
2014-10-23T10:11:10Z
2014-10-27T02:09:26Z
2014-10-25T00:40:01Z
NONE
null
In my understanding, DataFrame(in the way how it's displayed) could be treated as a **transposed** SQL table. A row represents a 'property' and a column represents a record. It's clear and consistent in creation using `dict of Series or dicts` and `dict of ndarrays / lists`. As below ``` py In [32]: d = {'user1':['Jean', 'Grey', 18, 'F'], 'user2':['Logan', 'Howlett', 33, 'M']} In [34]: DataFrame(d, index=['firstname','lastname','age','gender']) Out[34]: user1 user2 firstname Jean Logan lastname Grey Howlett age 18 33 gender F M ``` However when creation using Structed ndarrary, it seems work the other way around, a row represent a record. As below. ``` py In [45]: dtype=np.dtype([('firstname','U10'),('lastname','U10'),('age','int32'), ('gender', 'U1')]) In [46]: dt = np.array([('Jean','Grey',18,'F'),('Logan', 'Howlett', 33,'M')], dtype=dtype) In [47]: DataFrame(dt) Out[47]: firstname lastname age gender 0 Jean Grey 18 F 1 Logan Howlett 33 M ``` This is bugging me a lot, why is this(I'm guessing the internal store), but is there a way to overcome 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/8611/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8611/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8612
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8612/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8612/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8612/events
https://github.com/pandas-dev/pandas/issues/8612
46,610,143
MDU6SXNzdWU0NjYxMDE0Mw==
8,612
pandas.io.data.Options is broken due to Yahoo options page change
{ "avatar_url": "https://avatars.githubusercontent.com/u/908118?v=4", "events_url": "https://api.github.com/users/jasonstrimpel/events{/privacy}", "followers_url": "https://api.github.com/users/jasonstrimpel/followers", "following_url": "https://api.github.com/users/jasonstrimpel/following{/other_user}", "gists_url": "https://api.github.com/users/jasonstrimpel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jasonstrimpel", "id": 908118, "login": "jasonstrimpel", "node_id": "MDQ6VXNlcjkwODExOA==", "organizations_url": "https://api.github.com/users/jasonstrimpel/orgs", "received_events_url": "https://api.github.com/users/jasonstrimpel/received_events", "repos_url": "https://api.github.com/users/jasonstrimpel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jasonstrimpel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jasonstrimpel/subscriptions", "type": "User", "url": "https://api.github.com/users/jasonstrimpel" }
[ { "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
19
2014-10-23T10:31:22Z
2015-07-13T08:44:50Z
2014-11-05T11:41:57Z
NONE
null
Yahoo reconfigured their options page (http://finance.yahoo.com/q/op?s=AAPL+Options) which broke the entire Options class. Are there plans for a fix in a future 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/8612/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8612/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8613
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8613/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8613/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8613/events
https://github.com/pandas-dev/pandas/issues/8613
46,617,626
MDU6SXNzdWU0NjYxNzYyNg==
8,613
API: label-based slicing with not-included labels
{ "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2015-03-23T10:50:37Z", "closed_issues": 400, "created_at": "2014-02-14T03:31:22Z", "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.15 of course!", "due_on": "2015-03-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/25", "id": 569113, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels", "node_id": "MDk6TWlsZXN0b25lNTY5MTEz", "number": 25, "open_issues": 0, "state": "closed", "title": "0.16.0", "updated_at": "2017-08-24T09:17:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25" }
40
2014-10-23T12:11:27Z
2015-03-04T20:46:25Z
2015-03-04T20:46:25Z
MEMBER
null
I didn't directly find an issue about it, or an explanation in the docs, but I stumbled today on the following, which did surprise me a bit: Considering the following dataframe: ``` In [18]: df = pd.DataFrame(np.random.randn(5,2), index=pd.date_range('2012-01-01', periods=5)) In [19]: df Out[19]: 0 1 2012-01-01 2.511337 -0.776326 2012-01-02 0.133589 0.441911 2012-01-03 0.348167 1.285188 2012-01-04 1.075843 1.282131 2012-01-05 0.683006 0.558459 ``` Slicing with a label that is not included in the index works with `.ix`, but not with `.loc`: ``` In [20]: df.ix['2012-01-03':'2012-01-31'] Out[20]: 0 1 2012-01-03 0.348167 1.285188 2012-01-04 1.075843 1.282131 2012-01-05 0.683006 0.558459 In [21]: df.loc['2012-01-03':'2012-01-31'] ... KeyError: 'stop bound [2012-01-31] is not in the [index]' ``` Context: I was updating some older code, and I wanted to replace `.ix` with `.loc` (as this is what we recommend if it is purely label based to prevent confusion). Some things: - If this is intended, I don't find this stated somewhere in the docs. So the docs are at least lacking at this point. - the inconsistency between `[]`, `.ix[]` and `.loc[]` is a bit surprising here - it is also inconsistent with `iloc` -> that behaviour was changed in 0.14 to allow out of bound slicing (http://pandas.pydata.org/pandas-docs/stable/whatsnew.html#whatsnew-0140-api) - Specifically for datetime-line indexing, it is also inconsistent with the feature of partial string indexing: `df.loc['2012-01-03':'2012-01']` will work and do the expected while `df.loc['2012-01-03':'2012-01-31']` fails
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8613/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8613/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8614
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8614/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8614/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8614/events
https://github.com/pandas-dev/pandas/issues/8614
46,629,944
MDU6SXNzdWU0NjYyOTk0NA==
8,614
Plotting of DatetimeIndex directly with matplotlib no longer gives datetime formatted axis (0.15)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
20
2014-10-23T14:20:45Z
2014-11-05T14:34:26Z
2014-11-05T14:34:26Z
MEMBER
null
From http://stackoverflow.com/questions/26526230/plotting-datetimeindex-on-x-axis-with-matplotlib-creates-wrong-ticks-in-pandas-0 ``` df = pd.DataFrame({'RandomValues': np.random.randint(1, 50, 60)}, index=pd.date_range("2012-01-01", periods=60)) ``` Plotting of course works: ``` In [79]: df.plot() Out[79]: <matplotlib.axes._subplots.AxesSubplot at 0xf571550> ``` But plotting with matplotlib's `plot` functions gives no longer a datetime formatted x-axis, but just ints: ``` In [80]: plt.plot(df.index, df.RandomValues) Out[80]: [<matplotlib.lines.Line2D at 0xfb5f748>] ``` **Reason**: matplotlibs `plot` calls `np.atleast_1d` on the input (https://github.com/matplotlib/matplotlib/blob/v1.4.0/lib/matplotlib/axes/_base.py#L220). Previously this returned an Index, now it returns a array of `datetime64` values, which matplotlib can't handle. Issues: - This is actually a problem of matplotlib (they should support datetime64), but of course: a lot of users rely now on the behaviour that it did work with a pandas `Index` also. - Is there a way to restore this behaviour? I don't see directly a solution? - We should update our docs, as this behaviour is also mentioned there briefly: http://pandas.pydata.org/pandas-docs/stable/visualization.html#plotting-directly-with-matplotlib + figure out why this didn't fail in the doc build (the figure seems not updated with the 0.15 doc build) It seems there was some discussion about this in the Index-no-subclass PR: https://github.com/pydata/pandas/pull/7891#issuecomment-50936333 and https://github.com/pydata/pandas/pull/7891#discussion_r15862386 (I commented there about exactly this issue, but I don't know why we didn't look further in it then)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8614/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8614/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8615
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8615/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8615/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8615/events
https://github.com/pandas-dev/pandas/issues/8615
46,654,477
MDU6SXNzdWU0NjY1NDQ3Nw==
8,615
to_datetime conversion inconsistency in 0.15.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/8962926?v=4", "events_url": "https://api.github.com/users/pmart123/events{/privacy}", "followers_url": "https://api.github.com/users/pmart123/followers", "following_url": "https://api.github.com/users/pmart123/following{/other_user}", "gists_url": "https://api.github.com/users/pmart123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pmart123", "id": 8962926, "login": "pmart123", "node_id": "MDQ6VXNlcjg5NjI5MjY=", "organizations_url": "https://api.github.com/users/pmart123/orgs", "received_events_url": "https://api.github.com/users/pmart123/received_events", "repos_url": "https://api.github.com/users/pmart123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pmart123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pmart123/subscriptions", "type": "User", "url": "https://api.github.com/users/pmart123" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
4
2014-10-23T17:55:20Z
2015-07-29T20:17:19Z
2015-07-29T20:17:06Z
NONE
null
to_datetime is not converting input consistently between a pandas series or a python list of either strings or datetime objects. for example: import pandas as pd s = pd.Series(['102214','102314']) df = pd.Series({'dates':['102214','102314']}) lst = ['102214','102314'] pd.to_datetime(s,format='%m%d%y') and pd.to_datetime(df['dates'],format='%m%d%y') return a numpy.datetime64 ndarray, while pd.to_datetime(lst,format='%m%d%y') returns a pandas.DateTimeIndex object. Is this behavior an expected result in 0.15.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/8615/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8615/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8616
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8616/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8616/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8616/events
https://github.com/pandas-dev/pandas/issues/8616
46,656,558
MDU6SXNzdWU0NjY1NjU1OA==
8,616
BUG: DatetimeIndex.shift(freq=...) raises near DST boundary
{ "avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4", "events_url": "https://api.github.com/users/ischwabacher/events{/privacy}", "followers_url": "https://api.github.com/users/ischwabacher/followers", "following_url": "https://api.github.com/users/ischwabacher/following{/other_user}", "gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ischwabacher", "id": 4306187, "login": "ischwabacher", "node_id": "MDQ6VXNlcjQzMDYxODc=", "organizations_url": "https://api.github.com/users/ischwabacher/orgs", "received_events_url": "https://api.github.com/users/ischwabacher/received_events", "repos_url": "https://api.github.com/users/ischwabacher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions", "type": "User", "url": "https://api.github.com/users/ischwabacher" }
[ { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
{ "closed_at": "2018-07-06T16:24:08Z", "closed_issues": 73, "created_at": "2018-06-07T10:56:05Z", "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 0.23.x", "due_on": "2018-07-09T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/57", "id": 3407592, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/57/labels", "node_id": "MDk6TWlsZXN0b25lMzQwNzU5Mg==", "number": 57, "open_issues": 0, "state": "closed", "title": "0.23.2", "updated_at": "2018-07-06T16:24:08Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/57" }
3
2014-10-23T18:10:13Z
2018-06-18T22:34:29Z
2018-06-18T22:34:29Z
CONTRIBUTOR
null
xref #5694 #8531 (?) xref #8817 This is presumably caused by the fact that pytz time zones internalize the offset of the current time. ``` python In [1]: import pandas as pd In [2]: idx = pd.date_range('2013-11-03', tz='America/Chicago', ...: periods=6, freq='H') In [3]: pd.Series(index=idx) Out[3]: 2013-11-03 00:00:00-05:00 NaN 2013-11-03 01:00:00-05:00 NaN 2013-11-03 01:00:00-06:00 NaN 2013-11-03 02:00:00-06:00 NaN 2013-11-03 03:00:00-06:00 NaN 2013-11-03 04:00:00-06:00 NaN Freq: H, dtype: float64 In [4]: pd.Series(index=idx).shift(freq='H') --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-4-19ee418c9aa1> in <module>() ----> 1 pd.Series(index=idx).shift(freq='H') /Users/afni/homebrew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/generic.pyc in shift(self, periods, freq, axis, **kwds) 3290 new_data = self._data.shift(periods=periods, axis=block_axis) 3291 else: -> 3292 return self.tshift(periods, freq, **kwds) 3293 3294 return self._constructor(new_data).__finalize__(self) /Users/afni/homebrew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/generic.pyc in tshift(self, periods, freq, axis, **kwds) 3386 else: 3387 new_data = self._data.copy() -> 3388 new_data.axes[block_axis] = index.shift(periods, offset) 3389 3390 return self._constructor(new_data).__finalize__(self) /Users/afni/homebrew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tseries/index.pyc in shift(self, n, freq) 855 end = self[-1] + n * self.offset 856 return DatetimeIndex(start=start, end=end, freq=self.offset, --> 857 name=self.name, tz=self.tz) 858 859 def repeat(self, repeats, axis=None): /Users/afni/homebrew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tseries/index.pyc in __new__(cls, data, freq, start, end, periods, copy, name, tz, verify_integrity, normalize, closed, **kwds) 204 return cls._generate(start, end, periods, name, freq, 205 tz=tz, normalize=normalize, closed=closed, --> 206 infer_dst=infer_dst) 207 208 if not isinstance(data, (np.ndarray, ABCSeries)): /Users/afni/homebrew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tseries/index.pyc in _generate(cls, start, end, periods, name, offset, tz, normalize, infer_dst, closed) 369 if tz is not None and inferred_tz is not None: 370 if not inferred_tz == tz: --> 371 raise AssertionError("Inferred time zone not equal to passed " 372 "time zone") 373 AssertionError: Inferred time zone not equal to passed time zone ``` Playing with `dateutil` and `pytz` timezones makes me despair of repairing that assertion to be anything sane. Is it actually needed, or can we just turn it into a warning? Observations: - two `pytz.DstTzInfo`s of the same zoneinfo zone that have been `.normalize()`ed to different times may compare different - a `pytz.*TzInfo` has a `zone` member containing the name of the zoneinfo zone from which it was constructed - a `dateutil.tzfile` has no public members beyond the `tzinfo` API, which is insufficient to tell whether two time zones are equal - a `pytz` time zone and a `dateutil` time zone appear to compare different under all circumstances, regardless of whether they represent the same time zone - the various `dateutil` time zone classes have no common base class within the `dateutil` package - `pytz` zones constructed from different names for the same zoneinfo zone (e.g. `UTC` and `Etc/UTC`) compare different Ugh. from #8817 ``` import pandas as pd import pytz import datetime dt = datetime.datetime(2014, 11, 14, 0) dt_est = pytz.timezone('EST').localize(dt) s = pd.Series(data=[1], index=[dt_est]) s.shift(0, freq='h') # 2014-11-14 00:00:00-05:00 (seems okay) s.shift(-1, freq='h') # 2014-11-13 18:00:00-05:00 (expected 2014-11-13 23:00:00) s.shift(1, freq='h') # 2014-11-13 20:00:00-05:00 (expected 2014-11-14 01:00:00) s.shift(-1, freq='s') # 2014-11-13 18:59:59-05:00 (same with other freq) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8616/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8616/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8617
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8617/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8617/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8617/events
https://github.com/pandas-dev/pandas/issues/8617
46,657,546
MDU6SXNzdWU0NjY1NzU0Ng==
8,617
BUG: Series.median() treats NaT as INT_MIN
{ "avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4", "events_url": "https://api.github.com/users/ischwabacher/events{/privacy}", "followers_url": "https://api.github.com/users/ischwabacher/followers", "following_url": "https://api.github.com/users/ischwabacher/following{/other_user}", "gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ischwabacher", "id": 4306187, "login": "ischwabacher", "node_id": "MDQ6VXNlcjQzMDYxODc=", "organizations_url": "https://api.github.com/users/ischwabacher/orgs", "received_events_url": "https://api.github.com/users/ischwabacher/received_events", "repos_url": "https://api.github.com/users/ischwabacher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions", "type": "User", "url": "https://api.github.com/users/ischwabacher" }
[ { "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" }, { "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": "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" }
13
2014-10-23T18:19:04Z
2016-09-01T07:28:07Z
2016-09-01T07:28:07Z
CONTRIBUTOR
null
Fixing this will be easier once numpy/numpy#5222 is fixed. ``` python In [1]: import pandas as pd In [2]: pd.Series([0, pd.tslib.iNaT], dtype='m8[ns]') Out[2]: 0 0 days 1 NaT dtype: timedelta64[ns] In [3]: _.median() Out[3]: 0 -53375 days, 23:53:38.427388 dtype: timedelta64[ns] ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8617/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8617/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8618
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8618/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8618/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8618/events
https://github.com/pandas-dev/pandas/pull/8618
46,678,000
MDExOlB1bGxSZXF1ZXN0MjMyNjAxMjc=
8,618
Updating generic.py error message
{ "avatar_url": "https://avatars.githubusercontent.com/u/983944?v=4", "events_url": "https://api.github.com/users/springcoil/events{/privacy}", "followers_url": "https://api.github.com/users/springcoil/followers", "following_url": "https://api.github.com/users/springcoil/following{/other_user}", "gists_url": "https://api.github.com/users/springcoil/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/springcoil", "id": 983944, "login": "springcoil", "node_id": "MDQ6VXNlcjk4Mzk0NA==", "organizations_url": "https://api.github.com/users/springcoil/orgs", "received_events_url": "https://api.github.com/users/springcoil/received_events", "repos_url": "https://api.github.com/users/springcoil/repos", "site_admin": false, "starred_url": "https://api.github.com/users/springcoil/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/springcoil/subscriptions", "type": "User", "url": "https://api.github.com/users/springcoil" }
[ { "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": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
28
2014-10-23T21:14:23Z
2014-12-01T08:24:47Z
2014-12-01T08:13:17Z
CONTRIBUTOR
null
This is my first attempt at a PR. I just made a little change to allow an error message. Would appreciate some feedback. closes https://github.com/pydata/pandas/issues/8015
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8618/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8618/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8618.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8618", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/8618.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8618" }
https://api.github.com/repos/pandas-dev/pandas/issues/8619
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8619/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8619/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8619/events
https://github.com/pandas-dev/pandas/pull/8619
46,682,249
MDExOlB1bGxSZXF1ZXN0MjMyNjI4NzE=
8,619
Fix timezone comparison in DatetimeIndex._generate
{ "avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4", "events_url": "https://api.github.com/users/ischwabacher/events{/privacy}", "followers_url": "https://api.github.com/users/ischwabacher/followers", "following_url": "https://api.github.com/users/ischwabacher/following{/other_user}", "gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ischwabacher", "id": 4306187, "login": "ischwabacher", "node_id": "MDQ6VXNlcjQzMDYxODc=", "organizations_url": "https://api.github.com/users/ischwabacher/orgs", "received_events_url": "https://api.github.com/users/ischwabacher/received_events", "repos_url": "https://api.github.com/users/ischwabacher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions", "type": "User", "url": "https://api.github.com/users/ischwabacher" }
[ { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
null
4
2014-10-23T21:56:54Z
2015-05-09T15:58:46Z
2015-05-09T15:58:46Z
CONTRIBUTOR
null
This fix is just a band-aid-- a real fix will have to wait for PEP 431 to unite all the time zone implementations. Also refine a bare `except:` in the same method. Fixes #8616
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8619/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8619/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8619.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8619", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/8619.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8619" }
https://api.github.com/repos/pandas-dev/pandas/issues/8620
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8620/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8620/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8620/events
https://github.com/pandas-dev/pandas/issues/8620
46,689,560
MDU6SXNzdWU0NjY4OTU2MA==
8,620
Enable Sourcegraph
{ "avatar_url": "https://avatars.githubusercontent.com/u/2684501?v=4", "events_url": "https://api.github.com/users/brianspiering/events{/privacy}", "followers_url": "https://api.github.com/users/brianspiering/followers", "following_url": "https://api.github.com/users/brianspiering/following{/other_user}", "gists_url": "https://api.github.com/users/brianspiering/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/brianspiering", "id": 2684501, "login": "brianspiering", "node_id": "MDQ6VXNlcjI2ODQ1MDE=", "organizations_url": "https://api.github.com/users/brianspiering/orgs", "received_events_url": "https://api.github.com/users/brianspiering/received_events", "repos_url": "https://api.github.com/users/brianspiering/repos", "site_admin": false, "starred_url": "https://api.github.com/users/brianspiering/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/brianspiering/subscriptions", "type": "User", "url": "https://api.github.com/users/brianspiering" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
null
2
2014-10-23T23:25:44Z
2014-11-10T14:28:58Z
2014-10-27T18:34:56Z
NONE
null
I want to use [Sourcegraph code search and code review](https://sourcegraph.com) with pandas. A project maintainer needs to enable it to set up a webhook so the code is up-to-date there. Could you please enable pandas on @Sourcegraph by going to https://sourcegraph.com/github.com/pydata/pandas and clicking on Settings? (It should only take 15 seconds.) Thank you!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8620/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8620/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8621
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8621/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8621/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8621/events
https://github.com/pandas-dev/pandas/issues/8621
46,702,731
MDU6SXNzdWU0NjcwMjczMQ==
8,621
to_csv issue
{ "avatar_url": "https://avatars.githubusercontent.com/u/2200240?v=4", "events_url": "https://api.github.com/users/rmorgans/events{/privacy}", "followers_url": "https://api.github.com/users/rmorgans/followers", "following_url": "https://api.github.com/users/rmorgans/following{/other_user}", "gists_url": "https://api.github.com/users/rmorgans/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rmorgans", "id": 2200240, "login": "rmorgans", "node_id": "MDQ6VXNlcjIyMDAyNDA=", "organizations_url": "https://api.github.com/users/rmorgans/orgs", "received_events_url": "https://api.github.com/users/rmorgans/received_events", "repos_url": "https://api.github.com/users/rmorgans/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rmorgans/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rmorgans/subscriptions", "type": "User", "url": "https://api.github.com/users/rmorgans" }
[ { "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": "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": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
12
2014-10-24T04:05:07Z
2014-12-03T22:37:35Z
2014-12-03T22:37:35Z
NONE
null
I have an issue using to_csv on a DataFrame object. It has a large number of columns d.shape = (3,454731). ``` python Python 3.4.2 (default, Oct 8 2014, 13:44:52) [GCC 4.9.1 20140903 (prerelease)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pandas as pd >>> pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.4.2.final.0 python-bits: 64 OS: Linux OS-release: 3.14.22-1-lts machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_AU.UTF-8 pandas: 0.15.0-16-g7012d71 nose: 1.3.4 Cython: 0.21.1 numpy: 1.9.0 scipy: 0.14.0 statsmodels: None IPython: 2.3.0 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.2 pytz: 2014.7 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.2 openpyxl: 1.8.6 xlrd: 0.9.3 xlwt: None xlsxwriter: 0.5.7 lxml: 3.4.0 bs4: None html5lib: 0.999 httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.8 pymysql: None psycopg2: 2.5.4 (dt dec pq3 ext) >>> d=pd.read_msgpack('test.mpk') >>> d.shape (3, 454731) >>> d.to_csv('test.csv') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/pandas/util/decorators.py", line 88, in wrapper return func(*args, **kwargs) File "/usr/lib/python3.4/site-packages/pandas/core/frame.py", line 1154, in to_csv formatter.save() File "/usr/lib/python3.4/site-packages/pandas/core/format.py", line 1400, in save self._save() File "/usr/lib/python3.4/site-packages/pandas/core/format.py", line 1492, in _save chunks = int(nrows / chunksize) + 1 ZeroDivisionError: division by zero >>> d.T.to_csv('test.csv') >>> ``` Not sure what's going on here - I've written a nosetest here (any tips for improvements in my test?) https://github.com/rmorgans/pandas/commit/f3d0a9e629866fb0d4bcfdde13b631997efa7e5f
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8621/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8621/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8622
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8622/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8622/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8622/events
https://github.com/pandas-dev/pandas/pull/8622
46,704,468
MDExOlB1bGxSZXF1ZXN0MjMyNzYyODg=
8,622
BUG: cut/qcut on Series with "retbins" (GH8589)
{ "avatar_url": "https://avatars.githubusercontent.com/u/5356340?v=4", "events_url": "https://api.github.com/users/rosnfeld/events{/privacy}", "followers_url": "https://api.github.com/users/rosnfeld/followers", "following_url": "https://api.github.com/users/rosnfeld/following{/other_user}", "gists_url": "https://api.github.com/users/rosnfeld/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rosnfeld", "id": 5356340, "login": "rosnfeld", "node_id": "MDQ6VXNlcjUzNTYzNDA=", "organizations_url": "https://api.github.com/users/rosnfeld/orgs", "received_events_url": "https://api.github.com/users/rosnfeld/received_events", "repos_url": "https://api.github.com/users/rosnfeld/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rosnfeld/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rosnfeld/subscriptions", "type": "User", "url": "https://api.github.com/users/rosnfeld" }
[ { "color": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
1
2014-10-24T04:56:35Z
2014-10-30T11:20:23Z
2014-10-24T18:36:38Z
CONTRIBUTOR
null
Fixes #8589. I centralized a bit of logic into tile.py's `_bins_to_cuts()` so that this change could be made in one place, hope that's okay.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8622/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8622/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8622.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8622", "merged_at": "2014-10-24T18:36:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8622.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8622" }
https://api.github.com/repos/pandas-dev/pandas/issues/8623
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8623/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8623/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8623/events
https://github.com/pandas-dev/pandas/issues/8623
46,710,534
MDU6SXNzdWU0NjcxMDUzNA==
8,623
pd.Catagorical breaks transform, drop_duplicates, iloc
{ "avatar_url": "https://avatars.githubusercontent.com/u/9023555?v=4", "events_url": "https://api.github.com/users/kay1793/events{/privacy}", "followers_url": "https://api.github.com/users/kay1793/followers", "following_url": "https://api.github.com/users/kay1793/following{/other_user}", "gists_url": "https://api.github.com/users/kay1793/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kay1793", "id": 9023555, "login": "kay1793", "node_id": "MDQ6VXNlcjkwMjM1NTU=", "organizations_url": "https://api.github.com/users/kay1793/orgs", "received_events_url": "https://api.github.com/users/kay1793/received_events", "repos_url": "https://api.github.com/users/kay1793/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kay1793/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kay1793/subscriptions", "type": "User", "url": "https://api.github.com/users/kay1793" }
[ { "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": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
0
2014-10-24T07:18:59Z
2014-10-31T22:35:39Z
2014-10-31T22:35:39Z
NONE
null
``` python x=pd.DataFrame([[1,'John P. Doe'],[2,'Jane Dove'],[1,'John P. Doe']], columns=['person_id','person_name']) x['person_name']=pd.Categorical(x.person_name) # doing this breaks transform g=x.groupby(['person_id']) g.transform(lambda x:x) AttributeError: 'ObjectBlock' object has no attribute '_holder' ``` using `drop_duplicates` inside apply (I often need this): ``` python g.apply(lambda x: x.drop_duplicates('person_name')) SystemError: numpy/core/src/multiarray/iterators.c:370: bad argument to internal function ``` and iloc is not what I expected: ``` python x.iloc[0].person_name # ok x.person_name.iloc[0] # err TypeError: Argument 'arr' has incorrect type (expected numpy.ndarray, got Series) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8623/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8623/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8624
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8624/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8624/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8624/events
https://github.com/pandas-dev/pandas/issues/8624
46,713,608
MDU6SXNzdWU0NjcxMzYwOA==
8,624
pd.to/read_sql_table silently corrupts Categorical columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/9023555?v=4", "events_url": "https://api.github.com/users/kay1793/events{/privacy}", "followers_url": "https://api.github.com/users/kay1793/followers", "following_url": "https://api.github.com/users/kay1793/following{/other_user}", "gists_url": "https://api.github.com/users/kay1793/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kay1793", "id": 9023555, "login": "kay1793", "node_id": "MDQ6VXNlcjkwMjM1NTU=", "organizations_url": "https://api.github.com/users/kay1793/orgs", "received_events_url": "https://api.github.com/users/kay1793/received_events", "repos_url": "https://api.github.com/users/kay1793/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kay1793/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kay1793/subscriptions", "type": "User", "url": "https://api.github.com/users/kay1793" }
[ { "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": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" }, { "color": "e11d21", "default": false, "description": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
4
2014-10-24T08:10:06Z
2014-10-31T12:50:09Z
2014-10-31T12:50:09Z
NONE
null
``` python In [29]: from sqlalchemy import create_engine ...: engine = create_engine('sqlite://') ...: df=pd.DataFrame([[1,'John P. Doe'],[2,'Jane Dove'],[1,'John P. Doe']], ...: columns=['person_id','person_name']) ...: df.to_sql('data1',engine) ...: df['person_name']=pd.Categorical(df.person_name) ...: df.to_sql('data2',engine) ...: print pd.read_sql_table('data1',engine) ...: print pd.read_sql_table('data2',engine) index person_id person_name 0 0 1 John P. Doe 1 1 2 Jane Dove 2 2 1 John P. Doe index person_id person_name 0 0 1 J 1 1 2 o 2 2 1 h ``` using relational db to store catagorical columns in seperare tables would be very cool, and rebuilding the frame in pandas by JOIN from the multiple tables would save time on the wire. also memory if categorical was build directly.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8624/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8624/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8625
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8625/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8625/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8625/events
https://github.com/pandas-dev/pandas/issues/8625
46,770,196
MDU6SXNzdWU0Njc3MDE5Ng==
8,625
API/ENH: create Interval class
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" }, { "color": "009800", "default": false, "description": "Interval data type", "id": 150096370, "name": "Interval", "node_id": "MDU6TGFiZWwxNTAwOTYzNzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
12
2014-10-24T18:42:12Z
2017-04-14T13:32:37Z
2017-04-14T13:32:37Z
CONTRIBUTOR
null
xref #8595 something like: `Interval(left=(-1.5,'open),right=(0,'closed'))` reprs to `(-1.5,0]` can be used immediately in the index values for `pd.cut` and such (as an object index) evenutally can form the basis for `IntervalIndex` cc @shoyer cc @JanSchulz cc @rosnfeld
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8625/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8625/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8626
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8626/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8626/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8626/events
https://github.com/pandas-dev/pandas/issues/8626
46,778,842
MDU6SXNzdWU0Njc3ODg0Mg==
8,626
BUG: DataFrame.to_records, DataFrame constructor broken for categoricals
{ "avatar_url": "https://avatars.githubusercontent.com/u/3984277?v=4", "events_url": "https://api.github.com/users/fkaufer/events{/privacy}", "followers_url": "https://api.github.com/users/fkaufer/followers", "following_url": "https://api.github.com/users/fkaufer/following{/other_user}", "gists_url": "https://api.github.com/users/fkaufer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fkaufer", "id": 3984277, "login": "fkaufer", "node_id": "MDQ6VXNlcjM5ODQyNzc=", "organizations_url": "https://api.github.com/users/fkaufer/orgs", "received_events_url": "https://api.github.com/users/fkaufer/received_events", "repos_url": "https://api.github.com/users/fkaufer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fkaufer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fkaufer/subscriptions", "type": "User", "url": "https://api.github.com/users/fkaufer" }
[ { "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
24
2014-10-24T20:13:53Z
2014-11-11T12:58:20Z
2014-10-28T00:03:02Z
NONE
null
`to_records()` and the df constructor are broken for data containing categoricals when created with `dtype='category'` or `astype('category')`. Broken (`TypeError: data type not understood`): ``` python pd.DataFrame(list('abc'),dtype='category') df=pd.DataFrame(list('abc'), columns=['A']) df['A'] = df['A'].astype('category') df.to_records() ``` Works: ``` python pd.Series(list('abc'), dtype='category') pd.DataFrame(list('abc'), dtype=pd.core.common.CategoricalDtype) df=pd.DataFrame(list('abc'), columns=['A']) df['A'] = df['A'].astype(pd.core.common.CategoricalDtype) df.to_records() pd.Series(list('abc'), dtype='category').to_frame().to_records() ``` `to_frame` seems to remove the category dtype though. Pandas version: 0.15.0-20-g2737f5a
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8626/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8626/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8627
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8627/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8627/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8627/events
https://github.com/pandas-dev/pandas/issues/8627
46,780,098
MDU6SXNzdWU0Njc4MDA5OA==
8,627
PERF: perform .str operations on categoricals
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "5319e7", "default": false, "description": "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" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
13
2014-10-24T20:27:02Z
2016-07-21T15:43:00Z
2015-11-18T11:47:32Z
CONTRIBUTOR
null
So huge win to perform .str operations on the `.categories` of a `Categorical` (versus actually doing these on an object array), when you have << number of categories relative to the number of objects.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8627/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8627/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8628
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8628/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8628/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8628/events
https://github.com/pandas-dev/pandas/issues/8628
46,788,945
MDU6SXNzdWU0Njc4ODk0NQ==
8,628
ENH: decode for Categoricals
{ "avatar_url": "https://avatars.githubusercontent.com/u/3984277?v=4", "events_url": "https://api.github.com/users/fkaufer/events{/privacy}", "followers_url": "https://api.github.com/users/fkaufer/followers", "following_url": "https://api.github.com/users/fkaufer/following{/other_user}", "gists_url": "https://api.github.com/users/fkaufer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fkaufer", "id": 3984277, "login": "fkaufer", "node_id": "MDQ6VXNlcjM5ODQyNzc=", "organizations_url": "https://api.github.com/users/fkaufer/orgs", "received_events_url": "https://api.github.com/users/fkaufer/received_events", "repos_url": "https://api.github.com/users/fkaufer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fkaufer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fkaufer/subscriptions", "type": "User", "url": "https://api.github.com/users/fkaufer" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "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": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
5
2014-10-24T22:10:05Z
2020-11-18T18:21:51Z
2020-11-18T18:21:51Z
NONE
null
There seems no direct way to return to the original dtype and the [documentation](http://pandas-docs.github.io/pandas-docs-travis/categorical.html#object-creation) recommends: _"To get back to the original Series or numpy array, use Series.astype(original_dtype) or np.asarray(categorical)"_ That's slow and a `decode` or `decat` method would be trivial: ``` python df=pd.DataFrame(np.random.choice(list(u'abcde'), 4e6).reshape(1e6, 4), columns=list(u'ABCD')) for col in df.columns: df[col] = df[col].astype('category') %timeit for col in df.columns: df[col].astype('unicode') 1 loops, best of 3: 1.06 s per loop %timeit for col in df.columns: cats=df[col].cat.categories; cats[df[col].cat.codes] 10 loops, best of 3: 33.2 ms per loop ``` I was working with ~10 categories (partially longer strings) on a 20 mio rows dataset where the difference was even bigger (unfortunately can't reproduce it with dummy data) and using `astype` felt rather buggy (minutes) than only a performance issue. Given the current limitations on exporting categorical data, having a fast `decode` method would be very convenient. Since category codes are most often strings an optional parameter for direct character set encoding would also be good to have for such a method. ``` python %timeit for col in df.columns: df[col].astype('unicode').str.encode('latin1') 1 loops, best of 3: 3.95 s per loop %timeit for col in df.columns: cats=pd.Series(df[col].cat.categories).str.encode('latin1'); cats[df[col].cat.codes] 10 loops, best of 3: 74.5 ms per loop ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8628/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8628/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8629
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8629/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8629/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8629/events
https://github.com/pandas-dev/pandas/issues/8629
46,798,130
MDU6SXNzdWU0Njc5ODEzMA==
8,629
Add arithmetic to categoricals?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4", "events_url": "https://api.github.com/users/shoyer/events{/privacy}", "followers_url": "https://api.github.com/users/shoyer/followers", "following_url": "https://api.github.com/users/shoyer/following{/other_user}", "gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shoyer", "id": 1217238, "login": "shoyer", "node_id": "MDQ6VXNlcjEyMTcyMzg=", "organizations_url": "https://api.github.com/users/shoyer/orgs", "received_events_url": "https://api.github.com/users/shoyer/received_events", "repos_url": "https://api.github.com/users/shoyer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shoyer/subscriptions", "type": "User", "url": "https://api.github.com/users/shoyer" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2015-03-23T10:50:37Z", "closed_issues": 400, "created_at": "2014-02-14T03:31:22Z", "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.15 of course!", "due_on": "2015-03-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/25", "id": 569113, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels", "node_id": "MDk6TWlsZXN0b25lNTY5MTEz", "number": 25, "open_issues": 0, "state": "closed", "title": "0.16.0", "updated_at": "2017-08-24T09:17:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25" }
6
2014-10-25T01:19:32Z
2014-10-26T19:01:10Z
2014-10-25T01:27:11Z
MEMBER
null
I'm not entirely sure why (perhaps just the trouble of implementing it), but categoricals do not currently support arithmetic: > In contrast to statistical categorical variables, categorical data might have an order (e.g. ‘strongly agree’ vs ‘agree’ or ‘first observation’ vs. ‘second observation’), but numerical operations (additions, divisions, ...) are not possible. Similarly to string operations (#8627), arithmetic with scalars could very efficient transform categoricals into new categoricals. In contrast, array + array operations should probably just return a normal array. CC @JanSchultz @jreback
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8629/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8629/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8630
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8630/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8630/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8630/events
https://github.com/pandas-dev/pandas/issues/8630
46,800,979
MDU6SXNzdWU0NjgwMDk3OQ==
8,630
CI: osx testing on Travis
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 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
2014-10-25T03:38:49Z
2015-06-17T00:52:18Z
2015-06-17T00:52:18Z
CONTRIBUTOR
null
http://docs.travis-ci.com/user/multi-os/ http://docs.travis-ci.com/user/osx-ci-environment/ so might be nice to have say a. 2.7 and 3.3/4 build on osx
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8630/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8630/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8631
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8631/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8631/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8631/events
https://github.com/pandas-dev/pandas/pull/8631
46,802,064
MDExOlB1bGxSZXF1ZXN0MjMzMzU0NzY=
8,631
BUG: Fix pandas.io.data.Options for change in format of Yahoo Option page
{ "avatar_url": "https://avatars.githubusercontent.com/u/5957850?v=4", "events_url": "https://api.github.com/users/davidastephens/events{/privacy}", "followers_url": "https://api.github.com/users/davidastephens/followers", "following_url": "https://api.github.com/users/davidastephens/following{/other_user}", "gists_url": "https://api.github.com/users/davidastephens/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/davidastephens", "id": 5957850, "login": "davidastephens", "node_id": "MDQ6VXNlcjU5NTc4NTA=", "organizations_url": "https://api.github.com/users/davidastephens/orgs", "received_events_url": "https://api.github.com/users/davidastephens/received_events", "repos_url": "https://api.github.com/users/davidastephens/repos", "site_admin": false, "starred_url": "https://api.github.com/users/davidastephens/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/davidastephens/subscriptions", "type": "User", "url": "https://api.github.com/users/davidastephens" }
[]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
31
2014-10-25T04:46:36Z
2014-11-10T15:25:50Z
2014-11-05T11:41:57Z
CONTRIBUTOR
null
This should fix #8612. Will need a sample of a during the week HTML to make sure that the underlying price and quote time work with that format. I'll update for that on Monday.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8631/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8631/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8631.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8631", "merged_at": "2014-11-05T11:41:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8631.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8631" }
https://api.github.com/repos/pandas-dev/pandas/issues/8632
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8632/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8632/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8632/events
https://github.com/pandas-dev/pandas/issues/8632
46,805,605
MDU6SXNzdWU0NjgwNTYwNQ==
8,632
pd.Catagorical breaks to_msgpack
{ "avatar_url": "https://avatars.githubusercontent.com/u/9023555?v=4", "events_url": "https://api.github.com/users/kay1793/events{/privacy}", "followers_url": "https://api.github.com/users/kay1793/followers", "following_url": "https://api.github.com/users/kay1793/following{/other_user}", "gists_url": "https://api.github.com/users/kay1793/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kay1793", "id": 9023555, "login": "kay1793", "node_id": "MDQ6VXNlcjkwMjM1NTU=", "organizations_url": "https://api.github.com/users/kay1793/orgs", "received_events_url": "https://api.github.com/users/kay1793/received_events", "repos_url": "https://api.github.com/users/kay1793/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kay1793/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kay1793/subscriptions", "type": "User", "url": "https://api.github.com/users/kay1793" }
[ { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2015-03-23T10:50:37Z", "closed_issues": 400, "created_at": "2014-02-14T03:31:22Z", "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.15 of course!", "due_on": "2015-03-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/25", "id": 569113, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels", "node_id": "MDk6TWlsZXN0b25lNTY5MTEz", "number": 25, "open_issues": 0, "state": "closed", "title": "0.16.0", "updated_at": "2017-08-24T09:17:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25" }
2
2014-10-25T07:46:11Z
2016-12-17T14:32:41Z
2014-10-25T12:51:38Z
NONE
null
``` python df=pd.DataFrame([[1,'John P. Doe'],[2,'Jane Dove'],[1,'John P. Doe']]) df[1]=pd.Categorical(df[1]) pd.read_msgpack(df.to_msgpack()) KeyError: 100 ``` #8626, #8624
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8632/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8632/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8633
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8633/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8633/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8633/events
https://github.com/pandas-dev/pandas/issues/8633
46,812,561
MDU6SXNzdWU0NjgxMjU2MQ==
8,633
ENH: categorical dataexport - graceful degradation
{ "avatar_url": "https://avatars.githubusercontent.com/u/3984277?v=4", "events_url": "https://api.github.com/users/fkaufer/events{/privacy}", "followers_url": "https://api.github.com/users/fkaufer/followers", "following_url": "https://api.github.com/users/fkaufer/following{/other_user}", "gists_url": "https://api.github.com/users/fkaufer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fkaufer", "id": 3984277, "login": "fkaufer", "node_id": "MDQ6VXNlcjM5ODQyNzc=", "organizations_url": "https://api.github.com/users/fkaufer/orgs", "received_events_url": "https://api.github.com/users/fkaufer/received_events", "repos_url": "https://api.github.com/users/fkaufer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fkaufer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fkaufer/subscriptions", "type": "User", "url": "https://api.github.com/users/fkaufer" }
[]
closed
false
null
[]
null
3
2014-10-25T13:53:55Z
2014-10-25T15:00:16Z
2014-10-25T14:08:33Z
NONE
null
It would be great to generally apply graceful degradation for export of categorical data instead of raising exceptions. Currently this is only the case for `to_sql` and `to_csv`, where the categories are exported, while `to_pickle` is the only option to persist categorical data For Stata and HDF it is: - `to_hdf`: `NotImplementedError: cannot store a category dtype` - `to_stata`: `ValueError: Data type category not currently understood. Please report an error to the developers.` As long as a backend does not support categoricals or the conversion is not yet implemented, why not generally export categories as a fallback? With the separately discussed decode method (#8628) this would be easy. If the same rigor (backend supports data type natively or fail) would be applied to CSV-IO we could only export string dtypes to CSV. Thinking one step further, the `to_...` functions could have an optional parameter named something like `convert_cat` with options: - None: either try to export as a categorical (pickle, potentially HDF, Stata) or raise exception - 'category': only export categories (decode method) - 'code': export s.cat.codes - 'mapping' or 'emulate': export code:category mapping in one/two columns or separate table/frame/... with the code-category mapping. The last option would probably need additional parameters to control the technical implementation (e.g. table name for mapping or suffixes as for join/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/8633/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8633/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8634
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8634/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8634/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8634/events
https://github.com/pandas-dev/pandas/pull/8634
46,815,245
MDExOlB1bGxSZXF1ZXN0MjMzNDA0NDM=
8,634
BUG: bug in Float/Int index with ndarray for add/sub numeric ops (GH8608)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
0
2014-10-25T15:45:59Z
2014-10-30T11:20:23Z
2014-10-25T23:35:27Z
CONTRIBUTOR
null
closes #8608
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8634/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8634/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8634.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8634", "merged_at": "2014-10-25T23:35:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8634.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8634" }
https://api.github.com/repos/pandas-dev/pandas/issues/8635
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8635/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8635/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8635/events
https://github.com/pandas-dev/pandas/issues/8635
46,819,686
MDU6SXNzdWU0NjgxOTY4Ng==
8,635
Can't display DataFrame imported from Excel or CSV in IPython notebook
{ "avatar_url": "https://avatars.githubusercontent.com/u/81476?v=4", "events_url": "https://api.github.com/users/fonnesbeck/events{/privacy}", "followers_url": "https://api.github.com/users/fonnesbeck/followers", "following_url": "https://api.github.com/users/fonnesbeck/following{/other_user}", "gists_url": "https://api.github.com/users/fonnesbeck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fonnesbeck", "id": 81476, "login": "fonnesbeck", "node_id": "MDQ6VXNlcjgxNDc2", "organizations_url": "https://api.github.com/users/fonnesbeck/orgs", "received_events_url": "https://api.github.com/users/fonnesbeck/received_events", "repos_url": "https://api.github.com/users/fonnesbeck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fonnesbeck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fonnesbeck/subscriptions", "type": "User", "url": "https://api.github.com/users/fonnesbeck" }
[]
closed
false
null
[]
null
2
2014-10-25T18:39:18Z
2014-10-26T17:11:41Z
2014-10-26T17:11:41Z
NONE
null
I'm running into issues with a particular Excel file (which I have exported to CSV) that seems to have some characters that can't be dealt with in IPython notebook. Wasn't sure whether to post here or on IPython's tracker. The file imports fine, but on the notebook, I get this error when I try to display it: ``` --------------------------------------------------------------------------- UnicodeDecodeError Traceback (most recent call last) <ipython-input-31-a83dda38f1a4> in <module>() ----> 1 pd.read_csv('data/Study Characteristics.csv') /usr/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc in __call__(self, result) 242 self.update_user_ns(result) 243 self.log_output(format_dict) --> 244 self.finish_displayhook() 245 246 def flush(self): /usr/local/lib/python2.7/site-packages/IPython/kernel/zmq/displayhook.pyc in finish_displayhook(self) 66 sys.stdout.flush() 67 sys.stderr.flush() ---> 68 self.session.send(self.pub_socket, self.msg, ident=self.topic) 69 self.msg = None 70 /usr/local/lib/python2.7/site-packages/IPython/kernel/zmq/session.pyc in send(self, stream, msg_or_type, content, parent, ident, buffers, track, header, metadata) 647 if self.adapt_version: 648 msg = adapt(msg, self.adapt_version) --> 649 to_send = self.serialize(msg, ident) 650 to_send.extend(buffers) 651 longest = max([ len(s) for s in to_send ]) /usr/local/lib/python2.7/site-packages/IPython/kernel/zmq/session.pyc in serialize(self, msg, ident) 551 content = self.none 552 elif isinstance(content, dict): --> 553 content = self.pack(content) 554 elif isinstance(content, bytes): 555 # content is already packed, as in a relayed message /usr/local/lib/python2.7/site-packages/IPython/kernel/zmq/session.pyc in <lambda>(obj) 83 # disallow nan, because it's not actually valid JSON 84 json_packer = lambda obj: jsonapi.dumps(obj, default=date_default, ---> 85 ensure_ascii=False, allow_nan=False, 86 ) 87 json_unpacker = lambda s: jsonapi.loads(s) /usr/local/lib/python2.7/site-packages/zmq/utils/jsonapi.pyc in dumps(o, **kwargs) 38 kwargs['separators'] = (',', ':') 39 ---> 40 s = jsonmod.dumps(o, **kwargs) 41 42 if isinstance(s, unicode): /usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.pyc in dumps(obj, skipkeys, ensure_ascii, check_circular, allow_nan, cls, indent, separators, encoding, default, sort_keys, **kw) 248 check_circular=check_circular, allow_nan=allow_nan, indent=indent, 249 separators=separators, encoding=encoding, default=default, --> 250 sort_keys=sort_keys, **kw).encode(obj) 251 252 /usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.pyc in encode(self, o) 208 if not isinstance(chunks, (list, tuple)): 209 chunks = list(chunks) --> 210 return ''.join(chunks) 211 212 def iterencode(self, o, _one_shot=False): UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 19900: ordinal not in range(128) ``` I've tried using encoder options of various kinds when importing the CSV, but nothing seems to work. Running Pandas '0.15.0-20-g2737f5a' on OS X 10.10 and IPython '3.0.0-dev' built from master. [Here is the spreadsheet in question](http://d.pr/f/12i3G) incase it helps.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8635/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8635/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8636
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8636/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8636/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8636/events
https://github.com/pandas-dev/pandas/issues/8636
46,822,497
MDU6SXNzdWU0NjgyMjQ5Nw==
8,636
Timezone conversion? Strange behaviour in read_csv
{ "avatar_url": "https://avatars.githubusercontent.com/u/190799?v=4", "events_url": "https://api.github.com/users/denadai2/events{/privacy}", "followers_url": "https://api.github.com/users/denadai2/followers", "following_url": "https://api.github.com/users/denadai2/following{/other_user}", "gists_url": "https://api.github.com/users/denadai2/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/denadai2", "id": 190799, "login": "denadai2", "node_id": "MDQ6VXNlcjE5MDc5OQ==", "organizations_url": "https://api.github.com/users/denadai2/orgs", "received_events_url": "https://api.github.com/users/denadai2/received_events", "repos_url": "https://api.github.com/users/denadai2/repos", "site_admin": false, "starred_url": "https://api.github.com/users/denadai2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/denadai2/subscriptions", "type": "User", "url": "https://api.github.com/users/denadai2" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
null
3
2014-10-25T20:23:37Z
2014-10-26T10:04:48Z
2014-10-26T10:04:48Z
NONE
null
I have this dataset ``` datetime,CGI,numRecords,countryCode 2014-03-30 01:00:00,222-01-00149-19464,1,39 2014-03-30 02:00:00,222-01-00149-19464,3,39 2014-03-30 03:00:00,222-01-00149-19464,1,39 ``` I have this code ``` import pandas as pd import numpy as np calls_df = pd.read_csv('222-01-00149-19464.csv', sep=',', encoding="utf-8-sig") calls_df.datetime = calls_df.datetime.astype('datetime64[s]') calls_df = calls_df.set_index(['datetime'], drop=False) calls_df = calls_df.sort(['datetime']) calls_df[calls_df.datetime == datetime.datetime(2014, 3, 30, 1)].head() ``` But the result is this: ![screen shot 2014-10-25 at 22 22 49](https://cloud.githubusercontent.com/assets/190799/4781017/bf0011a4-5c84-11e4-953c-739f782b9014.png) Why?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8636/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8636/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8637
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8637/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8637/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8637/events
https://github.com/pandas-dev/pandas/issues/8637
46,827,027
MDU6SXNzdWU0NjgyNzAyNw==
8,637
DatetimeIndex.tz_localize ignores 'ambiguous' keyword
{ "avatar_url": "https://avatars.githubusercontent.com/u/9023555?v=4", "events_url": "https://api.github.com/users/kay1793/events{/privacy}", "followers_url": "https://api.github.com/users/kay1793/followers", "following_url": "https://api.github.com/users/kay1793/following{/other_user}", "gists_url": "https://api.github.com/users/kay1793/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kay1793", "id": 9023555, "login": "kay1793", "node_id": "MDQ6VXNlcjkwMjM1NTU=", "organizations_url": "https://api.github.com/users/kay1793/orgs", "received_events_url": "https://api.github.com/users/kay1793/received_events", "repos_url": "https://api.github.com/users/kay1793/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kay1793/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kay1793/subscriptions", "type": "User", "url": "https://api.github.com/users/kay1793" }
[]
closed
false
null
[]
null
9
2014-10-25T23:43:34Z
2014-10-27T17:09:52Z
2014-10-26T19:10:38Z
NONE
null
``` python In [120]: pd.Timestamp('2014-10-26 01:01:20').tz_localize('Asia/Irkutsk') --------------------------------------------------------------------------- AmbiguousTimeError: Cannot infer dst time from Timestamp('2014-10-26 01:01:20'), try using the 'ambiguous' argument # ok In [121]: pd.Timestamp('2014-10-26 01:01:20').tz_localize('Asia/Irkutsk',ambiguous=pd.NaT) Out[121]: Timestamp('2014-10-26 01:01:20+0900', tz='Asia/Irkutsk') In [129]: x=pd.DataFrame([1],index=[pd.Timestamp('2014-10-26 01:01:20')]) ...: x.index Out[129]: <class 'pandas.tseries.index.DatetimeIndex'> [2014-10-26 01:01:20] Length: 1, Freq: None, Timezone: None # so this should work? In [130]: x.index.tz_localize('Asia/Irkutsk',ambiguous=pd.NaT) AmbiguousTimeError: Cannot infer dst time from Timestamp('2014-10-26 01:01:20'), try using the 'ambiguous' argument ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8637/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8637/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8638
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8638/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8638/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8638/events
https://github.com/pandas-dev/pandas/issues/8638
46,833,048
MDU6SXNzdWU0NjgzMzA0OA==
8,638
Strange X limits
{ "avatar_url": "https://avatars.githubusercontent.com/u/6879573?v=4", "events_url": "https://api.github.com/users/jgoad/events{/privacy}", "followers_url": "https://api.github.com/users/jgoad/followers", "following_url": "https://api.github.com/users/jgoad/following{/other_user}", "gists_url": "https://api.github.com/users/jgoad/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgoad", "id": 6879573, "login": "jgoad", "node_id": "MDQ6VXNlcjY4Nzk1NzM=", "organizations_url": "https://api.github.com/users/jgoad/orgs", "received_events_url": "https://api.github.com/users/jgoad/received_events", "repos_url": "https://api.github.com/users/jgoad/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgoad/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgoad/subscriptions", "type": "User", "url": "https://api.github.com/users/jgoad" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
null
3
2014-10-26T05:31:40Z
2014-10-29T02:31:53Z
2014-10-29T02:31:53Z
NONE
null
Hey I'm having some weird behavior in the notebook... I just hacked together some code that supposed to poll a temp/humidity sensor 60 times and then plot the temp against time. Instead of getting a nicely formatted x axis I'm just getting a straight line, and then all the dates from 2010 to 2016 as the x axis. Any ideas? Here's a screencap. ![pandasgoof](https://cloud.githubusercontent.com/assets/6879573/4781998/561769ba-5cd1-11e4-97aa-0f2edaf39184.png)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8638/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8638/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8639
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8639/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8639/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8639/events
https://github.com/pandas-dev/pandas/issues/8639
46,852,251
MDU6SXNzdWU0Njg1MjI1MQ==
8,639
pandas-0.15.0 test failure test_string_index_alias_tz_aware (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil)
{ "avatar_url": "https://avatars.githubusercontent.com/u/79732?v=4", "events_url": "https://api.github.com/users/jlec/events{/privacy}", "followers_url": "https://api.github.com/users/jlec/followers", "following_url": "https://api.github.com/users/jlec/following{/other_user}", "gists_url": "https://api.github.com/users/jlec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jlec", "id": 79732, "login": "jlec", "node_id": "MDQ6VXNlcjc5NzMy", "organizations_url": "https://api.github.com/users/jlec/orgs", "received_events_url": "https://api.github.com/users/jlec/received_events", "repos_url": "https://api.github.com/users/jlec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jlec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jlec/subscriptions", "type": "User", "url": "https://api.github.com/users/jlec" }
[ { "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": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
19
2014-10-26T19:39:28Z
2015-06-02T19:25:19Z
2015-05-15T20:26:36Z
CONTRIBUTOR
null
# ## ERROR: test_string_index_alias_tz_aware (pandas.tseries.tests.test_timezones.TestTimeZoneSupportDateutil) Traceback (most recent call last): File "/var/tmp/portage/dev-python/pandas-0.15.0/work/pandas-0.15.0-python3_3/lib/pandas/tseries/tests/test_timezones.py", line 606, in test_string_index_alias_tz_aware self.assertAlmostEqual(result, ts[2]) File "/usr/lib64/python3.3/unittest/case.py", line 665, in assertAlmostEqual if first == second: File "/var/tmp/portage/dev-python/pandas-0.15.0/work/pandas-0.15.0-python3_3/lib/pandas/core/generic.py", line 692, in **nonzero** .format(self.**class**.**name**)) ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8639/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8639/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8640
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8640/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8640/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8640/events
https://github.com/pandas-dev/pandas/issues/8640
46,855,603
MDU6SXNzdWU0Njg1NTYwMw==
8,640
API/ENH: dtype='string' / pd.String
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "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" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 4, "created_at": "2016-08-16T13:21:24Z", "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": "2022-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/42", "id": 1945020, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/42/labels", "node_id": "MDk6TWlsZXN0b25lMTk0NTAyMA==", "number": 42, "open_issues": 11, "state": "open", "title": "2.0", "updated_at": "2021-10-07T22:01:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/42" }
61
2014-10-26T21:35:23Z
2021-04-11T05:23:09Z
null
CONTRIBUTOR
null
*update for 2019-10-07: We have a StringDtype extension dtype. It's memory model is the same as the old implementation, an object-dtype ndarray of strings. The next step is to store & process it natively*. --- xref #8627 xref #8643, #8350 Since we introduced `Categorical` in 0.15.0, I think we have found 2 main uses. 1) as a 'real' Categorical/Factor type to represent a limited of subset of values that the column can take on 2) as a memory saving representation for object dtypes. I could see introducting a `dtype='string'` where `String` is a slightly specialized sub-class of `Categroical`, with 2 differences compared to a 'regular' Categorical: - it allows unions of arbitrary other string types, currently `Categorical` will complain if you do this: ``` In [1]: df = DataFrame({'A' : Series(list('abc'),dtype='category')}) In [2]: df2 = DataFrame({'A' : Series(list('abd'),dtype='category')}) In [3]: pd.concat([df,df2]) ValueError: incompatible levels in categorical block merge ``` Note that this works if they are `Series` (and prob should raise as well, side -issue) But, if these were both 'string' dtypes, then its a simple matter to combine (efficiently). - you can restrict the 'sub-dtype' (e.g. the dtype of the categories) to `string/unicode` (iow, don't allow numbers / arbitrary objects), makes the constructor a bit simpler, but more importantly, you now have a 'real' non-object string dtype. I don't think this would be that complicated to do. The big change here would be to essentially convert any object dtypes that are strings to `dtype='string'` e.g. on reading/conversion/etc. might be a perf issue for some things, but I think the memory savings greatly outweigh. We would then have a 'real' looking object dtype (and `object` would be relegated to actual python object types, so would be used much less). cc @shoyer cc @JanSchulz cc @jorisvandenbossche cc @mwiebe thoughts?
{ "+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/8640/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8640/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8641
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8641/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8641/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8641/events
https://github.com/pandas-dev/pandas/issues/8641
46,855,664
MDU6SXNzdWU0Njg1NTY2NA==
8,641
ERR: concat of 2 Series categories does not preserve category dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "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": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
2
2014-10-26T21:37:29Z
2014-11-09T22:10:39Z
2014-11-09T22:10:39Z
CONTRIBUTOR
null
xref #8640 As this is inconcistent with how DataFrame concat's work (its a different code-path), so needs updating ``` s = Series(list('abc'),dtype='category') s2 = Series(list('abd'),dtype='category') # this should raise pd.concat([s,s2]) # this should be a category pd.concat([s,s]) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8641/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8641/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8642
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8642/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8642/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8642/events
https://github.com/pandas-dev/pandas/issues/8642
46,856,865
MDU6SXNzdWU0Njg1Njg2NQ==
8,642
drop_duplicates() does not drop duplicates of large datasets
{ "avatar_url": "https://avatars.githubusercontent.com/u/1865885?v=4", "events_url": "https://api.github.com/users/hlin117/events{/privacy}", "followers_url": "https://api.github.com/users/hlin117/followers", "following_url": "https://api.github.com/users/hlin117/following{/other_user}", "gists_url": "https://api.github.com/users/hlin117/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hlin117", "id": 1865885, "login": "hlin117", "node_id": "MDQ6VXNlcjE4NjU4ODU=", "organizations_url": "https://api.github.com/users/hlin117/orgs", "received_events_url": "https://api.github.com/users/hlin117/received_events", "repos_url": "https://api.github.com/users/hlin117/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hlin117/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hlin117/subscriptions", "type": "User", "url": "https://api.github.com/users/hlin117" }
[]
closed
false
null
[]
null
2
2014-10-26T22:18:22Z
2014-10-26T22:26:33Z
2014-10-26T22:26:28Z
NONE
null
I'm trying to remove the duplicates contained in this following text file: https://www.dropbox.com/s/mx3zqot352gdrhq/hg19.txt?dl=0 After reading this into a dataframe, and calling drop_duplicates, the dataframe still has the same number of rows. Though clearly, there are many duplicates contained in the file. I am using a Mac with 8 gigs of RAM. I'm not sure why this is occurring.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8642/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8642/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8643
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8643/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8643/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8643/events
https://github.com/pandas-dev/pandas/issues/8643
46,859,261
MDU6SXNzdWU0Njg1OTI2MQ==
8,643
API/ENH: add support for integer NA with dynd-python dep
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
4
2014-10-26T23:45:41Z
2016-11-11T11:13:28Z
2016-11-11T11:13:28Z
CONTRIBUTOR
null
this should actually be relatively straightforward. Incorporating this library: https://github.com/libdydn/dynd-python as an optional dep, allows native Integer NA support (implemented very similarly to how NaT is represented in `datetime64[ns]` dtypes ATM. `dynd-python` are the python bindings for `libdynd` and have an almost 100% numpy compatibility (they use the buffer interface so should be perf-wise pretty costless to do this). tangentially related to #8350 cc @mwiebe cc @shoyer cc @jorisvandenbossche cc @cpcloud
{ "+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/8643/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8643/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8644
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8644/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8644/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8644/events
https://github.com/pandas-dev/pandas/pull/8644
46,861,428
MDExOlB1bGxSZXF1ZXN0MjMzNTkwNjU=
8,644
BUG: Bug in ix/loc block splitting on setitem (manifests with integer-like dtypes, eg. datetime64) (GH8607)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
0
2014-10-27T00:57:48Z
2014-10-30T11:20:23Z
2014-10-27T12:13:31Z
CONTRIBUTOR
null
closes #8607
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8644/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8644/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8644.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8644", "merged_at": "2014-10-27T12:13:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8644.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8644" }
https://api.github.com/repos/pandas-dev/pandas/issues/8645
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8645/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8645/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8645/events
https://github.com/pandas-dev/pandas/issues/8645
46,863,298
MDU6SXNzdWU0Njg2MzI5OA==
8,645
pandas.concat doesn't accept a deque
{ "avatar_url": "https://avatars.githubusercontent.com/u/1076190?v=4", "events_url": "https://api.github.com/users/waveform80/events{/privacy}", "followers_url": "https://api.github.com/users/waveform80/followers", "following_url": "https://api.github.com/users/waveform80/following{/other_user}", "gists_url": "https://api.github.com/users/waveform80/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/waveform80", "id": 1076190, "login": "waveform80", "node_id": "MDQ6VXNlcjEwNzYxOTA=", "organizations_url": "https://api.github.com/users/waveform80/orgs", "received_events_url": "https://api.github.com/users/waveform80/received_events", "repos_url": "https://api.github.com/users/waveform80/repos", "site_admin": false, "starred_url": "https://api.github.com/users/waveform80/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/waveform80/subscriptions", "type": "User", "url": "https://api.github.com/users/waveform80" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
2
2014-10-27T01:56:30Z
2014-10-30T11:19:44Z
2014-10-29T01:12:58Z
CONTRIBUTOR
null
The `pandas.concat` routine's behaviour is slightly at odds with its documentation (and error messages). The documentation states that the first parameter (objs) accepts "list or dict of Series, DataFrame, ..." but the routine is rather more forgiving and appears to accept lists, tuples, dicts, and generator objects (very useful!); hence my impression (during usage) was that it accepted "iterables" generally. Unfortunately it turns out this isn't the case; attempting to concatenate a deque of DataFrame objects results in the following: ``` python from collections import deque import pandas as pd df = pd.DataFrame.from_dict({'a': [1, 2, 3], 'b': [4, 5, 6]}) d = deque((df, df, df)) pd.concat(d) ``` ``` ----> 1 pd.concat(d) /home/dave/arcticenv/lib/python3.4/site-packages/pandas/tools/merge.py in concat(objs, axis, join, join_axes, ignore_index, keys, levels, names, verify_integrity, copy) 720 keys=keys, levels=levels, names=names, 721 verify_integrity=verify_integrity, --> 722 copy=copy) 723 return op.get_result() 724 /home/dave/arcticenv/lib/python3.4/site-packages/pandas/tools/merge.py in __init__(self, objs, axis, join, join_axes, keys, levels, names, ignore_index, verify_integrity, copy) 735 raise TypeError('first argument must be a list-like of pandas ' 736 'objects, you passed an object of type ' --> 737 '"{0}"'.format(type(objs).__name__)) 738 739 if join == 'outer': TypeError: first argument must be a list-like of pandas objects, you passed an object of type "deque" ``` The error message states that the first argument "must be a list-like of pandas objects" (which is slightly different to the documentation, and closer to the actual implementation's behaviour). Given that a deque is iterable but not indexable (similar to a generator expression) it seems to fulfil the criteria of being "list-like". Digging into the implementation, the test that's failing appears to be the first line of `_Concatenator.__init__` in `pandas.tools.merge` which reads as follows (in my installation): ``` python if not isinstance(objs, (list,tuple,types.GeneratorType,dict,TextFileReader)): raise TypeError('first argument must be a list-like of pandas ' 'objects, you passed an object of type ' '"{0}"'.format(type(objs).__name__)) ``` So it appears the actual set of iterables accepted by `pandas.concat` is lists, tuples, generator expressions, dicts, and instances of `TextFileReader`. I suggest that it might be better to check for (and act upon) special cases and otherwise assume that `objs` is a suitable iterable of `DataFrame` objects. In other words, get rid of that check entirely, and add a couple of checks for "expected" special cases (such as a user mistakenly passing a `DataFrame` as objs; there's already a check in place for dicts a bit further on). The conversion of `objs` to a list-comprehension later on (below `if keys is None`) should raise a `TypeError` in the case that it isn't iterable so the change shouldn't cause much impact (i.e. in the case of a non-iterable passed as `objs`, it'll raise an exception of the same class as the existing code). If this sounds reasonable, I'm happy to provide a pull request?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8645/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8645/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8646
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8646/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8646/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8646/events
https://github.com/pandas-dev/pandas/issues/8646
46,864,808
MDU6SXNzdWU0Njg2NDgwOA==
8,646
test_precise_conversion failure on 32bit boxes
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "default": false, "description": "read_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": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
21
2014-10-27T02:37:54Z
2014-12-04T02:46:50Z
2014-12-04T02:46:50Z
CONTRIBUTOR
null
``` ====================================================================== FAIL: test_precise_conversion (pandas.io.tests.test_parsers.TestCParserLowMemory) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_parsers.py", line 3204, in test_precise_conversion self.assertTrue(sum(precise_errors) <= sum(normal_errors)) AssertionError: False is not true ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8646/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8646/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8647
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8647/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8647/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8647/events
https://github.com/pandas-dev/pandas/issues/8647
46,864,925
MDU6SXNzdWU0Njg2NDkyNQ==
8,647
test_boxplot catche DeprecationWarning on jessie with python 3.4
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "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": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
13
2014-10-27T02:41:14Z
2014-12-05T13:45:38Z
2014-12-05T13:45:38Z
CONTRIBUTOR
null
``` ====================================================================== FAIL: test_boxplot (pandas.tests.test_graphics.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python3/dist-packages/pandas/tests/test_graphics.py", line 1821, in test_boxplot subplots=True, logy=True) File "/usr/lib/python3.4/contextlib.py", line 66, in __exit__ next(self.gen) File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python3/dist-packages/pandas/util/testing.py", line 1627, in assert_produces_warning % extra_warnings) AssertionError: Caused unexpected warning(s): ['DeprecationWarning']. ``` ``` python3.4 ci/print_versions.py; \ cd build/; xvfb-run -a -s "-screen 0 1280x1024x24 -noreset" \ python3.4 /usr/bin/nosetests -s -v -A 'not network and not disabled' --exclude test_bar_log pandas; INSTALLED VERSIONS ------------------ commit: None python: 3.4.2.final.0 python-bits: 64 OS: Linux OS-release: 3.2.0-4-amd64 machine: x86_64 processor: byteorder: little LC_ALL: C LANG: C pandas: 0.15.0 nose: 1.3.4 Cython: 0.20.1post0 numpy: 1.8.2 scipy: 0.14.0 statsmodels: None IPython: None sphinx: 1.2.3 patsy: None dateutil: 2.0 pytz: 2012c bottleneck: None tables: None numexpr: None matplotlib: 1.3.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.3.2 html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8647/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8647/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8648
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8648/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8648/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8648/events
https://github.com/pandas-dev/pandas/issues/8648
46,865,047
MDU6SXNzdWU0Njg2NTA0Nw==
8,648
ubuntu 13.10 with mpl : test_hist_df* TypeError: barh() got multiple values for keyword argument 'bottom'
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "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": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
7
2014-10-27T02:44:00Z
2014-11-30T23:07:48Z
2014-11-14T12:45:36Z
CONTRIBUTOR
null
0.15.0 ``` ====================================================================== ERROR: test_hist_df (pandas.tests.test_graphics.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/test_graphics.py", line 2061, in test_hist_df axes = df.plot(kind='hist', rot=50, fontsize=8, orientation='horizontal') File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tools/plotting.py", line 2453, in plot_frame **kwds) File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tools/plotting.py", line 2293, in _plot plot_obj.generate() File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tools/plotting.py", line 920, in generate self._make_plot() File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tools/plotting.py", line 1949, in _make_plot artists = plotf(ax, y, column_num=i, **kwds) File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tools/plotting.py", line 1929, in plotf bottom=bottom, **kwds) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 8180, in hist color=c, bottom=bottom) TypeError: barh() got multiple values for keyword argument 'bottom' ``` ``` NSTALLED VERSIONS ------------------ commit: None python: 2.7.5.final.0 python-bits: 64 OS: Linux OS-release: 3.2.0-4-amd64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: C LANG: C pandas: 0.15.0 nose: 1.3.0 Cython: 0.19 numpy: 1.7.1 scipy: 0.12.0 statsmodels: 0.5.0 IPython: None sphinx: 1.1.3 patsy: 0.3.0 dateutil: 1.5 pytz: 2012c bottleneck: None tables: 2.4.0 numexpr: 2.0.1 matplotlib: 1.2.1 openpyxl: 1.7.0 xlrd: 0.9.2 xlwt: 0.7.4 xlsxwriter: None lxml: None bs4: 4.2.0 html5lib: 0.95-dev httplib2: None apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8648/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8648/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8649
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8649/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8649/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8649/events
https://github.com/pandas-dev/pandas/issues/8649
46,865,110
MDU6SXNzdWU0Njg2NTExMA==
8,649
UnboundLocalError: local variable 'store' referenced before assignment
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
1
2014-10-27T02:45:30Z
2014-10-30T11:19:44Z
2014-10-27T12:37:35Z
CONTRIBUTOR
null
in ensure_clean_store on ubuntu 13.10 triggered by many tests, e.g. ``` ====================================================================== ERROR: test_unicode_index (pandas.io.tests.test_pytables.TestHDFStore) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 4506, in test_unicode_index compat_assert_produces_warning(PerformanceWarning,f) File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 121, in compat_assert_produces_warning f() File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 4504, in f self._check_roundtrip(s, tm.assert_series_equal) File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 4122, in _check_roundtrip with ensure_clean_store(self.path, 'w', **options) as store: File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 77, in ensure_clean_store safe_close(store) UnboundLocalError: local variable 'store' referenced before assignment ====================================================================== ERROR: test_unimplemented_dtypes_table_columns (pandas.io.tests.test_pytables.TestHDFStore) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 1949, in test_unimplemented_dtypes_table _columns with ensure_clean_store(self.path) as store: File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 77, in ensure_clean_store safe_close(store) UnboundLocalError: local variable 'store' referenced before assignment ====================================================================== ERROR: test_versioning (pandas.io.tests.test_pytables.TestHDFStore) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 416, in test_versioning with ensure_clean_store(self.path) as store: File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 77, in ensure_clean_store safe_close(store) UnboundLocalError: local variable 'store' referenced before assignment ``` ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.5.final.0 python-bits: 64 OS: Linux OS-release: 3.2.0-4-amd64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: C LANG: C pandas: 0.15.0 nose: 1.3.0 Cython: 0.19 numpy: 1.7.1 scipy: 0.12.0 statsmodels: 0.5.0 IPython: None sphinx: 1.1.3 patsy: 0.3.0 dateutil: 1.5 pytz: 2012c bottleneck: None tables: 2.4.0 numexpr: 2.0.1 matplotlib: 1.2.1 openpyxl: 1.7.0 xlrd: 0.9.2 xlwt: 0.7.4 xlsxwriter: None lxml: None bs4: 4.2.0 html5lib: 0.95-dev httplib2: None apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8649/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8649/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8650
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8650/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8650/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8650/events
https://github.com/pandas-dev/pandas/issues/8650
46,865,188
MDU6SXNzdWU0Njg2NTE4OA==
8,650
AttributeError: 'module' object has no attribute 'open_file'
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
2
2014-10-27T02:47:33Z
2014-10-30T11:19:44Z
2014-10-27T12:37:35Z
CONTRIBUTOR
null
``` ====================================================================== ERROR: test_frame_select_complex2 (pandas.io.tests.test_pytables.TestHDFStore) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 3686, in test_frame_select_complex2 parms.to_hdf(pp,'df',mode='w',format='table',data_columns=['A']) File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/core/generic.py", line 896, in to_hdf return pytables.to_hdf(path_or_buf, key, self, **kwargs) File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/pytables.py", line 293, in to_hdf complib=complib) as store: File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/pytables.py", line 274, in get_store store = HDFStore(path, **kwargs) File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/pytables.py", line 423, in __init__ self.open(mode=mode, **kwargs) File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/pytables.py", line 553, in open self._handle = tables.open_file(self._path, self._mode, **kwargs) AttributeError: 'module' object has no attribute 'open_file' ``` on the same old ubuntu 13.10 ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.5.final.0 python-bits: 64 OS: Linux OS-release: 3.2.0-4-amd64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: C LANG: C pandas: 0.15.0 nose: 1.3.0 Cython: 0.19 numpy: 1.7.1 scipy: 0.12.0 statsmodels: 0.5.0 IPython: None sphinx: 1.1.3 patsy: 0.3.0 dateutil: 1.5 pytz: 2012c bottleneck: None tables: 2.4.0 numexpr: 2.0.1 matplotlib: 1.2.1 openpyxl: 1.7.0 xlrd: 0.9.2 xlwt: 0.7.4 xlsxwriter: None lxml: None bs4: 4.2.0 html5lib: 0.95-dev httplib2: None apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8650/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8650/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8651
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8651/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8651/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8651/events
https://github.com/pandas-dev/pandas/pull/8651
46,897,775
MDExOlB1bGxSZXF1ZXN0MjMzNzg1NjI=
8,651
TST: skip tests on incompatible PyTables version (GH8649, GH8650)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
0
2014-10-27T12:09:24Z
2014-10-30T11:20:23Z
2014-10-27T12:37:35Z
CONTRIBUTOR
null
closes #8649 closes #8650
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8651/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8651/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8651.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8651", "merged_at": "2014-10-27T12:37:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8651.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8651" }
https://api.github.com/repos/pandas-dev/pandas/issues/8652
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8652/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8652/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8652/events
https://github.com/pandas-dev/pandas/pull/8652
46,903,189
MDExOlB1bGxSZXF1ZXN0MjMzODE4MTI=
8,652
BUG: various categorical fixes (GH8626)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
0
2014-10-27T13:14:02Z
2014-10-30T11:20:23Z
2014-10-28T00:03:02Z
CONTRIBUTOR
null
BUG: coerce Categorical in record array creation (GH8626) BUG: Categorical not created properly with to_frame() from Series (GH8626) BUG: handle astype with passed pd.Categorical (GH8626) closes #8626
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8652/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8652/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8652.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8652", "merged_at": "2014-10-28T00:03:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8652.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8652" }
https://api.github.com/repos/pandas-dev/pandas/issues/8653
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8653/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8653/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8653/events
https://github.com/pandas-dev/pandas/issues/8653
46,928,851
MDU6SXNzdWU0NjkyODg1MQ==
8,653
Exception when resampling ends on a DST change date
{ "avatar_url": "https://avatars.githubusercontent.com/u/829448?v=4", "events_url": "https://api.github.com/users/lmancini/events{/privacy}", "followers_url": "https://api.github.com/users/lmancini/followers", "following_url": "https://api.github.com/users/lmancini/following{/other_user}", "gists_url": "https://api.github.com/users/lmancini/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lmancini", "id": 829448, "login": "lmancini", "node_id": "MDQ6VXNlcjgyOTQ0OA==", "organizations_url": "https://api.github.com/users/lmancini/orgs", "received_events_url": "https://api.github.com/users/lmancini/received_events", "repos_url": "https://api.github.com/users/lmancini/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lmancini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lmancini/subscriptions", "type": "User", "url": "https://api.github.com/users/lmancini" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
closed
false
null
[]
{ "closed_at": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
5
2014-10-27T16:44:21Z
2014-11-06T12:47:56Z
2014-11-06T12:44:42Z
NONE
null
Hi all, I'm experiencing an exception when calling `resample('D', how='mean')` on a Series or Dataframe whose index (datetime-based) ends just on a DST change date. As a workaround, I'm currently try/except-ing the ValueError and eventually adding a np.nan datapoint at the end of the series (effectively "walking over" the DST change date). At that point I call `resample` which completes correctly and filters away the np.nan datapoint anyway. Snippet [1] reproduces the bug, calling `resample` on a short series which ends on Oct 26th, which was the DST change date for Europe/Rome. Raised exception is [2]. If relevant, [3] shows the installed versions info. [1] ``` python import datetime import pytz as tz import pandas as pd rome = tz.timezone('Europe/Rome') dr = [] for i in range(2): dp = datetime.datetime(2014, 10, 25) + datetime.timedelta(days=i) dr.append(rome.localize(dp)) series = {} for i, ddr in enumerate(dr): series[ddr] = i * 10 s1 = pd.Series(series) s1 = s1.resample('D', how='mean') ``` [2] ``` File "resample_this.py", line 18, in <module> s1 = s1.resample('D', how='mean') File "pandas/core/generic.py", line 2980, in resample return sampler.resample(self).__finalize__(self) File "pandas/tseries/resample.py", line 85, in resample rs = self._resample_timestamps() File "pandas/tseries/resample.py", line 314, in _resample_timestamps result = grouped.aggregate(self._agg_method) File "pandas/core/groupby.py", line 2265, in aggregate return getattr(self, func_or_funcs)(*args, **kwargs) File "pandas/core/groupby.py", line 693, in mean return self._python_agg_general(f) File "pandas/core/groupby.py", line 1125, in _python_agg_general return self._wrap_aggregated_output(output) File "pandas/core/groupby.py", line 2332, in _wrap_aggregated_output return Series(output, index=index, name=name) File "pandas/core/series.py", line 212, in __init__ data = SingleBlockManager(data, index, fastpath=True) File "pandas/core/internals.py", line 3326, in __init__ ndim=1, fastpath=True) File "pandas/core/internals.py", line 2060, in make_block placement=placement) File "pandas/core/internals.py", line 75, in __init__ len(self.values), len(self.mgr_locs))) ValueError: Wrong number of items passed 2, placement implies 1 ``` ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Darwin OS-release: 13.4.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: None pandas: 0.15.0 nose: None Cython: None numpy: 1.9.0 scipy: None statsmodels: None IPython: None sphinx: 1.2.3 patsy: None dateutil: 1.5 pytz: 2014.7 bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: 2.1.1 xlrd: None xlwt: 0.7.5 xlsxwriter: None lxml: 3.4.0 bs4: 4.3.2 html5lib: None httplib2: 0.9 apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8653/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8653/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8655
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8655/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8655/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8655/events
https://github.com/pandas-dev/pandas/pull/8655
46,964,277
MDExOlB1bGxSZXF1ZXN0MjM0MTkwNTA=
8,655
DOC: update docs on direct plotting with matplotlib (GH8614)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
6
2014-10-27T21:50:58Z
2014-10-30T11:20:23Z
2014-10-28T11:02:41Z
MEMBER
null
Closes #8614 - this adds a warning that you now have to use `to_pydatetime` as direct plotting with a DatetimeIndex does not work anymore (see #8614) - I also removed for now the note on speed and explanation of the registered formatters. @agijsberts could you shed some light on this? - "_The speed up for large data sets only applies to pandas 0.14.0 and later._" Why only for pandas 0.14 or later? And from where does this speed-up come from? - "_thereby extending date and time support to practically all plot types available in matplotlib_" -> but if you plot directly with matplotlib, I think you don't use the pandas registered formatters? So that sentence seems not fully correct, is that possible? And isn't that the reason for the possible speed-up (matplotlib defaults formatter being faster as pandas' formatter)?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8655/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8655/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8655.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8655", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/8655.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8655" }
https://api.github.com/repos/pandas-dev/pandas/issues/8656
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8656/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8656/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8656/events
https://github.com/pandas-dev/pandas/issues/8656
46,972,479
MDU6SXNzdWU0Njk3MjQ3OQ==
8,656
Timestamp timezone inconsistency
{ "avatar_url": "https://avatars.githubusercontent.com/u/8309785?v=4", "events_url": "https://api.github.com/users/cyber42/events{/privacy}", "followers_url": "https://api.github.com/users/cyber42/followers", "following_url": "https://api.github.com/users/cyber42/following{/other_user}", "gists_url": "https://api.github.com/users/cyber42/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cyber42", "id": 8309785, "login": "cyber42", "node_id": "MDQ6VXNlcjgzMDk3ODU=", "organizations_url": "https://api.github.com/users/cyber42/orgs", "received_events_url": "https://api.github.com/users/cyber42/received_events", "repos_url": "https://api.github.com/users/cyber42/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cyber42/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cyber42/subscriptions", "type": "User", "url": "https://api.github.com/users/cyber42" }
[ { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
null
6
2014-10-27T23:24:58Z
2014-10-28T11:23:00Z
2014-10-28T00:37:54Z
NONE
null
Hi, Is this a known issue? Time offset on 22nd of Sept should be -4 hours in New York as below: ``` pandas.Timestamp('2014-09-22 09:30:00-0400', tz='EST5EDT').tz_convert('EST5EDT') Timestamp('2014-09-22 09:30:00-0400', tz='EST5EDT') ``` but when providing this twice (-0400 and EST4EDT), the result becomes -0500: ``` pandas.Timestamp('2014-09-22 09:30:00-0400', tz='EST5EDT') Timestamp('2014-09-22 08:30:00-0500', tz='EST5EDT') ``` Thanks, Mark ## INSTALLED VERSIONS commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-37-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.14.1 nose: 1.3.0 Cython: 0.19.2 numpy: 1.8.1 scipy: 0.13.2 statsmodels: 0.5.0 IPython: 2.0.0 sphinx: None patsy: 0.2.1 scikits.timeseries: None dateutil: 2.2 pytz: 2014.2 bottleneck: 0.8.0 tables: 3.0.0 numexpr: 2.3 matplotlib: 1.3.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: 0.999 httplib2: 0.8 apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8656/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8656/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8657
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8657/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8657/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8657/events
https://github.com/pandas-dev/pandas/issues/8657
46,986,933
MDU6SXNzdWU0Njk4NjkzMw==
8,657
Concat column in Oracle SQL query not addressing correctly
{ "avatar_url": "https://avatars.githubusercontent.com/u/9426382?v=4", "events_url": "https://api.github.com/users/givethemheller/events{/privacy}", "followers_url": "https://api.github.com/users/givethemheller/followers", "following_url": "https://api.github.com/users/givethemheller/following{/other_user}", "gists_url": "https://api.github.com/users/givethemheller/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/givethemheller", "id": 9426382, "login": "givethemheller", "node_id": "MDQ6VXNlcjk0MjYzODI=", "organizations_url": "https://api.github.com/users/givethemheller/orgs", "received_events_url": "https://api.github.com/users/givethemheller/received_events", "repos_url": "https://api.github.com/users/givethemheller/repos", "site_admin": false, "starred_url": "https://api.github.com/users/givethemheller/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/givethemheller/subscriptions", "type": "User", "url": "https://api.github.com/users/givethemheller" }
[]
closed
false
null
[]
null
6
2014-10-28T03:52:12Z
2014-10-28T15:32:31Z
2014-10-28T15:32:31Z
NONE
null
Folks, when using a concat() in an SQL query, the column header in pandas comes back as the full concat statement. Not sure if this is sensible, but I thought noteworthy.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8657/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8657/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8658
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8658/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8658/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8658/events
https://github.com/pandas-dev/pandas/issues/8658
47,024,737
MDU6SXNzdWU0NzAyNDczNw==
8,658
BUG: Categoricals cannot compare to ndim=0 array values
{ "avatar_url": "https://avatars.githubusercontent.com/u/579798?v=4", "events_url": "https://api.github.com/users/immerrr/events{/privacy}", "followers_url": "https://api.github.com/users/immerrr/followers", "following_url": "https://api.github.com/users/immerrr/following{/other_user}", "gists_url": "https://api.github.com/users/immerrr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/immerrr", "id": 579798, "login": "immerrr", "node_id": "MDQ6VXNlcjU3OTc5OA==", "organizations_url": "https://api.github.com/users/immerrr/orgs", "received_events_url": "https://api.github.com/users/immerrr/received_events", "repos_url": "https://api.github.com/users/immerrr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/immerrr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/immerrr/subscriptions", "type": "User", "url": "https://api.github.com/users/immerrr" }
[ { "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
6
2014-10-28T13:21:48Z
2014-11-02T19:15:27Z
2014-11-02T19:15:27Z
CONTRIBUTOR
null
Reproduction steps: ``` python In [1]: cat = pd.Categorical([1,2,3]) In [2]: cat > cat[0] Out[2]: array([False, True, True], dtype=bool) In [3]: cat[0] < cat --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-3-5c4bb0678680> in <module>() ----> 1 cat[0] < cat /home/dshpektorov/sources/pandas/pandas/core/categorical.pyc in f(self, other) 52 msg = "Cannot compare a Categorical for op {op} with type {typ}. If you want to \n" \ 53 "compare values, use 'np.asarray(cat) <op> other'." ---> 54 raise TypeError(msg.format(op=op,typ=type(other))) 55 56 f.__name__ = op TypeError: Cannot compare a Categorical for op __gt__ with type <type 'numpy.ndarray'>. If you want to compare values, use 'np.asarray(cat) <op> other'. ``` The problem is that when `cat[0]` is the first operand (`type == np.int64`) it orchestrates the execution and the first step is casting it to a rank-0 array (it becomes `array(1)` rather than `np.int64(1)`) and at that point it ceases to pass `np.isscalar` check and corresponding branch of execution is skipped. The fix is trivial, feel free to beat me to it. On a broader scale, we might want to review all uses of `np.isscalar` and see if they can also benefit from accepting rank-0 arrays. If that's true, we might want to add `pd.isscalar` function and use it everywhere instead.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8658/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8658/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8659
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8659/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8659/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8659/events
https://github.com/pandas-dev/pandas/issues/8659
47,034,013
MDU6SXNzdWU0NzAzNDAxMw==
8,659
API/ENH: master issue for pd.rolling_apply
{ "avatar_url": "https://avatars.githubusercontent.com/u/7327771?v=4", "events_url": "https://api.github.com/users/leeong05/events{/privacy}", "followers_url": "https://api.github.com/users/leeong05/followers", "following_url": "https://api.github.com/users/leeong05/following{/other_user}", "gists_url": "https://api.github.com/users/leeong05/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/leeong05", "id": 7327771, "login": "leeong05", "node_id": "MDQ6VXNlcjczMjc3NzE=", "organizations_url": "https://api.github.com/users/leeong05/orgs", "received_events_url": "https://api.github.com/users/leeong05/received_events", "repos_url": "https://api.github.com/users/leeong05/repos", "site_admin": false, "starred_url": "https://api.github.com/users/leeong05/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leeong05/subscriptions", "type": "User", "url": "https://api.github.com/users/leeong05" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "fbca04", "default": false, "description": "High level tracker for similar issues", "id": 183784729, "name": "Master Tracker", "node_id": "MDU6TGFiZWwxODM3ODQ3Mjk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Master%20Tracker" }, { "color": "fbca04", "default": false, "description": "Apply, Aggregate, Transform", "id": 697792067, "name": "Apply", "node_id": "MDU6TGFiZWw2OTc3OTIwNjc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply" }, { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
null
6
2014-10-28T14:42:51Z
2020-11-19T21:13:15Z
2020-11-19T21:13:14Z
NONE
null
Catchall for `rolling_*` issues: - [x] #12537 exclude nuiscance columns - [ ] #12536 fully support timedeltas - [ ] #4130 (return type of `rolling_apply`) - [x] #3185 (stop using `np.apply_along_axis`) - [x] #5071, #12950 (pass frames, operate 2-D) - [x] #9413 `rolling_quantile` - [ ] #9481 `rolling_idxmax` - [ ] #10759 rolling_qcut - [ ] #11446, #20773 casting in `.apply` - [x] #12595 casting in all window functions (min/max are good) - [x] #10702 namespacing (though prob just create a `Rolling` object), #11603 - [x] #12535 testing of datetimelike with nans - [x] #12541 count should be integer dtype (and deal with infs) - [ ] #15095 Table-wise --- Hi all, I intended to apply a function that gives on each day a ranking based on means calculated from previous n-day's data. The natural way is to use pd.rolling_apply. A toy example: ``` In [93]: df = pd.DataFrame(np.random.randint(10, size=20).reshape(4, 5)) In [94]: df Out[94]: 0 1 2 3 4 0 2 0 0 2 0 1 9 5 5 6 1 2 2 3 6 8 8 3 5 1 2 9 0 In [95]: import bottleneck as bn In [96]: bn.nanrankdata(df.mean()) Out[96]: array([ 4. , 1.5, 3. , 5. , 1.5]) ``` Up to now, it is cool. Then: ``` In [97]: pd.rolling_apply(df, 2, lambda x: bn.nanrankdata(bn.nanmean(x, axis=0))) Out[97]: 0 1 2 3 4 0 NaN NaN NaN NaN NaN 1 1 1 1 1 1 2 1 1 1 1 1 3 1 1 1 1 1 ``` This is clearly wrong. Is this a bug?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8659/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8659/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8660
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8660/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8660/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8660/events
https://github.com/pandas-dev/pandas/issues/8660
47,038,522
MDU6SXNzdWU0NzAzODUyMg==
8,660
apply changes the datatypes: strange behaviour/bug?
{ "avatar_url": "https://avatars.githubusercontent.com/u/190799?v=4", "events_url": "https://api.github.com/users/denadai2/events{/privacy}", "followers_url": "https://api.github.com/users/denadai2/followers", "following_url": "https://api.github.com/users/denadai2/following{/other_user}", "gists_url": "https://api.github.com/users/denadai2/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/denadai2", "id": 190799, "login": "denadai2", "node_id": "MDQ6VXNlcjE5MDc5OQ==", "organizations_url": "https://api.github.com/users/denadai2/orgs", "received_events_url": "https://api.github.com/users/denadai2/received_events", "repos_url": "https://api.github.com/users/denadai2/repos", "site_admin": false, "starred_url": "https://api.github.com/users/denadai2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/denadai2/subscriptions", "type": "User", "url": "https://api.github.com/users/denadai2" }
[ { "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
8
2014-10-28T15:17:25Z
2014-10-31T11:10:47Z
2014-10-30T10:55:49Z
NONE
null
Hello. I tried to apply a function to a dataframe and it changes the column types. See this example: http://nbviewer.ipython.org/urls/dl.dropboxusercontent.com/u/1118905/Calls-bug.ipynb Am I doing something wrong? Is it a bug? pandas 0.15.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/8660/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8660/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8661
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8661/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8661/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8661/events
https://github.com/pandas-dev/pandas/issues/8661
47,048,971
MDU6SXNzdWU0NzA0ODk3MQ==
8,661
read_csv problem with delim_whitespace, skiprows and trailing spaces in skipped rows
{ "avatar_url": "https://avatars.githubusercontent.com/u/831833?v=4", "events_url": "https://api.github.com/users/selasley/events{/privacy}", "followers_url": "https://api.github.com/users/selasley/followers", "following_url": "https://api.github.com/users/selasley/following{/other_user}", "gists_url": "https://api.github.com/users/selasley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/selasley", "id": 831833, "login": "selasley", "node_id": "MDQ6VXNlcjgzMTgzMw==", "organizations_url": "https://api.github.com/users/selasley/orgs", "received_events_url": "https://api.github.com/users/selasley/received_events", "repos_url": "https://api.github.com/users/selasley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/selasley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/selasley/subscriptions", "type": "User", "url": "https://api.github.com/users/selasley" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
5
2014-10-28T16:35:15Z
2014-11-27T02:52:38Z
2014-11-27T02:52:38Z
CONTRIBUTOR
null
given this input file with linefeeds indicated by <lf> ``` skip1<lf> skip2<lf> 0 1 2<lf> 3 4 5<lf> ``` reading with read_csv() in pandas 0.15.0-42-g20be789 and python 3.4.2 works ``` df = pd.read_csv('test.txt', skiprows=2, delim_whitespace=True, header=None) df 0 1 2 0 0 1 2 1 3 4 5 ``` If I add a space after skip1 so the skipped lines are ``` skip1 <lf> skip2<lf> ``` then read_csv() throws an error `CParserError: Error tokenizing data. C error: Expected 1 fields in line 4, saw 3` Adding 1 to skiprows `df = pd.read_csv('test.txt', skiprows=3, delim_whitespace=True, header=None)` does not throw an exception and gives the expected DataFrame Reading with skiprows=2 and without header=None does not throw an exception and produces a DataFrame with a multiindex ``` skip2 0 1 2 3 4 5 ``` If there is a space after skip2 so the skipped lines are ``` skip1<lf> skip2 <lf> ``` then `df = pd.read_csv('test.txt', skiprows=2, delim_whitespace=True, header=None)` does not throw an exception but it does not include the 0 1 2 row in the DataFrame If there are spaces after skip1 and skip2 so the skipped lines are ``` skip1 <lf> skip2 <lf> ``` then `df = pd.read_csv('test.txt', skiprows=2, delim_whitespace=True, header=None)` throws the CParserError exception but `df = pd.read_csv('test.txt', skiprows=3, delim_whitespace=True, header=None)` does not and returns the expected DataFrame I would expect skiprows to skip the number of lines specified whether or not there are trailing spaces in those lines.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8661/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8661/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8662
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8662/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8662/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8662/events
https://github.com/pandas-dev/pandas/issues/8662
47,067,829
MDU6SXNzdWU0NzA2NzgyOQ==
8,662
updating row data within apply from other rows doesn't work
{ "avatar_url": "https://avatars.githubusercontent.com/u/9436935?v=4", "events_url": "https://api.github.com/users/lamakaha/events{/privacy}", "followers_url": "https://api.github.com/users/lamakaha/followers", "following_url": "https://api.github.com/users/lamakaha/following{/other_user}", "gists_url": "https://api.github.com/users/lamakaha/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lamakaha", "id": 9436935, "login": "lamakaha", "node_id": "MDQ6VXNlcjk0MzY5MzU=", "organizations_url": "https://api.github.com/users/lamakaha/orgs", "received_events_url": "https://api.github.com/users/lamakaha/received_events", "repos_url": "https://api.github.com/users/lamakaha/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lamakaha/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lamakaha/subscriptions", "type": "User", "url": "https://api.github.com/users/lamakaha" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
{ "closed_at": 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
2014-10-28T19:06:14Z
2020-07-12T12:31:24Z
2020-07-12T12:31:23Z
NONE
null
I'm grouping rows by column investor id. within apply, when a group has more than 1 row, i'm copying a value in the second row in the group into the a column of the first row in that group. I'm using groupby with apply but the assembled result is incorrect - all rows except row 1 show the same investor B - seems like a bug? ``` In [1]: import pandas as pd In [2]: import numpy as np In [3]: df=pd.DataFrame({'InvestorID':[6,6,17,17,19,19,30,40], ...: 'Investor':['AAA','AAA','BBB','BBB','CCC','CCC','EEE','FFF'], ...: 'CurrentPeriodEnd':['7/31/2014','5/31/2014','7/31/2014','5/31/2014','7/31/2014','5/31/2014','7/31/2014','7/31/2014'], ...: 'PriorPeriodEnd':np.nan*8}) In [4]: df Out[4]: CurrentPeriodEnd Investor InvestorID PriorPeriodEnd 0 7/31/2014 AAA 6 NaN 1 5/31/2014 AAA 6 NaN 2 7/31/2014 BBB 17 NaN 3 5/31/2014 BBB 17 NaN 4 7/31/2014 CCC 19 NaN 5 5/31/2014 CCC 19 NaN 6 7/31/2014 EEE 30 NaN 7 7/31/2014 FFF 40 NaN ``` this function updates the first positional row in a group with values from the second row where a group has 2 rows or more ``` In [5]: def f(x): ...: if len(x) >1: ...: x.iloc[0,x.columns.get_loc('PriorPeriodEnd')]=x.iloc[1,x.columns.get_loc('CurrentPeriodEnd')] ...: return x.iloc[0] In [6]: df.groupby(['InvestorID']).apply(f).reset_index(drop=True) ``` this is not an expected result - the investor column should not have repeating BBB values ``` Out[6]: CurrentPeriodEnd Investor InvestorID PriorPeriodEnd 0 7/31/2014 AAA 6 5/31/2014 1 7/31/2014 BBB 17 5/31/2014 2 7/31/2014 BBB 19 5/31/2014 3 7/31/2014 BBB 30 5/31/2014 4 7/31/2014 BBB 40 5/31/2014 ``` the function below copies the first row first before making updates and it works as expected ``` In [7]: def f(x): ...: top_row=pd.Series(x.iloc[0]) ...: if len(x) >1: ...: top_row.iloc[x.columns.get_loc('PriorPeriodEnd')]=x.iloc[1,x.columns.get_loc('CurrentPeriodEnd')] ...: return top_row ``` this is what the result should look like ``` In [8]: df.groupby(['InvestorID']).apply(f).reset_index(drop=True) Out[8]: CurrentPeriodEnd Investor InvestorID PriorPeriodEnd 0 7/31/2014 AAA 6 5/31/2014 1 7/31/2014 BBB 17 5/31/2014 2 7/31/2014 CCC 19 5/31/2014 3 7/31/2014 EEE 30 NaN 4 7/31/2014 FFF 40 NaN ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8662/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8662/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8663
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8663/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8663/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8663/events
https://github.com/pandas-dev/pandas/pull/8663
47,070,620
MDExOlB1bGxSZXF1ZXN0MjM0ODM3NDk=
8,663
ENH: Series.str.split can return a DataFrame instead of Series of lists
{ "avatar_url": "https://avatars.githubusercontent.com/u/2702341?v=4", "events_url": "https://api.github.com/users/billletson/events{/privacy}", "followers_url": "https://api.github.com/users/billletson/followers", "following_url": "https://api.github.com/users/billletson/following{/other_user}", "gists_url": "https://api.github.com/users/billletson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/billletson", "id": 2702341, "login": "billletson", "node_id": "MDQ6VXNlcjI3MDIzNDE=", "organizations_url": "https://api.github.com/users/billletson/orgs", "received_events_url": "https://api.github.com/users/billletson/received_events", "repos_url": "https://api.github.com/users/billletson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/billletson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/billletson/subscriptions", "type": "User", "url": "https://api.github.com/users/billletson" }
[ { "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": "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" }, { "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
14
2014-10-28T19:32:07Z
2014-10-30T11:20:23Z
2014-10-29T23:45:11Z
CONTRIBUTOR
null
closes #8428. Adds a flag which when True returns a DataFrame with columns being the index of the lists generated by the string splitting operation. When False, it returns a 1D numpy array, as before. Defaults to false to not break compatibility. In the case with no splits, returns a single column DataFrame rather than squashing to a Series.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8663/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8663/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8663.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8663", "merged_at": "2014-10-29T23:45:11Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8663.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8663" }
https://api.github.com/repos/pandas-dev/pandas/issues/8664
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8664/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8664/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8664/events
https://github.com/pandas-dev/pandas/issues/8664
47,086,114
MDU6SXNzdWU0NzA4NjExNA==
8,664
BUG: query modifies the frame when you compare with `=`
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2016-03-12T16:19:08Z", "closed_issues": 469, "created_at": "2015-07-19T20:18:45Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2016-03-13T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/36", "id": 1214851, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels", "node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==", "number": 36, "open_issues": 0, "state": "closed", "title": "0.18.0", "updated_at": "2016-12-06T21:34:41Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36" }
7
2014-10-28T21:49:58Z
2016-01-04T02:17:59Z
2016-01-04T02:17:59Z
CONTRIBUTOR
null
I messed up and used `=` instead of `==` in a `query`. ``` python df = pd.DataFrame({'a': [1, 2, 3], 'b': ['a', 'b', 'c']}) df.query('a=1') ``` That raises a ValueError. But `df` was modified. ``` python In [15]: df Out[15]: a b 0 1 a 1 1 b 2 1 c ``` versions: ``` pandas: 0.15.0-6-g403f38d bottleneck: None tables: None numexpr: 2.3.1 ``` Can't look right 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/8664/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8664/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8665
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8665/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8665/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8665/events
https://github.com/pandas-dev/pandas/issues/8665
47,087,539
MDU6SXNzdWU0NzA4NzUzOQ==
8,665
Segfault in uuid.py calling _uuid_generate_time after importing pandas
{ "avatar_url": "https://avatars.githubusercontent.com/u/153580?v=4", "events_url": "https://api.github.com/users/gthb/events{/privacy}", "followers_url": "https://api.github.com/users/gthb/followers", "following_url": "https://api.github.com/users/gthb/following{/other_user}", "gists_url": "https://api.github.com/users/gthb/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gthb", "id": 153580, "login": "gthb", "node_id": "MDQ6VXNlcjE1MzU4MA==", "organizations_url": "https://api.github.com/users/gthb/orgs", "received_events_url": "https://api.github.com/users/gthb/received_events", "repos_url": "https://api.github.com/users/gthb/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gthb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gthb/subscriptions", "type": "User", "url": "https://api.github.com/users/gthb" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
closed
false
null
[]
null
9
2014-10-28T22:04:34Z
2014-10-29T20:53:52Z
2014-10-29T20:53:52Z
NONE
null
I am seeing a new but consistently repeatable segmentation fault in our application test suite, running CPython 2.7.8, when calling `_uuid_generate_time(_buffer)` from uuid.py (somewhere inside the kombu library). The salient difference that makes this segfault occur is if I import pandas before the test run. If I don't, all is well. If I import pandas (and do nothing else differently), the segfault occurs later on (after the pandas import completes without problems), when I call `.apply_async()` on a task in celery, leading kombu to generate a UUID. This seems to be a matter of the pandas import leaving libuuid1 in some broken state. In particular, it's _not_ a matter of multiple concurrent threads at the time of the segfault; there is only ever one thread, as confirmed by tracing via `threading.settrace` (no output) and by inspecting the core in gdb: ``` $ gdb /var/pythonenv/JENKINSBUILD/bin/python ../test/core GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /var/pythonenv/JENKINSBUILD/bin/python...done. warning: core file may not match specified executable file. [New LWP 19262] warning: Can't read pathname for load map: Input/output error. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1". Core was generated by `/var/pythonenv/JENKINSBUILD/bin/python /var/pythonenv/JENKINSBUILD/bin/unit2 di'. Program terminated with signal 11, Segmentation fault. #0 0xb75da5ad in rewind () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 (gdb) info threads Id Target Id Frame * 1 Thread 0xb75748d0 (LWP 19262) 0xb75da5ad in rewind () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 (gdb) bt #0 0xb75da5ad in rewind () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 #1 0xb6872dcf in __uuid_generate_time () from /lib/i386-linux-gnu/libuuid.so.1 #2 0xb6873417 in ?? () from /lib/i386-linux-gnu/libuuid.so.1 #3 0xb688e622 in ffi_call_SYSV () at /usr/local/pythonz/build/CPython-2.7.8/Modules/_ctypes/libffi/src/x86/sysv.S:65 #4 0xb688e3eb in ffi_call (cif=cif@entry=0xbfa6c9e8, fn=fn@entry=0xb68734c0 <uuid_generate_time>, rvalue=rvalue@entry=0xbfa6c950, avalue=avalue@entry=0xbfa6c930) at /usr/local/pythonz/build/CPython-2.7.8/Modules/_ctypes/libffi/src/x86/ffi.c:411 #5 0xb6886baa in _call_function_pointer (argcount=1, resmem=0xbfa6c950, restype=0x0, atypes=0x87bd050, avalues=0xbfa6c930, pProc=0xb68734c0 <uuid_generate_time>, flags=4353) at /usr/local/pythonz/build/CPython-2.7.8/Modules/_ctypes/callproc.c:836 #6 _ctypes_callproc (pProc=pProc@entry=0xb68734c0 <uuid_generate_time>, argtuple=argtuple@entry=0xb2fbc2ac, flags=4353, argtypes=argtypes@entry=0x0, restype=restype@entry=0xb69533dc, checker=checker@entry=0x0) at /usr/local/pythonz/build/CPython-2.7.8/Modules/_ctypes/callproc.c:1183 #7 0xb687df4b in PyCFuncPtr_call (self=0xb6941234, inargs=0xb2fbc2ac, kwds=0x0) at /usr/local/pythonz/build/CPython-2.7.8/Modules/_ctypes/_ctypes.c:3965 #8 0x080660f3 in PyObject_Call (func=func@entry=0xb6941234, arg=arg@entry=0xb2fbc2ac, kw=kw@entry=0x0) at Objects/abstract.c:2529 #9 0x080e2517 in do_call (nk=<optimized out>, na=<optimized out>, pp_stack=0xbfa6cbc4, func=0xb6941234) at Python/ceval.c:4251 #10 call_function (oparg=<optimized out>, pp_stack=0xbfa6cbc4) at Python/ceval.c:4056 #11 PyEval_EvalFrameEx (f=f@entry=0xb2f5983c, throwflag=throwflag@entry=0) at Python/ceval.c:2679 ``` With `sys.settrace` I've narrowed the fault down to this `_uuid_generate_time` call, the last trace events being: ``` call, /var/pythonenv/JENKINSBUILD/lib/python2.7/site-packages/celery/app/base.py:615 line, /var/pythonenv/JENKINSBUILD/lib/python2.7/site-packages/celery/app/base.py:617 call, /var/pythonenv/JENKINSBUILD/lib/python2.7/site-packages/kombu/common.py:61 line, /var/pythonenv/JENKINSBUILD/lib/python2.7/site-packages/kombu/common.py:62 call, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:476 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:486 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:489 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:490 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:493 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:495 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:496 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:497 call, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:457 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:459 call, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/ctypes/__init__.py:52 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/ctypes/__init__.py:57 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/ctypes/__init__.py:64 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/ctypes/__init__.py:65 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/ctypes/__init__.py:66 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/ctypes/__init__.py:67 return, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/ctypes/__init__.py:67 line, /usr/local/pythonz/pythons/CPython-2.7.8/lib/python2.7/uuid.py:460 ``` and then the segfault. This is a CPython 2.7.8 built locally using [pythonz](https://github.com/saghul/pythonz) on Debian Wheezy, and with pandas 0.15.0 installed, inside a virtualenv. Some relevant system package version info: ``` libc-bin 2.13-38+deb7u6 libc-dev-bin 2.13-38+deb7u6 libc6:i386 2.13-38+deb7u6 libc6-dev:i386 2.13-38+deb7u6 libc6-i686:i386 2.13-38+deb7u6 libuuid1:i386 2.20.1-5.3 ``` Anything else I can provide that's useful?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8665/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8665/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8666
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8666/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8666/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8666/events
https://github.com/pandas-dev/pandas/issues/8666
47,087,618
MDU6SXNzdWU0NzA4NzYxOA==
8,666
Pandas crashes trying to load Orange dataset (KDD 2009)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1314338?v=4", "events_url": "https://api.github.com/users/ovz/events{/privacy}", "followers_url": "https://api.github.com/users/ovz/followers", "following_url": "https://api.github.com/users/ovz/following{/other_user}", "gists_url": "https://api.github.com/users/ovz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ovz", "id": 1314338, "login": "ovz", "node_id": "MDQ6VXNlcjEzMTQzMzg=", "organizations_url": "https://api.github.com/users/ovz/orgs", "received_events_url": "https://api.github.com/users/ovz/received_events", "repos_url": "https://api.github.com/users/ovz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ovz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ovz/subscriptions", "type": "User", "url": "https://api.github.com/users/ovz" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
null
15
2014-10-28T22:05:18Z
2015-01-29T16:55:47Z
2014-10-30T22:12:47Z
NONE
null
I've downloaded large dataset from http://www.sigkdd.org/kdd-cup-2009-customer-relationship-prediction. orange_large_train.data.chunk1.zip (52.7 Mbytes) orange_large_train.data.chunk2.zip (52.7 Mbytes) orange_large_train.data.chunk3.zip (52.6 Mbytes) orange_large_train.data.chunk4.zip (52.5 Mbytes) orange_large_train.data.chunk5.zip (52.6 Mbytes) Pandas started to crash after I merged together chunks 1 to 4. Tested with pandas 0.15 on Windows and Linux.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8666/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8666/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8667
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8667/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8667/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8667/events
https://github.com/pandas-dev/pandas/issues/8667
47,089,232
MDU6SXNzdWU0NzA4OTIzMg==
8,667
BUG: Slicing timeseries with over 1000000 entries with time fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/812180?v=4", "events_url": "https://api.github.com/users/willpan/events{/privacy}", "followers_url": "https://api.github.com/users/willpan/followers", "following_url": "https://api.github.com/users/willpan/following{/other_user}", "gists_url": "https://api.github.com/users/willpan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/willpan", "id": 812180, "login": "willpan", "node_id": "MDQ6VXNlcjgxMjE4MA==", "organizations_url": "https://api.github.com/users/willpan/orgs", "received_events_url": "https://api.github.com/users/willpan/received_events", "repos_url": "https://api.github.com/users/willpan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/willpan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/willpan/subscriptions", "type": "User", "url": "https://api.github.com/users/willpan" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
3
2014-10-28T22:22:59Z
2014-11-29T22:03:08Z
2014-11-29T22:03:08Z
NONE
null
Slicing a timeseries with time results in a TypeError if the timeseries contains over 1,000,000 entries. ``` import pandas as pd from datetime import time ser = pd.Series(index=pd.date_range('2000-1-1', periods=1000000, freq=pd.datetools.offsets.Second())) ser.head(999999)[time(15,0)] # this is fine ser[time(15,0)] # this fails ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8667/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8667/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8668
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8668/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8668/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8668/events
https://github.com/pandas-dev/pandas/pull/8668
47,089,760
MDExOlB1bGxSZXF1ZXN0MjM0OTU3MTg=
8,668
BUG: fix concat to work with more iterables (GH8645)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1076190?v=4", "events_url": "https://api.github.com/users/waveform80/events{/privacy}", "followers_url": "https://api.github.com/users/waveform80/followers", "following_url": "https://api.github.com/users/waveform80/following{/other_user}", "gists_url": "https://api.github.com/users/waveform80/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/waveform80", "id": 1076190, "login": "waveform80", "node_id": "MDQ6VXNlcjEwNzYxOTA=", "organizations_url": "https://api.github.com/users/waveform80/orgs", "received_events_url": "https://api.github.com/users/waveform80/received_events", "repos_url": "https://api.github.com/users/waveform80/repos", "site_admin": false, "starred_url": "https://api.github.com/users/waveform80/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/waveform80/subscriptions", "type": "User", "url": "https://api.github.com/users/waveform80" }
[ { "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
6
2014-10-28T22:28:44Z
2014-10-30T17:39:16Z
2014-10-29T01:12:58Z
CONTRIBUTOR
null
closes #8645 Enhances `pd.concat` to work with any iterable (except specifically undesired ones like pandas objects and strings). A new test is included covering tuples, lists, generator expressions, deques, and custom sequences, and all existing tests still pass. Finally, a "what's new" entry is included (not sure this last is correct - but [pull requests guidelines](https://github.com/pydata/pandas/blob/master/CONTRIBUTING.md) mentioned 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/8668/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8668/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8668.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8668", "merged_at": "2014-10-29T01:12:58Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8668.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8668" }
https://api.github.com/repos/pandas-dev/pandas/issues/8669
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8669/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8669/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8669/events
https://github.com/pandas-dev/pandas/issues/8669
47,098,537
MDU6SXNzdWU0NzA5ODUzNw==
8,669
Bug? Replacing NaN values based on a condition.
{ "avatar_url": "https://avatars.githubusercontent.com/u/4410631?v=4", "events_url": "https://api.github.com/users/ozhogin/events{/privacy}", "followers_url": "https://api.github.com/users/ozhogin/followers", "following_url": "https://api.github.com/users/ozhogin/following{/other_user}", "gists_url": "https://api.github.com/users/ozhogin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ozhogin", "id": 4410631, "login": "ozhogin", "node_id": "MDQ6VXNlcjQ0MTA2MzE=", "organizations_url": "https://api.github.com/users/ozhogin/orgs", "received_events_url": "https://api.github.com/users/ozhogin/received_events", "repos_url": "https://api.github.com/users/ozhogin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ozhogin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ozhogin/subscriptions", "type": "User", "url": "https://api.github.com/users/ozhogin" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
4
2014-10-29T00:28:27Z
2014-10-30T11:19:44Z
2014-10-29T01:31:56Z
NONE
null
Dataframe with 2 columns: A and B. If values in B are larger than values in A - replace those values with values of A. I used to do this by doing df.B[df.B > df.A] = df.A, however recent upgrade of pandas started giving a SettingWithCopyWarning when encountering this chained assignment. Official documentation recommends using .loc. Okay, I said, and did it through df.loc[df.B > df.A, 'B'] = df.A and it all works fine, unless column B has all values of NaN. Then something weird happens: ``` python In [1]: df = pd.DataFrame({'A': [1, 2, 3],'B': [np.NaN, np.NaN, np.NaN]}) In [2]: df Out[2]: A B 0 1 NaN 1 2 NaN 2 3 NaN In [3]: df.loc[df.B > df.A, 'B'] = df.A In [4]: df Out[4]: A B 0 1 -9223372036854775808 1 2 -9223372036854775808 2 3 -9223372036854775808 ``` Now, if even one of B's elements satisfies the condition (larger than A), then it all works fine: ``` python In [1]: df = pd.DataFrame({'A': [1, 2, 3],'B': [np.NaN, 4, np.NaN]}) In [2]: df Out[2]: A B 0 1 NaN 1 2 4 2 3 NaN In [3]: df.loc[df.B > df.A, 'B'] = df.A In [4]: df Out[4]: A B 0 1 NaN 1 2 2 2 3 NaN ``` But if none of B's elements satisfy, then all NaNs get replaces with -9223372036854775808: ``` python In [1]: df = pd.DataFrame({'A':[1,2,3],'B':[np.NaN,1,np.NaN]}) In [2]: df Out[2]: A B 0 1 NaN 1 2 1 2 3 NaN In [3]: df.loc[df.B > df.A, 'B'] = df.A In [4]: df Out[4]: A B 0 1 -9223372036854775808 1 2 1 2 3 -9223372036854775808 ``` Am I doing something wrong, or this is a bug? pandas: 0.15.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/8669/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8669/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8670
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8670/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8670/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8670/events
https://github.com/pandas-dev/pandas/issues/8670
47,098,687
MDU6SXNzdWU0NzA5ODY4Nw==
8,670
BUG: Strange type conversions when assigning with `df.loc`
{ "avatar_url": "https://avatars.githubusercontent.com/u/1460294?v=4", "events_url": "https://api.github.com/users/onesandzeroes/events{/privacy}", "followers_url": "https://api.github.com/users/onesandzeroes/followers", "following_url": "https://api.github.com/users/onesandzeroes/following{/other_user}", "gists_url": "https://api.github.com/users/onesandzeroes/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/onesandzeroes", "id": 1460294, "login": "onesandzeroes", "node_id": "MDQ6VXNlcjE0NjAyOTQ=", "organizations_url": "https://api.github.com/users/onesandzeroes/orgs", "received_events_url": "https://api.github.com/users/onesandzeroes/received_events", "repos_url": "https://api.github.com/users/onesandzeroes/repos", "site_admin": false, "starred_url": "https://api.github.com/users/onesandzeroes/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/onesandzeroes/subscriptions", "type": "User", "url": "https://api.github.com/users/onesandzeroes" }
[]
closed
false
null
[]
null
2
2014-10-29T00:30:54Z
2014-10-29T00:34:48Z
2014-10-29T00:34:48Z
CONTRIBUTOR
null
From [this StackOverflow question](http://stackoverflow.com/questions/26620647/replace-values-in-a-dataframe-column-based-on-condition), something strange occurs when assigning to a `.loc` subset, when none of the rows match: ``` python import pandas as pd import numpy as np df = pd.DataFrame({'A': [1, 2, 3],'B': [np.NaN, np.NaN, np.NaN]}) df Out[6]: A B 0 1 NaN 1 2 NaN 2 3 NaN df.dtypes Out[10]: A int64 B float64 dtype: object # This loc shouldn't match any rows df.loc[df.B > df.A, 'B'] = df.A df Out[8]: A B 0 1 -9223372036854775808 1 2 -9223372036854775808 2 3 -9223372036854775808 # Why has this become int? Is this expected # behaviour for this assignment df.dtypes Out[12]: A int64 B int64 dtype: object ``` As long as some of the rows in the `.loc` match, this seems to work okay: ``` python df = pd.DataFrame({'A': [1, 2, 3],'B': [np.NaN, 4, np.NaN]}) df.loc[df.B > df.A, 'B'] = df.A df Out[4]: A B 0 1 NaN 1 2 2 2 3 NaN ``` I don't know why the `B` column gets converted to int64. Is the weird value in the B column the result of the `np.nan` bit pattern being inserted into an `int64` series? My `pd.show_versions()`: ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 30 Stepping 5, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.15.0 nose: 1.3.4 Cython: 0.21 numpy: 1.9.0 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.2.0 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 1.5 pytz: 2014.7 bottleneck: None tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.2 openpyxl: 1.8.5 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: 0.5.7 lxml: 3.4.0 bs4: 4.3.2 html5lib: 0.999 httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.7 pymysql: None psycopg2: None ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8670/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8670/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8671
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8671/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8671/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8671/events
https://github.com/pandas-dev/pandas/pull/8671
47,100,887
MDExOlB1bGxSZXF1ZXN0MjM1MDI2NDM=
8,671
BUG: Bug in setitem with empty indexer and unwanted coercion of dtypes (GH8669)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
0
2014-10-29T01:10:58Z
2014-10-30T11:20:24Z
2014-10-29T01:31:56Z
CONTRIBUTOR
null
closes #8669
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8671/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8671/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8671.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8671", "merged_at": "2014-10-29T01:31:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8671.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8671" }
https://api.github.com/repos/pandas-dev/pandas/issues/8672
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8672/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8672/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8672/events
https://github.com/pandas-dev/pandas/pull/8672
47,108,587
MDExOlB1bGxSZXF1ZXN0MjM1MDY5NDU=
8,672
BUG: years-only in date_range uses current date (GH6961)
{ "avatar_url": "https://avatars.githubusercontent.com/u/5356340?v=4", "events_url": "https://api.github.com/users/rosnfeld/events{/privacy}", "followers_url": "https://api.github.com/users/rosnfeld/followers", "following_url": "https://api.github.com/users/rosnfeld/following{/other_user}", "gists_url": "https://api.github.com/users/rosnfeld/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rosnfeld", "id": 5356340, "login": "rosnfeld", "node_id": "MDQ6VXNlcjUzNTYzNDA=", "organizations_url": "https://api.github.com/users/rosnfeld/orgs", "received_events_url": "https://api.github.com/users/rosnfeld/received_events", "repos_url": "https://api.github.com/users/rosnfeld/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rosnfeld/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rosnfeld/subscriptions", "type": "User", "url": "https://api.github.com/users/rosnfeld" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
1
2014-10-29T03:48:02Z
2014-10-30T11:20:24Z
2014-10-29T11:39:26Z
CONTRIBUTOR
null
closes #6961 this was probably fixed by #7907 but just adding an explicit test and release note. (in a sense, it should really be the 0.15.0 release note, but that release has shipped...)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8672/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8672/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8672.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8672", "merged_at": "2014-10-29T11:39:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8672.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8672" }
https://api.github.com/repos/pandas-dev/pandas/issues/8673
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8673/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8673/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8673/events
https://github.com/pandas-dev/pandas/issues/8673
47,125,159
MDU6SXNzdWU0NzEyNTE1OQ==
8,673
ENH: function for truncating (deleting all rows) an existing table
{ "avatar_url": "https://avatars.githubusercontent.com/u/6695027?v=4", "events_url": "https://api.github.com/users/adieldar/events{/privacy}", "followers_url": "https://api.github.com/users/adieldar/followers", "following_url": "https://api.github.com/users/adieldar/following{/other_user}", "gists_url": "https://api.github.com/users/adieldar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/adieldar", "id": 6695027, "login": "adieldar", "node_id": "MDQ6VXNlcjY2OTUwMjc=", "organizations_url": "https://api.github.com/users/adieldar/orgs", "received_events_url": "https://api.github.com/users/adieldar/received_events", "repos_url": "https://api.github.com/users/adieldar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/adieldar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adieldar/subscriptions", "type": "User", "url": "https://api.github.com/users/adieldar" }
[ { "color": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
null
[]
null
4
2014-10-29T09:13:33Z
2018-07-06T22:10:45Z
2018-07-06T22:10:45Z
NONE
null
Hi, I want to truncate (or even drop) an existing table in SQL server. I didn't find any dedicated function in pandas.io.sql. So I tried to create an empty data frame just to call: ``` df1 = pd.DataFrame() df1.to_sql(out_tbl, engine, if_exists='replace', index=False) ``` This code does drop the table but then generates exception from sqlalchemy as it tries to re-create an empty table. I can catch and ignore it, and the next call to_sql() with if_exists='append' will create the table correctly, but this is pretty ugly. Another way I tried is to clear all the rows from the original data frame, leaving the columns: ``` df1 = df.drop(df.index) df1.to_sql(out_tbl, engine, if_exists='replace', index=False) ``` This almost works: it truncates the table but then insert a single record with all fields as NULL... You can see the full description at http://stackoverflow.com/questions/26205057/how-can-i-truncate-a-table-using-pandas#comment41130846_26205057
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8673/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8673/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8674
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8674/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8674/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8674/events
https://github.com/pandas-dev/pandas/issues/8674
47,170,557
MDU6SXNzdWU0NzE3MDU1Nw==
8,674
Binary operations between Numpy array and Pandas series convert to array dtype before executing
{ "avatar_url": "https://avatars.githubusercontent.com/u/4360170?v=4", "events_url": "https://api.github.com/users/8one6/events{/privacy}", "followers_url": "https://api.github.com/users/8one6/followers", "following_url": "https://api.github.com/users/8one6/following{/other_user}", "gists_url": "https://api.github.com/users/8one6/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/8one6", "id": 4360170, "login": "8one6", "node_id": "MDQ6VXNlcjQzNjAxNzA=", "organizations_url": "https://api.github.com/users/8one6/orgs", "received_events_url": "https://api.github.com/users/8one6/received_events", "repos_url": "https://api.github.com/users/8one6/repos", "site_admin": false, "starred_url": "https://api.github.com/users/8one6/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/8one6/subscriptions", "type": "User", "url": "https://api.github.com/users/8one6" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "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": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
1
2014-10-29T16:29:47Z
2016-12-30T09:39:39Z
2016-12-30T09:39:39Z
NONE
null
It looks like when you do a binary operation with a numpy array and a pandas series, the Pandas series is cast as the same type as the numpy array. In the case where the array is `ints` but the series is `floats` this can have odd results in Python 2.x with division. This was surprising to me because, element-wise, a float/int computation would upcast the denominator to a float. But not here in this vectorized case: ``` import numpy as np import pandas as pd j = np.array([0] * 5) k = np.random.randn(5) print j / k print (j / pd.Series(k)).values print (pd.Series(j) / k).values print (pd.Series(j) / pd.Series(k)).values ####output#### [-0. 0. -0. -0. 0.] [ inf inf inf inf inf] [-0. 0. -0. -0. 0.] [-0. 0. -0. -0. 0.] ``` So in the two "pure" cases (array and array, series and series) the ints are upcast to floats and we get 0's everywhere. In the 2nd mixed case (3rd case overall), everything gets converted to floats to match the array and everything goes fine. But in the 1st mixed case (2nd case overall) everything gets converted to ints to match the array and so you get what was, at least to me, an unexpected infinite result.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8674/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8674/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8675
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8675/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8675/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8675/events
https://github.com/pandas-dev/pandas/pull/8675
47,213,522
MDExOlB1bGxSZXF1ZXN0MjM1NzEwMDk=
8,675
TST: fix up for 32-bit indexers w.r.t. (GH8669)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "fbca04", "default": false, "description": "Windows OS", "id": 57186974, "name": "Windows", "node_id": "MDU6TGFiZWw1NzE4Njk3NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
0
2014-10-29T22:45:27Z
2016-02-12T17:40:27Z
2014-10-29T22:56:36Z
CONTRIBUTOR
null
xref #8669
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8675/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8675/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8675.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8675", "merged_at": "2014-10-29T22:56:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8675.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8675" }
https://api.github.com/repos/pandas-dev/pandas/issues/8676
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8676/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8676/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8676/events
https://github.com/pandas-dev/pandas/pull/8676
47,214,839
MDExOlB1bGxSZXF1ZXN0MjM1NzE4NjM=
8,676
PERF: set multiindex labels with a coerced dtype (GH8456)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
10
2014-10-29T23:01:54Z
2014-12-13T21:52:27Z
2014-10-30T11:19:17Z
CONTRIBUTOR
null
closes #8456
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8676/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8676/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8676.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8676", "merged_at": "2014-10-30T11:19:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8676.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8676" }
https://api.github.com/repos/pandas-dev/pandas/issues/8677
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8677/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8677/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8677/events
https://github.com/pandas-dev/pandas/issues/8677
47,219,655
MDU6SXNzdWU0NzIxOTY1NQ==
8,677
API: change default return_type of Series.str.split from series to frame
{ "avatar_url": "https://avatars.githubusercontent.com/u/2702341?v=4", "events_url": "https://api.github.com/users/billletson/events{/privacy}", "followers_url": "https://api.github.com/users/billletson/followers", "following_url": "https://api.github.com/users/billletson/following{/other_user}", "gists_url": "https://api.github.com/users/billletson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/billletson", "id": 2702341, "login": "billletson", "node_id": "MDQ6VXNlcjI3MDIzNDE=", "organizations_url": "https://api.github.com/users/billletson/orgs", "received_events_url": "https://api.github.com/users/billletson/received_events", "repos_url": "https://api.github.com/users/billletson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/billletson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/billletson/subscriptions", "type": "User", "url": "https://api.github.com/users/billletson" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 278, "created_at": "2013-01-06T03:02:01Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)", "due_on": "2022-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/20", "id": 239227, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lMjM5MjI3", "number": 20, "open_issues": 108, "state": "open", "title": "Someday", "updated_at": "2021-08-08T01:48:22Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20" }
1
2014-10-30T00:08:18Z
2018-07-08T14:33:38Z
2018-07-06T22:08:31Z
CONTRIBUTOR
null
The `result_type` argument of `Series.str.split` has a default value of `'series'` for compatibility purposes. This should be deprecated in favor of the default `'frame'`. See issue #8428 , PR #8663 for introduction of the argument and discussion of default value.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8677/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8677/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8678
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8678/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8678/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8678/events
https://github.com/pandas-dev/pandas/issues/8678
47,219,870
MDU6SXNzdWU0NzIxOTg3MA==
8,678
RLS: 0.15.1 release schedule
{ "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
4
2014-10-30T00:11:42Z
2014-11-09T12:07:22Z
2014-11-09T12:06:04Z
MEMBER
null
Issue to track discussion on 0.15.1 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/8678/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8678/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8679
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8679/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8679/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8679/events
https://github.com/pandas-dev/pandas/issues/8679
47,220,660
MDU6SXNzdWU0NzIyMDY2MA==
8,679
Bug with read_table, skiprows, and C engine
{ "avatar_url": "https://avatars.githubusercontent.com/u/920492?v=4", "events_url": "https://api.github.com/users/jiffyclub/events{/privacy}", "followers_url": "https://api.github.com/users/jiffyclub/followers", "following_url": "https://api.github.com/users/jiffyclub/following{/other_user}", "gists_url": "https://api.github.com/users/jiffyclub/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jiffyclub", "id": 920492, "login": "jiffyclub", "node_id": "MDQ6VXNlcjkyMDQ5Mg==", "organizations_url": "https://api.github.com/users/jiffyclub/orgs", "received_events_url": "https://api.github.com/users/jiffyclub/received_events", "repos_url": "https://api.github.com/users/jiffyclub/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jiffyclub/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiffyclub/subscriptions", "type": "User", "url": "https://api.github.com/users/jiffyclub" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
2
2014-10-30T00:24:33Z
2014-11-27T02:52:38Z
2014-11-27T02:52:38Z
NONE
null
I'm reading the file available at ftp://aftp.cmdl.noaa.gov/products/trends/co2/co2_mm_mlo.txt. The data start on line 73. If I use the default C engine with `read_table` I have to specify `skiprows=85` to properly load the table: ``` python pd.read_table( 'co2_mm_mlo.txt.', sep=r'\s+', header=None, skiprows=85, engine='c', names=['year', 'month', 'dec_year', 'average', 'interpolated', 'trend', 'days']) ``` But if I use the Python engine then the expected `skiprows=72` works: ``` python pd.read_table( 'co2_mm_mlo.txt.', sep=r'\s+', header=None, skiprows=72, engine='python', names=['year', 'month', 'dec_year', 'average', 'interpolated', 'trend', 'days']) ``` The resulting DataFrame is expected to have 679 rows, but has 691 rows and data from the header if I use `skiprows=72` with the C engine. I've confirmed this behavior on Mac OS X Yosemite with Pandas 0.15.0 and a checkout of master@5cf3d85a7d4c448519fa08f918a114209cfbdf2b.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8679/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8679/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8680
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8680/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8680/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8680/events
https://github.com/pandas-dev/pandas/pull/8680
47,237,182
MDExOlB1bGxSZXF1ZXN0MjM1ODQ4MDg=
8,680
ENH: slicing with decreasing monotonic indexes
{ "avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4", "events_url": "https://api.github.com/users/shoyer/events{/privacy}", "followers_url": "https://api.github.com/users/shoyer/followers", "following_url": "https://api.github.com/users/shoyer/following{/other_user}", "gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shoyer", "id": 1217238, "login": "shoyer", "node_id": "MDQ6VXNlcjEyMTcyMzg=", "organizations_url": "https://api.github.com/users/shoyer/orgs", "received_events_url": "https://api.github.com/users/shoyer/received_events", "repos_url": "https://api.github.com/users/shoyer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shoyer/subscriptions", "type": "User", "url": "https://api.github.com/users/shoyer" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
27
2014-10-30T06:15:51Z
2014-11-06T11:04:00Z
2014-11-02T22:41:28Z
MEMBER
null
Fixes #7860 The first commit adds `Index.is_monotonic_decreasing` and `Index.is_monotonic_increasing` (alias for `is_monotonic`). `is_monotonic` will have a performance degradation (still O(n) time) in cases where the Index is decreasing monotonic. If necessary, we could work around this, but I think we can probably get away with this because the fall-back options are much slower and in many cases (e.g., for slice indexing) the next thing we'll want to know is if it's decreasing monotonic, anyways. Next up will be handling indexing monotonic decreasing indexes with reversed slices, e.g., `s.loc[30:10]`. CC @jreback @hugadams @immerrr (thank you, specialities wiki!)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8680/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8680/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8680.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8680", "merged_at": "2014-11-02T22:41:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8680.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8680" }
https://api.github.com/repos/pandas-dev/pandas/issues/8681
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8681/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8681/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8681/events
https://github.com/pandas-dev/pandas/issues/8681
47,241,834
MDU6SXNzdWU0NzI0MTgzNA==
8,681
memory error when skipping rows
{ "avatar_url": "https://avatars.githubusercontent.com/u/9459420?v=4", "events_url": "https://api.github.com/users/nkulki/events{/privacy}", "followers_url": "https://api.github.com/users/nkulki/followers", "following_url": "https://api.github.com/users/nkulki/following{/other_user}", "gists_url": "https://api.github.com/users/nkulki/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nkulki", "id": 9459420, "login": "nkulki", "node_id": "MDQ6VXNlcjk0NTk0MjA=", "organizations_url": "https://api.github.com/users/nkulki/orgs", "received_events_url": "https://api.github.com/users/nkulki/received_events", "repos_url": "https://api.github.com/users/nkulki/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nkulki/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nkulki/subscriptions", "type": "User", "url": "https://api.github.com/users/nkulki" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2015-03-23T10:50:37Z", "closed_issues": 400, "created_at": "2014-02-14T03:31:22Z", "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.15 of course!", "due_on": "2015-03-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/25", "id": 569113, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels", "node_id": "MDk6TWlsZXN0b25lNTY5MTEz", "number": 25, "open_issues": 0, "state": "closed", "title": "0.16.0", "updated_at": "2017-08-24T09:17:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25" }
10
2014-10-30T07:53:55Z
2014-12-12T19:40:08Z
2014-12-12T19:40:08Z
NONE
null
I have a file with over 100Million rows. When I do pd.read_csv(filename, skiprows=100000000, iterator=True) python crashes with a memory error. I have 32 gigs of memory and python eats up all that memory!!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8681/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8681/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8682
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8682/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8682/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8682/events
https://github.com/pandas-dev/pandas/pull/8682
47,278,427
MDExOlB1bGxSZXF1ZXN0MjM2MDk1MDA=
8,682
BUG: fix writing of Categorical with to_sql (GH8624)
{ "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": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
4
2014-10-30T14:46:32Z
2014-10-31T12:50:09Z
2014-10-31T12:50:09Z
MEMBER
null
Closes #8624 Use .get_values() instead of .values on the block, this ensures that NonConsolidatable blocks (non-dense blocks like categorical or sparse) are densified instead of just returning the raw .values.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8682/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8682/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8682.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8682", "merged_at": "2014-10-31T12:50:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8682.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8682" }
https://api.github.com/repos/pandas-dev/pandas/issues/8683
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8683/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8683/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8683/events
https://github.com/pandas-dev/pandas/issues/8683
47,285,559
MDU6SXNzdWU0NzI4NTU1OQ==
8,683
ValueError exception with pd.resample
{ "avatar_url": "https://avatars.githubusercontent.com/u/1993919?v=4", "events_url": "https://api.github.com/users/amelio-vazquez-reina/events{/privacy}", "followers_url": "https://api.github.com/users/amelio-vazquez-reina/followers", "following_url": "https://api.github.com/users/amelio-vazquez-reina/following{/other_user}", "gists_url": "https://api.github.com/users/amelio-vazquez-reina/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amelio-vazquez-reina", "id": 1993919, "login": "amelio-vazquez-reina", "node_id": "MDQ6VXNlcjE5OTM5MTk=", "organizations_url": "https://api.github.com/users/amelio-vazquez-reina/orgs", "received_events_url": "https://api.github.com/users/amelio-vazquez-reina/received_events", "repos_url": "https://api.github.com/users/amelio-vazquez-reina/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amelio-vazquez-reina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amelio-vazquez-reina/subscriptions", "type": "User", "url": "https://api.github.com/users/amelio-vazquez-reina" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
closed
false
null
[]
{ "closed_at": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
4
2014-10-30T15:39:49Z
2014-11-30T23:21:01Z
2014-11-30T23:21:01Z
CONTRIBUTOR
null
When running `df.resample('2200L', how='sum', label='right')` with `df`: ``` 2014-10-14 23:06:07.440000 6.44000 2014-10-14 23:06:07.761000 5.09600 2014-10-14 23:06:08.215000 6.44000 2014-10-14 23:06:08.486000 6.44000 2014-10-14 23:06:08.509000 5.20800 2014-10-14 23:06:08.789000 4.02842 2014-10-14 23:06:10.795000 5.65600 2014-10-14 23:06:11.618000 6.21600 2014-10-14 23:06:12.177000 6.21600 2014-10-14 23:06:14.620000 5.10720 2014-10-14 23:06:16.698000 5.95840 2014-10-14 23:06:16.745000 6.44000 2014-10-14 23:06:20.548000 6.21600 2014-10-14 23:06:20.549000 6.44000 2014-10-14 23:06:20.551000 5.95840 2014-10-14 23:06:23.206000 6.44000 2014-10-14 23:06:29.977000 6.44000 2014-10-14 23:06:35.307000 5.20800 2014-10-15 23:00:00 NaN 2014-10-15 23:00:02.200000 NaN Name: spend, dtype: float64 ``` I got: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-20-71895ab1ef27> in <module>() ----> 1 R_inst = loaded_sorted.tail(200).head(20).resample('2200L', how='sum', label='right') /Users/josh/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/core/generic.py in resample(self, rule, how, axis, fill_method, closed, label, convention, kind, loffset, limit, base) 2978 fill_method=fill_method, convention=convention, 2979 limit=limit, base=base) -> 2980 return sampler.resample(self).__finalize__(self) 2981 2982 def first(self, offset): /Users/josh/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/tseries/resample.py in resample(self, obj) 83 84 if isinstance(ax, DatetimeIndex): ---> 85 rs = self._resample_timestamps() 86 elif isinstance(ax, PeriodIndex): 87 offset = to_offset(self.freq) /Users/josh/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/tseries/resample.py in _resample_timestamps(self, kind) 273 axlabels = self.ax 274 --> 275 self._get_binner_for_resample(kind=kind) 276 grouper = self.grouper 277 binner = self.binner /Users/josh/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/tseries/resample.py in _get_binner_for_resample(self, kind) 121 kind = self.kind 122 if kind is None or kind == 'timestamp': --> 123 self.binner, bins, binlabels = self._get_time_bins(ax) 124 elif kind == 'timedelta': 125 self.binner, bins, binlabels = self._get_time_delta_bins(ax) /Users/josh/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/tseries/resample.py in _get_time_bins(self, ax) 182 183 # general version, knowing nothing about relative frequencies --> 184 bins = lib.generate_bins_dt64(ax_values, bin_edges, self.closed, hasnans=ax.hasnans) 185 186 if self.closed == 'right': /Users/josh/anaconda3/envs/py34/lib/python3.4/site-packages/pandas/lib.so in pandas.lib.generate_bins_dt64 (pandas/lib.c:17928)() ValueError: Values falls after last bin ``` with `Python 3.4.1 :: Anaconda 2.1.0 (x86_64)` and: ``` Cython==0.21 DataShape==0.3.0 Flask==0.10.1 Jinja2==2.7.3 MarkupSafe==0.23 Pillow==2.5.1 PyYAML==3.11 Pygments==1.6 SQLAlchemy==0.9.7 Sphinx==1.2.3 Theano==0.6.0 Werkzeug==0.9.6 XlsxWriter==0.5.7 abstract-rendering==0.5.1 appnope==0.1.0 argcomplete==0.8.1 arrow==0.4.4 astropy==0.4.2 beautifulsoup4==4.3.2 binstar==0.7.1 bitarray==0.8.1 blaze==0.6.3 blz==0.6.2 bokeh==0.6.1 boto==2.34.0 cffi==0.8.6 colorama==0.3.1 configobj==5.0.6 cryptography==0.5.4 cytoolz==0.7.0 decorator==3.4.0 docutils==0.12 future==0.13.1 greenlet==0.4.4 h5py==2.3.1 ipython==2.2.0 itsdangerous==0.24 jdcal==1.0 jedi==0.8.1-final0 ## FIXME: could not find svn URL in dependency_links for this package: joblib==0.8.3-r1 llvmpy==0.12.7 lpsolve55==5.5.2.0 lxml==3.4.0 matplotlib==1.4.0 mock==1.0.1 multipledispatch==0.4.7 networkx==1.9.1 nltk==3.0.0 nose==1.3.4 numba==0.14.0 numexpr==2.3.1 numpy==1.9.0 openpyxl==1.8.5 pandas==0.15.0 parse==1.6.4 patsy==0.3.0 ply==3.4 psutil==2.1.1 psycopg2==2.5.4 py==1.4.25 pyOpenSSL==0.14 pycosat==0.6.1 pycparser==2.10 pycrypto==2.6.1 pycurl==7.19.5 pyflakes==0.8.1 pymc==3.0 pyparsing==2.0.1 pytest==2.6.3 python-dateutil==2.1 pytz==2014.7 pyzmq==14.3.1 qds-sdk==1.2.2 redis==2.9.1 requests==2.4.3 rope-py3k==0.9.4-1 runipy==0.1.1 scikit-image==0.10.1 scikit-learn==0.15.2 scipy==0.14.0 seaborn==0.5.dev six==1.8.0 sockjs-tornado==1.0.1 spyder==2.3.1 statsmodels==0.5.0 sympy==0.7.5 tables==3.1.1 toolz==0.7.0 tornado==4.0.2 ujson==1.33 xlrd==0.9.3 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8683/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8683/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8684
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8684/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8684/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8684/events
https://github.com/pandas-dev/pandas/issues/8684
47,297,645
MDU6SXNzdWU0NzI5NzY0NQ==
8,684
Indexing a time-series changes the index type
{ "avatar_url": "https://avatars.githubusercontent.com/u/1993919?v=4", "events_url": "https://api.github.com/users/amelio-vazquez-reina/events{/privacy}", "followers_url": "https://api.github.com/users/amelio-vazquez-reina/followers", "following_url": "https://api.github.com/users/amelio-vazquez-reina/following{/other_user}", "gists_url": "https://api.github.com/users/amelio-vazquez-reina/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amelio-vazquez-reina", "id": 1993919, "login": "amelio-vazquez-reina", "node_id": "MDQ6VXNlcjE5OTM5MTk=", "organizations_url": "https://api.github.com/users/amelio-vazquez-reina/orgs", "received_events_url": "https://api.github.com/users/amelio-vazquez-reina/received_events", "repos_url": "https://api.github.com/users/amelio-vazquez-reina/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amelio-vazquez-reina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amelio-vazquez-reina/subscriptions", "type": "User", "url": "https://api.github.com/users/amelio-vazquez-reina" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
null
9
2014-10-30T17:02:02Z
2016-04-29T01:48:11Z
2016-04-29T01:48:11Z
CONTRIBUTOR
null
The following code changes the index type for my series: ``` python import arrow start_time = arrow.get(2014, 10, 15, hour = 19, tzinfo='US/Eastern') end_time = start_time.replace(seconds=400) ts = pd.date_range(start=start_time.isoformat(), end=end_time.isoformat(), freq='2200L') my_series = pd.read_pickle(...) my_series_sampled = my_series.ix[ts] ``` where the pickle file for `my_series` can be found on [this pickle file](https://drive.google.com/file/d/0B1_X48YFVS7STkh4bnB3ZndRYjg/view?usp=sharing). More specifically: For the input `my_series.head()`: ``` 2014-10-14 19:00:05.861000-04:00 6.4400 2014-10-14 19:00:07.094000-04:00 6.4400 2014-10-14 19:00:07.109000-04:00 5.9584 2014-10-14 19:00:07.211000-04:00 6.2160 2014-10-14 19:00:07.410000-04:00 6.4400 Name: spend, dtype: float64 ``` the output: `my_series_sampled.head()` is: ``` 1413414000000000000 NaN 1413414002200000000 NaN 1413414004400000000 NaN 1413414006600000000 NaN 1413414008800000000 NaN Name: spend, dtype: float64 ``` This is with `Python 3.4.1 :: Anaconda 2.1.0 (x86_64)` and: ``` Cython==0.21 DataShape==0.3.0 Flask==0.10.1 Jinja2==2.7.3 MarkupSafe==0.23 Pillow==2.5.1 PyYAML==3.11 Pygments==1.6 SQLAlchemy==0.9.7 Sphinx==1.2.3 Theano==0.6.0 Werkzeug==0.9.6 XlsxWriter==0.5.7 abstract-rendering==0.5.1 appnope==0.1.0 argcomplete==0.8.1 arrow==0.4.4 astropy==0.4.2 beautifulsoup4==4.3.2 binstar==0.7.1 bitarray==0.8.1 blaze==0.6.3 blz==0.6.2 bokeh==0.6.1 boto==2.34.0 cffi==0.8.6 colorama==0.3.1 configobj==5.0.6 cryptography==0.5.4 cytoolz==0.7.0 decorator==3.4.0 docutils==0.12 future==0.13.1 greenlet==0.4.4 h5py==2.3.1 ipython==2.2.0 itsdangerous==0.24 jdcal==1.0 jedi==0.8.1-final0 ## FIXME: could not find svn URL in dependency_links for this package: joblib==0.8.3-r1 llvmpy==0.12.7 lpsolve55==5.5.2.0 lxml==3.4.0 matplotlib==1.4.0 mock==1.0.1 multipledispatch==0.4.7 networkx==1.9.1 nltk==3.0.0 nose==1.3.4 numba==0.14.0 numexpr==2.3.1 numpy==1.9.0 openpyxl==1.8.5 pandas==0.15.0 parse==1.6.4 patsy==0.3.0 ply==3.4 psutil==2.1.1 psycopg2==2.5.4 py==1.4.25 pyOpenSSL==0.14 pycosat==0.6.1 pycparser==2.10 pycrypto==2.6.1 pycurl==7.19.5 pyflakes==0.8.1 pymc==3.0 pyparsing==2.0.1 pytest==2.6.3 python-dateutil==2.1 pytz==2014.7 pyzmq==14.3.1 qds-sdk==1.2.2 redis==2.9.1 requests==2.4.3 rope-py3k==0.9.4-1 runipy==0.1.1 scikit-image==0.10.1 scikit-learn==0.15.2 scipy==0.14.0 seaborn==0.5.dev six==1.8.0 sockjs-tornado==1.0.1 spyder==2.3.1 statsmodels==0.5.0 sympy==0.7.5 tables==3.1.1 toolz==0.7.0 tornado==4.0.2 ujson==1.33 xlrd==0.9.3 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8684/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8684/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8685
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8685/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8685/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8685/events
https://github.com/pandas-dev/pandas/issues/8685
47,307,337
MDU6SXNzdWU0NzMwNzMzNw==
8,685
v0.15.0 Can't read csv.gz from url
{ "avatar_url": "https://avatars.githubusercontent.com/u/806256?v=4", "events_url": "https://api.github.com/users/olgabot/events{/privacy}", "followers_url": "https://api.github.com/users/olgabot/followers", "following_url": "https://api.github.com/users/olgabot/following{/other_user}", "gists_url": "https://api.github.com/users/olgabot/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/olgabot", "id": 806256, "login": "olgabot", "node_id": "MDQ6VXNlcjgwNjI1Ng==", "organizations_url": "https://api.github.com/users/olgabot/orgs", "received_events_url": "https://api.github.com/users/olgabot/received_events", "repos_url": "https://api.github.com/users/olgabot/repos", "site_admin": false, "starred_url": "https://api.github.com/users/olgabot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/olgabot/subscriptions", "type": "User", "url": "https://api.github.com/users/olgabot" }
[ { "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_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
6
2014-10-30T18:11:22Z
2015-08-20T13:25:31Z
2015-08-20T13:25:31Z
NONE
null
``` import pandas as pd pd.read_csv('https://raw.githubusercontent.com/YeoLab/shalek2013/master/expression.csv.gz', compression='gzip', index_col=0) ``` ``` --------------------------------------------------------------------------- CParserError Traceback (most recent call last) <ipython-input-17-2e5c16b1e504> in <module>() ----> 1 pd.read_csv('https://raw.githubusercontent.com/YeoLab/shalek2013/master/expression.csv.gz', compression='gzip', index_col=0) /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in parser_f(filepath_or_buffer, sep, dialect, compression, doublequote, escapechar, quotechar, quoting, skipinitialspace, lineterminator, header, index_col, names, prefix, skiprows, skipfooter, skip_footer, na_values, na_fvalues, true_values, false_values, delimiter, converters, dtype, usecols, engine, delim_whitespace, as_recarray, na_filter, compact_ints, use_unsigned, low_memory, buffer_lines, warn_bad_lines, error_bad_lines, keep_default_na, thousands, comment, decimal, parse_dates, keep_date_col, dayfirst, date_parser, memory_map, float_precision, nrows, iterator, chunksize, verbose, encoding, squeeze, mangle_dupe_cols, tupleize_cols, infer_datetime_format, skip_blank_lines) 461 skip_blank_lines=skip_blank_lines) 462 --> 463 return _read(filepath_or_buffer, kwds) 464 465 parser_f.__name__ = name /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in _read(filepath_or_buffer, kwds) 237 238 # Create the parser. --> 239 parser = TextFileReader(filepath_or_buffer, **kwds) 240 241 if (nrows is not None) and (chunksize is not None): /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, f, engine, **kwds) 551 self.options['has_index_names'] = kwds['has_index_names'] 552 --> 553 self._make_engine(self.engine) 554 555 def _get_options_with_defaults(self, engine): /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in _make_engine(self, engine) 688 def _make_engine(self, engine='c'): 689 if engine == 'c': --> 690 self._engine = CParserWrapper(self.f, **self.options) 691 else: 692 if engine == 'python': /usr/local/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, src, **kwds) 1050 kwds['allow_leading_cols'] = self.index_col is not False 1051 -> 1052 self._reader = _parser.TextReader(src, **kwds) 1053 1054 # XXX /usr/local/lib/python2.7/site-packages/pandas/parser.so in pandas.parser.TextReader.__cinit__ (pandas/parser.c:4693)() /usr/local/lib/python2.7/site-packages/pandas/parser.so in pandas.parser.TextReader._get_header (pandas/parser.c:6091)() /usr/local/lib/python2.7/site-packages/pandas/parser.so in pandas.parser.TextReader._tokenize_rows (pandas/parser.c:8119)() /usr/local/lib/python2.7/site-packages/pandas/parser.so in pandas.parser.raise_parser_error (pandas/parser.c:20349)() CParserError: Error tokenizing data. C error: Calling read(nbytes) on source failed. Try engine='python'. ``` But the local file works: ![image](https://cloud.githubusercontent.com/assets/806256/4849212/0f1e2ec6-6060-11e4-8217-766b993da36a.png) I have v0.15.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/8685/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8685/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8686
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8686/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8686/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8686/events
https://github.com/pandas-dev/pandas/issues/8686
47,311,932
MDU6SXNzdWU0NzMxMTkzMg==
8,686
DOC: don't say .loc is "strictly label-based" if it isn't
{ "avatar_url": "https://avatars.githubusercontent.com/u/1439047?v=4", "events_url": "https://api.github.com/users/BrenBarn/events{/privacy}", "followers_url": "https://api.github.com/users/BrenBarn/followers", "following_url": "https://api.github.com/users/BrenBarn/following{/other_user}", "gists_url": "https://api.github.com/users/BrenBarn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/BrenBarn", "id": 1439047, "login": "BrenBarn", "node_id": "MDQ6VXNlcjE0MzkwNDc=", "organizations_url": "https://api.github.com/users/BrenBarn/orgs", "received_events_url": "https://api.github.com/users/BrenBarn/received_events", "repos_url": "https://api.github.com/users/BrenBarn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/BrenBarn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BrenBarn/subscriptions", "type": "User", "url": "https://api.github.com/users/BrenBarn" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2015-03-23T10:50:37Z", "closed_issues": 400, "created_at": "2014-02-14T03:31:22Z", "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.15 of course!", "due_on": "2015-03-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/25", "id": 569113, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels", "node_id": "MDk6TWlsZXN0b25lNTY5MTEz", "number": 25, "open_issues": 0, "state": "closed", "title": "0.16.0", "updated_at": "2017-08-24T09:17:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25" }
1
2014-10-30T18:51:25Z
2015-01-13T08:09:37Z
2015-01-13T08:09:37Z
NONE
null
One pedantic little thing I keep noticing: the docs for .loc say repeatedly that it is "strictly label-based", but it also accepts an array of booleans. I think it's good for .loc to have accept booleans, but it's misleading and confusing for the docs to say (in bold, no less) that it accepts _only_ labels found in the index, and then immediately contradict themselves by saying it also accepts arrays of booleans. Booleans aren't labels found 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/8686/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8686/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8687
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8687/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8687/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8687/events
https://github.com/pandas-dev/pandas/pull/8687
47,322,685
MDExOlB1bGxSZXF1ZXN0MjM2MzU5OTE=
8,687
BUG: fix Categorical comparison to work with datetime
{ "avatar_url": "https://avatars.githubusercontent.com/u/579798?v=4", "events_url": "https://api.github.com/users/immerrr/events{/privacy}", "followers_url": "https://api.github.com/users/immerrr/followers", "following_url": "https://api.github.com/users/immerrr/following{/other_user}", "gists_url": "https://api.github.com/users/immerrr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/immerrr", "id": 579798, "login": "immerrr", "node_id": "MDQ6VXNlcjU3OTc5OA==", "organizations_url": "https://api.github.com/users/immerrr/orgs", "received_events_url": "https://api.github.com/users/immerrr/received_events", "repos_url": "https://api.github.com/users/immerrr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/immerrr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/immerrr/subscriptions", "type": "User", "url": "https://api.github.com/users/immerrr" }
[ { "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
3
2014-10-30T20:28:58Z
2014-11-02T07:44:47Z
2014-10-31T13:48:48Z
CONTRIBUTOR
null
`pd.Timestamp` is one of types that don't pass `np.isscalar` test previously used in _cat_compare_op, `pd.lib.isscalar` should be used instead. ``` python In [1]: cat = pd.Categorical(pd.date_range('2014', periods=5)) In [2]: cat > cat[0] --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-2-77883e4783fe> in <module>() ----> 1 cat > cat[0] /home/dshpektorov/sources/pandas/pandas/core/categorical.py in f(self, other) 52 msg = "Cannot compare a Categorical for op {op} with type {typ}. If you want to \n" \ 53 "compare values, use 'np.asarray(cat) <op> other'." ---> 54 raise TypeError(msg.format(op=op,typ=type(other))) 55 56 f.__name__ = op TypeError: Cannot compare a Categorical for op __gt__ with type <class 'pandas.tslib.Timestamp'>. If you want to compare values, use 'np.asarray(cat) <op> other'. ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8687/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8687/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8687.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8687", "merged_at": "2014-10-31T13:48:48Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8687.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8687" }
https://api.github.com/repos/pandas-dev/pandas/issues/8688
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8688/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8688/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8688/events
https://github.com/pandas-dev/pandas/issues/8688
47,323,237
MDU6SXNzdWU0NzMyMzIzNw==
8,688
0.15.0 test_stata strikes back on various less common platforms on
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "default": false, "description": "read_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": "2015-03-23T10:50:37Z", "closed_issues": 400, "created_at": "2014-02-14T03:31:22Z", "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.15 of course!", "due_on": "2015-03-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/25", "id": 569113, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels", "node_id": "MDk6TWlsZXN0b25lNTY5MTEz", "number": 25, "open_issues": 0, "state": "closed", "title": "0.16.0", "updated_at": "2017-08-24T09:17:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25" }
10
2014-10-30T20:34:21Z
2015-01-16T15:10:44Z
2015-01-16T15:10:44Z
CONTRIBUTOR
null
e.g. 64bit big-endian https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=s390x&ver=0.15.0-1&stamp=1414699796 and others https://buildd.debian.org/status/package.php?p=pandas (some have other failures as well, yet to find a moment to "analyze", but e.g. hurd-i386 fails test_precise_conversion) could/should all stata tests be skipped on big-endians?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8688/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8688/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8689
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8689/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8689/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8689/events
https://github.com/pandas-dev/pandas/issues/8689
47,348,592
MDU6SXNzdWU0NzM0ODU5Mg==
8,689
datetime operations on NaT produce dangerous results
{ "avatar_url": "https://avatars.githubusercontent.com/u/616139?v=4", "events_url": "https://api.github.com/users/danfrankj/events{/privacy}", "followers_url": "https://api.github.com/users/danfrankj/followers", "following_url": "https://api.github.com/users/danfrankj/following{/other_user}", "gists_url": "https://api.github.com/users/danfrankj/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/danfrankj", "id": 616139, "login": "danfrankj", "node_id": "MDQ6VXNlcjYxNjEzOQ==", "organizations_url": "https://api.github.com/users/danfrankj/orgs", "received_events_url": "https://api.github.com/users/danfrankj/received_events", "repos_url": "https://api.github.com/users/danfrankj/repos", "site_admin": false, "starred_url": "https://api.github.com/users/danfrankj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danfrankj/subscriptions", "type": "User", "url": "https://api.github.com/users/danfrankj" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
1
2014-10-31T00:29:44Z
2014-10-31T19:04:34Z
2014-10-31T19:04:34Z
CONTRIBUTOR
null
``` In [189]: ser = pd.Series([np.datetime64('nat')]) In [190]: ser Out[190]: 0 NaT dtype: datetime64[ns] In [191]: ser.dt.hour Out[191]: 0 -1 dtype: int64 ``` While -1 is not a valid hour it is a very valid integer and could (has) caused hard to track bugs.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8689/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8689/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8690
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8690/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8690/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8690/events
https://github.com/pandas-dev/pandas/pull/8690
47,369,069
MDExOlB1bGxSZXF1ZXN0MjM2NjA5ODA=
8,690
CLN: fix grammar in extract_index error message
{ "avatar_url": "https://avatars.githubusercontent.com/u/319490?v=4", "events_url": "https://api.github.com/users/sangheestyle/events{/privacy}", "followers_url": "https://api.github.com/users/sangheestyle/followers", "following_url": "https://api.github.com/users/sangheestyle/following{/other_user}", "gists_url": "https://api.github.com/users/sangheestyle/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sangheestyle", "id": 319490, "login": "sangheestyle", "node_id": "MDQ6VXNlcjMxOTQ5MA==", "organizations_url": "https://api.github.com/users/sangheestyle/orgs", "received_events_url": "https://api.github.com/users/sangheestyle/received_events", "repos_url": "https://api.github.com/users/sangheestyle/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sangheestyle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sangheestyle/subscriptions", "type": "User", "url": "https://api.github.com/users/sangheestyle" }
[]
closed
false
null
[]
null
4
2014-10-31T07:56:15Z
2014-10-31T09:48:46Z
2014-10-31T08:29:48Z
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/8690/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8690/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8690.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8690", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/8690.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8690" }
https://api.github.com/repos/pandas-dev/pandas/issues/8691
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8691/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8691/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8691/events
https://github.com/pandas-dev/pandas/pull/8691
47,370,374
MDExOlB1bGxSZXF1ZXN0MjM2NjE3NzQ=
8,691
CLN: fix grammar in extract_index error message
{ "avatar_url": "https://avatars.githubusercontent.com/u/319490?v=4", "events_url": "https://api.github.com/users/sangheestyle/events{/privacy}", "followers_url": "https://api.github.com/users/sangheestyle/followers", "following_url": "https://api.github.com/users/sangheestyle/following{/other_user}", "gists_url": "https://api.github.com/users/sangheestyle/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sangheestyle", "id": 319490, "login": "sangheestyle", "node_id": "MDQ6VXNlcjMxOTQ5MA==", "organizations_url": "https://api.github.com/users/sangheestyle/orgs", "received_events_url": "https://api.github.com/users/sangheestyle/received_events", "repos_url": "https://api.github.com/users/sangheestyle/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sangheestyle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sangheestyle/subscriptions", "type": "User", "url": "https://api.github.com/users/sangheestyle" }
[]
closed
false
null
[]
null
1
2014-10-31T08:21:04Z
2014-10-31T09:45:29Z
2014-10-31T09:45:29Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8691/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8691/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8691.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8691", "merged_at": "2014-10-31T09:45:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8691.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8691" }
https://api.github.com/repos/pandas-dev/pandas/issues/8692
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8692/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8692/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8692/events
https://github.com/pandas-dev/pandas/issues/8692
47,374,773
MDU6SXNzdWU0NzM3NDc3Mw==
8,692
Is there a way to get all the names that are currently associated with an opened HDF5 file?
{ "avatar_url": "https://avatars.githubusercontent.com/u/2902346?v=4", "events_url": "https://api.github.com/users/qAp/events{/privacy}", "followers_url": "https://api.github.com/users/qAp/followers", "following_url": "https://api.github.com/users/qAp/following{/other_user}", "gists_url": "https://api.github.com/users/qAp/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/qAp", "id": 2902346, "login": "qAp", "node_id": "MDQ6VXNlcjI5MDIzNDY=", "organizations_url": "https://api.github.com/users/qAp/orgs", "received_events_url": "https://api.github.com/users/qAp/received_events", "repos_url": "https://api.github.com/users/qAp/repos", "site_admin": false, "starred_url": "https://api.github.com/users/qAp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qAp/subscriptions", "type": "User", "url": "https://api.github.com/users/qAp" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" } ]
closed
false
null
[]
null
2
2014-10-31T09:26:47Z
2014-11-01T13:59:17Z
2014-10-31T12:24:36Z
NONE
null
This is related to the closing of HDFStore stores: <a href="https://github.com/pydata/pandas/issues/4409"> API: HDFStore closing is buggy #4409 </a>, from which I understand that it is possible to have multiple open stores pointing to the same file, and that closing one of the stores does not close all the others, so one can still put things in others. But what happens if I start off with the following in a session <pre><code>df = pd.DataFrame(np.arange(10)) store1 = pd.HDFStore('test.h5') store2 = pd.HDFStore('test.h5') some_unmemorable_name = pd.HDFStore('test.h5') </code></pre> and I do some stuff with these stores, such as <pre><code>store1.append('df1', df) store2.append('df2', df) store1.close() store2.close() </code></pre> then, I spend some time doing a bunch of stuff unrelated to the stores, after which I want to save stuff to 'test.h5' again but to overwrite if it's already there. At this point, I have already forgotten about not having closed <code>some_unmemorable_name</code>. If I open the file with <code>mode = 'w'</code> now, <pre><code>In [63]: store = pd.HDFStore('test.h5', mode = 'w') /nuwa_cluster/opt/anaconda3-2.0.1/lib/python3.4/site-packages/tables/file.py in open_file(filename, mode, title, root_uep, filters, **kwargs) 313 raise ValueError( 314 "The file '%s' is already opened. Please " --> 315 "close it before reopening in write mode." % filename) 316 317 # Finally, create the File instance, and return it ValueError: The file 'test.h5' is already opened. Please close it before reopening in write mode. </pre></code> and there is no way to close the opened store because it was opened so long ago that I cannot recall its name. Deleting the file doesn't help because the current session is still 'aware' of the opened store. Restarting the session means that everything will have to be done again. If there is way to be able to get the names of all currently opened stores, then they can all be closed.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8692/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8692/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8693
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8693/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8693/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8693/events
https://github.com/pandas-dev/pandas/pull/8693
47,390,370
MDExOlB1bGxSZXF1ZXN0MjM2NzM3NzE=
8,693
VIS: register datetime64 in matplotlib units registry (GH8614)
{ "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": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
3
2014-10-31T12:47:35Z
2014-11-05T14:46:49Z
2014-11-05T14:34:26Z
MEMBER
null
Closes #8614
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8693/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8693/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8693.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8693", "merged_at": "2014-11-05T14:34:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8693.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8693" }
https://api.github.com/repos/pandas-dev/pandas/issues/8694
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8694/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8694/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8694/events
https://github.com/pandas-dev/pandas/issues/8694
47,391,218
MDU6SXNzdWU0NzM5MTIxOA==
8,694
BUG: set_levels with a change in timezone on a MultiIndex with DST is buggy
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" }, { "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": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
2
2014-10-31T12:58:26Z
2019-01-04T07:00:57Z
2019-01-04T07:00:26Z
CONTRIBUTOR
null
from [SO](http://stackoverflow.com/questions/26660286/dealing-with-dst-time-with-set-levels-function-multiindex-pandas) ``` In [91]: def works(df): ....: return df.reset_index(level=1,drop=True).set_index(df.index.get_level_values(1).tz_localize('Europe/Paris', ambiguous = 'infer'),append=True).iloc[7151:7160] ....: In [92]: def breaks(df): ....: return df.set_index(df.index.set_levels(df.index.get_level_values(1).tz_localize('Europe/Paris', ambiguous = 'infer'),level=1)).iloc[7151:7160] ....: In [93]: array = [('s001', d) for d in pd.date_range(start='01/01/2014', end='01/01/2015', freq='H')] + [('s002', d) for d in pd.date_range(start='01/01/2014', end='01/01/2015', freq='H')] In [94]: index = pd.MultiIndex.from_tuples(array, names=['sce', 'DATES']) In [95]: df = pd.DataFrame(np.random.randn(len(index)), index=index) In [96]: df = df.append(df.query('DATES == "26/10/2014 02:00:00"')) In [97]: df = df.query('DATES <> "30/03/2014 02:00:00"') In [98]: df = df.sort() In [99]: works(df) Out[99]: 0 sce DATES s001 2014-10-26 00:00:00+02:00 -0.833819 2014-10-26 01:00:00+02:00 -1.190427 2014-10-26 02:00:00+02:00 -1.210017 2014-10-26 02:00:00+01:00 -1.210017 2014-10-26 03:00:00+01:00 0.763599 2014-10-26 04:00:00+01:00 -1.055695 2014-10-26 05:00:00+01:00 -0.912766 2014-10-26 06:00:00+01:00 0.373625 2014-10-26 07:00:00+01:00 0.631287 In [100]: breaks(df) Out[100]: 0 sce DATES s001 2014-10-26 01:00:00+02:00 -0.833819 2014-10-26 02:00:00+02:00 -1.190427 2014-10-26 02:00:00+01:00 -1.210017 2014-10-26 02:00:00+01:00 -1.210017 2014-10-26 03:00:00+01:00 0.763599 2014-10-26 04:00:00+01:00 -1.055695 2014-10-26 05:00:00+01:00 -0.912766 2014-10-26 06:00:00+01:00 0.373625 2014-10-26 07:00:00+01:00 0.631287 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8694/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8694/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8695
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8695/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8695/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8695/events
https://github.com/pandas-dev/pandas/pull/8695
47,413,392
MDExOlB1bGxSZXF1ZXN0MjM2ODc5Mjk=
8,695
API/BUG: return np.nan rather than -1 for invalid datetime accessors values (GH8689)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
3
2014-10-31T16:22:55Z
2014-10-31T20:11:29Z
2014-10-31T19:04:34Z
CONTRIBUTOR
null
BUG: millisecond Timestamp/DatetimeIndex accessor fixed closes #8689
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8695/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8695/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8695.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8695", "merged_at": "2014-10-31T19:04:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8695.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8695" }
https://api.github.com/repos/pandas-dev/pandas/issues/8696
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8696/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8696/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8696/events
https://github.com/pandas-dev/pandas/issues/8696
47,417,789
MDU6SXNzdWU0NzQxNzc4OQ==
8,696
API: fix milliseconds accessor in Timestamp/DatetimeIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2015-03-23T10:50:37Z", "closed_issues": 400, "created_at": "2014-02-14T03:31:22Z", "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.15 of course!", "due_on": "2015-03-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/25", "id": 569113, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels", "node_id": "MDk6TWlsZXN0b25lNTY5MTEz", "number": 25, "open_issues": 0, "state": "closed", "title": "0.16.0", "updated_at": "2017-08-24T09:17:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25" }
4
2014-10-31T17:00:33Z
2015-01-29T18:21:45Z
2015-01-29T18:21:45Z
CONTRIBUTOR
null
This results in an API change, so holding off till later https://github.com/jreback/pandas/tree/milliseconds
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8696/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8696/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8697
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8697/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8697/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8697/events
https://github.com/pandas-dev/pandas/issues/8697
47,425,133
MDU6SXNzdWU0NzQyNTEzMw==
8,697
BUG: SQL get_schema generates incorrect DDL for specific dialect
{ "avatar_url": "https://avatars.githubusercontent.com/u/15233?v=4", "events_url": "https://api.github.com/users/hammer/events{/privacy}", "followers_url": "https://api.github.com/users/hammer/followers", "following_url": "https://api.github.com/users/hammer/following{/other_user}", "gists_url": "https://api.github.com/users/hammer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hammer", "id": 15233, "login": "hammer", "node_id": "MDQ6VXNlcjE1MjMz", "organizations_url": "https://api.github.com/users/hammer/orgs", "received_events_url": "https://api.github.com/users/hammer/received_events", "repos_url": "https://api.github.com/users/hammer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hammer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hammer/subscriptions", "type": "User", "url": "https://api.github.com/users/hammer" }
[ { "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": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
null
[]
{ "closed_at": "2014-12-12T13:45:40Z", "closed_issues": 173, "created_at": "2014-10-07T14:40:52Z", "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.15.1 of course", "due_on": "2014-12-12T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/30", "id": 816816, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODE2", "number": 30, "open_issues": 0, "state": "closed", "title": "0.15.2", "updated_at": "2015-07-29T20:17:19Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30" }
5
2014-10-31T17:52:37Z
2014-11-17T08:31:24Z
2014-11-17T08:31:12Z
NONE
null
I'm importing data from an Excel spreadsheet and I'd like to generate a CREATE TABLE statement for PostgreSQL that matches the data I've imported from Excel. Here's what I've got so far: ``` python >>> import pandas as pd >>> from sqlalchemy import create_engine >>> import psycopg2 >>> basedata = pd.read_excel('mydata.xlsx') >>> engine = create_engine('postgresql://myusername@localhost:5432/mydb') >>> pd.io.sql.get_schema(basedata, 'basedata', con=engine) ``` Unfortunately the CREATE TABLE statement generated uses a column type of "DATETIME" that does not exist in PostgreSQL. I suspect that the engine object is being ignored somehow and the DDL I'm getting is for sqlite, not PostgreSQL. However, I can't get pandas to build on my Mac so that I can expand the tests to validate my assumption.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8697/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8697/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8698
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8698/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8698/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8698/events
https://github.com/pandas-dev/pandas/issues/8698
47,433,535
MDU6SXNzdWU0NzQzMzUzNQ==
8,698
API/ENH: support datetime.time in a Timedelta
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "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": "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": "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": 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
2014-10-31T19:07:24Z
2015-06-11T12:48:43Z
2015-06-11T12:42:48Z
CONTRIBUTOR
null
So this as expected. Though I its pretty straightforward to add support for this directly to a Timedelta, after the notion is the same, _though_ a `time` object can support a time-zone so not sure if this is odd (or maybe we should add an optional tz to Timedelta). ``` In [5]: from datetime import time In [6]: time(secIn [8]: pd.Timedelta(time(second=1)) ValueError: Value must be Timedelta, string, integer, float, timedelta or convertible In [9]: pd.Timedelta('1s') Out[9]: Timedelta('0 days 00:00:01') ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8698/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8698/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/8699
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8699/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8699/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8699/events
https://github.com/pandas-dev/pandas/pull/8699
47,436,040
MDExOlB1bGxSZXF1ZXN0MjM3MDA2ODU=
8,699
BUG: incorrect serialization of a CustomBusinessDay in HDF5 (GH8591)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" }, { "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
0
2014-10-31T19:34:33Z
2014-10-31T20:18:45Z
2014-10-31T20:18:44Z
CONTRIBUTOR
null
closes #8591
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8699/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8699/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8699.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8699", "merged_at": "2014-10-31T20:18:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8699.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8699" }
https://api.github.com/repos/pandas-dev/pandas/issues/8700
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8700/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8700/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8700/events
https://github.com/pandas-dev/pandas/pull/8700
47,446,437
MDExOlB1bGxSZXF1ZXN0MjM3MDcxODc=
8,700
BUG: various Categorical fixes (GH8623)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
1
2014-10-31T21:29:04Z
2014-11-01T13:11:51Z
2014-10-31T22:35:39Z
CONTRIBUTOR
null
BUG: bug in selecting from a Categorical with iloc (GH8623) BUG: bug in groupby-transform with a Categorical (GH8623) BUG: bug in duplicated/drop_duplicates with a Categorical (GH8623) closes #8623
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8700/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8700/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8700.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8700", "merged_at": "2014-10-31T22:35:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8700.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8700" }
https://api.github.com/repos/pandas-dev/pandas/issues/8701
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/8701/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/8701/comments
https://api.github.com/repos/pandas-dev/pandas/issues/8701/events
https://github.com/pandas-dev/pandas/pull/8701
47,509,854
MDExOlB1bGxSZXF1ZXN0MjM3MjEwNDI=
8,701
ENH: provide a null_counts keyword to df.info() to force showing of null counts
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" } ]
closed
false
null
[]
{ "closed_at": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
0
2014-11-01T16:27:22Z
2014-11-02T18:57:21Z
2014-11-02T18:57:21Z
CONTRIBUTOR
null
Allows run-time control of showing of null-counts with `df.info()` (similar to what we allow with for example memory_usage in that this will override the default options for that call) ``` In [2]: df = DataFrame(1,columns=range(10),index=range(10)) In [3]: df.iloc[1,1] = np.nan ``` Default for a small frame (currently) is to show the non-null counts ``` In [5]: df.info() <class 'pandas.core.frame.DataFrame'> Int64Index: 10 entries, 0 to 9 Data columns (total 10 columns): 0 10 non-null float64 1 9 non-null float64 2 10 non-null float64 3 10 non-null float64 4 10 non-null float64 5 10 non-null float64 6 10 non-null float64 7 10 non-null float64 8 10 non-null float64 9 10 non-null float64 dtypes: float64(10) memory usage: 880.0 bytes # allow it to be turned off In [6]: df.info(null_counts=False) <class 'pandas.core.frame.DataFrame'> Int64Index: 10 entries, 0 to 9 Data columns (total 10 columns): 0 float64 1 float64 2 float64 3 float64 4 float64 5 float64 6 float64 7 float64 8 float64 9 float64 dtypes: float64(10) memory usage: 880.0 bytes ``` When you have a big frame, right now you need to set max_info_rows to control this option ``` In [7]: pd.set_option('max_info_rows',5) In [8]: df.info() <class 'pandas.core.frame.DataFrame'> Int64Index: 10 entries, 0 to 9 Data columns (total 10 columns): 0 float64 1 float64 2 float64 3 float64 4 float64 5 float64 6 float64 7 float64 8 float64 9 float64 dtypes: float64(10) memory usage: 880.0 bytes # force it to show In [9]: df.info(null_counts=True) <class 'pandas.core.frame.DataFrame'> Int64Index: 10 entries, 0 to 9 Data columns (total 10 columns): 0 10 non-null float64 1 9 non-null float64 2 10 non-null float64 3 10 non-null float64 4 10 non-null float64 5 10 non-null float64 6 10 non-null float64 7 10 non-null float64 8 10 non-null float64 9 10 non-null float64 dtypes: float64(10) memory usage: 880.0 bytes ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/8701/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/8701/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/8701.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/8701", "merged_at": "2014-11-02T18:57:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/8701.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8701" }