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/25313
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25313/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25313/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25313/events
https://github.com/pandas-dev/pandas/issues/25313
410,115,565
MDU6SXNzdWU0MTAxMTU1NjU=
25,313
Add helpful error message to get_loc
{ "avatar_url": "https://avatars.githubusercontent.com/u/4535737?v=4", "events_url": "https://api.github.com/users/felixvd/events{/privacy}", "followers_url": "https://api.github.com/users/felixvd/followers", "following_url": "https://api.github.com/users/felixvd/following{/other_user}", "gists_url": "https://api.github.com/users/felixvd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/felixvd", "id": 4535737, "login": "felixvd", "node_id": "MDQ6VXNlcjQ1MzU3Mzc=", "organizations_url": "https://api.github.com/users/felixvd/orgs", "received_events_url": "https://api.github.com/users/felixvd/received_events", "repos_url": "https://api.github.com/users/felixvd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/felixvd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/felixvd/subscriptions", "type": "User", "url": "https://api.github.com/users/felixvd" }
[ { "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": "207d...
closed
false
null
[]
null
5
2019-02-14T04:00:07Z
2019-02-18T16:37:03Z
2019-02-18T16:37:03Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python df = pd.DataFrame({'time':[1, 1.5, 2], 'data':[5, 7, 9]}) df = df.set_index('time') idx = df.index.get_loc(1.75) ``` #### Problem description The error message for the code above is cumbersome and does not give a hint to new users what the problem is: <details> --------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/anaconda3/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance) 3077 try: -> 3078 return self._engine.get_loc(key) 3079 except KeyError: pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Float64HashTable.get_item() pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Float64HashTable.get_item() KeyError: 1.75 During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) <ipython-input-136-0d357b65fb38> in <module> 1 df = pd.DataFrame({'time':[1, 1.5, 2, 2.5, 3], 'data':[5, 7, 9, 11, 13]}) 2 df = df.set_index('time') ----> 3 idx = df.index.get_loc(1.75) ~/anaconda3/lib/python3.7/site-packages/pandas/core/indexes/numeric.py in get_loc(self, key, method, tolerance) 417 pass 418 return super(Float64Index, self).get_loc(key, method=method, --> 419 tolerance=tolerance) 420 421 @cache_readonly ~/anaconda3/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance) 3078 return self._engine.get_loc(key) 3079 except KeyError: -> 3080 return self._engine.get_loc(self._maybe_cast_indexer(key)) 3081 3082 indexer = self.get_indexer([key], method=method, tolerance=tolerance) pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Float64HashTable.get_item() pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Float64HashTable.get_item() KeyError: 1.75 </details> #### Expected Output Instead of the 48 lines of traceback log and a raw KeyError, the line "*Value was not found in index. To match the closest value, use the parameter method='nearest'*" would be significantly more helpful. Is there a guideline on messages like this for common user errors? Would a PR to make [this line](https://github.com/pandas-dev/pandas/blob/6a8e7087831193afbc3e1799460614506743077b/pandas/core/indexes/base.py#L2664) verbose be welcome? #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.1.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-45-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.23.4 pytest: 4.0.2 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.2 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.2 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.15 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25313/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25313/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25314
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25314/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25314/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25314/events
https://github.com/pandas-dev/pandas/issues/25314
410,123,901
MDU6SXNzdWU0MTAxMjM5MDE=
25,314
fail to build
{ "avatar_url": "https://avatars.githubusercontent.com/u/4354888?v=4", "events_url": "https://api.github.com/users/xieyuheng/events{/privacy}", "followers_url": "https://api.github.com/users/xieyuheng/followers", "following_url": "https://api.github.com/users/xieyuheng/following{/other_user}", "gists_url": "https://api.github.com/users/xieyuheng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xieyuheng", "id": 4354888, "login": "xieyuheng", "node_id": "MDQ6VXNlcjQzNTQ4ODg=", "organizations_url": "https://api.github.com/users/xieyuheng/orgs", "received_events_url": "https://api.github.com/users/xieyuheng/received_events", "repos_url": "https://api.github.com/users/xieyuheng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xieyuheng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xieyuheng/subscriptions", "type": "User", "url": "https://api.github.com/users/xieyuheng" }
[]
closed
false
null
[]
null
0
2019-02-14T04:39:18Z
2019-02-14T04:53:00Z
2019-02-14T04:53:00Z
NONE
null
``` pip install -e . Obtaining file:///home/xyh/sd0/lang/python/lib/pandas Requirement already satisfied: python-dateutil>=2.5.0 in /home/xyh/sd0/miniconda3/lib/python3.6/site-packages (from pandas==0.25.0.dev0+114.g6a8e70878) (2.7.5) Requirement already satisfied: pytz>=2011k in /home/xyh/sd0/miniconda3/lib/python3.6/site-packages (from pandas==0.25.0.dev0+114.g6a8e70878) (2018.9) Requirement already satisfied: numpy>=1.12.0 in /home/xyh/sd0/miniconda3/lib/python3.6/site-packages (from pandas==0.25.0.dev0+114.g6a8e70878) (1.14.6) Requirement already satisfied: six>=1.5 in /home/xyh/sd0/miniconda3/lib/python3.6/site-packages (from python-dateutil>=2.5.0->pandas==0.25.0.dev0+114.g6a8e70878) (1.12.0) Installing collected packages: pandas Found existing installation: pandas 0.23.4 Uninstalling pandas-0.23.4: Successfully uninstalled pandas-0.23.4 Running setup.py develop for pandas Complete output from command /home/xyh/sd0/miniconda3/bin/python -c "import setuptools, tokenize;__file__='/home/xyh/sd0/lang/python/lib/pandas/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps: running develop running egg_info writing pandas.egg-info/PKG-INFO writing dependency_links to pandas.egg-info/dependency_links.txt writing requirements to pandas.egg-info/requires.txt writing top-level names to pandas.egg-info/top_level.txt reading manifest file 'pandas.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'doc/build' warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.pyd' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution warning: no previously-included files matching '*~' found anywhere in distribution warning: no previously-included files matching '.DS_Store' found anywhere in distribution warning: no previously-included files matching '.git*' found anywhere in distribution warning: no previously-included files matching '#*' found anywhere in distribution writing manifest file 'pandas.egg-info/SOURCES.txt' running build_ext building 'pandas._libs.algos' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/pandas creating build/temp.linux-x86_64-3.6/pandas/_libs gcc -pthread -B /home/xyh/sd0/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -Ipandas/_libs/src/klib -Ipandas/_libs/src -I/home/xyh/sd0/miniconda3/lib/python3.6/site-packages/numpy/core/include -I/home/xyh/sd0/miniconda3/include/python3.6m -c pandas/_libs/algos.c -o build/temp.linux-x86_64-3.6/pandas/_libs/algos.o -Wno-unused-function In file included from /home/xyh/sd0/miniconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816, from /home/xyh/sd0/miniconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/xyh/sd0/miniconda3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4, from pandas/_libs/algos.c:663: /home/xyh/sd0/miniconda3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ gcc -pthread -shared -B /home/xyh/sd0/miniconda3/compiler_compat -L/home/xyh/sd0/miniconda3/lib -Wl,-rpath=/home/xyh/sd0/miniconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/pandas/_libs/algos.o -o /home/xyh/sd0/lang/python/lib/pandas/pandas/_libs/algos.cpython-36m-x86_64-linux-gnu.so /home/xyh/sd0/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/pandas/_libs/algos.o: unable to initialize decompress status for section .debug_info /home/xyh/sd0/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/pandas/_libs/algos.o: unable to initialize decompress status for section .debug_info /home/xyh/sd0/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/pandas/_libs/algos.o: unable to initialize decompress status for section .debug_info /home/xyh/sd0/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/pandas/_libs/algos.o: unable to initialize decompress status for section .debug_info build/temp.linux-x86_64-3.6/pandas/_libs/algos.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 ---------------------------------------- Rolling back uninstall of pandas Command "/home/xyh/sd0/miniconda3/bin/python -c "import setuptools, tokenize;__file__='/home/xyh/sd0/lang/python/lib/pandas/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in /home/xyh/sd0/lang/python/lib/pandas/ ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25314/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25314/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25315
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25315/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25315/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25315/events
https://github.com/pandas-dev/pandas/pull/25315
410,129,764
MDExOlB1bGxSZXF1ZXN0MjUyOTQxMTcy
25,315
...
{ "avatar_url": "https://avatars.githubusercontent.com/u/4354888?v=4", "events_url": "https://api.github.com/users/xieyuheng/events{/privacy}", "followers_url": "https://api.github.com/users/xieyuheng/followers", "following_url": "https://api.github.com/users/xieyuheng/following{/other_user}", "gists_url": "https://api.github.com/users/xieyuheng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xieyuheng", "id": 4354888, "login": "xieyuheng", "node_id": "MDQ6VXNlcjQzNTQ4ODg=", "organizations_url": "https://api.github.com/users/xieyuheng/orgs", "received_events_url": "https://api.github.com/users/xieyuheng/received_events", "repos_url": "https://api.github.com/users/xieyuheng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xieyuheng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xieyuheng/subscriptions", "type": "User", "url": "https://api.github.com/users/xieyuheng" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
null
3
2019-02-14T05:05:55Z
2019-02-15T17:38:52Z
2019-02-15T10:31:33Z
NONE
null
...
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25315/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25315/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25315.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25315", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25315.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25315" }
https://api.github.com/repos/pandas-dev/pandas/issues/25316
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25316/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25316/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25316/events
https://github.com/pandas-dev/pandas/issues/25316
410,167,963
MDU6SXNzdWU0MTAxNjc5NjM=
25,316
Missing required dependencies ['numpy'] on pandas 0.24.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/17949485?v=4", "events_url": "https://api.github.com/users/Skeletrox/events{/privacy}", "followers_url": "https://api.github.com/users/Skeletrox/followers", "following_url": "https://api.github.com/users/Skeletrox/following{/other_user}", "gists_url": "https://api.github.com/users/Skeletrox/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Skeletrox", "id": 17949485, "login": "Skeletrox", "node_id": "MDQ6VXNlcjE3OTQ5NDg1", "organizations_url": "https://api.github.com/users/Skeletrox/orgs", "received_events_url": "https://api.github.com/users/Skeletrox/received_events", "repos_url": "https://api.github.com/users/Skeletrox/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Skeletrox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Skeletrox/subscriptions", "type": "User", "url": "https://api.github.com/users/Skeletrox" }
[]
closed
false
null
[]
null
6
2019-02-14T07:38:51Z
2020-01-10T18:08:42Z
2019-02-14T08:49:07Z
NONE
null
#### Code Sample with obtained output ```python import pandas as pd # -------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-2-7dd3504c366f> in <module> ----> 1 import pandas as pd ~/.local/lib/python3.6/site-packages/pandas/__init__.py in <module> 17 if missing_dependencies: 18 raise ImportError( ---> 19 "Missing required dependencies {0}".format(missing_dependencies)) 20 del hard_dependencies, dependency, missing_dependencies 21 ImportError: Missing required dependencies ['numpy'] ``` #### pip3 show outputs ```bash ➜ pip3 show pandas Name: pandas Version: 0.24.1 Summary: Powerful data structures for data analysis, time series, and statistics Home-page: http://pandas.pydata.org Author: None Author-email: None License: BSD Location: /home/skeletrox/.local/lib/python3.6/site-packages Requires: numpy, python-dateutil, pytz ➜ pip3 show numpy Name: numpy Version: 1.16.1 Summary: NumPy is the fundamental package for array computing with Python. Home-page: https://www.numpy.org Author: Travis E. Oliphant et al. Author-email: None License: BSD Location: /home/skeletrox/.local/lib/python3.6/site-packages Requires: ``` #### System * Linux Mint 19.1 Tessa * `pip3 --version` output: `pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)` #### Problem description Recently updated pandas using `pip3 install -U pandas` and tried running the code again, leading to the above issue. #### Attempted Fixes Tried reinstalling both numpy and pandas, and cleared cache so as to force `pip3` to pull from remote. ``` ➜ pip3 uninstall pandas && pip3 uninstall numpy && pip3 install numpy && pip3 install pandas ``` yet the issue remains consistent. #### Expected result Successful import of pandas
{ "+1": 1, "-1": 0, "confused": 3, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 4, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25316/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25316/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25317
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25317/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25317/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25317/events
https://github.com/pandas-dev/pandas/issues/25317
410,238,239
MDU6SXNzdWU0MTAyMzgyMzk=
25,317
Subtracting two data time series with NaT yields Overflow error
{ "avatar_url": "https://avatars.githubusercontent.com/u/46397977?v=4", "events_url": "https://api.github.com/users/mjuzlova/events{/privacy}", "followers_url": "https://api.github.com/users/mjuzlova/followers", "following_url": "https://api.github.com/users/mjuzlova/following{/other_user}", "gists_url": "https://api.github.com/users/mjuzlova/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mjuzlova", "id": 46397977, "login": "mjuzlova", "node_id": "MDQ6VXNlcjQ2Mzk3OTc3", "organizations_url": "https://api.github.com/users/mjuzlova/orgs", "received_events_url": "https://api.github.com/users/mjuzlova/received_events", "repos_url": "https://api.github.com/users/mjuzlova/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mjuzlova/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mjuzlova/subscriptions", "type": "User", "url": "https://api.github.com/users/mjuzlova" }
[ { "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, ...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
1
2019-02-14T10:46:31Z
2019-02-20T10:52:02Z
2019-02-20T10:52:02Z
NONE
null
#### Problem description If I have a series of DateTime values and I want to subtract another series with DateTime value which contains NaT, in some case I get OverflowError. #### Code Sample, a copy-pastable example if possible ```python s1 = pd.Series([pd.to_datetime('1969-12-31')]) s2 = pd.Series([pd.to_datetime('NaT')]) s1 - s2 ``` #### Expected Output ``` 0 NaT dtype: timedelta64[ns] ``` #### OverflowError <details> OverflowError Traceback (most recent call last) <ipython-input-64-8dfa2778fb13> in <module> 1 s1 = pd.Series([pd.to_datetime('1969-12-31')]) 2 s2 = pd.Series([pd.to_datetime('NaT')]) ----> 3 s1-s2 /opt/anaconda3/envs/calf2cow/lib/python3.6/site-packages/pandas/core/ops.py in wrapper(left, right) 1550 # test_dt64_series_add_intlike, which the index dispatching handles 1551 # specifically. -> 1552 result = dispatch_to_index_op(op, left, right, pd.DatetimeIndex) 1553 return construct_result(left, result, 1554 index=left.index, name=res_name, /opt/anaconda3/envs/calf2cow/lib/python3.6/site-packages/pandas/core/ops.py in dispatch_to_index_op(op, left, right, index_class) 1189 left_idx = left_idx._shallow_copy(freq=None) 1190 try: -> 1191 result = op(left_idx, right) 1192 except NullFrequencyError: 1193 # DatetimeIndex and TimedeltaIndex with freq == None raise ValueError /opt/anaconda3/envs/calf2cow/lib/python3.6/site-packages/pandas/core/ops.py in wrapper(left, right) 1550 # test_dt64_series_add_intlike, which the index dispatching handles 1551 # specifically. -> 1552 result = dispatch_to_index_op(op, left, right, pd.DatetimeIndex) 1553 return construct_result(left, result, 1554 index=left.index, name=res_name, /opt/anaconda3/envs/calf2cow/lib/python3.6/site-packages/pandas/core/ops.py in dispatch_to_index_op(op, left, right, index_class) 1189 left_idx = left_idx._shallow_copy(freq=None) 1190 try: -> 1191 result = op(left_idx, right) 1192 except NullFrequencyError: 1193 # DatetimeIndex and TimedeltaIndex with freq == None raise ValueError /opt/anaconda3/envs/calf2cow/lib/python3.6/site-packages/pandas/core/ops.py in rsub(left, right) 146 147 def rsub(left, right): --> 148 return right - left 149 150 /opt/anaconda3/envs/calf2cow/lib/python3.6/site-packages/pandas/core/indexes/datetimelike.py in __sub__(self, other) 499 def __sub__(self, other): 500 # dispatch to ExtensionArray implementation --> 501 result = self._data.__sub__(maybe_unwrap_index(other)) 502 return wrap_arithmetic_op(self, other, result) 503 /opt/anaconda3/envs/calf2cow/lib/python3.6/site-packages/pandas/core/arrays/datetimelike.py in __sub__(self, other) 1273 elif is_datetime64_dtype(other) or is_datetime64tz_dtype(other): 1274 # DatetimeIndex, ndarray[datetime64] -> 1275 result = self._sub_datetime_arraylike(other) 1276 elif is_period_dtype(other): 1277 # PeriodIndex /opt/anaconda3/envs/calf2cow/lib/python3.6/site-packages/pandas/core/arrays/datetimes.py in _sub_datetime_arraylike(self, other) 722 other_i8 = other.asi8 723 new_values = checked_add_with_arr(self_i8, -other_i8, --> 724 arr_mask=self._isnan) 725 if self._hasnans or other._hasnans: 726 mask = (self._isnan) | (other._isnan) /opt/anaconda3/envs/calf2cow/lib/python3.6/site-packages/pandas/core/algorithms.py in checked_add_with_arr(arr, b, arr_mask, b_mask) 936 937 if to_raise: --> 938 raise OverflowError("Overflow in int64 addition") 939 return arr + b 940 OverflowError: Overflow in int64 addition </details> #### Details I think the problem is not masking NaT values in the second series when checking overflow in function `_sub_datetime_arraylike(self, other)` in `pandas/core/arrays/datetimes.py`. As a result, if the date is internally represented as a negative integer, the subtraction overflows. However, if the date is positive of NaT is in the first series, everything works fine. #### Other examples: ```python s1 = pd.Series([pd.to_datetime('1970-01-01')]) s2 = pd.Series([pd.to_datetime('NaT')]) print(s1 - s2) s1 = pd.Series([pd.to_datetime('1969-12-31')]) s2 = pd.Series([pd.to_datetime('NaT')]) print(s2 - s1) print(pd.to_datetime('1969-12-31') - pd.to_datetime('NaT')) ``` Output ``` 0 NaT dtype: timedelta64[ns] 0 NaT dtype: timedelta64[ns] NaT ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25317/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25317/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25318
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25318/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25318/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25318/events
https://github.com/pandas-dev/pandas/issues/25318
410,284,217
MDU6SXNzdWU0MTAyODQyMTc=
25,318
pd.Categorical(Series, categories=..) returns broken data with out-of-bound codes
{ "avatar_url": "https://avatars.githubusercontent.com/u/18488?v=4", "events_url": "https://api.github.com/users/batterseapower/events{/privacy}", "followers_url": "https://api.github.com/users/batterseapower/followers", "following_url": "https://api.github.com/users/batterseapower/following{/other_user}", "gists_url": "https://api.github.com/users/batterseapower/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/batterseapower", "id": 18488, "login": "batterseapower", "node_id": "MDQ6VXNlcjE4NDg4", "organizations_url": "https://api.github.com/users/batterseapower/orgs", "received_events_url": "https://api.github.com/users/batterseapower/received_events", "repos_url": "https://api.github.com/users/batterseapower/repos", "site_admin": false, "starred_url": "https://api.github.com/users/batterseapower/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/batterseapower/subscriptions", "type": "User", "url": "https://api.github.com/users/batterseapower" }
[ { "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": ...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
3
2019-02-14T12:49:34Z
2019-03-03T02:36:37Z
2019-03-03T02:36:37Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python c1 = pd.Categorical(['A', 'B', 'B', 'C']) # Works as expected: #c2 = pd.Categorical(c1, categories=c1.categories[1:]) # Generates broken data: c2 = pd.Categorical(pd.Series(c1), categories=c1.categories[1:]) print(c1[:2]) print(c2[:2]) print(c2.codes.max(), len(c2.categories)) ``` Prints: ```python [A, B] Categories (3, object): [A, B, C] [B, C] Categories (2, object): [B, C] 2 2 ``` #### Problem description `pd.Categorical` should not be able to construct an object where `codes` is `>= len(categories)`. If it does this, then it's very likely that passing the array into other Pandas functions will trigger a segfault. For example, if you try to use this `Categorical` as a column in `pd.concat` then Python just dies: ``` >>> pd.concat([pd.DataFrame.from_dict({'A': c2}), pd.DataFrame.from_dict({'A': c2})], axis=0) C:\>echo %ERRORLEVEL% -1073741819 ``` #### Expected Output ```python [A, B] Categories (3, object): [A, B, C] [NaN, B] Categories (2, object): [B, C] 1 2 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.1.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: 3.1.2 pip: 19.0.2 setuptools: 39.0.1 Cython: 0.27.2 numpy: 1.16.1 scipy: 1.2.1 pyarrow: 0.9.0 xarray: None IPython: 6.1.0 sphinx: None patsy: 0.4.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: 1.3.0.dev0 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 2.2.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: 3.8.0 bs4: 4.6.0 html5lib: 0.9999999 sqlalchemy: 1.1.11 pymysql: None psycopg2: None jinja2: 2.9.6 s3fs: None fastparquet: 0.1.5 pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25318/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25318/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25319
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25319/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25319/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25319/events
https://github.com/pandas-dev/pandas/issues/25319
410,289,309
MDU6SXNzdWU0MTAyODkzMDk=
25,319
.isin() includes unwanted string value in a column with 0 instead of dropping them
{ "avatar_url": "https://avatars.githubusercontent.com/u/33796896?v=4", "events_url": "https://api.github.com/users/StevenLi-DS/events{/privacy}", "followers_url": "https://api.github.com/users/StevenLi-DS/followers", "following_url": "https://api.github.com/users/StevenLi-DS/following{/other_user}", "gists_url": "https://api.github.com/users/StevenLi-DS/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/StevenLi-DS", "id": 33796896, "login": "StevenLi-DS", "node_id": "MDQ6VXNlcjMzNzk2ODk2", "organizations_url": "https://api.github.com/users/StevenLi-DS/orgs", "received_events_url": "https://api.github.com/users/StevenLi-DS/received_events", "repos_url": "https://api.github.com/users/StevenLi-DS/repos", "site_admin": false, "starred_url": "https://api.github.com/users/StevenLi-DS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/StevenLi-DS/subscriptions", "type": "User", "url": "https://api.github.com/users/StevenLi-DS" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
4
2019-02-14T13:02:50Z
2019-02-19T14:50:48Z
2019-02-14T13:50:51Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python [in]: import pandas as pd import seaborn as sns df = sns.load_dataset('tips') df.day.value_counts() [out]: Sat 87 Sun 76 Thur 62 Fri 19 Name: day, dtype: int64 [in]: days = ['Sat', 'Sun', 'Thur'] df1 = df[df.day.isin(days)] # or # df1 = df.loc[df.day.isin(days)] df1.day.value_counts() [out]: Sat 87 Sun 76 Thur 62 Fri 0 Name: day, dtype: int64 ``` However, I expect `.isin()` returns ```python Sat 87 Sun 76 Thur 62 Name: day, dtype: int64 ``` Here's a side affect while plotting using seaborn: ```python sns.boxplot(x='day', y='total_bill', data=df1) ``` ![download](https://user-images.githubusercontent.com/33796896/52788431-e92a4080-302e-11e9-8b45-5b51d6b71bbe.png) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: 3.7.1 pip: 18.1 setuptools: 40.2.0 Cython: 0.29.4 numpy: 1.15.4 scipy: 1.2.0 pyarrow: None xarray: 0.11.0 IPython: 7.1.1 sphinx: 1.7.6 patsy: 0.5.1 dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.2 openpyxl: 2.5.5 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.5 lxml.etree: 4.2.4 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.2.10 pymysql: None psycopg2: 2.7.6.1 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25319/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25319/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25320
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25320/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25320/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25320/events
https://github.com/pandas-dev/pandas/pull/25320
410,298,432
MDExOlB1bGxSZXF1ZXN0MjUzMDcwODYz
25,320
fix the function find_common_types bug
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[ { "color": "009800", "default": false, "description": "Sparse Data Type", "id": 49182326, "name": "Sparse", "node_id": "MDU6TGFiZWw0OTE4MjMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse" }, { "color": "eb6420", "default": false, "description"...
closed
false
null
[]
null
6
2019-02-14T13:25:32Z
2019-03-20T02:05:31Z
2019-03-20T02:05:31Z
NONE
null
` types[0]` can raise a KeyError when `types` is a `pd.Series` . see issue #25270 - [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25320/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25320/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25320.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25320", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25320.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25320" }
https://api.github.com/repos/pandas-dev/pandas/issues/25321
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25321/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25321/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25321/events
https://github.com/pandas-dev/pandas/issues/25321
410,306,449
MDU6SXNzdWU0MTAzMDY0NDk=
25,321
Enable chunks for the read_gbq() function
{ "avatar_url": "https://avatars.githubusercontent.com/u/26500236?v=4", "events_url": "https://api.github.com/users/NotSoShaby/events{/privacy}", "followers_url": "https://api.github.com/users/NotSoShaby/followers", "following_url": "https://api.github.com/users/NotSoShaby/following{/other_user}", "gists_url": "https://api.github.com/users/NotSoShaby/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/NotSoShaby", "id": 26500236, "login": "NotSoShaby", "node_id": "MDQ6VXNlcjI2NTAwMjM2", "organizations_url": "https://api.github.com/users/NotSoShaby/orgs", "received_events_url": "https://api.github.com/users/NotSoShaby/received_events", "repos_url": "https://api.github.com/users/NotSoShaby/repos", "site_admin": false, "starred_url": "https://api.github.com/users/NotSoShaby/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/NotSoShaby/subscriptions", "type": "User", "url": "https://api.github.com/users/NotSoShaby" }
[]
closed
false
null
[]
null
1
2019-02-14T13:44:42Z
2019-02-14T14:00:18Z
2019-02-14T14:00:18Z
NONE
null
#### Problem description Reading large tables from google big query takes a long time and sometimes gets stuck. adding a chunksize option (like in other providers and the to_gbq() function) will be a nice addition. #### Expected Output #### Output of ``pd.show_versions()`` <details> pandas: 0.23.4 pytest: 3.5.0 pip: 18.1 setuptools: 40.6.3 Cython: 0.26.1 numpy: 1.15.4 scipy: 0.19.1 pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.6.1 pytz: 2017.2 blosc: None bottleneck: None tables: 3.4.2 numexpr: 2.6.9 feather: None matplotlib: 3.0.2 openpyxl: 2.5.3 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: None lxml: 4.1.1 bs4: 4.4.1 html5lib: 0.9999999 sqlalchemy: 1.2.12 pymysql: 0.9.2 psycopg2: 2.7.3.2 (dt dec pq3 ext lo64) jinja2: 2.9.6 s3fs: None fastparquet: 0.2.1 pandas_gbq: 0.6.1 pandas_datareader: None </details>
{ "+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/25321/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25321/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25322
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25322/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25322/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25322/events
https://github.com/pandas-dev/pandas/issues/25322
410,385,221
MDU6SXNzdWU0MTAzODUyMjE=
25,322
pandas 0.24.1 testsuite failure with new numpy (
{ "avatar_url": "https://avatars.githubusercontent.com/u/1227338?v=4", "events_url": "https://api.github.com/users/LocutusOfBorg/events{/privacy}", "followers_url": "https://api.github.com/users/LocutusOfBorg/followers", "following_url": "https://api.github.com/users/LocutusOfBorg/following{/other_user}", "gists_url": "https://api.github.com/users/LocutusOfBorg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LocutusOfBorg", "id": 1227338, "login": "LocutusOfBorg", "node_id": "MDQ6VXNlcjEyMjczMzg=", "organizations_url": "https://api.github.com/users/LocutusOfBorg/orgs", "received_events_url": "https://api.github.com/users/LocutusOfBorg/received_events", "repos_url": "https://api.github.com/users/LocutusOfBorg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LocutusOfBorg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LocutusOfBorg/subscriptions", "type": "User", "url": "https://api.github.com/users/LocutusOfBorg" }
[ { "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", "d...
closed
false
null
[]
null
8
2019-02-14T16:30:49Z
2021-06-26T05:43:08Z
2021-06-26T05:43:08Z
NONE
null
``` ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py::TestTSPlot::test_finder_daily FAILED ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py::TestTSPlot::test_finder_quarterly FAILED ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py::TestTSPlot::test_finder_monthly FAILED ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py::TestTSPlot::test_finder_monthly_long PASSED ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py::TestTSPlot::test_finder_annual FAILED ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py::TestTSPlot::test_finder_minutely PASSED ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py::TestTSPlot::test_finder_hourly PASSED ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py::TestTSPlot::test_gaps FAILED ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py::TestTSPlot::test_gap_upsample FAILED [...] =================================== FAILURES =================================== _________________________ TestTSPlot.test_finder_daily _________________________ self = <pandas.tests.plotting.test_datetimelike.TestTSPlot object at 0xc9b0e30c> @pytest.mark.slow def test_finder_daily(self): day_lst = [10, 40, 252, 400, 950, 2750, 10000] if (self.mpl_ge_3_0_0 or not self.mpl_ge_2_0_1 or (self.mpl_ge_2_1_0 and not self.mpl_ge_2_2_2)): # 2.0.0, 2.2.0 (exactly) or >= 3.0.0 xpl1 = xpl2 = [Period('1999-1-1', freq='B').ordinal] * len(day_lst) else: # 2.0.1, 2.1.0, 2.2.2, 2.2.3 xpl1 = [7565, 7564, 7553, 7546, 7518, 7428, 7066] xpl2 = [7566, 7564, 7554, 7546, 7519, 7429, 7066] rs1 = [] rs2 = [] for i, n in enumerate(day_lst): rng = bdate_range('1999-1-1', periods=n) ser = Series(np.random.randn(len(rng)), rng) _, ax = self.plt.subplots() ser.plot(ax=ax) xaxis = ax.get_xaxis() rs1.append(xaxis.get_majorticklocs()[0]) vmin, vmax = ax.get_xlim() ax.set_xlim(vmin + 0.9, vmax) rs2.append(xaxis.get_majorticklocs()[0]) self.plt.close(ax.get_figure()) > assert rs1 == xpl1 E assert [7566, 7566, ...66, 7566, ...] == [7565, 7564, 7...18, 7428, ...] E At index 0 diff: 7566 != 7565 E Full diff: E - [7566, 7566, 7566, 7566, 7566, 7566, 7566] E + [7565, 7564, 7553, 7546, 7518, 7428, 7066] ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py:425: AssertionError _______________________ TestTSPlot.test_finder_quarterly _______________________ self = <pandas.tests.plotting.test_datetimelike.TestTSPlot object at 0xa48b6fcc> @pytest.mark.slow def test_finder_quarterly(self): yrs = [3.5, 11] if (self.mpl_ge_3_0_0 or not self.mpl_ge_2_0_1 or (self.mpl_ge_2_1_0 and not self.mpl_ge_2_2_2)): # 2.0.0, 2.2.0 (exactly) or >= 3.0.0 xpl1 = xpl2 = [Period('1988Q1').ordinal] * len(yrs) else: # 2.0.1, 2.1.0, 2.2.2, 2.2.3 xpl1 = [68, 68] xpl2 = [72, 68] rs1 = [] rs2 = [] for i, n in enumerate(yrs): rng = period_range('1987Q2', periods=int(n * 4), freq='Q') ser = Series(np.random.randn(len(rng)), rng) _, ax = self.plt.subplots() ser.plot(ax=ax) xaxis = ax.get_xaxis() rs1.append(xaxis.get_majorticklocs()[0]) (vmin, vmax) = ax.get_xlim() ax.set_xlim(vmin + 0.9, vmax) rs2.append(xaxis.get_majorticklocs()[0]) self.plt.close(ax.get_figure()) > assert rs1 == xpl1 E assert [72, 72] == [68, 68] E At index 0 diff: 72 != 68 E Full diff: E - [72, 72] E + [68, 68] ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py:455: AssertionError ________________________ TestTSPlot.test_finder_monthly ________________________ self = <pandas.tests.plotting.test_datetimelike.TestTSPlot object at 0xc45a44cc> @pytest.mark.slow def test_finder_monthly(self): yrs = [1.15, 2.5, 4, 11] if (self.mpl_ge_3_0_0 or not self.mpl_ge_2_0_1 or (self.mpl_ge_2_1_0 and not self.mpl_ge_2_2_2)): # 2.0.0, 2.2.0 (exactly) or >= 3.0.0 xpl1 = xpl2 = [Period('Jan 1988').ordinal] * len(yrs) else: # 2.0.1, 2.1.0, 2.2.2, 2.2.3 xpl1 = [216, 216, 204, 204] xpl2 = [216, 216, 216, 204] rs1 = [] rs2 = [] for i, n in enumerate(yrs): rng = period_range('1987Q2', periods=int(n * 12), freq='M') ser = Series(np.random.randn(len(rng)), rng) _, ax = self.plt.subplots() ser.plot(ax=ax) xaxis = ax.get_xaxis() rs1.append(xaxis.get_majorticklocs()[0]) vmin, vmax = ax.get_xlim() ax.set_xlim(vmin + 0.9, vmax) rs2.append(xaxis.get_majorticklocs()[0]) self.plt.close(ax.get_figure()) > assert rs1 == xpl1 E assert [216, 216, 216, 216] == [216, 216, 204, 204] E At index 2 diff: 216 != 204 E Full diff: E - [216, 216, 216, 216] E ? ^^ ^^ E + [216, 216, 204, 204] E ? ^^ ^^ ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py:485: AssertionError ________________________ TestTSPlot.test_finder_annual _________________________ self = <pandas.tests.plotting.test_datetimelike.TestTSPlot object at 0xc7d841cc> @pytest.mark.slow def test_finder_annual(self): if (self.mpl_ge_3_0_0 or not self.mpl_ge_2_0_1 or (self.mpl_ge_2_1_0 and not self.mpl_ge_2_2_2)): # 2.0.0, 2.2.0 (exactly) or >= 3.0.0 xp = [1987, 1988, 1990, 1990, 1995, 2020, 2070, 2170] else: # 2.0.1, 2.1.0, 2.2.2, 2.2.3 xp = [1986, 1986, 1990, 1990, 1995, 2020, 1970, 1970] xp = [Period(x, freq='A').ordinal for x in xp] rs = [] for i, nyears in enumerate([5, 10, 19, 49, 99, 199, 599, 1001]): rng = period_range('1987', periods=nyears, freq='A') ser = Series(np.random.randn(len(rng)), rng) _, ax = self.plt.subplots() ser.plot(ax=ax) xaxis = ax.get_xaxis() rs.append(xaxis.get_majorticklocs()[0]) self.plt.close(ax.get_figure()) > assert rs == xp E assert [17, 18, 20, 20, 25, 50, ...] == [16L, 16L, 20L... 25L, 50L, ...] E At index 0 diff: 17 != 16L E Full diff: E - [17, 18, 20, 20, 25, 50, 100, 200] E + [16L, 16L, 20L, 20L, 25L, 50L, 0L, 0L] ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py:518: AssertionError _____________________________ TestTSPlot.test_gaps _____________________________ self = <pandas.tests.plotting.test_datetimelike.TestTSPlot object at 0xbf3dfb8c> @pytest.mark.slow def test_gaps(self): ts = tm.makeTimeSeries() ts[5:25] = np.nan _, ax = self.plt.subplots() ts.plot(ax=ax) lines = ax.get_lines() assert len(lines) == 1 line = lines[0] data = line.get_xydata() if (self.mpl_ge_3_0_0 or not self.mpl_ge_2_0_1 or (self.mpl_ge_2_1_0 and not self.mpl_ge_2_2_2)): # 2.0.0, 2.2.0 (exactly) or >= 3.0.0 data = np.ma.MaskedArray(data, mask=isna(data), fill_value=np.nan) > assert isinstance(data, np.ma.core.MaskedArray) E AssertionError: assert False E + where False = isinstance(array([[ 7.82700000e+03, -1.02081446e+00],\n [ 7.82800000e+03, 8.0754728...[ 7.85500000e+03, 3.90151635e-01],\n [ 7.85600000e+03, -8.36108671e-01]]), <class 'numpy.ma.core.MaskedArray'>) E + where <class 'numpy.ma.core.MaskedArray'> = <module 'numpy.ma.core' from '/usr/lib/python2.7/dist-packages/numpy/ma/core.pyc'>.MaskedArray E + where <module 'numpy.ma.core' from '/usr/lib/python2.7/dist-packages/numpy/ma/core.pyc'> = <module 'numpy.ma' from '/usr/lib/python2.7/dist-packages/numpy/ma/__init__.pyc'>.core E + where <module 'numpy.ma' from '/usr/lib/python2.7/dist-packages/numpy/ma/__init__.pyc'> = np.ma ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py:564: AssertionError _________________________ TestTSPlot.test_gap_upsample _________________________ self = <pandas.tests.plotting.test_datetimelike.TestTSPlot object at 0xc9f115ac> @pytest.mark.slow def test_gap_upsample(self): low = tm.makeTimeSeries() low[5:25] = np.nan _, ax = self.plt.subplots() low.plot(ax=ax) idxh = date_range(low.index[0], low.index[-1], freq='12h') s = Series(np.random.randn(len(idxh)), idxh) s.plot(secondary_y=True) lines = ax.get_lines() assert len(lines) == 1 assert len(ax.right_ax.get_lines()) == 1 line = lines[0] data = line.get_xydata() if (self.mpl_ge_3_0_0 or not self.mpl_ge_2_0_1 or (self.mpl_ge_2_1_0 and not self.mpl_ge_2_2_2)): # 2.0.0, 2.2.0 (exactly) or >= 3.0.0 data = np.ma.MaskedArray(data, mask=isna(data), fill_value=np.nan) > assert isinstance(data, np.ma.core.MaskedArray) E AssertionError: assert False E + where False = isinstance(array([[ 2.63016000e+05, -8.71992271e-01],\n [ 2.63040000e+05, 2.4476855...[ 2.63928000e+05, -1.46319072e-01],\n [ 2.63952000e+05, 1.57315404e+00]]), <class 'numpy.ma.core.MaskedArray'>) E + where <class 'numpy.ma.core.MaskedArray'> = <module 'numpy.ma.core' from '/usr/lib/python2.7/dist-packages/numpy/ma/core.pyc'>.MaskedArray E + where <module 'numpy.ma.core' from '/usr/lib/python2.7/dist-packages/numpy/ma/core.pyc'> = <module 'numpy.ma' from '/usr/lib/python2.7/dist-packages/numpy/ma/__init__.pyc'>.core E + where <module 'numpy.ma' from '/usr/lib/python2.7/dist-packages/numpy/ma/__init__.pyc'> = np.ma ../debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_datetimelike.py:630: AssertionError =============================== warnings summary =============================== debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/extension/test_integer.py::TestMethods::()::test_combine_le[Int8Dtype] /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/extension/base/methods.py:153: RuntimeWarning: invalid value encountered in greater_equal expected = pd.Series([a <= val for a in list(orig_data1)]) debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/frame/test_constructors.py::TestDataFrameConstructors::()::test_constructor_dict_nan_tuple_key[nan0] /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/core/common.py:207: RuntimeWarning: invalid value encountered in less return sorted(listed) debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/groupby/test_filters.py::test_filter_and_transform_with_non_unique_float_index /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/core/indexes/base.py:2656: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison return self._engine.get_loc(key) debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_frame.py::TestDataFramePlots::()::test_logscales /usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py:3157: UserWarning: Attempted to set non-positive xlimits for log-scale axis; invalid limits will be ignored. 'Attempted to set non-positive xlimits for log-scale axis; ' debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_frame.py::TestDataFramePlots::()::test_errorbar_plot /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/plotting/_core.py:1798: UserWarning: To output multiple subplots, the figure containing the passed axes is being cleared plot_obj.generate() /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/plotting/_core.py:1798: UserWarning: To output multiple subplots, the figure containing the passed axes is being cleared plot_obj.generate() /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/plotting/_core.py:1798: UserWarning: To output multiple subplots, the figure containing the passed axes is being cleared plot_obj.generate() debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_frame.py::TestDataFramePlots::()::test_errorbar_timeseries /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/plotting/_core.py:1798: UserWarning: To output multiple subplots, the figure containing the passed axes is being cleared plot_obj.generate() /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/plotting/_core.py:1798: UserWarning: To output multiple subplots, the figure containing the passed axes is being cleared plot_obj.generate() /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/plotting/_core.py:1798: UserWarning: To output multiple subplots, the figure containing the passed axes is being cleared plot_obj.generate() debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_hist_method.py::TestSeriesPlots::()::test_hist_legacy /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_hist_method.py::TestDataFramePlots::()::test_tight_layout /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_hist_method.py:253: UserWarning: To output multiple subplots, the figure containing the passed axes is being cleared _check_plot_works(df.hist) debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_misc.py::TestSeriesPlots::()::test_autocorrelation_plot /usr/lib/python2.7/dist-packages/matplotlib/pyplot.py:969: UserWarning: Requested projection is different from current axis projection, creating new axis with requested projection. return gcf().gca(**kwargs) /usr/lib/python2.7/dist-packages/matplotlib/pyplot.py:969: UserWarning: Requested projection is different from current axis projection, creating new axis with requested projection. return gcf().gca(**kwargs) debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/plotting/test_series.py::TestSeriesPlots::()::test_hist_legacy /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) /usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1) debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/scalar/timedelta/test_arithmetic.py::TestTimedeltaMultiplicationDivision::()::test_td_div_nan[nan1] /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/scalar/timedelta/test_arithmetic.py:334: RuntimeWarning: invalid value encountered in double_scalars result = td // nan debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/tseries/offsets/test_offsets_properties.py::test_apply_index_implementations /usr/lib/python2.7/dist-packages/dateutil/zoneinfo/__init__.py:26: UserWarning: I/O error(2): No such file or directory warnings.warn("I/O error({0}): {1}".format(e.errno, e.strerror)) -- Docs: https://docs.pytest.org/en/latest/warnings.html 6 failed, 43011 passed, 3393 skipped, 777 deselected, 767 xfailed, 21 xpassed, 27 warnings in 5632.65 seconds ``` Do you have any clue for the errors above? this is the full log https://launchpadlibrarian.net/411242961/buildlog_ubuntu-disco-i386.pandas_0.24.1-0ubuntu1_BUILDING.txt.gz
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25322/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25322/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25323
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25323/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25323/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25323/events
https://github.com/pandas-dev/pandas/pull/25323
410,394,772
MDExOlB1bGxSZXF1ZXN0MjUzMTQ2NjE1
25,323
Skipped broken Py2 / Windows test
{ "avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4", "events_url": "https://api.github.com/users/WillAyd/events{/privacy}", "followers_url": "https://api.github.com/users/WillAyd/followers", "following_url": "https://api.github.com/users/WillAyd/following{/other_user}", "gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WillAyd", "id": 609873, "login": "WillAyd", "node_id": "MDQ6VXNlcjYwOTg3Mw==", "organizations_url": "https://api.github.com/users/WillAyd/orgs", "received_events_url": "https://api.github.com/users/WillAyd/received_events", "repos_url": "https://api.github.com/users/WillAyd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions", "type": "User", "url": "https://api.github.com/users/WillAyd" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" }, { "color": "fbca04", "default": false, ...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
3
2019-02-14T16:51:27Z
2019-02-14T17:29:33Z
2019-02-14T17:27:28Z
MEMBER
null
quick workaround for #25293 @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/25323/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25323/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25323.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25323", "merged_at": "2019-02-14T17:27:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25323.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25323" }
https://api.github.com/repos/pandas-dev/pandas/issues/25324
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25324/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25324/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25324/events
https://github.com/pandas-dev/pandas/issues/25324
410,409,191
MDU6SXNzdWU0MTA0MDkxOTE=
25,324
Fix validation error type `GL01` and check in CI
{ "avatar_url": "https://avatars.githubusercontent.com/u/15032115?v=4", "events_url": "https://api.github.com/users/MarckK/events{/privacy}", "followers_url": "https://api.github.com/users/MarckK/followers", "following_url": "https://api.github.com/users/MarckK/following{/other_user}", "gists_url": "https://api.github.com/users/MarckK/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarckK", "id": 15032115, "login": "MarckK", "node_id": "MDQ6VXNlcjE1MDMyMTE1", "organizations_url": "https://api.github.com/users/MarckK/orgs", "received_events_url": "https://api.github.com/users/MarckK/received_events", "repos_url": "https://api.github.com/users/MarckK/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarckK/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarckK/subscriptions", "type": "User", "url": "https://api.github.com/users/MarckK" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integratio...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
4
2019-02-14T17:25:34Z
2019-12-11T17:32:44Z
null
CONTRIBUTOR
null
#### Problem description In order to have a continuous check by the CI on validation error `GL01` (Docstring text, i.e. summary, should start in the line immediately after the opening quotes, not in the same line, or leaving a blank line in between), fixing them in the code base enables the addition to the CI for automated testing in the future. `GL01` has 189 occurrences (see [overview of the errors](https://gist.github.com/198cfa552c727d71bd7360fda66fdbb4)), including: method | file | file_line | github_link -- | -- | -- | -- pandas.Timestamp | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.max | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.min | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.ctime | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.date | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.dst | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.isocalendar | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.isoweekday | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.strftime | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.strptime | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.time | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.timestamp | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.timetuple | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.timetz | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.to_datetime64 | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.toordinal | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.tzname | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.utcoffset | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.utctimetuple | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timestamp.weekday | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timedelta.components | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timedelta.days | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timedelta.microseconds | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timedelta.seconds | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timedelta.view | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Timedelta.to_timedelta64 | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Interval.left | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Interval.length | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Interval.right | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Categorical.codes | pandas/core/arrays/categorical.py | 676.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/arrays/categorical.py#L676 ... | ... | ... | ... pandas.plotting.lag_plot | pandas/plotting/_misc.py | 570.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/_misc.py#L570 pandas.plotting.parallel_coordinates | pandas/util/_decorators.py | 454.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/util/_decorators.py#L454 pandas.core.resample.Resampler.pipe | pandas/core/resample.py | 189.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L189 pandas.core.resample.Resampler.first | pandas/core/resample.py | 857.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L857 pandas.core.resample.Resampler.last | pandas/core/resample.py | 857.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L857 pandas.core.resample.Resampler.max | pandas/core/resample.py | 857.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L857 pandas.core.resample.Resampler.min | pandas/core/resample.py | 857.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L857 pandas.core.resample.Resampler.prod | pandas/core/resample.py | 846.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L846 pandas.core.resample.Resampler.sum | pandas/core/resample.py | 846.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L846 pandas.Series.index | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Series.T | pandas/core/base.py | 672.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/base.py#L672 pandas.Series.dt.dayofweek | pandas/core/accessor.py | 80.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L80 pandas.Series.dt.weekday | pandas/core/accessor.py | 80.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L80 pandas.Series.dt.is_month_start | pandas/core/accessor.py | 80.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L80 pandas.Series.dt.is_month_end | pandas/core/accessor.py | 80.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L80 pandas.Series.dt.is_quarter_start | pandas/core/accessor.py | 80.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L80 pandas.Series.dt.is_quarter_end | pandas/core/accessor.py | 80.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L80 pandas.Series.dt.is_year_start | pandas/core/accessor.py | 80.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L80 pandas.Series.dt.is_year_end | pandas/core/accessor.py | 80.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L80 pandas.Series.dt.is_leap_year | pandas/core/accessor.py | 80.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/accessor.py#L80 pandas.io.formats.style.Styler.env | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.io.formats.style.Styler.template | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.io.formats.style.Styler.loader | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Series.ix | pandas/core/indexing.py | 1385.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/indexing.py#L1385 pandas.DataFrame.ix | pandas/core/indexing.py | 1385.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/indexing.py#L1385 pandas.Panel.items | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Panel.ix | pandas/core/indexing.py | 1385.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/indexing.py#L1385 pandas.Panel.keys | pandas/core/generic.py | 1824.0 | https://github.com/pandas-dev/pandas/blob/master/pandas/core/generic.py#L1824 pandas.Panel.major_axis | None | NaN | https://github.com/pandas-dev/pandas/blob/master/None#LNone pandas.Panel.minor_axis Todo: * [ ] get rid of the errors in the code base * [ ] update the `code_check.sh` script to take into account the `GL01` type of errors
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25324/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25324/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25325
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25325/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25325/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25325/events
https://github.com/pandas-dev/pandas/pull/25325
410,410,257
MDExOlB1bGxSZXF1ZXN0MjUzMTU4ODc0
25,325
Backport PR #25323 on branch 0.24.x (Skipped broken Py2 / Windows test)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" }, { "color": "fbca04", "default": false, ...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
4
2019-02-14T17:28:21Z
2019-02-15T09:20:58Z
2019-02-15T09:20:58Z
NONE
null
Backport PR #25323: Skipped broken Py2 / Windows test
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25325/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25325/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25325.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25325", "merged_at": "2019-02-15T09:20:58Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25325.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25325" }
https://api.github.com/repos/pandas-dev/pandas/issues/25326
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25326/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25326/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25326/events
https://github.com/pandas-dev/pandas/issues/25326
410,462,535
MDU6SXNzdWU0MTA0NjI1MzU=
25,326
Inconsistent dtype metadata leads to wrong Parquet column type
{ "avatar_url": "https://avatars.githubusercontent.com/u/620513?v=4", "events_url": "https://api.github.com/users/dargueta/events{/privacy}", "followers_url": "https://api.github.com/users/dargueta/followers", "following_url": "https://api.github.com/users/dargueta/following{/other_user}", "gists_url": "https://api.github.com/users/dargueta/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dargueta", "id": 620513, "login": "dargueta", "node_id": "MDQ6VXNlcjYyMDUxMw==", "organizations_url": "https://api.github.com/users/dargueta/orgs", "received_events_url": "https://api.github.com/users/dargueta/received_events", "repos_url": "https://api.github.com/users/dargueta/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dargueta/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dargueta/subscriptions", "type": "User", "url": "https://api.github.com/users/dargueta" }
[ { "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": "531...
closed
false
null
[]
null
3
2019-02-14T19:46:56Z
2019-03-27T00:03:51Z
2019-03-27T00:03:51Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible Run the following code with Pandas 0.24.x and PyArrow 0.12.0: ```python import pandas as pd import numpy as np df_1 = pd.DataFrame({'col': [None, None, None]}) df_1.col = df_1.col.astype(np.unicode_) df_1.to_parquet('right.parq', engine='pyarrow') series = pd.Series([None, None, None], dtype=np.unicode_) df_2 = pd.DataFrame({'col': series}) df_2.to_parquet('wrong.parq', engine='pyarrow') ``` #### Problem description Examine the Parquet column type for each file (I use [`parquet-tools`](https://github.com/wesleypeck/parquet-tools)). `right.parq` has the expected UTF-8 string type. `wrong.parq` has an `INT32`. While this seems like a problem in PyArrow (specifically [here](https://github.com/apache/arrow/blob/master/python/pyarrow/pandas_compat.py#L44-L70) and [here](https://github.com/apache/arrow/blob/master/python/pyarrow/pandas_compat.py#L711)), the root cause seems to be Pandas' metadata is inconsistent between the two dataframes. The following metadata is stored in the Parquet files: right.parq ```json { "column_indexes": [], "columns": [ { "field_name": "col", "metadata": null, "name": "col", "numpy_type": "object", "pandas_type": "unicode" } ], "index_columns": [], "pandas_version": "0.24.1" } ``` wrong.parq ```json { "column_indexes": [], "columns": [ { "field_name": "col", "metadata": null, "name": "col", "numpy_type": "object", "pandas_type": "empty" } ], "index_columns": [], "pandas_version": "0.24.1" } ``` The difference between the two is that the `pandas_type` for the incorrect file is "empty" rather than the expected "unicode". PyArrow misinterprets this and defaults to a 32-bit integer column. The incorrect datatype will cause Redshift to reject the file when we try to read it because the column type in the file doesn't match the column type in the database table. #### Expected Output A DataFrame column constructed with a Series should have dtype metadata identical to a column returned by `astype()`. #### Output of ``pd.show_versions()`` <details> <pre> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Darwin OS-release: 17.7.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.1 pytest: None pip: 18.1 setuptools: 40.6.2 Cython: None numpy: 1.16.1 scipy: None pyarrow: 0.12.0 xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: 4.3.1 bs4: None html5lib: 1.0.1 sqlalchemy: 1.2.17 pymysql: None psycopg2: None jinja2: 2.10 s3fs: 0.2.0 fastparquet: 0.2.1 pandas_gbq: 0.9.0 pandas_datareader: None gcsfs: None </pre> </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25326/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25326/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25327
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25327/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25327/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25327/events
https://github.com/pandas-dev/pandas/pull/25327
410,474,280
MDExOlB1bGxSZXF1ZXN0MjUzMjA4NTg1
25,327
#14873: test for groupby.agg coercing booleans
{ "avatar_url": "https://avatars.githubusercontent.com/u/2520893?v=4", "events_url": "https://api.github.com/users/TrigonaMinima/events{/privacy}", "followers_url": "https://api.github.com/users/TrigonaMinima/followers", "following_url": "https://api.github.com/users/TrigonaMinima/following{/other_user}", "gists_url": "https://api.github.com/users/TrigonaMinima/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TrigonaMinima", "id": 2520893, "login": "TrigonaMinima", "node_id": "MDQ6VXNlcjI1MjA4OTM=", "organizations_url": "https://api.github.com/users/TrigonaMinima/orgs", "received_events_url": "https://api.github.com/users/TrigonaMinima/received_events", "repos_url": "https://api.github.com/users/TrigonaMinima/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TrigonaMinima/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TrigonaMinima/subscriptions", "type": "User", "url": "https://api.github.com/users/TrigonaMinima" }
[ { "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": "e102d8", "d...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-02-14T20:17:59Z
2019-02-19T14:35:41Z
2019-02-19T14:11:42Z
CONTRIBUTOR
null
- [x] closes #14873 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The referenced issue seems to be solved in the current master. So added a test for the edge case.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25327/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25327/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25327.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25327", "merged_at": "2019-02-19T14:11:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25327.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25327" }
https://api.github.com/repos/pandas-dev/pandas/issues/25328
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25328/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25328/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25328/events
https://github.com/pandas-dev/pandas/pull/25328
410,557,871
MDExOlB1bGxSZXF1ZXN0MjUzMjc0MzY2
25,328
DOC: Improvement docstring of DataFrame.rank()
{ "avatar_url": "https://avatars.githubusercontent.com/u/29585319?v=4", "events_url": "https://api.github.com/users/EdAbati/events{/privacy}", "followers_url": "https://api.github.com/users/EdAbati/followers", "following_url": "https://api.github.com/users/EdAbati/following{/other_user}", "gists_url": "https://api.github.com/users/EdAbati/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/EdAbati", "id": 29585319, "login": "EdAbati", "node_id": "MDQ6VXNlcjI5NTg1MzE5", "organizations_url": "https://api.github.com/users/EdAbati/orgs", "received_events_url": "https://api.github.com/users/EdAbati/received_events", "repos_url": "https://api.github.com/users/EdAbati/repos", "site_admin": false, "starred_url": "https://api.github.com/users/EdAbati/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/EdAbati/subscriptions", "type": "User", "url": "https://api.github.com/users/EdAbati" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
11
2019-02-15T00:51:58Z
2019-05-06T18:57:01Z
2019-05-06T18:56:50Z
CONTRIBUTOR
null
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` I have made the changes requested in the pull request #23263 This is the output of the docstring validation: ``` 3 Errors found: Parameter "method" description should finish with "." Parameter "na_option" description should finish with "." The first line of the Returns section should contain only the type, unless multiple values are being returned ``` In the previous pull request I have been told that I could ignore these 3 errors. Please let me know if I can further improve the docstring. Thanks a lot
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25328/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25328/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25328.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25328", "merged_at": "2019-05-06T18:56:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25328.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25328" }
https://api.github.com/repos/pandas-dev/pandas/issues/25329
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25329/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25329/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25329/events
https://github.com/pandas-dev/pandas/pull/25329
410,582,355
MDExOlB1bGxSZXF1ZXN0MjUzMjkyNTk0
25,329
REGR: fix TimedeltaIndex sum and datetime subtraction with NaT (#25282, #25317)
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "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": "e11d21", "default": false, "description": "Functiona...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
19
2019-02-15T02:53:40Z
2019-02-20T14:39:53Z
2019-02-20T10:52:02Z
MEMBER
null
closes #25282 closes #25317 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25329/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25329/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25329.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25329", "merged_at": "2019-02-20T10:52:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25329.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25329" }
https://api.github.com/repos/pandas-dev/pandas/issues/25330
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25330/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25330/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25330/events
https://github.com/pandas-dev/pandas/pull/25330
410,603,759
MDExOlB1bGxSZXF1ZXN0MjUzMzA3Mjc0
25,330
MultiIndex Support for DataFrame.pivot
{ "avatar_url": "https://avatars.githubusercontent.com/u/6972290?v=4", "events_url": "https://api.github.com/users/thoo/events{/privacy}", "followers_url": "https://api.github.com/users/thoo/followers", "following_url": "https://api.github.com/users/thoo/following{/other_user}", "gists_url": "https://api.github.com/users/thoo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/thoo", "id": 6972290, "login": "thoo", "node_id": "MDQ6VXNlcjY5NzIyOTA=", "organizations_url": "https://api.github.com/users/thoo/orgs", "received_events_url": "https://api.github.com/users/thoo/received_events", "repos_url": "https://api.github.com/users/thoo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/thoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/thoo/subscriptions", "type": "User", "url": "https://api.github.com/users/thoo" }
[ { "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, ...
closed
false
null
[]
null
10
2019-02-15T04:47:24Z
2019-07-11T16:10:00Z
2019-07-11T16:10:00Z
CONTRIBUTOR
null
- [ ] closes #21425. Related to #21425 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25330/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25330/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25330.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25330", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25330.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25330" }
https://api.github.com/repos/pandas-dev/pandas/issues/25331
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25331/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25331/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25331/events
https://github.com/pandas-dev/pandas/pull/25331
410,604,825
MDExOlB1bGxSZXF1ZXN0MjUzMzA3OTk2
25,331
BUG: Series.__setitem__ with datetimetz data
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "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 s...
closed
false
null
[]
null
1
2019-02-15T04:53:39Z
2019-02-19T06:29:39Z
2019-02-19T06:29:31Z
MEMBER
null
- [x] closes #12862 - [x] closes #20441 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25331/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25331/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25331.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25331", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25331.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25331" }
https://api.github.com/repos/pandas-dev/pandas/issues/25332
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25332/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25332/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25332/events
https://github.com/pandas-dev/pandas/issues/25332
410,709,525
MDU6SXNzdWU0MTA3MDk1MjU=
25,332
MagicMock a pandas DataFrame causes a segfault
{ "avatar_url": "https://avatars.githubusercontent.com/u/38790582?v=4", "events_url": "https://api.github.com/users/roachlord/events{/privacy}", "followers_url": "https://api.github.com/users/roachlord/followers", "following_url": "https://api.github.com/users/roachlord/following{/other_user}", "gists_url": "https://api.github.com/users/roachlord/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/roachlord", "id": 38790582, "login": "roachlord", "node_id": "MDQ6VXNlcjM4NzkwNTgy", "organizations_url": "https://api.github.com/users/roachlord/orgs", "received_events_url": "https://api.github.com/users/roachlord/received_events", "repos_url": "https://api.github.com/users/roachlord/repos", "site_admin": false, "starred_url": "https://api.github.com/users/roachlord/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/roachlord/subscriptions", "type": "User", "url": "https://api.github.com/users/roachlord" }
[ { "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": ...
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" }
5
2019-02-15T10:46:49Z
2019-12-17T02:19:59Z
2019-12-17T02:19:59Z
NONE
null
#### Code Sample ```python import pandas as pd from mock import MagicMock df = pd.DataFrame(0, [[1, 2], [3, 4]], ['col']) df['col'] += MagicMock() ``` #### Problem description I have a function that returns a column of dataframe. I want to mock out this function and test it is called with the correct args. The above code segs outs in 0.24.1 but not in 0.23.4. #### Expected Output Not to seg fault #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-142-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US LOCALE: None.None pandas: 0.24.1 pytest: None pip: 19.0.2 setuptools: 40.8.0 Cython: None numpy: 1.16.1 scipy: 1.2.1 pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: 1.2.17 pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25332/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25332/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25333
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25333/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25333/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25333/events
https://github.com/pandas-dev/pandas/pull/25333
410,805,640
MDExOlB1bGxSZXF1ZXN0MjUzNDU2MDY3
25,333
Doc: corrects spelling in generic.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/1891336?v=4", "events_url": "https://api.github.com/users/jevandezande/events{/privacy}", "followers_url": "https://api.github.com/users/jevandezande/followers", "following_url": "https://api.github.com/users/jevandezande/following{/other_user}", "gists_url": "https://api.github.com/users/jevandezande/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jevandezande", "id": 1891336, "login": "jevandezande", "node_id": "MDQ6VXNlcjE4OTEzMzY=", "organizations_url": "https://api.github.com/users/jevandezande/orgs", "received_events_url": "https://api.github.com/users/jevandezande/received_events", "repos_url": "https://api.github.com/users/jevandezande/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jevandezande/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jevandezande/subscriptions", "type": "User", "url": "https://api.github.com/users/jevandezande" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-02-15T14:56:48Z
2019-02-15T18:43:02Z
2019-02-15T18:42:46Z
CONTRIBUTOR
null
Corrects spelling of capitve to captive. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25333/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25333/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25333.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25333", "merged_at": "2019-02-15T18:42:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25333.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25333" }
https://api.github.com/repos/pandas-dev/pandas/issues/25334
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25334/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25334/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25334/events
https://github.com/pandas-dev/pandas/pull/25334
410,830,300
MDExOlB1bGxSZXF1ZXN0MjUzNDc1MTg1
25,334
TST: Split test_excel.py into sub test files #24472
{ "avatar_url": "https://avatars.githubusercontent.com/u/46458390?v=4", "events_url": "https://api.github.com/users/stevenbw/events{/privacy}", "followers_url": "https://api.github.com/users/stevenbw/followers", "following_url": "https://api.github.com/users/stevenbw/following{/other_user}", "gists_url": "https://api.github.com/users/stevenbw/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stevenbw", "id": 46458390, "login": "stevenbw", "node_id": "MDQ6VXNlcjQ2NDU4Mzkw", "organizations_url": "https://api.github.com/users/stevenbw/orgs", "received_events_url": "https://api.github.com/users/stevenbw/received_events", "repos_url": "https://api.github.com/users/stevenbw/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stevenbw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stevenbw/subscriptions", "type": "User", "url": "https://api.github.com/users/stevenbw" }
[ { "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": "bfe5bf", "d...
closed
false
null
[]
null
11
2019-02-15T15:52:07Z
2019-03-25T23:59:44Z
2019-03-25T23:59:43Z
NONE
null
- [ ] closes #24472 and update to #24749 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry In brief, I have tried to split the quite large `test_excel.py` test file into logical chunks. I have done this by first splitting by reading and writing, and then by engine.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25334/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25334/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25334.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25334", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25334.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25334" }
https://api.github.com/repos/pandas-dev/pandas/issues/25335
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25335/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25335/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25335/events
https://github.com/pandas-dev/pandas/issues/25335
410,833,572
MDU6SXNzdWU0MTA4MzM1NzI=
25,335
np.sum(TimedeltaIndex) should return a Timedelta, not np.timedelta64
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "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, ...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
4
2019-02-15T15:59:16Z
2019-10-08T12:43:11Z
2019-10-08T12:43:11Z
MEMBER
null
ditto TimedeltaArray. xref #25329. I think the relevant method is `__array_ufunc__`, @jorisvandenbossche any idea about this?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25335/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25335/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25336
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25336/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25336/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25336/events
https://github.com/pandas-dev/pandas/issues/25336
410,868,797
MDU6SXNzdWU0MTA4Njg3OTc=
25,336
[BUG?] pd.read_json does not convert date before 1971-01-01
{ "avatar_url": "https://avatars.githubusercontent.com/u/3731173?v=4", "events_url": "https://api.github.com/users/okomarov/events{/privacy}", "followers_url": "https://api.github.com/users/okomarov/followers", "following_url": "https://api.github.com/users/okomarov/following{/other_user}", "gists_url": "https://api.github.com/users/okomarov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/okomarov", "id": 3731173, "login": "okomarov", "node_id": "MDQ6VXNlcjM3MzExNzM=", "organizations_url": "https://api.github.com/users/okomarov/orgs", "received_events_url": "https://api.github.com/users/okomarov/received_events", "repos_url": "https://api.github.com/users/okomarov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/okomarov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/okomarov/subscriptions", "type": "User", "url": "https://api.github.com/users/okomarov" }
[ { "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, ...
open
false
null
[]
null
7
2019-02-15T17:24:03Z
2020-04-01T04:17:59Z
null
NONE
null
#### Code Sample ```python from datetime import datetime import pandas as pd input_before_31536000 = pd.DataFrame([1],index=[datetime(1971, 1, 1)]) input_after_31536000 = pd.DataFrame([1],index=[datetime(1971, 1, 1, 0, 0, 1)]) # Compare before (including) and after 31536000 pd.read_json(input_before_31536000.to_json(date_unit='s'), date_unit='s') pd.read_json(input_after_31536000.to_json(date_unit='s'), date_unit='s') ``` #### Problem description Read json does not convert epoch timestamps before and including 31536000 into dates. We start with the following input: ``` 0 1971-01-01 1 ``` and after a roundtrip encoding/decoding transforms into: ``` 0 31536000 1 ``` Any date after `datetime(1971, 1, 1)` get converted correctly. #### A warkaround I am using epoch timestamps and `orient='split'` to keep the encoding as terse as possible. ISO dates would solve the issue but would take much more space. To keep epoch timestamp here is a manual workaround: ```python import json # Encode series json_str = input_before_31536000[0].to_json(orient='split', date_unit='s') data = json.loads(json_str) # Build DataFrame manually with to_datetime() conversion pd.DataFrame(data['data'], index=pd.to_datetime(data['index'], unit='s'), columns=[data['name']]) ``` #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Darwin OS-release: 18.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: en_GB.UTF-8 pandas: 0.24.0 pytest: None pip: 19.0.1 setuptools: 40.7.3 Cython: None numpy: 1.16.1 scipy: None pyarrow: None xarray: None IPython: 7.2.0 sphinx: None patsy: None dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: 4.3.0 bs4: None html5lib: None sqlalchemy: 1.2.17 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: 0.2.1 pandas_gbq: None pandas_datareader: 0.7.0 gcsfs: None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25336/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25336/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25337
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25337/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25337/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25337/events
https://github.com/pandas-dev/pandas/issues/25337
410,984,916
MDU6SXNzdWU0MTA5ODQ5MTY=
25,337
Fix validation error type `SA04` and check in CI
{ "avatar_url": "https://avatars.githubusercontent.com/u/15032115?v=4", "events_url": "https://api.github.com/users/MarckK/events{/privacy}", "followers_url": "https://api.github.com/users/MarckK/followers", "following_url": "https://api.github.com/users/MarckK/following{/other_user}", "gists_url": "https://api.github.com/users/MarckK/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarckK", "id": 15032115, "login": "MarckK", "node_id": "MDQ6VXNlcjE1MDMyMTE1", "organizations_url": "https://api.github.com/users/MarckK/orgs", "received_events_url": "https://api.github.com/users/MarckK/received_events", "repos_url": "https://api.github.com/users/MarckK/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarckK/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarckK/subscriptions", "type": "User", "url": "https://api.github.com/users/MarckK" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integratio...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
2
2019-02-15T23:14:16Z
2021-07-15T16:08:48Z
null
CONTRIBUTOR
null
#### Problem description In order to have a continuous check by the CI on validation error `SA04` (Missing description for See Also reference), fixing them in the code base enables the addition to the CI for automated testing in the future. Please see [overview of the errors](https://gist.github.com/198cfa552c727d71bd7360fda66fdbb4). Todo: * [ ] get rid of the errors in the code base * [ ] update the `code_check.sh` script to take into account the `SA04` type of errors
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25337/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25337/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25338
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25338/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25338/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25338/events
https://github.com/pandas-dev/pandas/pull/25338
410,993,804
MDExOlB1bGxSZXF1ZXN0MjUzNTk4MjQ4
25,338
Interval dtype fix
{ "avatar_url": "https://avatars.githubusercontent.com/u/42625717?v=4", "events_url": "https://api.github.com/users/zangell44/events{/privacy}", "followers_url": "https://api.github.com/users/zangell44/followers", "following_url": "https://api.github.com/users/zangell44/following{/other_user}", "gists_url": "https://api.github.com/users/zangell44/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zangell44", "id": 42625717, "login": "zangell44", "node_id": "MDQ6VXNlcjQyNjI1NzE3", "organizations_url": "https://api.github.com/users/zangell44/orgs", "received_events_url": "https://api.github.com/users/zangell44/received_events", "repos_url": "https://api.github.com/users/zangell44/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zangell44/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zangell44/subscriptions", "type": "User", "url": "https://api.github.com/users/zangell44" }
[ { "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": "009...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
8
2019-02-15T23:53:58Z
2019-02-20T04:00:57Z
2019-02-20T03:51:05Z
CONTRIBUTOR
null
- [x] closes #25283 - [x] test added to ensure pd.api.types.IntervalDtype('IntervalA') throws TypeError - [x] test added to ensure pd.api.types.IntervalDtype.construct_from_string('IntervalA') throws TypeError - [x] test added to ensure pd.api.types.IntervalDtype.is_dtype('IntervalA') returns false - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] test added to ensure * `Series(['IntervalA', 'IntervalB', 'IntervalC']) == 'IntervalA'` returns the expected boolean series - [x] what's new note added to doc/source/whatsnew/v0.24.2.rst documenting regression fix
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25338/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25338/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25338.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25338", "merged_at": "2019-02-20T03:51:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25338.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25338" }
https://api.github.com/repos/pandas-dev/pandas/issues/25339
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25339/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25339/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25339/events
https://github.com/pandas-dev/pandas/pull/25339
411,027,583
MDExOlB1bGxSZXF1ZXN0MjUzNjIwMTA5
25,339
ENH: .to_latex(longtable=True) latex caption and label support
{ "avatar_url": "https://avatars.githubusercontent.com/u/36767735?v=4", "events_url": "https://api.github.com/users/jeschwar/events{/privacy}", "followers_url": "https://api.github.com/users/jeschwar/followers", "following_url": "https://api.github.com/users/jeschwar/following{/other_user}", "gists_url": "https://api.github.com/users/jeschwar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jeschwar", "id": 36767735, "login": "jeschwar", "node_id": "MDQ6VXNlcjM2NzY3NzM1", "organizations_url": "https://api.github.com/users/jeschwar/orgs", "received_events_url": "https://api.github.com/users/jeschwar/received_events", "repos_url": "https://api.github.com/users/jeschwar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jeschwar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeschwar/subscriptions", "type": "User", "url": "https://api.github.com/users/jeschwar" }
[ { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
null
5
2019-02-16T04:50:20Z
2019-02-25T05:23:38Z
2019-02-25T04:35:48Z
CONTRIBUTOR
null
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry When creating a latex table with `DataFrame.to_latex(longtable=False)` the output is written inside a latex `tabular` environment and stored in some file like `pandas_tabular.tex`; the user can conveniently typeset the table in a main `report.tex` file complete with caption and label as follows: ```tex \begin{table} \caption{the caption} \label{the label} \input{pandas_tabular.tex} \end{table} ``` This is good because the `pandas_tabular.tex` file can be re-created and the main `report.tex` simply needs to be recompiled to get the updated output. The problem when creating a latex [longtable](https://ctan.org/pkg/longtable) with `DataFrame.to_latex(longtable=True)` is the caption and label need to go inside the latex `longtable` environment which is stored in a some file like `pandas_longtable.tex`. The latex `longtable` environment does not go inside a `table` environment like the `tabular` environment does; this means that setting the caption and label requires the user to edit the `pandas_longtable.tex` file after its creation. This does not support an automated workflow like we have with the `tabular` environment. **This PR adds caption and label support to `DataFrame.to_latex(longtable=True)` with the arguments `lt_caption` and `lt_label`. Example usage is described below.** The following python code creates some data in a `DataFrame` and writes it to disk in `tabular` and `longtable` latex environments: ```python import numpy as np import pandas as pd # create some example data with more rows than would fit on a single page df = pd.DataFrame(np.random.randn(60,3)) # write the first 5 rows to regular table in a latex tabular environment df.head().to_latex( 'pandas_tabular.tex', ) # write the whole table in the latex longtable environment c/w caption and label df.to_latex( 'pandas_longtable.tex', longtable=True, lt_caption='table in \\texttt{longtable} environment', lt_label='tab:longtable', ) ``` The following latex code is contained in a main `report.tex` and is used to typset both tables: ```tex \documentclass{article} \usepackage{longtable} \usepackage{booktabs} \begin{document} % typeset the table in the tabular environment Table \ref{tab:tabular} is a \texttt{tabular} and has 5 rows: \begin{table}[h] \centering \caption{table in \texttt{tabular} environment} \label{tab:tabular} \input{pandas_tabular.tex} \end{table} % typeset the table in the longtable environment Table \ref{tab:longtable} is a \texttt{longtable} and has 60 rows: \input{pandas_longtable.tex} \end{document} ``` Using `DataFrame.to_latex(longtable=True)` with the new arguments `lt_caption` and `lt_label` means we don't have to edit `pandas_longtable.tex` after its creation to get the caption and label working. This functionality also works with `Series.to_latex(longtable=True)`. PDF output is shown below: ![image](https://user-images.githubusercontent.com/36767735/52894669-0cf2a100-316b-11e9-8003-54298d8982cb.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/25339/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25339/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25339.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25339", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25339.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25339" }
https://api.github.com/repos/pandas-dev/pandas/issues/25340
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25340/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25340/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25340/events
https://github.com/pandas-dev/pandas/pull/25340
411,064,491
MDExOlB1bGxSZXF1ZXN0MjUzNjM3NTk1
25,340
CLN: Excel Module Cleanups pandas-dev #25271
{ "avatar_url": "https://avatars.githubusercontent.com/u/25238852?v=4", "events_url": "https://api.github.com/users/theoseo/events{/privacy}", "followers_url": "https://api.github.com/users/theoseo/followers", "following_url": "https://api.github.com/users/theoseo/following{/other_user}", "gists_url": "https://api.github.com/users/theoseo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/theoseo", "id": 25238852, "login": "theoseo", "node_id": "MDQ6VXNlcjI1MjM4ODUy", "organizations_url": "https://api.github.com/users/theoseo/orgs", "received_events_url": "https://api.github.com/users/theoseo/received_events", "repos_url": "https://api.github.com/users/theoseo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/theoseo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/theoseo/subscriptions", "type": "User", "url": "https://api.github.com/users/theoseo" }
[ { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
null
[]
null
4
2019-02-16T11:39:27Z
2019-02-16T16:38:49Z
2019-02-16T16:38:44Z
NONE
null
- [X] closes #25271 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25340/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25340/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25340.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25340", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25340.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25340" }
https://api.github.com/repos/pandas-dev/pandas/issues/25341
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25341/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25341/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25341/events
https://github.com/pandas-dev/pandas/issues/25341
411,086,384
MDU6SXNzdWU0MTEwODYzODQ=
25,341
BUG: import error with python>=3.6.x since 0.23.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/14131823?v=4", "events_url": "https://api.github.com/users/minggli/events{/privacy}", "followers_url": "https://api.github.com/users/minggli/followers", "following_url": "https://api.github.com/users/minggli/following{/other_user}", "gists_url": "https://api.github.com/users/minggli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/minggli", "id": 14131823, "login": "minggli", "node_id": "MDQ6VXNlcjE0MTMxODIz", "organizations_url": "https://api.github.com/users/minggli/orgs", "received_events_url": "https://api.github.com/users/minggli/received_events", "repos_url": "https://api.github.com/users/minggli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/minggli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/minggli/subscriptions", "type": "User", "url": "https://api.github.com/users/minggli" }
[]
closed
false
null
[]
null
2
2019-02-16T16:11:27Z
2021-05-18T22:25:46Z
2019-02-16T17:34:05Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import sys print(sys.version) import pandas as pd ``` #### Problem description It appears to work fine on python 3.5.5 but not on 3.6.5 or 3.7.0 ```python 3.7.0 (default, Jul 6 2018, 14:29:43) [Clang 9.0.0 (clang-900.0.39.2)] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mingli/.virtualenvs/test/lib/python3.7/site-packages/pandas/__init__.py", line 23, in <module> from pandas.compat.numpy import * File "/Users/mingli/.virtualenvs/test/lib/python3.7/site-packages/pandas/compat/__init__.py", line 447, in <module> re_type = typing.re.Pattern AttributeError: module 'typing' has no attribute 're' ``` #### Expected Output ```python 3.7.0 (default, Jul 6 2018, 14:29:43) [Clang 9.0.0 (clang-900.0.39.2)] ``` #### Output of ``pd.show_versions()``
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25341/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25341/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25342
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25342/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25342/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25342/events
https://github.com/pandas-dev/pandas/pull/25342
411,088,344
MDExOlB1bGxSZXF1ZXN0MjUzNjUyNTUz
25,342
Backport PR #25264 on branch 0.24.x (BUG: groupby.transform retains timezone information)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "5319e7", "default": false, "description": "Timezone data d...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
2
2019-02-16T16:32:35Z
2019-02-16T17:28:38Z
2019-02-16T17:28:04Z
NONE
null
Backport PR #25264: BUG: groupby.transform retains timezone information
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25342/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25342/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25342.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25342", "merged_at": "2019-02-16T17:28:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25342.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25342" }
https://api.github.com/repos/pandas-dev/pandas/issues/25343
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25343/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25343/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25343/events
https://github.com/pandas-dev/pandas/pull/25343
411,088,536
MDExOlB1bGxSZXF1ZXN0MjUzNjUyNjY2
25,343
Backport PR #25088 on branch 0.24.x (Fixes Formatting Exception)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
2
2019-02-16T16:34:59Z
2019-02-16T17:59:38Z
2019-02-16T17:57:13Z
NONE
null
Backport PR #25088: Fixes Formatting Exception
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25343/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25343/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25343.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25343", "merged_at": "2019-02-16T17:57:13Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25343.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25343" }
https://api.github.com/repos/pandas-dev/pandas/issues/25344
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25344/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25344/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25344/events
https://github.com/pandas-dev/pandas/pull/25344
411,100,809
MDExOlB1bGxSZXF1ZXN0MjUzNjYwNTM3
25,344
Backport PR #25304 on branch 0.24.x (BUG: Fix passing of numeric_only argument for categorical reduce)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "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": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
2
2019-02-16T18:50:01Z
2019-02-16T19:52:38Z
2019-02-16T19:52:37Z
NONE
null
Backport PR #25304: BUG: Fix passing of numeric_only argument for categorical reduce
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25344/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25344/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25344.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25344", "merged_at": "2019-02-16T19:52:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25344.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25344" }
https://api.github.com/repos/pandas-dev/pandas/issues/25345
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25345/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25345/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25345/events
https://github.com/pandas-dev/pandas/issues/25345
411,102,375
MDU6SXNzdWU0MTExMDIzNzU=
25,345
Argument 'fastpath' in 'Categorical' not documented
{ "avatar_url": "https://avatars.githubusercontent.com/u/11860098?v=4", "events_url": "https://api.github.com/users/david-cortes/events{/privacy}", "followers_url": "https://api.github.com/users/david-cortes/followers", "following_url": "https://api.github.com/users/david-cortes/following{/other_user}", "gists_url": "https://api.github.com/users/david-cortes/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/david-cortes", "id": 11860098, "login": "david-cortes", "node_id": "MDQ6VXNlcjExODYwMDk4", "organizations_url": "https://api.github.com/users/david-cortes/orgs", "received_events_url": "https://api.github.com/users/david-cortes/received_events", "repos_url": "https://api.github.com/users/david-cortes/repos", "site_admin": false, "starred_url": "https://api.github.com/users/david-cortes/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/david-cortes/subscriptions", "type": "User", "url": "https://api.github.com/users/david-cortes" }
[ { "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
[]
null
2
2019-02-16T19:07:46Z
2019-07-02T12:22:21Z
2019-02-16T19:39:11Z
CONTRIBUTOR
null
In documentaion for `pandas.Categorical`: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Categorical.html Argument `fastpath` which can be passed to the class constructor is not documented on the docstring: https://github.com/pandas-dev/pandas/blob/master/pandas/core/arrays/categorical.py
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25345/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25345/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25346
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25346/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25346/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25346/events
https://github.com/pandas-dev/pandas/pull/25346
411,104,148
MDExOlB1bGxSZXF1ZXN0MjUzNjYyNjQ0
25,346
TST: use a fixed seed to have the same uniques across python versions
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "207de5", "d...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
3
2019-02-16T19:24:34Z
2019-03-11T16:50:51Z
2019-02-16T20:41:05Z
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/25346/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25346/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25346.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25346", "merged_at": "2019-02-16T20:41:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25346.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25346" }
https://api.github.com/repos/pandas-dev/pandas/issues/25347
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25347/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25347/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25347/events
https://github.com/pandas-dev/pandas/issues/25347
411,128,955
MDU6SXNzdWU0MTExMjg5NTU=
25,347
API: ExtensionArray "serialize" and "from_serialized" methods for defining roundtripping behavior
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" }, {...
open
false
null
[]
null
6
2019-02-16T23:53:37Z
2020-09-22T03:20:28Z
null
MEMBER
null
xref https://github.com/pandas-dev/pandas/pull/25308#discussion_r257468179 When EAs go through cython routines, they need to be converted to numpy arrays (and dtypes) first and then recast to the correct EA. This recast may require specific logic. For example, `DatetimeTZDtype`s need to be localized to UTC first before applying the dtype. The proposal is for (optional) internal `_serialize` and `_from_serialized` methods that defines specific recasting logic for the EA. @jreback proposed something like: ``` serialized, dtype = EA._serialize() original = EA._from_serialize(serialized, dtype) ``` Thoughts @jorisvandenbossche @TomAugspurger @jbrockmendel
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25347/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25347/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25348
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25348/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25348/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25348/events
https://github.com/pandas-dev/pandas/issues/25348
411,143,020
MDU6SXNzdWU0MTExNDMwMjA=
25,348
[SOLVED - NOT BUG] DataFrame.rename method changing the datetime format.
{ "avatar_url": "https://avatars.githubusercontent.com/u/25715921?v=4", "events_url": "https://api.github.com/users/rickymal/events{/privacy}", "followers_url": "https://api.github.com/users/rickymal/followers", "following_url": "https://api.github.com/users/rickymal/following{/other_user}", "gists_url": "https://api.github.com/users/rickymal/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rickymal", "id": 25715921, "login": "rickymal", "node_id": "MDQ6VXNlcjI1NzE1OTIx", "organizations_url": "https://api.github.com/users/rickymal/orgs", "received_events_url": "https://api.github.com/users/rickymal/received_events", "repos_url": "https://api.github.com/users/rickymal/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rickymal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rickymal/subscriptions", "type": "User", "url": "https://api.github.com/users/rickymal" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
4
2019-02-17T03:24:50Z
2019-02-18T13:29:01Z
2019-02-18T05:51:34Z
NONE
null
The Rename Method from DataFrame convert de datetime format in the original form. I have a datetime in the format %Y-%m-%d in a DataFrame. Before I use de rename method this DataFrame change the format to %Y-%m-%d 00:00:00. This is a Bug? isn't correct rename the index too. I think that this method should only rename de columns that i put A Example: ![image](https://user-images.githubusercontent.com/25715921/52919335-3b45bd00-32e0-11e9-8417-f5adbabb4919.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/25348/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25348/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25349
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25349/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25349/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25349/events
https://github.com/pandas-dev/pandas/issues/25349
411,182,952
MDU6SXNzdWU0MTExODI5NTI=
25,349
pd.concat does not work correctly
{ "avatar_url": "https://avatars.githubusercontent.com/u/17707763?v=4", "events_url": "https://api.github.com/users/Mark531/events{/privacy}", "followers_url": "https://api.github.com/users/Mark531/followers", "following_url": "https://api.github.com/users/Mark531/following{/other_user}", "gists_url": "https://api.github.com/users/Mark531/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Mark531", "id": 17707763, "login": "Mark531", "node_id": "MDQ6VXNlcjE3NzA3NzYz", "organizations_url": "https://api.github.com/users/Mark531/orgs", "received_events_url": "https://api.github.com/users/Mark531/received_events", "repos_url": "https://api.github.com/users/Mark531/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Mark531/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Mark531/subscriptions", "type": "User", "url": "https://api.github.com/users/Mark531" }
[]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
6
2019-02-17T12:35:23Z
2020-07-14T14:48:29Z
2019-02-17T12:54:54Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python df1.shape # (21141, 59) df2.shape # (21141, 6) result = pd.concat([df1, df2], axis=1, ignore_index=True) result.shape # (42282, 65) ``` #### Problem description I have 2 dataframes that I try to concatenate horizontally. The method concat doesn't work: it returns a dataframe with a wrong dimension. Moreover, all column names happen to be changed to numbers going from 0 to 64... The dataframes are created from a dataset that is a bit big so I cannot reproduce the creation code here but I can provide you with more details by e-mail. #### Expected Output The right dimension should be (21141, 65) and the resulting columns should be just the concatenation of df1's columns and df2's columns. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.4.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: fr LOCALE: None.None pandas: 0.22.0 pytest: 3.3.2 pip: 18.0 setuptools: 39.0.1 Cython: 0.27.3 numpy: 1.14.2 scipy: 1.0.0 pyarrow: None xarray: None IPython: 6.2.1 sphinx: 1.6.6 patsy: 0.5.0 dateutil: 2.6.1 pytz: 2017.3 blosc: None bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.4 feather: None matplotlib: 2.1.2 openpyxl: 2.4.10 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml: 4.1.1 bs4: 4.6.0 html5lib: 1.0.1 sqlalchemy: 1.2.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25349/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25349/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25350
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25350/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25350/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25350/events
https://github.com/pandas-dev/pandas/pull/25350
411,192,339
MDExOlB1bGxSZXF1ZXN0MjUzNzE0MzQ3
25,350
DOC: Fixing SA04 errors as per #25337
{ "avatar_url": "https://avatars.githubusercontent.com/u/37672187?v=4", "events_url": "https://api.github.com/users/Sedosa/events{/privacy}", "followers_url": "https://api.github.com/users/Sedosa/followers", "following_url": "https://api.github.com/users/Sedosa/following{/other_user}", "gists_url": "https://api.github.com/users/Sedosa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Sedosa", "id": 37672187, "login": "Sedosa", "node_id": "MDQ6VXNlcjM3NjcyMTg3", "organizations_url": "https://api.github.com/users/Sedosa/orgs", "received_events_url": "https://api.github.com/users/Sedosa/received_events", "repos_url": "https://api.github.com/users/Sedosa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Sedosa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Sedosa/subscriptions", "type": "User", "url": "https://api.github.com/users/Sedosa" }
[]
closed
false
null
[]
null
1
2019-02-17T14:18:11Z
2019-02-17T15:04:30Z
2019-02-17T15:04:30Z
CONTRIBUTOR
null
- [ ] Went through every file and filled in missing references in See Also section - [ ] Updated code_check.sh to reflect it. To do this I went through every file and corrected the SA04 errors. When executing "validation_docstring.py" as per the "Pandas documentation validation errors" page, SA04 errors were still appearing but I haven't been able to locate them. Assistance may be required.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25350/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25350/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25350.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25350", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25350.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25350" }
https://api.github.com/repos/pandas-dev/pandas/issues/25351
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25351/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25351/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25351/events
https://github.com/pandas-dev/pandas/issues/25351
411,196,383
MDU6SXNzdWU0MTExOTYzODM=
25,351
ERR: excel styler tests failing recently
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "bfe5bf", "d...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
6
2019-02-17T15:00:26Z
2021-10-19T00:44:23Z
2021-10-19T00:44:23Z
CONTRIBUTOR
null
https://travis-ci.org/pandas-dev/pandas/jobs/494493327 xref @jnothman
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25351/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25351/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25352
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25352/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25352/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25352/events
https://github.com/pandas-dev/pandas/pull/25352
411,196,563
MDExOlB1bGxSZXF1ZXN0MjUzNzE2OTQz
25,352
TST: xfail excel styler tests, xref GH25351
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "bfe5bf", "d...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
2
2019-02-17T15:02:02Z
2019-02-17T17:29:52Z
2019-02-17T17:27:07Z
CONTRIBUTOR
null
xref #25351
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25352/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25352/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25352.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25352", "merged_at": "2019-02-17T17:27:07Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25352.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25352" }
https://api.github.com/repos/pandas-dev/pandas/issues/25353
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25353/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25353/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25353/events
https://github.com/pandas-dev/pandas/issues/25353
411,196,676
MDU6SXNzdWU0MTExOTY2NzY=
25,353
astype(str) / astype_unicode: np.nan converted to "nan" (checknull, skipna)
{ "avatar_url": "https://avatars.githubusercontent.com/u/40694343?v=4", "events_url": "https://api.github.com/users/ThibTrip/events{/privacy}", "followers_url": "https://api.github.com/users/ThibTrip/followers", "following_url": "https://api.github.com/users/ThibTrip/following{/other_user}", "gists_url": "https://api.github.com/users/ThibTrip/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ThibTrip", "id": 40694343, "login": "ThibTrip", "node_id": "MDQ6VXNlcjQwNjk0MzQz", "organizations_url": "https://api.github.com/users/ThibTrip/orgs", "received_events_url": "https://api.github.com/users/ThibTrip/received_events", "repos_url": "https://api.github.com/users/ThibTrip/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ThibTrip/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ThibTrip/subscriptions", "type": "User", "url": "https://api.github.com/users/ThibTrip" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, d...
open
false
null
[]
null
10
2019-02-17T15:03:15Z
2021-05-07T19:42:55Z
null
CONTRIBUTOR
null
#### Code Sample ```python >>> import pandas as pd >>> import numpy as np >>> pd.Series(["foo",np.nan]).astype(str) ``` #### Output 0 foo 1 nan # nan string dtype: object #### Expected output 0 foo 1 NaN # np.nan dtype: object #### Problem description Upon converting this Series I would expect np.nan to remain np.nan but instead it is casted to string "nan". Maybe I'm alone in this and you'd actually expect that (I can't see a realistic use case for these string "nan" but well...). So I could figure out than upon using the code sample the Series' values are processed through astype_unicode in pandas._libs.lib. There is a skipna argument in astype_unicode and I thought it would get passed along when using pd.Series.astype(str,skipna = True) but it does not. The docstring of pd.Series.astype does not mention skipna explicitely but mentions kwargs so I tried doing this while printing skipna in astype_unicode: ``` pd.Series(["foo",np.nan]).astype(str, skipna = True) ``` Skipna stayed to the default value False in astype_unicode so it does not get passed along. However when using astype_unicode directly setting skipna to True will not change the output of the the code sample anyways because **checknull** does not seem to work properly. You can test that by printing the result of checknull in lib.pyx as I did here: https://github.com/ThibTrip/pandas/commit/4a5c8397304e3026456d864fd5aeb7b8b9adca5f #### Input ```python >>> from pandas._lib.lib import astype_unicode >>> import numpy as np >>> astype_unicode(np.array(["foo",np.nan])) ``` #### Output ``` foo is null? False nan is null? False array(['foo', 'nan'], dtype=object) ``` #### Expected output ``` foo is null? False nan is null? True array(['foo', NaN], dtype=object) ``` I tried patching it (so not a proper fix) using the code below but it din't work. Also would be nice to be able to do pd.Series.astype(str,skipna = True). Whether skipna should then be True or False as default is another matter. ``` >>> if not (skipna and checknull(arr_i)): >>> if arr_i is not np.nan: >>> arr_i = unicode(arr_i) ``` All of this was done in a developper version I installed today (see details below). The only alteration is the code in my commit linked above. Sorry if this has been referenced before I searched in various ways and could not find anything except a similar issue with pd.read_excel and dtype str: https://github.com/nikoskaragiannakis/pandas/commit/694849da2654d832d5717adabf3fe4e1d5489d43 Also very sorry for the mess with the commits I got a bit confused during my investigation (also I did not get enough sleep). Is it possible to delete all but my last commit? The other ones are irrelevant. Cheers Thibault <details> INSTALLED VERSIONS ------------------ commit: 4a5c8397304e3026456d864fd5aeb7b8b9adca5f python: 3.7.2.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.25.0.dev0+132.g4a5c83973.dirty pytest: 4.2.0 pip: 19.0.1 setuptools: 40.7.3 Cython: 0.29.5 numpy: 1.15.4 scipy: 1.2.0 pyarrow: 0.11.1 xarray: 0.11.0 IPython: 7.2.0 sphinx: 1.8.4 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.2 openpyxl: 2.6.0 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml.etree: 4.3.1 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.2.17 pymysql: None psycopg2: None jinja2: 2.10 s3fs: 0.2.0 fastparquet: 0.2.1 pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+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/25353/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25353/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25354
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25354/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25354/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25354/events
https://github.com/pandas-dev/pandas/pull/25354
411,197,226
MDExOlB1bGxSZXF1ZXN0MjUzNzE3MzI5
25,354
DOC: Fixing SA04 errors as per #25337
{ "avatar_url": "https://avatars.githubusercontent.com/u/37672187?v=4", "events_url": "https://api.github.com/users/Sedosa/events{/privacy}", "followers_url": "https://api.github.com/users/Sedosa/followers", "following_url": "https://api.github.com/users/Sedosa/following{/other_user}", "gists_url": "https://api.github.com/users/Sedosa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Sedosa", "id": 37672187, "login": "Sedosa", "node_id": "MDQ6VXNlcjM3NjcyMTg3", "organizations_url": "https://api.github.com/users/Sedosa/orgs", "received_events_url": "https://api.github.com/users/Sedosa/received_events", "repos_url": "https://api.github.com/users/Sedosa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Sedosa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Sedosa/subscriptions", "type": "User", "url": "https://api.github.com/users/Sedosa" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integratio...
closed
false
null
[]
null
9
2019-02-17T15:08:34Z
2019-03-19T04:18:16Z
2019-03-19T04:18:16Z
CONTRIBUTOR
null
- [x] closes #25337 - [x] Updated code_checks.sh Went through every file and included "See Also" reference, PEP8 compliant. According to the "validate_docstring.py" script the were SA04 errors but having checked every file I have been unable to locate them. Assistance may be required. Implemented feedback from original pull request. Updated code_checks.sh to reflect changes.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25354/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25354/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25354.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25354", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25354.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25354" }
https://api.github.com/repos/pandas-dev/pandas/issues/25355
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25355/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25355/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25355/events
https://github.com/pandas-dev/pandas/pull/25355
411,222,438
MDExOlB1bGxSZXF1ZXN0MjUzNzMyMTIy
25,355
CLN: Parmeterize test cases
{ "avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4", "events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}", "followers_url": "https://api.github.com/users/alimcmaster1/followers", "following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}", "gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alimcmaster1", "id": 16733618, "login": "alimcmaster1", "node_id": "MDQ6VXNlcjE2NzMzNjE4", "organizations_url": "https://api.github.com/users/alimcmaster1/orgs", "received_events_url": "https://api.github.com/users/alimcmaster1/received_events", "repos_url": "https://api.github.com/users/alimcmaster1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions", "type": "User", "url": "https://api.github.com/users/alimcmaster1" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "C4A000", "default": false, "de...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
7
2019-02-17T19:04:46Z
2019-03-09T02:03:01Z
2019-03-09T02:02:56Z
CONTRIBUTOR
null
- [x] xref #22624 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25355/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25355/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25355.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25355", "merged_at": "2019-03-09T02:02:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25355.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25355" }
https://api.github.com/repos/pandas-dev/pandas/issues/25356
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25356/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25356/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25356/events
https://github.com/pandas-dev/pandas/issues/25356
411,239,866
MDU6SXNzdWU0MTEyMzk4NjY=
25,356
Fix validation error type `RT01` and check in CI
{ "avatar_url": "https://avatars.githubusercontent.com/u/15032115?v=4", "events_url": "https://api.github.com/users/MarckK/events{/privacy}", "followers_url": "https://api.github.com/users/MarckK/followers", "following_url": "https://api.github.com/users/MarckK/following{/other_user}", "gists_url": "https://api.github.com/users/MarckK/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarckK", "id": 15032115, "login": "MarckK", "node_id": "MDQ6VXNlcjE1MDMyMTE1", "organizations_url": "https://api.github.com/users/MarckK/orgs", "received_events_url": "https://api.github.com/users/MarckK/received_events", "repos_url": "https://api.github.com/users/MarckK/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarckK/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarckK/subscriptions", "type": "User", "url": "https://api.github.com/users/MarckK" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integratio...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-02-17T21:53:13Z
2019-05-08T03:57:09Z
2019-05-08T03:57:09Z
CONTRIBUTOR
null
#### Problem description In order to have a continuous check by the CI on validation error `RT01` (No Returns section found), fixing them in the code base enables the addition to the CI for automated testing in the future. Please see [overview of the errors](https://gist.github.com/198cfa552c727d71bd7360fda66fdbb4). Todo: * [ ] get rid of the errors in the code base * [ ] update the `code_check.sh` script to take into account the `RT01` type of errors
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25356/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25356/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25357
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25357/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25357/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25357/events
https://github.com/pandas-dev/pandas/issues/25357
411,245,654
MDU6SXNzdWU0MTEyNDU2NTQ=
25,357
DataFrame.dropna() fill Data and interpolating. Why?
{ "avatar_url": "https://avatars.githubusercontent.com/u/25715921?v=4", "events_url": "https://api.github.com/users/rickymal/events{/privacy}", "followers_url": "https://api.github.com/users/rickymal/followers", "following_url": "https://api.github.com/users/rickymal/following{/other_user}", "gists_url": "https://api.github.com/users/rickymal/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rickymal", "id": 25715921, "login": "rickymal", "node_id": "MDQ6VXNlcjI1NzE1OTIx", "organizations_url": "https://api.github.com/users/rickymal/orgs", "received_events_url": "https://api.github.com/users/rickymal/received_events", "repos_url": "https://api.github.com/users/rickymal/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rickymal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rickymal/subscriptions", "type": "User", "url": "https://api.github.com/users/rickymal" }
[ { "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": "207de5"...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
5
2019-02-17T22:47:29Z
2019-03-04T13:47:16Z
2019-03-04T13:47:11Z
NONE
null
As we can see, the dropna() Method drop rows with value and add value from NaN rows. I don't undestood why. between 1990-04 and 1990-08 u can see that we have value. But the dropna Method drop theses rows, and they are float64 value. And the dropna() method fill 1990-09 and 1990-10 with value that didn't exist. ![image](https://user-images.githubusercontent.com/25715921/52920577-ba40f280-32ec-11e9-8f09-2eb89553d3ba.png) When I plot de graphic, The original Looks Like: ![image](https://user-images.githubusercontent.com/25715921/52920801-84513d80-32ef-11e9-89cb-ee2e38cab074.png) but when I use dropna: ![image](https://user-images.githubusercontent.com/25715921/52920882-35f06e80-32f0-11e9-9118-6bc7bd1b0e7f.png) EDIT: The output.show_versions: ![image](https://user-images.githubusercontent.com/25715921/53060095-fe242b00-3497-11e9-9564-1bc3fa33545c.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/25357/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25357/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25358
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25358/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25358/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25358/events
https://github.com/pandas-dev/pandas/pull/25358
411,358,497
MDExOlB1bGxSZXF1ZXN0MjUzODI1Mjc5
25,358
DOC: Fix #24268 by updating description for keep in Series.nlargest
{ "avatar_url": "https://avatars.githubusercontent.com/u/13381361?v=4", "events_url": "https://api.github.com/users/Bharat123rox/events{/privacy}", "followers_url": "https://api.github.com/users/Bharat123rox/followers", "following_url": "https://api.github.com/users/Bharat123rox/following{/other_user}", "gists_url": "https://api.github.com/users/Bharat123rox/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Bharat123rox", "id": 13381361, "login": "Bharat123rox", "node_id": "MDQ6VXNlcjEzMzgxMzYx", "organizations_url": "https://api.github.com/users/Bharat123rox/orgs", "received_events_url": "https://api.github.com/users/Bharat123rox/received_events", "repos_url": "https://api.github.com/users/Bharat123rox/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Bharat123rox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bharat123rox/subscriptions", "type": "User", "url": "https://api.github.com/users/Bharat123rox" }
[ { "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": "eb6420", "default": false, "description": "Non-arithmetic algos:...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-02-18T08:38:09Z
2019-03-05T03:07:09Z
2019-03-05T03:07:09Z
CONTRIBUTOR
null
Fix #24268 by updating the description of `keep` in Series.nlargest - [x] closes #24268 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25358/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25358/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25358.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25358", "merged_at": "2019-03-05T03:07:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25358.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25358" }
https://api.github.com/repos/pandas-dev/pandas/issues/25359
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25359/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25359/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25359/events
https://github.com/pandas-dev/pandas/issues/25359
411,400,158
MDU6SXNzdWU0MTE0MDAxNTg=
25,359
general dataframe combine doc
{ "avatar_url": "https://avatars.githubusercontent.com/u/11853824?v=4", "events_url": "https://api.github.com/users/wangfengming/events{/privacy}", "followers_url": "https://api.github.com/users/wangfengming/followers", "following_url": "https://api.github.com/users/wangfengming/following{/other_user}", "gists_url": "https://api.github.com/users/wangfengming/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wangfengming", "id": 11853824, "login": "wangfengming", "node_id": "MDQ6VXNlcjExODUzODI0", "organizations_url": "https://api.github.com/users/wangfengming/orgs", "received_events_url": "https://api.github.com/users/wangfengming/received_events", "repos_url": "https://api.github.com/users/wangfengming/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wangfengming/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wangfengming/subscriptions", "type": "User", "url": "https://api.github.com/users/wangfengming" }
[ { "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, ...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
1
2019-02-18T10:17:07Z
2019-02-18T13:29:56Z
2019-02-18T13:29:56Z
NONE
null
#### Problem description https://github.com/pandas-dev/pandas/blob/master/doc/source/getting_started/basics.rst#general-dataframe-combine ```python def combiner(x, y): np.where(pd.isna(x), y, x) df1.combine(df2, combiner) ``` the code above should be: ```python def combiner(x, y): return np.where(pd.isna(x), y, x) df1.combine(df2, combiner) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25359/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25359/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25360
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25360/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25360/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25360/events
https://github.com/pandas-dev/pandas/pull/25360
411,404,955
MDExOlB1bGxSZXF1ZXN0MjUzODYwNjA4
25,360
DOC: Correct doc mistake in combiner func
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "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, ...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
3
2019-02-18T10:27:49Z
2019-02-18T19:00:44Z
2019-02-18T13:29:56Z
MEMBER
null
Closes #25359.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25360/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25360/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25360.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25360", "merged_at": "2019-02-18T13:29:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25360.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25360" }
https://api.github.com/repos/pandas-dev/pandas/issues/25361
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25361/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25361/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25361/events
https://github.com/pandas-dev/pandas/pull/25361
411,476,544
MDExOlB1bGxSZXF1ZXN0MjUzOTE2MTQy
25,361
Backport PR #25360 on branch 0.24.x (DOC: Correct doc mistake in combiner func)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "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, ...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
0
2019-02-18T13:30:26Z
2019-02-18T18:38:29Z
2019-02-18T13:34:29Z
NONE
null
Backport PR #25360: DOC: Correct doc mistake in combiner func
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25361/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25361/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25361.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25361", "merged_at": "2019-02-18T13:34:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25361.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25361" }
https://api.github.com/repos/pandas-dev/pandas/issues/25362
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25362/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25362/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25362/events
https://github.com/pandas-dev/pandas/pull/25362
411,498,159
MDExOlB1bGxSZXF1ZXN0MjUzOTMyOTcz
25,362
DOC: Fixing SS02 errors as per #25113
{ "avatar_url": "https://avatars.githubusercontent.com/u/24843773?v=4", "events_url": "https://api.github.com/users/souvik3333/events{/privacy}", "followers_url": "https://api.github.com/users/souvik3333/followers", "following_url": "https://api.github.com/users/souvik3333/following{/other_user}", "gists_url": "https://api.github.com/users/souvik3333/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/souvik3333", "id": 24843773, "login": "souvik3333", "node_id": "MDQ6VXNlcjI0ODQzNzcz", "organizations_url": "https://api.github.com/users/souvik3333/orgs", "received_events_url": "https://api.github.com/users/souvik3333/received_events", "repos_url": "https://api.github.com/users/souvik3333/repos", "site_admin": false, "starred_url": "https://api.github.com/users/souvik3333/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/souvik3333/subscriptions", "type": "User", "url": "https://api.github.com/users/souvik3333" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integratio...
closed
false
null
[]
null
20
2019-02-18T14:20:49Z
2019-03-19T04:17:10Z
2019-03-19T04:17:10Z
CONTRIBUTOR
null
Some of the SS02 error mentioned are not because of methods but of docstring. For example, in the first SS02 error pandas/tseries/offsets.py has no method named normalize. - [X] Closes #25113 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25362/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25362/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25362.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25362", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25362.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25362" }
https://api.github.com/repos/pandas-dev/pandas/issues/25363
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25363/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25363/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25363/events
https://github.com/pandas-dev/pandas/pull/25363
411,525,152
MDExOlB1bGxSZXF1ZXN0MjUzOTUzMDE2
25,363
Backport PR #25352: TST: xfail excel styler tests, xref GH25351
{ "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": "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": "bfe5bf", "d...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
4
2019-02-18T15:17:54Z
2019-02-19T08:44:49Z
2019-02-19T08:44:04Z
MEMBER
null
Backports https://github.com/pandas-dev/pandas/pull/25352, as the excel tests are also failing on 0.24.x (cc @jreback )
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25363/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25363/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25363.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25363", "merged_at": "2019-02-19T08:44:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25363.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25363" }
https://api.github.com/repos/pandas-dev/pandas/issues/25364
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25364/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25364/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25364/events
https://github.com/pandas-dev/pandas/issues/25364
411,705,652
MDU6SXNzdWU0MTE3MDU2NTI=
25,364
Pandas Series Construction Extremely Slow for Array of Large Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/12438007?v=4", "events_url": "https://api.github.com/users/ChoiwahChow/events{/privacy}", "followers_url": "https://api.github.com/users/ChoiwahChow/followers", "following_url": "https://api.github.com/users/ChoiwahChow/following{/other_user}", "gists_url": "https://api.github.com/users/ChoiwahChow/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ChoiwahChow", "id": 12438007, "login": "ChoiwahChow", "node_id": "MDQ6VXNlcjEyNDM4MDA3", "organizations_url": "https://api.github.com/users/ChoiwahChow/orgs", "received_events_url": "https://api.github.com/users/ChoiwahChow/received_events", "repos_url": "https://api.github.com/users/ChoiwahChow/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ChoiwahChow/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ChoiwahChow/subscriptions", "type": "User", "url": "https://api.github.com/users/ChoiwahChow" }
[ { "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": "f2f989", "default"...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
19
2019-02-19T01:32:02Z
2020-10-16T14:09:34Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here ``` #### Problem description [this should explain **why** the current behaviour is a problem and why the expected output is a better solution.] **Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates! **Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary. For documentation-related issues, you can check the latest versions of the docs on `master` here: https://pandas-docs.github.io/pandas-docs-travis/ If the issue has not been resolved there, go ahead and file it in the issue tracker. #### Expected Output #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25364/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25364/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25365
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25365/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25365/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25365/events
https://github.com/pandas-dev/pandas/pull/25365
411,756,276
MDExOlB1bGxSZXF1ZXN0MjU0MTIzMzkw
25,365
DOC: modify typos in Contributing section
{ "avatar_url": "https://avatars.githubusercontent.com/u/11581926?v=4", "events_url": "https://api.github.com/users/alyssafuward/events{/privacy}", "followers_url": "https://api.github.com/users/alyssafuward/followers", "following_url": "https://api.github.com/users/alyssafuward/following{/other_user}", "gists_url": "https://api.github.com/users/alyssafuward/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alyssafuward", "id": 11581926, "login": "alyssafuward", "node_id": "MDQ6VXNlcjExNTgxOTI2", "organizations_url": "https://api.github.com/users/alyssafuward/orgs", "received_events_url": "https://api.github.com/users/alyssafuward/received_events", "repos_url": "https://api.github.com/users/alyssafuward/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alyssafuward/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alyssafuward/subscriptions", "type": "User", "url": "https://api.github.com/users/alyssafuward" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-02-19T05:48:42Z
2019-02-20T08:01:39Z
2019-02-19T08:45:51Z
CONTRIBUTOR
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I participated in an open source sprint day today. This is my first attempt to request a PR to contribute to open source. I made changes to fix a few minor typos.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25365/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25365/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25365.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25365", "merged_at": "2019-02-19T08:45:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25365.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25365" }
https://api.github.com/repos/pandas-dev/pandas/issues/25366
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25366/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25366/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25366/events
https://github.com/pandas-dev/pandas/pull/25366
411,766,385
MDExOlB1bGxSZXF1ZXN0MjU0MTMxMDYz
25,366
#23049: test for Fatal Stack Overflow stemming From Misuse of astype(…
{ "avatar_url": "https://avatars.githubusercontent.com/u/2520893?v=4", "events_url": "https://api.github.com/users/TrigonaMinima/events{/privacy}", "followers_url": "https://api.github.com/users/TrigonaMinima/followers", "following_url": "https://api.github.com/users/TrigonaMinima/following{/other_user}", "gists_url": "https://api.github.com/users/TrigonaMinima/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TrigonaMinima", "id": 2520893, "login": "TrigonaMinima", "node_id": "MDQ6VXNlcjI1MjA4OTM=", "organizations_url": "https://api.github.com/users/TrigonaMinima/orgs", "received_events_url": "https://api.github.com/users/TrigonaMinima/received_events", "repos_url": "https://api.github.com/users/TrigonaMinima/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TrigonaMinima/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TrigonaMinima/subscriptions", "type": "User", "url": "https://api.github.com/users/TrigonaMinima" }
[ { "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": "e11d21", "d...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-02-19T06:31:01Z
2019-02-19T18:55:22Z
2019-02-19T13:14:25Z
CONTRIBUTOR
null
…'category') - [x] closes #23049 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The referenced issue seems to be solved in the current master. So added a test for the edge case.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25366/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25366/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25366.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25366", "merged_at": "2019-02-19T13:14:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25366.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25366" }
https://api.github.com/repos/pandas-dev/pandas/issues/25367
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25367/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25367/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25367/events
https://github.com/pandas-dev/pandas/issues/25367
411,767,807
MDU6SXNzdWU0MTE3Njc4MDc=
25,367
DatetimeIndex.to_frame('ds') doesn't change column name to 'ds'
{ "avatar_url": "https://avatars.githubusercontent.com/u/3938751?v=4", "events_url": "https://api.github.com/users/eromoe/events{/privacy}", "followers_url": "https://api.github.com/users/eromoe/followers", "following_url": "https://api.github.com/users/eromoe/following{/other_user}", "gists_url": "https://api.github.com/users/eromoe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/eromoe", "id": 3938751, "login": "eromoe", "node_id": "MDQ6VXNlcjM5Mzg3NTE=", "organizations_url": "https://api.github.com/users/eromoe/orgs", "received_events_url": "https://api.github.com/users/eromoe/received_events", "repos_url": "https://api.github.com/users/eromoe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/eromoe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eromoe/subscriptions", "type": "User", "url": "https://api.github.com/users/eromoe" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2019-02-19T06:36:37Z
2019-02-19T06:59:20Z
2019-02-19T06:59:04Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python from datetime import datetime, timedelta import pandas as pd periods = 7 today = datetime.now() future_ds = pd.date_range(today.strftime('%Y-%m-%d'), (today + timedelta(days=periods)).strftime('%Y-%m-%d') ) future_ds.to_frame('ds') ``` #### Problem `.to_frame('ds')` on DatetimeIndex didn't work. Have to convert to series at first `future_ds.to_series().to_frame('ds')` #### Output ``` In [12]: future_ds.to_frame('ds') Out[12]: 0 2019-02-19 2019-02-19 2019-02-20 2019-02-20 2019-02-21 2019-02-21 2019-02-22 2019-02-22 2019-02-23 2019-02-23 2019-02-24 2019-02-24 2019-02-25 2019-02-25 2019-02-26 2019-02-26 ``` #### Expected Output ``` In [12]: future_ds.to_frame('ds') Out[12]: ds 2019-02-19 2019-02-19 2019-02-20 2019-02-20 2019-02-21 2019-02-21 2019-02-22 2019-02-22 2019-02-23 2019-02-23 2019-02-24 2019-02-24 2019-02-25 2019-02-25 2019-02-26 2019-02-26 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.5.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 45 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.23.4 pytest: 3.5.1 pip: 19.0.1 setuptools: 39.1.0 Cython: 0.28.2 numpy: 1.14.3 scipy: 1.1.0 pyarrow: 0.12.0 xarray: None IPython: 7.2.0 sphinx: 1.7.4 patsy: 0.5.0 dateutil: 2.6.1 pytz: 2018.4 blosc: None bottleneck: 1.2.1 tables: 3.4.3 numexpr: 2.6.5 feather: None matplotlib: 3.0.1 openpyxl: 2.5.3 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.4 lxml: 4.2.1 bs4: 4.6.0 html5lib: 1.0.1 sqlalchemy: 1.2.7 pymysql: None psycopg2: 2.7.6.1 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: 0.1.6 fastparquet: None pandas_gbq: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25367/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25367/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25368
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25368/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25368/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25368/events
https://github.com/pandas-dev/pandas/pull/25368
411,794,625
MDExOlB1bGxSZXF1ZXN0MjU0MTUyMzg0
25,368
BUG: Fix potential segfault after pd.Categorical(pd.Series(...), categories=...)
{ "avatar_url": "https://avatars.githubusercontent.com/u/18488?v=4", "events_url": "https://api.github.com/users/batterseapower/events{/privacy}", "followers_url": "https://api.github.com/users/batterseapower/followers", "following_url": "https://api.github.com/users/batterseapower/following{/other_user}", "gists_url": "https://api.github.com/users/batterseapower/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/batterseapower", "id": 18488, "login": "batterseapower", "node_id": "MDQ6VXNlcjE4NDg4", "organizations_url": "https://api.github.com/users/batterseapower/orgs", "received_events_url": "https://api.github.com/users/batterseapower/received_events", "repos_url": "https://api.github.com/users/batterseapower/repos", "site_admin": false, "starred_url": "https://api.github.com/users/batterseapower/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/batterseapower/subscriptions", "type": "User", "url": "https://api.github.com/users/batterseapower" }
[ { "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": ...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
13
2019-02-19T08:07:48Z
2019-03-03T02:36:37Z
2019-03-03T02:36:37Z
CONTRIBUTOR
null
Closes #25318
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25368/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25368/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25368.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25368", "merged_at": "2019-03-03T02:36:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25368.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25368" }
https://api.github.com/repos/pandas-dev/pandas/issues/25369
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25369/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25369/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25369/events
https://github.com/pandas-dev/pandas/issues/25369
411,826,895
MDU6SXNzdWU0MTE4MjY4OTU=
25,369
Extension dtypes do not work with dataframe query method
{ "avatar_url": "https://avatars.githubusercontent.com/u/616099?v=4", "events_url": "https://api.github.com/users/techvslife/events{/privacy}", "followers_url": "https://api.github.com/users/techvslife/followers", "following_url": "https://api.github.com/users/techvslife/following{/other_user}", "gists_url": "https://api.github.com/users/techvslife/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/techvslife", "id": 616099, "login": "techvslife", "node_id": "MDQ6VXNlcjYxNjA5OQ==", "organizations_url": "https://api.github.com/users/techvslife/orgs", "received_events_url": "https://api.github.com/users/techvslife/received_events", "repos_url": "https://api.github.com/users/techvslife/repos", "site_admin": false, "starred_url": "https://api.github.com/users/techvslife/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/techvslife/subscriptions", "type": "User", "url": "https://api.github.com/users/techvslife" }
[ { "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": "ffa0ff", "default": false, "description": "Incorrec...
open
false
null
[]
null
8
2019-02-19T09:31:44Z
2020-04-26T21:10:26Z
null
NONE
null
In the latest pandas version (0.24.1), extension dtypes do not work with numexpr (e.g. the “query” method on dataframes fails when the engine parameter is set to the default ): https://stackoverflow.com/questions/54759936/extension-dtypes-in-pandas-appear-to-have-a-bug-with-query Code to reproduce: df_test = pd.DataFrame(data=[4,5,6], columns=["col_test"]) df_test = df_test.astype(dtype={"col_test": pd.Int32Dtype()}) df_test.query("col_test != 6") Last lines of the long error message are: File "...\site_packages\numexpr\necompiler.py", line 822, in evaluate zip(names, arguments)] File "...\site_packages\numexpr\necompiler.py", line 821, in signature = [(name, getType(arg)) for (name, arg) in File "...\site_packages\numexpr\necompiler.py", line 703, in getType raise ValueError("unknown type %s" % a.dtype.name) ValueError: unknown type object
{ "+1": 7, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 7, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25369/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25369/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25370
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25370/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25370/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25370/events
https://github.com/pandas-dev/pandas/issues/25370
411,881,885
MDU6SXNzdWU0MTE4ODE4ODU=
25,370
Spurious MultiIndex creation in `NDFrame._set_axis_names`
{ "avatar_url": "https://avatars.githubusercontent.com/u/10732128?v=4", "events_url": "https://api.github.com/users/devin-petersohn/events{/privacy}", "followers_url": "https://api.github.com/users/devin-petersohn/followers", "following_url": "https://api.github.com/users/devin-petersohn/following{/other_user}", "gists_url": "https://api.github.com/users/devin-petersohn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/devin-petersohn", "id": 10732128, "login": "devin-petersohn", "node_id": "MDQ6VXNlcjEwNzMyMTI4", "organizations_url": "https://api.github.com/users/devin-petersohn/orgs", "received_events_url": "https://api.github.com/users/devin-petersohn/received_events", "repos_url": "https://api.github.com/users/devin-petersohn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/devin-petersohn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/devin-petersohn/subscriptions", "type": "User", "url": "https://api.github.com/users/devin-petersohn" }
[]
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
0
2019-02-19T11:41:43Z
2019-02-19T13:12:35Z
2019-02-19T13:12:35Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python # Code in master pd.MultiIndex.from_product([["mammal"], ['dog', 'cat', 'monkey']]) ``` #### Problem description A spurious MultiIndex is being created in `_set_axis_names`. [Link to blame](https://github.com/pandas-dev/pandas/blame/master/pandas/core/generic.py#L1336) #### Expected Output N/A #### Output of ``pd.show_versions()`` N/A <details> [paste the output of ``pd.show_versions()`` here below this line] </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25370/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25370/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25371
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25371/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25371/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25371/events
https://github.com/pandas-dev/pandas/pull/25371
411,883,390
MDExOlB1bGxSZXF1ZXN0MjU0MjIxNDk5
25,371
Remove spurious MultiIndex creation in `_set_axis_name`
{ "avatar_url": "https://avatars.githubusercontent.com/u/10732128?v=4", "events_url": "https://api.github.com/users/devin-petersohn/events{/privacy}", "followers_url": "https://api.github.com/users/devin-petersohn/followers", "following_url": "https://api.github.com/users/devin-petersohn/following{/other_user}", "gists_url": "https://api.github.com/users/devin-petersohn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/devin-petersohn", "id": 10732128, "login": "devin-petersohn", "node_id": "MDQ6VXNlcjEwNzMyMTI4", "organizations_url": "https://api.github.com/users/devin-petersohn/orgs", "received_events_url": "https://api.github.com/users/devin-petersohn/received_events", "repos_url": "https://api.github.com/users/devin-petersohn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/devin-petersohn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/devin-petersohn/subscriptions", "type": "User", "url": "https://api.github.com/users/devin-petersohn" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
3
2019-02-19T11:45:56Z
2019-02-19T13:12:41Z
2019-02-19T13:12:35Z
CONTRIBUTOR
null
* Resovles #25370 * Introduced by #22969 - [x] closes #25370 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ N/A ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25371/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25371/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25371.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25371", "merged_at": "2019-02-19T13:12:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25371.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25371" }
https://api.github.com/repos/pandas-dev/pandas/issues/25372
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25372/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25372/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25372/events
https://github.com/pandas-dev/pandas/pull/25372
411,917,097
MDExOlB1bGxSZXF1ZXN0MjU0MjQ3NDc0
25,372
Backport PR #25371 on branch 0.24.x (Remove spurious MultiIndex creation in `_set_axis_name`)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
2
2019-02-19T13:13:05Z
2019-02-19T13:52:13Z
2019-02-19T13:52:12Z
NONE
null
Backport PR #25371: Remove spurious MultiIndex creation in `_set_axis_name`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25372/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25372/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25372.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25372", "merged_at": "2019-02-19T13:52:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25372.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25372" }
https://api.github.com/repos/pandas-dev/pandas/issues/25373
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25373/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25373/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25373/events
https://github.com/pandas-dev/pandas/issues/25373
412,028,193
MDU6SXNzdWU0MTIwMjgxOTM=
25,373
pip doen't install numpy as prerequist
{ "avatar_url": "https://avatars.githubusercontent.com/u/1915939?v=4", "events_url": "https://api.github.com/users/Dremor/events{/privacy}", "followers_url": "https://api.github.com/users/Dremor/followers", "following_url": "https://api.github.com/users/Dremor/following{/other_user}", "gists_url": "https://api.github.com/users/Dremor/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Dremor", "id": 1915939, "login": "Dremor", "node_id": "MDQ6VXNlcjE5MTU5Mzk=", "organizations_url": "https://api.github.com/users/Dremor/orgs", "received_events_url": "https://api.github.com/users/Dremor/received_events", "repos_url": "https://api.github.com/users/Dremor/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Dremor/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Dremor/subscriptions", "type": "User", "url": "https://api.github.com/users/Dremor" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
4
2019-02-19T17:01:18Z
2019-02-19T17:28:12Z
2019-02-19T17:28:02Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```bash ./env/bin/pip install --upgrade pandas ``` #### Problem description Installing Pandas in a Python2 VirtualEnv, install fails as Numpy cannot be locally found. #### Expected Output Pandas install in the VirtuaEnv #### Output of ```./env/bin/pip install --upgrade pandas``` ```bash DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. Collecting pandas Using cached https://files.pythonhosted.org/packages/81/fdb1f17f7dc914047cd1df9d6813b944ee446973baafe8106e4458bfb68884/pandas-0.24.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-WhPCxJ/pandas/setup.py", line 732, in <module> ext_modules=maybe_cythonize(extensions, compiler_directives=directives), File "/tmp/pip-install-WhPCxJ/pandas/setup.py", line 475, in maybe_cythonize numpy_incl = pkg_resources.resource_filename('numpy', 'core/include') File "/erpnext/package/erpnext-py2/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1144, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File "/erpnext/package/erpnext-py2/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 361, in get_provider __import__(moduleOrReq) ImportError: No module named numpy ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-WhPCxJ/pandas/ ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25373/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25373/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25374
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25374/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25374/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25374/events
https://github.com/pandas-dev/pandas/issues/25374
412,038,090
MDU6SXNzdWU0MTIwMzgwOTA=
25,374
Missing license file on linux wheels
{ "avatar_url": "https://avatars.githubusercontent.com/u/1926457?v=4", "events_url": "https://api.github.com/users/rahulporuri/events{/privacy}", "followers_url": "https://api.github.com/users/rahulporuri/followers", "following_url": "https://api.github.com/users/rahulporuri/following{/other_user}", "gists_url": "https://api.github.com/users/rahulporuri/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rahulporuri", "id": 1926457, "login": "rahulporuri", "node_id": "MDQ6VXNlcjE5MjY0NTc=", "organizations_url": "https://api.github.com/users/rahulporuri/orgs", "received_events_url": "https://api.github.com/users/rahulporuri/received_events", "repos_url": "https://api.github.com/users/rahulporuri/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rahulporuri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rahulporuri/subscriptions", "type": "User", "url": "https://api.github.com/users/rahulporuri" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" }, { "color": "f9c1b1", "default": false, ...
open
false
null
[]
null
7
2019-02-19T17:23:58Z
2020-04-19T21:40:26Z
null
NONE
null
#### Problem description The manylinux1 wheels for cp36 pandas 0.24.1 don't have License files. See https://files.pythonhosted.org/packages/e6/de/a0d3defd8f338eaf53ef716e40ef6d6c277c35d50e09b586e170169cdf0d/pandas-0.24.1-cp36-cp36m-manylinux1_x86_64.whl for example.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25374/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25374/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25375
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25375/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25375/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25375/events
https://github.com/pandas-dev/pandas/issues/25375
412,045,794
MDU6SXNzdWU0MTIwNDU3OTQ=
25,375
Strange behavior with median
{ "avatar_url": "https://avatars.githubusercontent.com/u/17484616?v=4", "events_url": "https://api.github.com/users/WillKoehrsen/events{/privacy}", "followers_url": "https://api.github.com/users/WillKoehrsen/followers", "following_url": "https://api.github.com/users/WillKoehrsen/following{/other_user}", "gists_url": "https://api.github.com/users/WillKoehrsen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WillKoehrsen", "id": 17484616, "login": "WillKoehrsen", "node_id": "MDQ6VXNlcjE3NDg0NjE2", "organizations_url": "https://api.github.com/users/WillKoehrsen/orgs", "received_events_url": "https://api.github.com/users/WillKoehrsen/received_events", "repos_url": "https://api.github.com/users/WillKoehrsen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WillKoehrsen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WillKoehrsen/subscriptions", "type": "User", "url": "https://api.github.com/users/WillKoehrsen" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, ...
closed
false
null
[]
null
5
2019-02-19T17:42:43Z
2020-09-11T18:22:28Z
2020-09-11T18:22:27Z
NONE
null
Consider the following dataframe: ``` b c d e f g h 0 6.25 2018-04-01 True NaN 7 54.0 64.0 1 32.50 2018-04-01 True NaN 7 54.0 64.0 2 16.75 2018-04-01 True NaN 7 54.0 64.0 3 29.25 2018-04-01 True NaN 7 54.0 64.0 4 21.75 2018-04-01 True NaN 7 54.0 64.0 5 21.75 2018-04-01 True True 7 54.0 64.0 6 7.75 2018-04-01 True True 7 54.0 64.0 7 23.25 2018-04-01 True True 7 54.0 64.0 8 12.25 2018-04-01 True True 7 54.0 64.0 9 30.50 2018-04-01 True NaN 7 54.0 64.0 ``` (copy and paste and use `df = pd.read_clipboard()` to create the dataframe) Finding the medians initially works with no problem: ```python df.median() b 21.75 d 1.00 e 1.00 f 7.00 g 54.00 h 64.00 dtype: float64 ``` However, if a column is dropped and then the `median` is found, the median for column `e` disappears: ```python new_df = df.drop(columns=['b']) new_df.median() d 1.0 f 7.0 g 54.0 h 64.0 dtype: float64 ``` This behavior is a little unexpected and finding the median for column e by itself still works: ```python new_df['e'].median() 1.0 ``` Using `skipna=False` does not make a difference: ```python new_df.median(skipna=False) d 1.0 f 7.0 g 54.0 h 64.0 dtype: float64 ``` (it does for the original dataframe): ```python df.median(skipna=False) b 21.75 d 1.00 e NaN f 7.00 g 54.00 h 64.00 dtype: float64 ``` The datatype of column `e` is `object` in both `df` and `new_df` and the only difference between the two dataframes is `new_df` does not have column `b`. Adding the column back into `new_df` does not resolve the issue. This only occurs when the first column `b` is dropped. It does not occur if column `e` is a float or integer datatype. This behavior is present in both `pandas==0.22.0` and `pandas==0.24.1` I also created a [Stack Overflow Question](https://stackoverflow.com/questions/54755354/strange-behavior-with-pandas-median) based on this issue.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 1, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25375/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25375/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25376
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25376/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25376/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25376/events
https://github.com/pandas-dev/pandas/issues/25376
412,071,060
MDU6SXNzdWU0MTIwNzEwNjA=
25,376
Fix validation error type `PR02` and check in CI
{ "avatar_url": "https://avatars.githubusercontent.com/u/15032115?v=4", "events_url": "https://api.github.com/users/MarckK/events{/privacy}", "followers_url": "https://api.github.com/users/MarckK/followers", "following_url": "https://api.github.com/users/MarckK/following{/other_user}", "gists_url": "https://api.github.com/users/MarckK/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarckK", "id": 15032115, "login": "MarckK", "node_id": "MDQ6VXNlcjE1MDMyMTE1", "organizations_url": "https://api.github.com/users/MarckK/orgs", "received_events_url": "https://api.github.com/users/MarckK/received_events", "repos_url": "https://api.github.com/users/MarckK/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarckK/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarckK/subscriptions", "type": "User", "url": "https://api.github.com/users/MarckK" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integratio...
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" }
9
2019-02-19T18:48:12Z
2021-11-20T06:03:58Z
2021-11-20T06:03:58Z
CONTRIBUTOR
null
#### Problem description In order to have a continuous check by the CI on validation error `PR02` (Unknown parameters), fixing them in the code base enables the addition to the CI for automated testing in the future. Please see [overview of the errors](https://gist.github.com/198cfa552c727d71bd7360fda66fdbb4). Todo: * [ ] get rid of the errors in the code base * [ ] update the `code_check.sh` script to take into account the `PR02` type of errors
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25376/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25376/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25377
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25377/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25377/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25377/events
https://github.com/pandas-dev/pandas/pull/25377
412,129,199
MDExOlB1bGxSZXF1ZXN0MjU0NDEyNzEx
25,377
CI: Add 'conda list' for azure/posix after activate 'pandas-dev'
{ "avatar_url": "https://avatars.githubusercontent.com/u/33685575?v=4", "events_url": "https://api.github.com/users/h-vetinari/events{/privacy}", "followers_url": "https://api.github.com/users/h-vetinari/followers", "following_url": "https://api.github.com/users/h-vetinari/following{/other_user}", "gists_url": "https://api.github.com/users/h-vetinari/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/h-vetinari", "id": 33685575, "login": "h-vetinari", "node_id": "MDQ6VXNlcjMzNjg1NTc1", "organizations_url": "https://api.github.com/users/h-vetinari/orgs", "received_events_url": "https://api.github.com/users/h-vetinari/received_events", "repos_url": "https://api.github.com/users/h-vetinari/repos", "site_admin": false, "starred_url": "https://api.github.com/users/h-vetinari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/h-vetinari/subscriptions", "type": "User", "url": "https://api.github.com/users/h-vetinari" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" }, { "color": "a2bca7", "default": false, ...
closed
false
null
[]
null
6
2019-02-19T21:19:37Z
2019-02-24T10:21:00Z
2019-02-24T10:20:29Z
CONTRIBUTOR
null
Running into debugging problems in #24984 because `conda list` is never called after installing the `pandas-dev` environment. It seems that this is just missing in azure/posix (I reflected the comment in other locations not least to show where else this is already done).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25377/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25377/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25377.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25377", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25377.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25377" }
https://api.github.com/repos/pandas-dev/pandas/issues/25378
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25378/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25378/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25378/events
https://github.com/pandas-dev/pandas/issues/25378
412,174,847
MDU6SXNzdWU0MTIxNzQ4NDc=
25,378
BUG: SparseDataFrame indexing sometimes loses `fill_value` of empty columns in 0.24
{ "avatar_url": "https://avatars.githubusercontent.com/u/8499679?v=4", "events_url": "https://api.github.com/users/scottgigante/events{/privacy}", "followers_url": "https://api.github.com/users/scottgigante/followers", "following_url": "https://api.github.com/users/scottgigante/following{/other_user}", "gists_url": "https://api.github.com/users/scottgigante/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/scottgigante", "id": 8499679, "login": "scottgigante", "node_id": "MDQ6VXNlcjg0OTk2Nzk=", "organizations_url": "https://api.github.com/users/scottgigante/orgs", "received_events_url": "https://api.github.com/users/scottgigante/received_events", "repos_url": "https://api.github.com/users/scottgigante/repos", "site_admin": false, "starred_url": "https://api.github.com/users/scottgigante/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/scottgigante/subscriptions", "type": "User", "url": "https://api.github.com/users/scottgigante" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, d...
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
2019-02-19T23:34:57Z
2019-09-18T14:02:13Z
2019-09-18T14:02:13Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import numpy as np import pandas as pd X = pd.SparseDataFrame([[0,1], [0,0]], default_fill_value=0.0) ## Good behaviour X.loc[0].to_numpy() # array([0., 1.]) X.loc[[0]].to_numpy() # array([[0., 1.]]) X.iloc[0].to_numpy() # array([0., 1.]) ## Bad behaviour X.iloc[[0]].to_numpy() # array([[nan, 1]], dtype=object) X.loc[[True, False]].to_numpy() # array([[nan, 1]], dtype=object) ``` #### Problem description Indexing a SparseDataFrame with `iloc` and more than a single row number should return the same result as indexing the same rows with `loc` and the corresponding indices. Instead, `iloc` drops column `fill_value` for any column with no non-zero entries. #### Expected Output All commands _should_ return `array([0., 1.])` (allowing for differences between 1- and 2-D output.) The last two (`iloc` with fancy indexing, and `loc` with boolean indexing) returns instead `array([nan, 1.])`. #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-17763-Microsoft machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: C.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.1 pytest: None pip: 18.0 setuptools: 40.2.0 Cython: 0.29 numpy: 1.15.1 scipy: 1.2.0 pyarrow: None xarray: None IPython: 7.1.1 sphinx: 1.6.7 patsy: None dateutil: 2.7.3 pytz: 2018.3 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 2.2.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25378/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25378/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25379
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25379/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25379/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25379/events
https://github.com/pandas-dev/pandas/issues/25379
412,206,967
MDU6SXNzdWU0MTIyMDY5Njc=
25,379
Reading/writing of W3C-style embeded metadata in CSV, TSV files
{ "avatar_url": "https://avatars.githubusercontent.com/u/43126798?v=4", "events_url": "https://api.github.com/users/nedclimaterisk/events{/privacy}", "followers_url": "https://api.github.com/users/nedclimaterisk/followers", "following_url": "https://api.github.com/users/nedclimaterisk/following{/other_user}", "gists_url": "https://api.github.com/users/nedclimaterisk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nedclimaterisk", "id": 43126798, "login": "nedclimaterisk", "node_id": "MDQ6VXNlcjQzMTI2Nzk4", "organizations_url": "https://api.github.com/users/nedclimaterisk/orgs", "received_events_url": "https://api.github.com/users/nedclimaterisk/received_events", "repos_url": "https://api.github.com/users/nedclimaterisk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nedclimaterisk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nedclimaterisk/subscriptions", "type": "User", "url": "https://api.github.com/users/nedclimaterisk" }
[ { "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...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2019-02-20T01:53:19Z
2019-12-15T23:39:20Z
null
NONE
null
Related to #2485 The [W3C Tabular Data Model recommendation](https://www.w3.org/TR/tabular-data-model/) that include arbitrary text data, as well as column-specific metadata, such as column data types. It would be very nice if Pandas could read metadata like this. There is [a section with an example of CSV/TSV meader metadata](https://www.w3.org/TR/tabular-data-model/#embedded-metadata) that might make a good starting point. The full recommendation seems somewhat vague, but perhaps that means that Pandas could help to define some more specific standards. Perhaps a YAML header behind `#` characters, where some known variable names (e.g. `datatype`) are captured for use in reading the rest of the file, where remaining unused YAML data is added to a `df.metadata` dictionary?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25379/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25379/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25380
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25380/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25380/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25380/events
https://github.com/pandas-dev/pandas/pull/25380
412,232,562
MDExOlB1bGxSZXF1ZXN0MjU0NDkxMTA1
25,380
Backport PR #25338 on branch 0.24.x (Interval dtype fix)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "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": "009...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
3
2019-02-20T03:51:44Z
2019-02-20T08:05:50Z
2019-02-20T08:05:50Z
NONE
null
Backport PR #25338: Interval dtype fix
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25380/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25380/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25380.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25380", "merged_at": "2019-02-20T08:05:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25380.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25380" }
https://api.github.com/repos/pandas-dev/pandas/issues/25381
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25381/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25381/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25381/events
https://github.com/pandas-dev/pandas/pull/25381
412,264,279
MDExOlB1bGxSZXF1ZXN0MjU0NTE0MjQ5
25,381
DOC: edited whatsnew typo
{ "avatar_url": "https://avatars.githubusercontent.com/u/4477229?v=4", "events_url": "https://api.github.com/users/saurav2608/events{/privacy}", "followers_url": "https://api.github.com/users/saurav2608/followers", "following_url": "https://api.github.com/users/saurav2608/following{/other_user}", "gists_url": "https://api.github.com/users/saurav2608/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/saurav2608", "id": 4477229, "login": "saurav2608", "node_id": "MDQ6VXNlcjQ0NzcyMjk=", "organizations_url": "https://api.github.com/users/saurav2608/orgs", "received_events_url": "https://api.github.com/users/saurav2608/received_events", "repos_url": "https://api.github.com/users/saurav2608/repos", "site_admin": false, "starred_url": "https://api.github.com/users/saurav2608/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/saurav2608/subscriptions", "type": "User", "url": "https://api.github.com/users/saurav2608" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-02-20T06:22:35Z
2019-04-15T18:29:37Z
2019-02-20T14:06:50Z
CONTRIBUTOR
null
xref: redoing the whatsnew entry for PR #25124. Typos were caought by @h-vetinari .
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25381/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25381/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25381.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25381", "merged_at": "2019-02-20T14:06:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25381.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25381" }
https://api.github.com/repos/pandas-dev/pandas/issues/25382
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25382/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25382/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25382/events
https://github.com/pandas-dev/pandas/pull/25382
412,294,226
MDExOlB1bGxSZXF1ZXN0MjU0NTM1OTgx
25,382
CLN: (re-)enable infer_dtype to catch complex
{ "avatar_url": "https://avatars.githubusercontent.com/u/33685575?v=4", "events_url": "https://api.github.com/users/h-vetinari/events{/privacy}", "followers_url": "https://api.github.com/users/h-vetinari/followers", "following_url": "https://api.github.com/users/h-vetinari/following{/other_user}", "gists_url": "https://api.github.com/users/h-vetinari/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/h-vetinari", "id": 33685575, "login": "h-vetinari", "node_id": "MDQ6VXNlcjMzNjg1NTc1", "organizations_url": "https://api.github.com/users/h-vetinari/orgs", "received_events_url": "https://api.github.com/users/h-vetinari/received_events", "repos_url": "https://api.github.com/users/h-vetinari/repos", "site_admin": false, "starred_url": "https://api.github.com/users/h-vetinari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/h-vetinari/subscriptions", "type": "User", "url": "https://api.github.com/users/h-vetinari" }
[ { "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": "AD7...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-02-20T08:05:21Z
2019-02-22T07:00:33Z
2019-02-21T13:53:43Z
CONTRIBUTOR
null
- [x] takes a small bite out of #23554 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` `complex` should already be inferred according to the docstring, but isn't. I'm hitting this while working on my PR for #23833 so splitting that off as a separate change.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25382/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25382/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25382.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25382", "merged_at": "2019-02-21T13:53:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25382.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25382" }
https://api.github.com/repos/pandas-dev/pandas/issues/25383
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25383/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25383/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25383/events
https://github.com/pandas-dev/pandas/issues/25383
412,327,833
MDU6SXNzdWU0MTIzMjc4MzM=
25,383
Setting with enlargement on categorical data
{ "avatar_url": "https://avatars.githubusercontent.com/u/11853089?v=4", "events_url": "https://api.github.com/users/0phoff/events{/privacy}", "followers_url": "https://api.github.com/users/0phoff/followers", "following_url": "https://api.github.com/users/0phoff/following{/other_user}", "gists_url": "https://api.github.com/users/0phoff/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/0phoff", "id": 11853089, "login": "0phoff", "node_id": "MDQ6VXNlcjExODUzMDg5", "organizations_url": "https://api.github.com/users/0phoff/orgs", "received_events_url": "https://api.github.com/users/0phoff/received_events", "repos_url": "https://api.github.com/users/0phoff/repos", "site_admin": false, "starred_url": "https://api.github.com/users/0phoff/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/0phoff/subscriptions", "type": "User", "url": "https://api.github.com/users/0phoff" }
[ { "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 s...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2019-02-20T09:33:10Z
2020-11-04T19:32:29Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df = pd.DataFrame.from_dict({'reg': [0,1,2], 'cat':pd.Categorical(['a','b','b'], categories=['a','b','c','d'])}) print(df.dtypes) # reg is int64, cat is categorical df.loc[3] = (3, 'c') # add row with categorical value that exist in categories print(df.dtypes) # reg is int64, cat is **object** ``` #### Problem description There is no warning whatsoever, but still the dtype changes. In this dummy example this means we lose all information about the fact that `'d'` is also a possible value. (So simply doing `astype('category')` wouldn't work here.) **Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates! > I couldn't seem to find an issue about this. However I did find a few related things like performing `concat` and `append` on categoricals also changes dtypes. I would love these functions to have a keyword to control that behaviour (eg. perform union of categories), but this is a different issue that has already been discussed... (just letting you know that there are people out there who would love this feature, instead of having to meddle with `pandas.api.types.union_categoricals`) #### Expected Output Keep the categorical dtype if the added value is in the list of categories, throw an error/warning otherwise. If people don't care about the categorical, they can always call `.astype('object')` before adding the row? I think this solution is also in the spirit of 'explicit is better than implicit`? #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.5.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-33-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.0 pytest: 4.1.1 pip: 18.1 setuptools: 40.2.0 Cython: 0.29.2 numpy: 1.16.0 scipy: 1.1.0 pyarrow: 0.12.0 xarray: None IPython: 6.5.0 sphinx: 1.7.9 patsy: None dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.9 feather: 0.4.0 matplotlib: 2.2.3 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: 4.2.5 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25383/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25383/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25384
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25384/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25384/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25384/events
https://github.com/pandas-dev/pandas/issues/25384
412,349,532
MDU6SXNzdWU0MTIzNDk1MzI=
25,384
test_pct_max_many_rows fails on intel 32bit with memory error
{ "avatar_url": "https://avatars.githubusercontent.com/u/1055830?v=4", "events_url": "https://api.github.com/users/scarabeusiv/events{/privacy}", "followers_url": "https://api.github.com/users/scarabeusiv/followers", "following_url": "https://api.github.com/users/scarabeusiv/following{/other_user}", "gists_url": "https://api.github.com/users/scarabeusiv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/scarabeusiv", "id": 1055830, "login": "scarabeusiv", "node_id": "MDQ6VXNlcjEwNTU4MzA=", "organizations_url": "https://api.github.com/users/scarabeusiv/orgs", "received_events_url": "https://api.github.com/users/scarabeusiv/received_events", "repos_url": "https://api.github.com/users/scarabeusiv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/scarabeusiv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/scarabeusiv/subscriptions", "type": "User", "url": "https://api.github.com/users/scarabeusiv" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "207de5", "d...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
8
2019-02-20T10:21:45Z
2019-02-22T19:04:26Z
2019-02-22T19:04:26Z
CONTRIBUTOR
null
Pytest output from the two failing tests: ``` [ 3680s] =================================== FAILURES =================================== [ 3680s] _______________________ TestRank.test_pct_max_many_rows ________________________ [ 3680s] [ 3680s] self = <pandas.tests.frame.test_rank.TestRank object at 0x54f6d7ec> [ 3680s] [ 3680s] @pytest.mark.single [ 3680s] def test_pct_max_many_rows(self): [ 3680s] # GH 18271 [ 3680s] df = DataFrame({'A': np.arange(2**24 + 1), [ 3680s] 'B': np.arange(2**24 + 1, 0, -1)}) [ 3680s] > result = df.rank(pct=True).max() [ 3680s] [ 3680s] ../../BUILDROOT/python-pandas-0.24.1-13.1.i386/usr/lib/python2.7/site-packages/pandas/tests/frame/test_rank.py:317: [ 3680s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 3680s] ../../BUILDROOT/python-pandas-0.24.1-13.1.i386/usr/lib/python2.7/site-packages/pandas/core/generic.py:8335: in rank [ 3680s] return ranker(self) [ 3680s] ../../BUILDROOT/python-pandas-0.24.1-13.1.i386/usr/lib/python2.7/site-packages/pandas/core/generic.py:8327: in ranker [ 3680s] pct=pct) [ 3680s] ../../BUILDROOT/python-pandas-0.24.1-13.1.i386/usr/lib/python2.7/site-packages/pandas/core/algorithms.py:861: in rank [ 3680s] ascending=ascending, na_option=na_option, pct=pct) [ 3680s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 3680s] [ 3680s] > ranks = np.empty((n, k), dtype='f8') [ 3680s] E MemoryError [ 3680s] [ 3680s] pandas/_libs/algos_rank_helper.pxi:806: MemoryError [ 3680s] ____________________________ test_pct_max_many_rows ____________________________ [ 3680s] [ 3680s] @pytest.mark.single [ 3680s] def test_pct_max_many_rows(): [ 3680s] # GH 18271 [ 3680s] s = Series(np.arange(2**24 + 1)) [ 3680s] > result = s.rank(pct=True).max() [ 3680s] [ 3680s] ../../BUILDROOT/python-pandas-0.24.1-13.1.i386/usr/lib/python2.7/site-packages/pandas/tests/series/test_rank.py:505: [ 3680s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 3680s] ../../BUILDROOT/python-pandas-0.24.1-13.1.i386/usr/lib/python2.7/site-packages/pandas/core/generic.py:8335: in rank [ 3680s] return ranker(self) [ 3680s] ../../BUILDROOT/python-pandas-0.24.1-13.1.i386/usr/lib/python2.7/site-packages/pandas/core/generic.py:8327: in ranker [ 3680s] pct=pct) [ 3680s] ../../BUILDROOT/python-pandas-0.24.1-13.1.i386/usr/lib/python2.7/site-packages/pandas/core/algorithms.py:857: in rank [ 3680s] na_option=na_option, pct=pct) [ 3680s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 3680s] [ 3680s] > sorted_data = values.take(_as) [ 3680s] E MemoryError [ 3680s] [ 3680s] pandas/_libs/algos_rank_helper.pxi:712: MemoryError [ 3681s] =============================== warnings summary =============================== ``` Full build log: [pandas.txt](https://github.com/pandas-dev/pandas/files/2884130/pandas.txt)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25384/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25384/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25385
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25385/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25385/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25385/events
https://github.com/pandas-dev/pandas/pull/25385
412,363,595
MDExOlB1bGxSZXF1ZXN0MjU0NTg4NDI4
25,385
Backport PR #25329 on branch 0.24.x (REGR: fix TimedeltaIndex sum and datetime subtraction with NaT (#25282, #25317))
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[]
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
2
2019-02-20T10:53:05Z
2019-02-20T12:01:53Z
2019-02-20T12:01:52Z
NONE
null
Backport PR #25329: REGR: fix TimedeltaIndex sum and datetime subtraction with NaT (#25282, #25317)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25385/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25385/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25385.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25385", "merged_at": "2019-02-20T12:01:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25385.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25385" }
https://api.github.com/repos/pandas-dev/pandas/issues/25386
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25386/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25386/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25386/events
https://github.com/pandas-dev/pandas/issues/25386
412,412,454
MDU6SXNzdWU0MTI0MTI0NTQ=
25,386
pytest fails for 0.23.4: `Shape of passed values is (2, 3), indices imply (2, 4)` in `TestDataFrameAnalytics.test_matmul`
{ "avatar_url": "https://avatars.githubusercontent.com/u/101639?v=4", "events_url": "https://api.github.com/users/Twey/events{/privacy}", "followers_url": "https://api.github.com/users/Twey/followers", "following_url": "https://api.github.com/users/Twey/following{/other_user}", "gists_url": "https://api.github.com/users/Twey/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Twey", "id": 101639, "login": "Twey", "node_id": "MDQ6VXNlcjEwMTYzOQ==", "organizations_url": "https://api.github.com/users/Twey/orgs", "received_events_url": "https://api.github.com/users/Twey/received_events", "repos_url": "https://api.github.com/users/Twey/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Twey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Twey/subscriptions", "type": "User", "url": "https://api.github.com/users/Twey" }
[ { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
2
2019-02-20T12:58:43Z
2019-02-20T16:06:51Z
2019-02-20T16:06:51Z
NONE
null
# Test output ``` =================================== FAILURES =================================== ______________________ TestDataFrameAnalytics.test_matmul ______________________ blocks = [array([[ 0.82824335, 0.9711043 , -0.43859174], [ 0.48922558, 0.25556855, -2.00621065]])] axes = [Index(['one', 'two'], dtype='object'), Index(['p', 'q', 'r', 's'], dtype='object')] def create_block_manager_from_blocks(blocks, axes): try: if len(blocks) == 1 and not isinstance(blocks[0], Block): # if blocks[0] is of length 0, return empty blocks if not len(blocks[0]): blocks = [] else: # It's OK if a single block is passed as values, its placement # is basically "all items", but if there're many, don't bother # converting, it's an error anyway. blocks = [make_block(values=blocks[0], placement=slice(0, len(axes[0])))] > mgr = BlockManager(blocks, axes) /nix/store/plkd9gch9jhcrchnmb27ncxk163hx0r6-python3.7-pandas-0.23.4/lib/python3.7/site-packages/pandas/core/internals.py:4859: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = BlockManager Items: Index(['one', 'two'], dtype='object') Axis 1: Index(['p', 'q', 'r', 's'], dtype='object') FloatBlock: slice(0, 2, 1), 2 x 3, dtype: float64 blocks = [FloatBlock: slice(0, 2, 1), 2 x 3, dtype: float64] axes = [Index(['one', 'two'], dtype='object'), Index(['p', 'q', 'r', 's'], dtype='object')] do_integrity_check = True def __init__(self, blocks, axes, do_integrity_check=True): self.axes = [_ensure_index(ax) for ax in axes] self.blocks = tuple(blocks) for block in blocks: if block.is_sparse: if len(block.mgr_locs) != 1: raise AssertionError("Sparse block refers to multiple " "items") else: if self.ndim != block.ndim: raise AssertionError( 'Number of Block dimensions ({block}) must equal ' 'number of axes ({self})'.format(block=block.ndim, self=self.ndim)) if do_integrity_check: > self._verify_integrity() /nix/store/plkd9gch9jhcrchnmb27ncxk163hx0r6-python3.7-pandas-0.23.4/lib/python3.7/site-packages/pandas/core/internals.py:3282: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = BlockManager Items: Index(['one', 'two'], dtype='object') Axis 1: Index(['p', 'q', 'r', 's'], dtype='object') FloatBlock: slice(0, 2, 1), 2 x 3, dtype: float64 def _verify_integrity(self): mgr_shape = self.shape tot_items = sum(len(x.mgr_locs) for x in self.blocks) for block in self.blocks: if block._verify_integrity and block.shape[1:] != mgr_shape[1:]: > construction_error(tot_items, block.shape[1:], self.axes) /nix/store/plkd9gch9jhcrchnmb27ncxk163hx0r6-python3.7-pandas-0.23.4/lib/python3.7/site-packages/pandas/core/internals.py:3493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tot_items = 2, block_shape = (3,) axes = [Index(['one', 'two'], dtype='object'), Index(['p', 'q', 'r', 's'], dtype='object')] e = None def construction_error(tot_items, block_shape, axes, e=None): """ raise a helpful message about our construction """ passed = tuple(map(int, [tot_items] + list(block_shape))) implied = tuple(map(int, [len(ax) for ax in axes])) if passed == implied and e is not None: raise e if block_shape[0] == 0: raise ValueError("Empty data passed with indices specified.") raise ValueError("Shape of passed values is {0}, indices imply {1}".format( > passed, implied)) E ValueError: Shape of passed values is (2, 3), indices imply (2, 4) /nix/store/plkd9gch9jhcrchnmb27ncxk163hx0r6-python3.7-pandas-0.23.4/lib/python3.7/site-packages/pandas/core/internals.py:4843: ValueError During handling of the above exception, another exception occurred: self = <pandas.tests.frame.test_analytics.TestDataFrameAnalytics object at 0x7fff8822c978> @pytest.mark.skipif(not PY35, reason='matmul supported for Python>=3.5') @pytest.mark.xfail( _np_version_under1p12, reason="unpredictable return types under numpy < 1.12") def test_matmul(self): # matmul test is for GH #10259 a = DataFrame(np.random.randn(3, 4), index=['a', 'b', 'c'], columns=['p', 'q', 'r', 's']) b = DataFrame(np.random.randn(4, 2), index=['p', 'q', 'r', 's'], columns=['one', 'two']) # DataFrame @ DataFrame result = operator.matmul(a, b) expected = DataFrame(np.dot(a.values, b.values), index=['a', 'b', 'c'], columns=['one', 'two']) tm.assert_frame_equal(result, expected) # DataFrame @ Series result = operator.matmul(a, b.one) expected = Series(np.dot(a.values, b.one.values), index=['a', 'b', 'c']) tm.assert_series_equal(result, expected) # np.array @ DataFrame > result = operator.matmul(a.values, b) /nix/store/plkd9gch9jhcrchnmb27ncxk163hx0r6-python3.7-pandas-0.23.4/lib/python3.7/site-packages/pandas/tests/frame/test_analytics.py:2294: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /nix/store/plkd9gch9jhcrchnmb27ncxk163hx0r6-python3.7-pandas-0.23.4/lib/python3.7/site-packages/pandas/core/generic.py:1610: in __array_wrap__ return self._constructor(result, **d).__finalize__(self) /nix/store/plkd9gch9jhcrchnmb27ncxk163hx0r6-python3.7-pandas-0.23.4/lib/python3.7/site-packages/pandas/core/frame.py:379: in __init__ copy=copy) /nix/store/plkd9gch9jhcrchnmb27ncxk163hx0r6-python3.7-pandas-0.23.4/lib/python3.7/site-packages/pandas/core/frame.py:536: in _init_ndarray return create_block_manager_from_blocks([values], [columns, index]) /nix/store/plkd9gch9jhcrchnmb27ncxk163hx0r6-python3.7-pandas-0.23.4/lib/python3.7/site-packages/pandas/core/internals.py:4866: in create_block_manager_from_blocks construction_error(tot_items, blocks[0].shape[1:], axes, e) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tot_items = 2, block_shape = (3,) axes = [Index(['one', 'two'], dtype='object'), Index(['p', 'q', 'r', 's'], dtype='object')] e = ValueError('Shape of passed values is (2, 3), indices imply (2, 4)') def construction_error(tot_items, block_shape, axes, e=None): """ raise a helpful message about our construction """ passed = tuple(map(int, [tot_items] + list(block_shape))) implied = tuple(map(int, [len(ax) for ax in axes])) if passed == implied and e is not None: raise e if block_shape[0] == 0: raise ValueError("Empty data passed with indices specified.") raise ValueError("Shape of passed values is {0}, indices imply {1}".format( > passed, implied)) E ValueError: Shape of passed values is (2, 3), indices imply (2, 4) /nix/store/plkd9gch9jhcrchnmb27ncxk163hx0r6-python3.7-pandas-0.23.4/lib/python3.7/site-packages/pandas/core/internals.py:4843: ValueError ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25386/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25386/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25387
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25387/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25387/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25387/events
https://github.com/pandas-dev/pandas/issues/25387
412,429,374
MDU6SXNzdWU0MTI0MjkzNzQ=
25,387
pandas.DataFrame.rolling¶ - Bad Documentation
{ "avatar_url": "https://avatars.githubusercontent.com/u/32899037?v=4", "events_url": "https://api.github.com/users/PoeteMaudit/events{/privacy}", "followers_url": "https://api.github.com/users/PoeteMaudit/followers", "following_url": "https://api.github.com/users/PoeteMaudit/following{/other_user}", "gists_url": "https://api.github.com/users/PoeteMaudit/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PoeteMaudit", "id": 32899037, "login": "PoeteMaudit", "node_id": "MDQ6VXNlcjMyODk5MDM3", "organizations_url": "https://api.github.com/users/PoeteMaudit/orgs", "received_events_url": "https://api.github.com/users/PoeteMaudit/received_events", "repos_url": "https://api.github.com/users/PoeteMaudit/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PoeteMaudit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PoeteMaudit/subscriptions", "type": "User", "url": "https://api.github.com/users/PoeteMaudit" }
[ { "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
1
2019-02-20T13:37:37Z
2019-02-20T15:30:56Z
2019-02-20T15:30:56Z
NONE
null
Many things are unclear at the docs of the pandas.DataFrame.rolling. A couple of them are the following: 1) What is an offset? 2) What is the position of the current value at the window? From what I see is that the current value (of your pandas series to be processed) is the last of the rolling window. (This is not clear at all) If you set center as True then it becomes the center value. If I am not very clear then apologies but I cannot explain things that should have been clear at the docs.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25387/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25387/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25388
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25388/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25388/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25388/events
https://github.com/pandas-dev/pandas/pull/25388
412,450,421
MDExOlB1bGxSZXF1ZXN0MjU0NjU1OTcw
25,388
DOC: Fix typo of see also in DataFrame stat funcs
{ "avatar_url": "https://avatars.githubusercontent.com/u/7662952?v=4", "events_url": "https://api.github.com/users/knuu/events{/privacy}", "followers_url": "https://api.github.com/users/knuu/followers", "following_url": "https://api.github.com/users/knuu/following{/other_user}", "gists_url": "https://api.github.com/users/knuu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/knuu", "id": 7662952, "login": "knuu", "node_id": "MDQ6VXNlcjc2NjI5NTI=", "organizations_url": "https://api.github.com/users/knuu/orgs", "received_events_url": "https://api.github.com/users/knuu/received_events", "repos_url": "https://api.github.com/users/knuu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/knuu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/knuu/subscriptions", "type": "User", "url": "https://api.github.com/users/knuu" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-02-20T14:21:15Z
2019-02-20T15:51:04Z
2019-02-20T15:50:59Z
CONTRIBUTOR
null
fix typo of DataFrame stat functions.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25388/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25388/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25388.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25388", "merged_at": "2019-02-20T15:50:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25388.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25388" }
https://api.github.com/repos/pandas-dev/pandas/issues/25389
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25389/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25389/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25389/events
https://github.com/pandas-dev/pandas/issues/25389
412,524,642
MDU6SXNzdWU0MTI1MjQ2NDI=
25,389
Putting an Arrow table into a Pandas series takes a long time
{ "avatar_url": "https://avatars.githubusercontent.com/u/306380?v=4", "events_url": "https://api.github.com/users/mrocklin/events{/privacy}", "followers_url": "https://api.github.com/users/mrocklin/followers", "following_url": "https://api.github.com/users/mrocklin/following{/other_user}", "gists_url": "https://api.github.com/users/mrocklin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mrocklin", "id": 306380, "login": "mrocklin", "node_id": "MDQ6VXNlcjMwNjM4MA==", "organizations_url": "https://api.github.com/users/mrocklin/orgs", "received_events_url": "https://api.github.com/users/mrocklin/received_events", "repos_url": "https://api.github.com/users/mrocklin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mrocklin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mrocklin/subscriptions", "type": "User", "url": "https://api.github.com/users/mrocklin" }
[]
closed
false
null
[]
null
4
2019-02-20T16:47:32Z
2019-02-20T17:08:36Z
2019-02-20T17:08:36Z
CONTRIBUTOR
null
It takes a surprisingly long time to put a list containing a PyArrow table object into an object-dtype Pandas series ```python In [1]: import numpy as np, pandas as pd, pyarrow as pa In [2]: df = pd.DataFrame({'x': np.arange(1000000)}) In [3]: %time t = pa.Table.from_pandas(df) CPU times: user 5.36 ms, sys: 3.22 ms, total: 8.58 ms Wall time: 7.47 ms In [4]: %time s = pd.Series([t], dtype=object) CPU times: user 2.7 s, sys: 114 ms, total: 2.82 s Wall time: 2.81 s ``` Originally reported downstream in https://github.com/dask/distributed/issues/2521 by @randerzander
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25389/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25389/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25390
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25390/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25390/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25390/events
https://github.com/pandas-dev/pandas/issues/25390
412,575,243
MDU6SXNzdWU0MTI1NzUyNDM=
25,390
Unintuitive behaviour of MonthBegin(n=0)
{ "avatar_url": "https://avatars.githubusercontent.com/u/2239771?v=4", "events_url": "https://api.github.com/users/capelastegui/events{/privacy}", "followers_url": "https://api.github.com/users/capelastegui/followers", "following_url": "https://api.github.com/users/capelastegui/following{/other_user}", "gists_url": "https://api.github.com/users/capelastegui/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/capelastegui", "id": 2239771, "login": "capelastegui", "node_id": "MDQ6VXNlcjIyMzk3NzE=", "organizations_url": "https://api.github.com/users/capelastegui/orgs", "received_events_url": "https://api.github.com/users/capelastegui/received_events", "repos_url": "https://api.github.com/users/capelastegui/repos", "site_admin": false, "starred_url": "https://api.github.com/users/capelastegui/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/capelastegui/subscriptions", "type": "User", "url": "https://api.github.com/users/capelastegui" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
2
2019-02-20T18:50:46Z
2019-02-21T06:53:29Z
2019-02-21T06:53:21Z
NONE
null
From the [Anchored Offset Semantics](https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#anchored-offsets) section of the docs: > For the case when n=0, the date is not moved if on an anchor point, otherwise it is rolled forward to the next anchor point. ``` In [218]: pd.Timestamp('2014-01-02') + MonthBegin(n=0) Out[218]: Timestamp('2014-02-01 00:00:00') In [219]: pd.Timestamp('2014-01-02') + MonthEnd(n=0) Out[219]: Timestamp('2014-01-31 00:00:00') In [220]: pd.Timestamp('2014-01-01') + MonthBegin(n=0) Out[220]: Timestamp('2014-01-01 00:00:00') In [221]: pd.Timestamp('2014-01-31') + MonthEnd(n=0) Out[221]: Timestamp('2014-01-31 00:00:00') ``` I understand that this is the intended behaviour, but it's neither intuitive nor useful. If I want to use MonthBegin to find the start of the current month, I'm out of luck, as there is no configuration that will work consistently for all days of a month: ``` In: pd.Timestamp('2014-01-01') + MonthBegin(n=0) Out: Timestamp('2014-01-01 00:00:00') In: pd.Timestamp('2014-01-02') + MonthBegin(n=0) Out: Timestamp('2014-02-01 00:00:00') ``` Could I suggest changing the behaviour of anchored offsets for MonthBegin and similar _Begin offsets? Change the rule to something like: > For the case when n=0, the date is not moved if on an anchor point, otherwise it is either rolled forward to the next anchor point or backwards to the previous anchor point. By default, the next anchor point is used, but the following date offsets use the previous anchor point instead: > - MonthBegin > - BMonthBegin or BusinessMonthBegin > - CBMonthBegin or CustomBusinessMonthBegin > - SemiMonthBegin > - QuarterBegin > - BQuarterBegin > - YearBegin > - BYearBegin This way, the output would end up as: ``` In: pd.Timestamp('2014-01-01') + MonthBegin(n=0) Out: Timestamp('2014-01-01 00:00:00') In: pd.Timestamp('2014-01-02') + MonthBegin(n=0) Out: Timestamp('2014-01-01 00:00:00') ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25390/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25390/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25391
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25391/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25391/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25391/events
https://github.com/pandas-dev/pandas/issues/25391
412,619,277
MDU6SXNzdWU0MTI2MTkyNzc=
25,391
to_sql(method='multi') returns COUNT field incorrect or syntax error
{ "avatar_url": "https://avatars.githubusercontent.com/u/5056464?v=4", "events_url": "https://api.github.com/users/nickwan/events{/privacy}", "followers_url": "https://api.github.com/users/nickwan/followers", "following_url": "https://api.github.com/users/nickwan/following{/other_user}", "gists_url": "https://api.github.com/users/nickwan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nickwan", "id": 5056464, "login": "nickwan", "node_id": "MDQ6VXNlcjUwNTY0NjQ=", "organizations_url": "https://api.github.com/users/nickwan/orgs", "received_events_url": "https://api.github.com/users/nickwan/received_events", "repos_url": "https://api.github.com/users/nickwan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nickwan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nickwan/subscriptions", "type": "User", "url": "https://api.github.com/users/nickwan" }
[]
closed
false
null
[]
null
2
2019-02-20T20:43:22Z
2019-12-06T13:44:30Z
2019-02-21T07:13:22Z
NONE
null
Using `to_sql(method=None)` works, but even with all of the speed ups wrt `fast_executemany` and `@event.listens_for(engine, 'before_cursor_execute')` I'm not discovering a speed up for writing up to my Azure DB. `to_sql(method='multi')` seemed promising, but this error pops up ```python Error: ('07002', '[07002] [Microsoft][ODBC Driver 17 for SQL Server]COUNT field incorrect or syntax error (0) (SQLExecDirectW)') ``` Here's a notebook where the error is hopefully reproducible (the error log is output in the notebook) https://github.com/nickwan/pandas_sql_multi/blob/master/pandas_sql_multi.ipynb Perhaps relevant information: Ubuntu 16.04.5 LTS pandas: 0.24.1 numpy: 1.15.2 pyodbc: 4.0.25 sqlalchemy: 1.2.18
{ "+1": 3, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25391/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25391/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25392
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25392/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25392/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25392/events
https://github.com/pandas-dev/pandas/issues/25392
412,635,824
MDU6SXNzdWU0MTI2MzU4MjQ=
25,392
Creating a dataframe from its rows has inconsistent type handling
{ "avatar_url": "https://avatars.githubusercontent.com/u/7870803?v=4", "events_url": "https://api.github.com/users/tdamsma/events{/privacy}", "followers_url": "https://api.github.com/users/tdamsma/followers", "following_url": "https://api.github.com/users/tdamsma/following{/other_user}", "gists_url": "https://api.github.com/users/tdamsma/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tdamsma", "id": 7870803, "login": "tdamsma", "node_id": "MDQ6VXNlcjc4NzA4MDM=", "organizations_url": "https://api.github.com/users/tdamsma/orgs", "received_events_url": "https://api.github.com/users/tdamsma/received_events", "repos_url": "https://api.github.com/users/tdamsma/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tdamsma/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tdamsma/subscriptions", "type": "User", "url": "https://api.github.com/users/tdamsma" }
[]
closed
false
null
[]
null
1
2019-02-20T21:25:41Z
2019-02-21T08:02:18Z
2019-02-21T08:02:18Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python df = pd.DataFrame( { "date": { "a": pd.Timestamp("2019-02-22"), "b": pd.Timestamp("2019-02-22"), }, "other": {"a": "not empty"}, } ) ``` _ | date | other -- | -- | -- a | 2019-02-22 | not empty b | 2019-02-22 | NaN ``` python pd.DataFrame([row for _, row in df.iterrows()]) ``` _ | date | other -- | -- | -- a | 2019-02-22 00:00:00 | not empty b | 1550793600000000000 | None changing type to dict helps, but you lose the index, and changes the NaN with a Nat ``` python pd.DataFrame([dict(row) for _, row in df.iterrows()]) ``` _  | date | other -- | -- | -- 0 | 2019-02-22 | not empty 1 | 2019-02-22 | NaT #### Problem description I would have expected that creating a dataframe from its rows would yield an identical dataframe, but the types have changed. Also, they changes seem kind of random, as values in other columns influence the result. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: 54492791116108199c24734a0220560974eb3372 python: 3.7.1.final.0 python-bits: 64 OS: Darwin OS-release: 18.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.25.0.dev0+144.g544927911.dirty pytest: 4.1.1 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.3 numpy: 1.15.4 scipy: 1.2.0 pyarrow: 0.12.0 xarray: 0.11.2 IPython: 7.2.0 sphinx: 1.8.3 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: 1.7.0 bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.2 openpyxl: 2.5.14 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml.etree: 4.3.0 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.2.16 pymysql: None psycopg2: None jinja2: 2.10 s3fs: 0.2.0 fastparquet: 0.2.1 pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25392/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25392/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25393
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25393/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25393/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25393/events
https://github.com/pandas-dev/pandas/issues/25393
412,745,721
MDU6SXNzdWU0MTI3NDU3MjE=
25,393
ImportError: sys.meta_path is None, Python is likely shutting down
{ "avatar_url": "https://avatars.githubusercontent.com/u/6002262?v=4", "events_url": "https://api.github.com/users/shawnxu1111/events{/privacy}", "followers_url": "https://api.github.com/users/shawnxu1111/followers", "following_url": "https://api.github.com/users/shawnxu1111/following{/other_user}", "gists_url": "https://api.github.com/users/shawnxu1111/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shawnxu1111", "id": 6002262, "login": "shawnxu1111", "node_id": "MDQ6VXNlcjYwMDIyNjI=", "organizations_url": "https://api.github.com/users/shawnxu1111/orgs", "received_events_url": "https://api.github.com/users/shawnxu1111/received_events", "repos_url": "https://api.github.com/users/shawnxu1111/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shawnxu1111/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shawnxu1111/subscriptions", "type": "User", "url": "https://api.github.com/users/shawnxu1111" }
[]
closed
false
null
[]
null
3
2019-02-21T04:39:30Z
2019-02-22T15:37:36Z
2019-02-22T15:37:35Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python class PatternManager: __community_alias_df = pd.read_csv(const.COMMUNITY_ALIAS, encoding='utf-8').fillna(value = "") __community_alias_not_changed = False def __del__(self): PatternManager.writeDF() pass @classmethod def writeDF(cls): if cls.__community_alias_not_changed is False: cls.__community_alias_df.to_csv(const.COMMUNITY_ALIAS, index=False) cls.__community_alias_not_changed = True print('writng this DF successfully') return True return False if __name__ == "__main__": pm = PatternManager() ``` #### Problem description File "C:\Users\XXX\.virtualenvs\XXX\lib\site-packages\pandas\core\generic.py", line 3007, in to_csv ImportError: sys.meta_path is None, Python is likely shutting down #### Expected Output writing this DF successfully #### Output of ``pd.show_versions()`` <details> I have try to comment 'cls.__community_alias_df.to_csv(const.COMMUNITY_ALIAS, index=False)'. If it's commented, the program works well, so the problem must be using pandas in __del__. SO!! Can pandas be used in __del__. If not, do I have a simillar solution for this. Or is that a bug of pandas? </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25393/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25393/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25394
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25394/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25394/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25394/events
https://github.com/pandas-dev/pandas/pull/25394
412,764,134
MDExOlB1bGxSZXF1ZXN0MjU0ODk4NDY5
25,394
BUG: pd.Series.interpolate non-numeric index column (21662)
{ "avatar_url": "https://avatars.githubusercontent.com/u/2520893?v=4", "events_url": "https://api.github.com/users/TrigonaMinima/events{/privacy}", "followers_url": "https://api.github.com/users/TrigonaMinima/followers", "following_url": "https://api.github.com/users/TrigonaMinima/following{/other_user}", "gists_url": "https://api.github.com/users/TrigonaMinima/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TrigonaMinima", "id": 2520893, "login": "TrigonaMinima", "node_id": "MDQ6VXNlcjI1MjA4OTM=", "organizations_url": "https://api.github.com/users/TrigonaMinima/orgs", "received_events_url": "https://api.github.com/users/TrigonaMinima/received_events", "repos_url": "https://api.github.com/users/TrigonaMinima/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TrigonaMinima/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TrigonaMinima/subscriptions", "type": "User", "url": "https://api.github.com/users/TrigonaMinima" }
[ { "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": "006b...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
9
2019-02-21T06:10:16Z
2019-03-25T01:59:03Z
2019-03-24T23:34:05Z
CONTRIBUTOR
null
- [x] closes #21662 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Raises a helpful exception when a non-numeric index is sent to ```interpolate``` with methods which require numeric index. Skipped a few methods which can also work on datetime 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/25394/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25394/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25394.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25394", "merged_at": "2019-03-24T23:34:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25394.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25394" }
https://api.github.com/repos/pandas-dev/pandas/issues/25395
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25395/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25395/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25395/events
https://github.com/pandas-dev/pandas/issues/25395
412,769,071
MDU6SXNzdWU0MTI3NjkwNzE=
25,395
pd.Series.isin has different behaviour based on number of rows
{ "avatar_url": "https://avatars.githubusercontent.com/u/4025446?v=4", "events_url": "https://api.github.com/users/dimitar-petrov/events{/privacy}", "followers_url": "https://api.github.com/users/dimitar-petrov/followers", "following_url": "https://api.github.com/users/dimitar-petrov/following{/other_user}", "gists_url": "https://api.github.com/users/dimitar-petrov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dimitar-petrov", "id": 4025446, "login": "dimitar-petrov", "node_id": "MDQ6VXNlcjQwMjU0NDY=", "organizations_url": "https://api.github.com/users/dimitar-petrov/orgs", "received_events_url": "https://api.github.com/users/dimitar-petrov/received_events", "repos_url": "https://api.github.com/users/dimitar-petrov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dimitar-petrov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dimitar-petrov/subscriptions", "type": "User", "url": "https://api.github.com/users/dimitar-petrov" }
[ { "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": "eb6420", "default": false, "description": "Non-arithmetic algos: va...
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" }
5
2019-02-21T06:30:47Z
2020-09-04T22:30:21Z
2020-09-04T22:30:20Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import numpy as np ONEMIL = 1_000_000 big_ser = pd.Series([np.nan] + [1] * (ONEMIL)) big_ser.isin([np.nan]).head() 0 False 1 False 2 False 3 False 4 False dtype: bool big_ser.isin([np.nan]).value_counts() False 1000001 dtype: int64 small_ser = pd.Series([np.nan] + [1] * (ONEMIL - 1)) small_ser.isin([np.nan]).head() 0 True 1 False 2 False 3 False 4 False dtype: bool small_ser.isin([np.nan]).value_counts() False 999999 True 1 dtype: int64 ``` #### Problem description The behaviour is not consistent. The example above should be descriptive enough. #### Expected Output Accurate result of pd.Series.isin should not depend on series length. Both cases should accurately count 1 row containing np.Nan #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.6.final.0 python-bits: 64 OS: Linux OS-release: 4.20.8-arch1-1-ARCH machine: x86_64 processor: byteorder: little LC_ALL: en_US.utf-8 LANG: en_US.utf-8 LOCALE: en_US.UTF-8 pandas: 0.23.4 pytest: 4.0.1 pip: 18.1 setuptools: 40.6.2 Cython: None numpy: 1.15.4 scipy: 1.2.0 pyarrow: 0.11.1 xarray: 0.11.0 IPython: 7.2.0 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: 1.6.2 bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: 0.2.1 pandas_gbq: None pandas_datareader: 0.7.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25395/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25395/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25396
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25396/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25396/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25396/events
https://github.com/pandas-dev/pandas/issues/25396
412,801,969
MDU6SXNzdWU0MTI4MDE5Njk=
25,396
pd.Interval default closed='right'?
{ "avatar_url": "https://avatars.githubusercontent.com/u/2942215?v=4", "events_url": "https://api.github.com/users/smsaladi/events{/privacy}", "followers_url": "https://api.github.com/users/smsaladi/followers", "following_url": "https://api.github.com/users/smsaladi/following{/other_user}", "gists_url": "https://api.github.com/users/smsaladi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/smsaladi", "id": 2942215, "login": "smsaladi", "node_id": "MDQ6VXNlcjI5NDIyMTU=", "organizations_url": "https://api.github.com/users/smsaladi/orgs", "received_events_url": "https://api.github.com/users/smsaladi/received_events", "repos_url": "https://api.github.com/users/smsaladi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/smsaladi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smsaladi/subscriptions", "type": "User", "url": "https://api.github.com/users/smsaladi" }
[ { "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": "009800", "default": false, "description": "Interval...
open
false
null
[]
null
2
2019-02-21T08:25:19Z
2021-06-27T18:20:16Z
null
CONTRIBUTOR
null
In my trying to use pd.Intervals/pd.IntervalIndex (which are terrific additions), I've become somewhat perplexed with the default of `closed='right'`. Python slicing is inclusive-exclusive, so I thought `pd.Interval`s might have the same default. I imagine there is a reason for this that I haven't quite understood. I tried searching through the issue tracker for more information but wasn't really successful ... although I imagine it's pretty likely that I've missed the relevant issue.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25396/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25396/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25397
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25397/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25397/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25397/events
https://github.com/pandas-dev/pandas/issues/25397
412,806,813
MDU6SXNzdWU0MTI4MDY4MTM=
25,397
DataFrame groupby.first() is much slower than groupby.nth(0) on categorical dtypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/18585219?v=4", "events_url": "https://api.github.com/users/joseortiz3/events{/privacy}", "followers_url": "https://api.github.com/users/joseortiz3/followers", "following_url": "https://api.github.com/users/joseortiz3/following{/other_user}", "gists_url": "https://api.github.com/users/joseortiz3/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/joseortiz3", "id": 18585219, "login": "joseortiz3", "node_id": "MDQ6VXNlcjE4NTg1MjE5", "organizations_url": "https://api.github.com/users/joseortiz3/orgs", "received_events_url": "https://api.github.com/users/joseortiz3/received_events", "repos_url": "https://api.github.com/users/joseortiz3/repos", "site_admin": false, "starred_url": "https://api.github.com/users/joseortiz3/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joseortiz3/subscriptions", "type": "User", "url": "https://api.github.com/users/joseortiz3" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "a10c02", "default": false, "description": "Memory or execu...
open
false
null
[]
null
2
2019-02-21T08:38:16Z
2019-04-16T06:46:46Z
null
NONE
null
`groupby.first()` is much slower than `groupby.nth(0)` for categorical columns in a very specific way. Consider carefully the example below, where a dataframe has two columns `c1` and `c2`. The number of unique values in the `c1` column (regardless of its datatype) increases the runtime of `first` _when and only when_ `c2` is a categorical column. ```python import pandas as pd, numpy as np, timeit def test(N_CATEGORIES, cat_cols = ['c2']): # creates dataframe df with categorical column c1, optional categorical column c2. # Times how long grouping by c1 and calling nth(0) and first takes global df print(N_CATEGORIES) df = pd.DataFrame({ 'c1':np.arange(0,10000)%N_CATEGORIES, 'c2':np.arange(0,10000) }) for col in cat_cols: df[col] = df[col].astype('category') t_nth = timeit.timeit("x1 =df.groupby(['c1']).nth(0, dropna='all')", setup="from __main__ import df", number=1) t_first = timeit.timeit("x2 = df.groupby(['c1']).first()", setup="from __main__ import df", number=1) return t_nth, t_first test_N_categories = [1,10,100,1000,10000] # Test when column c2 is categorical results_c2_cat = pd.DataFrame([test(N, cat_cols=['c2']) for N in test_N_categories], index=test_N_categories, columns=['nth','first']) # Test when column c2 is not categorical results_c2_not_cat = pd.DataFrame([test(N, cat_cols=[]) for N in test_N_categories], index=test_N_categories, columns=['nth','first']) print(results_c2_cat) print(results_c2_not_cat) ``` The results are ```python >>> print(results_c2_cat) nth first 1 0.004204 0.010677 10 0.005890 0.015701 100 0.005305 0.052130 1000 0.004365 0.581036 10000 0.004358 2.847709 >>> print(results_c2_not_cat) nth first 1 0.003479 0.001110 10 0.003027 0.000993 100 0.003297 0.001089 1000 0.003297 0.001057 10000 0.003952 0.001382 ``` As shown, when the column `c2` is categorical, the runtime of `first` grows very rapidly as a function of the number of unique values in the column `c1` (and thus the "width" of the groupby). `first` and `last` both suffer from this problem. (see also https://github.com/pandas-dev/pandas/issues/19283 and https://github.com/pandas-dev/pandas/issues/19598) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.1.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: None pip: 19.0.1 setuptools: 39.0.1 Cython: None numpy: 1.15.3 scipy: 1.1.0 pyarrow: 0.12.0 xarray: 0.11.0 IPython: None sphinx: None patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.6 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.8 feather: 0.4.0 matplotlib: 3.0.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: 4.2.6 bs4: 4.6.3 html5lib: None sqlalchemy: 1.2.17 pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25397/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25397/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25398
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25398/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25398/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25398/events
https://github.com/pandas-dev/pandas/issues/25398
412,836,326
MDU6SXNzdWU0MTI4MzYzMjY=
25,398
Please add more ways to remove header formatting when exporting to Excel
{ "avatar_url": "https://avatars.githubusercontent.com/u/35899551?v=4", "events_url": "https://api.github.com/users/reportgunner/events{/privacy}", "followers_url": "https://api.github.com/users/reportgunner/followers", "following_url": "https://api.github.com/users/reportgunner/following{/other_user}", "gists_url": "https://api.github.com/users/reportgunner/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/reportgunner", "id": 35899551, "login": "reportgunner", "node_id": "MDQ6VXNlcjM1ODk5NTUx", "organizations_url": "https://api.github.com/users/reportgunner/orgs", "received_events_url": "https://api.github.com/users/reportgunner/received_events", "repos_url": "https://api.github.com/users/reportgunner/repos", "site_admin": false, "starred_url": "https://api.github.com/users/reportgunner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/reportgunner/subscriptions", "type": "User", "url": "https://api.github.com/users/reportgunner" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
null
4
2019-02-21T09:51:55Z
2019-02-22T15:11:08Z
2019-02-21T16:57:01Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python pandas.io.formats.excel.header_style = None pandas.core.format.header_style = None pandas.formats.format.header_style = None ``` #### Problem description Every time I try to make a simple xlsx file out of a bunch of SQL results I end up spending most of my time trying to get rid of the awful default header format. I never remember how to do it so I try all the ways that are on the internet and usually none of them work. Can you please add at least 4 different ways to disable the default formatting so I can spend more time trying to figure such a trivial action next time ? Also it would be great if the default header font can be changed to Comic Sans with Yellow font color, I can then go and fix the header formatting manually for every file because nobody will be able to read it. Best case scenario would be to somehow randomize this property that disables formatting so it changes from version to version and old ways to turn it off come and go so I can avoid more work by monkey patching the package every time I update. Thank you ! #### Expected Output pandas.io.formats.excel.header_style = None pandas.core.format.header_style = None pandas.formats.format.header_style = None pandas.formats.io.excel.header = None pandas.excel.formats.io.header = None pandas.pandas.pandas.header = None pandas.defaults.excel.headers.style = None pandas.formats.excel.header.interior.color = None pandas.formats.excel.header.borders.color = None pandas.formats.excel.header.borders.style = None #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.3.final.0 python-bits: 64 OS: Linux OS-release: 4.9.0-8-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: en_GB.UTF-8 pandas: 0.24.1 pytest: None pip: 19.0.2 setuptools: 40.6.3 Cython: None numpy: 1.16.1 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: 1.1.4 lxml.etree: 4.3.1 bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 3, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 1, "rocket": 0, "total_count": 4, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25398/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25398/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25399
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25399/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25399/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25399/events
https://github.com/pandas-dev/pandas/issues/25399
412,837,425
MDU6SXNzdWU0MTI4Mzc0MjU=
25,399
Inconsistent handling of duplicate axes + mixed dtypes in `DataFrame.where`
{ "avatar_url": "https://avatars.githubusercontent.com/u/18488?v=4", "events_url": "https://api.github.com/users/batterseapower/events{/privacy}", "followers_url": "https://api.github.com/users/batterseapower/followers", "following_url": "https://api.github.com/users/batterseapower/following{/other_user}", "gists_url": "https://api.github.com/users/batterseapower/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/batterseapower", "id": 18488, "login": "batterseapower", "node_id": "MDQ6VXNlcjE4NDg4", "organizations_url": "https://api.github.com/users/batterseapower/orgs", "received_events_url": "https://api.github.com/users/batterseapower/received_events", "repos_url": "https://api.github.com/users/batterseapower/repos", "site_admin": false, "starred_url": "https://api.github.com/users/batterseapower/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/batterseapower/subscriptions", "type": "User", "url": "https://api.github.com/users/batterseapower" }
[ { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" }, { "color": "cdea3c", "default": false, "de...
open
false
null
[]
null
7
2019-02-21T09:54:20Z
2021-08-19T16:10:21Z
null
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python result = pd.DataFrame([ [0, np.nan] ], columns=pd.Index(['A', 'A'])) mask = pd.DataFrame([[True, True]], *result.axes) a = result.astype(object).where(mask) # works b = result.astype('f8').where(mask) # works c = result.T.where(mask.T).T # works d = result.where(mask) # fails: "cannot reindex from a duplicate axis" ``` #### Problem description It doesn't make sense that `a`, `b` and `c` work but `d` doesn't. The dtype of a column shouldn't affect whether or not masking suceeds. #### Expected Output `a.astype('f8').equals(b.astype('f8')) and b.astype('f8').equals(c.astype('f8')) and c.astype('f8').equals(d.astype('f8'))` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.1.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: 3.1.2 pip: 19.0.2 setuptools: 39.0.1 Cython: 0.27.2 numpy: 1.16.1 scipy: 1.2.1 pyarrow: 0.9.0 xarray: None IPython: 6.1.0 sphinx: None patsy: 0.4.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: 1.3.0.dev0 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 2.2.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: 3.8.0 bs4: 4.6.0 html5lib: 0.9999999 sqlalchemy: 1.1.11 pymysql: None psycopg2: None jinja2: 2.9.6 s3fs: None fastparquet: 0.1.5 pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25399/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25399/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25400
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25400/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25400/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25400/events
https://github.com/pandas-dev/pandas/pull/25400
412,941,473
MDExOlB1bGxSZXF1ZXN0MjU1MDM2NTYw
25,400
Mark test_pct_max_many_rows as high memory
{ "avatar_url": "https://avatars.githubusercontent.com/u/1055830?v=4", "events_url": "https://api.github.com/users/scarabeusiv/events{/privacy}", "followers_url": "https://api.github.com/users/scarabeusiv/followers", "following_url": "https://api.github.com/users/scarabeusiv/following{/other_user}", "gists_url": "https://api.github.com/users/scarabeusiv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/scarabeusiv", "id": 1055830, "login": "scarabeusiv", "node_id": "MDQ6VXNlcjEwNTU4MzA=", "organizations_url": "https://api.github.com/users/scarabeusiv/orgs", "received_events_url": "https://api.github.com/users/scarabeusiv/received_events", "repos_url": "https://api.github.com/users/scarabeusiv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/scarabeusiv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/scarabeusiv/subscriptions", "type": "User", "url": "https://api.github.com/users/scarabeusiv" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
6
2019-02-21T14:06:56Z
2019-02-25T10:59:49Z
2019-02-22T19:04:26Z
CONTRIBUTOR
null
Fixes issue #25384 - [ ] closes #25384 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25400/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25400/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25400.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25400", "merged_at": "2019-02-22T19:04:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25400.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25400" }
https://api.github.com/repos/pandas-dev/pandas/issues/25401
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25401/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25401/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25401/events
https://github.com/pandas-dev/pandas/issues/25401
412,978,605
MDU6SXNzdWU0MTI5Nzg2MDU=
25,401
No module named 'pandas.tslib''
{ "avatar_url": "https://avatars.githubusercontent.com/u/42534003?v=4", "events_url": "https://api.github.com/users/qqkl662/events{/privacy}", "followers_url": "https://api.github.com/users/qqkl662/followers", "following_url": "https://api.github.com/users/qqkl662/following{/other_user}", "gists_url": "https://api.github.com/users/qqkl662/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/qqkl662", "id": 42534003, "login": "qqkl662", "node_id": "MDQ6VXNlcjQyNTM0MDAz", "organizations_url": "https://api.github.com/users/qqkl662/orgs", "received_events_url": "https://api.github.com/users/qqkl662/received_events", "repos_url": "https://api.github.com/users/qqkl662/repos", "site_admin": false, "starred_url": "https://api.github.com/users/qqkl662/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qqkl662/subscriptions", "type": "User", "url": "https://api.github.com/users/qqkl662" }
[]
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
2019-02-21T15:20:57Z
2019-02-21T15:37:32Z
2019-02-21T15:25:10Z
NONE
null
i cannot import the module named qtpandas,this module is based on pandas. the problem is 'ModuleNotFoundError: No module named 'pandas.tslib'' how to solve this problem? i have install the qtpandas and pandas ![360 20190221231955910](https://user-images.githubusercontent.com/42534003/53179726-445fc280-362f-11e9-91ec-c072842ff563.jpg)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25401/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25401/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25402
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25402/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25402/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25402/events
https://github.com/pandas-dev/pandas/pull/25402
412,995,004
MDExOlB1bGxSZXF1ZXN0MjU1MDc5NTUz
25,402
CI: Set pytest minversion to 4.0.2
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
13
2019-02-21T15:53:07Z
2019-02-28T14:30:12Z
2019-02-28T12:59:33Z
MEMBER
null
- [x] closes #23519 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25402/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25402/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25402.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25402", "merged_at": "2019-02-28T12:59:33Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25402.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25402" }
https://api.github.com/repos/pandas-dev/pandas/issues/25403
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25403/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25403/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25403/events
https://github.com/pandas-dev/pandas/issues/25403
413,079,945
MDU6SXNzdWU0MTMwNzk5NDU=
25,403
Constructing a df with readonly array of Periods fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4", "events_url": "https://api.github.com/users/max-sixty/events{/privacy}", "followers_url": "https://api.github.com/users/max-sixty/followers", "following_url": "https://api.github.com/users/max-sixty/following{/other_user}", "gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/max-sixty", "id": 5635139, "login": "max-sixty", "node_id": "MDQ6VXNlcjU2MzUxMzk=", "organizations_url": "https://api.github.com/users/max-sixty/orgs", "received_events_url": "https://api.github.com/users/max-sixty/received_events", "repos_url": "https://api.github.com/users/max-sixty/repos", "site_admin": false, "starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions", "type": "User", "url": "https://api.github.com/users/max-sixty" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Functionality that used ...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
4
2019-02-21T19:11:02Z
2019-03-07T14:24:56Z
2019-03-07T14:24:56Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python In [1]: import pandas as pd In [2]: import numpy as np In [6]: pa = pd.PeriodIndex([pd.Period('2019-01-01')]).to_numpy() In [8]: pa.setflags(write=False) In [9]: pd.DataFrame(dict(date=pa, x=[1])) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-9-7a4f1ee8be64> in <module>() ----> 1 pd.DataFrame(dict(date=pa, x=[1])) /usr/local/lib/python2.7/site-packages/pandas/core/frame.pyc in __init__(self, data, index, columns, dtype, copy) 390 dtype=dtype, copy=copy) 391 elif isinstance(data, dict): --> 392 mgr = init_dict(data, index, columns, dtype=dtype) 393 elif isinstance(data, ma.MaskedArray): 394 import numpy.ma.mrecords as mrecords /usr/local/lib/python2.7/site-packages/pandas/core/internals/construction.pyc in init_dict(data, index, columns, dtype) 210 arrays = [data[k] for k in keys] 211 --> 212 return arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype) 213 214 /usr/local/lib/python2.7/site-packages/pandas/core/internals/construction.pyc in arrays_to_mgr(arrays, arr_names, index, columns, dtype) 54 55 # don't force copy because getting jammed in an ndarray anyway ---> 56 arrays = _homogenize(arrays, index, dtype) 57 58 # from BlockManager perspective /usr/local/lib/python2.7/site-packages/pandas/core/internals/construction.pyc in _homogenize(data, index, dtype) 275 val = lib.fast_multiget(val, oindex.values, default=np.nan) 276 val = sanitize_array(val, index, dtype=dtype, copy=False, --> 277 raise_cast_failure=False) 278 279 homogenized.append(val) /usr/local/lib/python2.7/site-packages/pandas/core/internals/construction.pyc in sanitize_array(data, index, dtype, copy, raise_cast_failure) 675 if inferred == 'period': 676 try: --> 677 subarr = period_array(subarr) 678 except IncompatibleFrequency: 679 pass /usr/local/lib/python2.7/site-packages/pandas/core/arrays/period.pyc in period_array(data, freq, copy) 786 data = ensure_object(data) 787 --> 788 return PeriodArray._from_sequence(data, dtype=dtype) 789 790 /usr/local/lib/python2.7/site-packages/pandas/core/arrays/period.pyc in _from_sequence(cls, scalars, dtype, copy) 197 periods = periods.copy() 198 --> 199 freq = freq or libperiod.extract_freq(periods) 200 ordinals = libperiod.extract_ordinals(periods, freq) 201 return cls(ordinals, freq=freq) pandas/_libs/tslibs/period.pyx in pandas._libs.tslibs.period.extract_freq() /usr/local/lib/python2.7/site-packages/pandas/_libs/tslibs/period.so in View.MemoryView.memoryview_cwrapper() /usr/local/lib/python2.7/site-packages/pandas/_libs/tslibs/period.so in View.MemoryView.memoryview.__cinit__() ValueError: buffer source array is read-only ``` #### Problem description I'm currently seeing this issue because xarray is constructing a read-only array of Periods in a `.to_dataframe()` call. If pandas isn't expected to support these arrays, we could attempt to prevent this in xarray #### Expected Output #### Output of ``pd.show_versions()`` <details> In [10]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.15.final.0 python-bits: 64 OS: Darwin OS-release: 18.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.24.1 pytest: 4.2.0 pip: 19.0.3 setuptools: 40.6.3 Cython: 0.29.5 numpy: 1.16.1 scipy: 1.2.1 pyarrow: 0.12.0 xarray: 0.11.3 IPython: 5.8.0 sphinx: None patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: None numexpr: 2.6.9 feather: None matplotlib: 2.2.3 openpyxl: None xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: None lxml.etree: 4.3.1 bs4: 4.7.1 html5lib: None sqlalchemy: 1.2.17 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: 0.9.0 pandas_datareader: 0.7.0 gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25403/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25403/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25404
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25404/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25404/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25404/events
https://github.com/pandas-dev/pandas/issues/25404
413,137,993
MDU6SXNzdWU0MTMxMzc5OTM=
25,404
Series.str.casefold
{ "avatar_url": "https://avatars.githubusercontent.com/u/47404382?v=4", "events_url": "https://api.github.com/users/mike-suplari/events{/privacy}", "followers_url": "https://api.github.com/users/mike-suplari/followers", "following_url": "https://api.github.com/users/mike-suplari/following{/other_user}", "gists_url": "https://api.github.com/users/mike-suplari/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mike-suplari", "id": 47404382, "login": "mike-suplari", "node_id": "MDQ6VXNlcjQ3NDA0Mzgy", "organizations_url": "https://api.github.com/users/mike-suplari/orgs", "received_events_url": "https://api.github.com/users/mike-suplari/received_events", "repos_url": "https://api.github.com/users/mike-suplari/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mike-suplari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mike-suplari/subscriptions", "type": "User", "url": "https://api.github.com/users/mike-suplari" }
[]
closed
false
null
[]
null
0
2019-02-21T21:45:28Z
2019-02-21T22:20:02Z
2019-02-21T21:46:34Z
NONE
null
See #25405
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25404/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25404/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25405
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25405/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25405/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25405/events
https://github.com/pandas-dev/pandas/issues/25405
413,138,709
MDU6SXNzdWU0MTMxMzg3MDk=
25,405
Series.str.casefold
{ "avatar_url": "https://avatars.githubusercontent.com/u/1328688?v=4", "events_url": "https://api.github.com/users/selik/events{/privacy}", "followers_url": "https://api.github.com/users/selik/followers", "following_url": "https://api.github.com/users/selik/following{/other_user}", "gists_url": "https://api.github.com/users/selik/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/selik", "id": 1328688, "login": "selik", "node_id": "MDQ6VXNlcjEzMjg2ODg=", "organizations_url": "https://api.github.com/users/selik/orgs", "received_events_url": "https://api.github.com/users/selik/received_events", "repos_url": "https://api.github.com/users/selik/repos", "site_admin": false, "starred_url": "https://api.github.com/users/selik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/selik/subscriptions", "type": "User", "url": "https://api.github.com/users/selik" }
[ { "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": "String e...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
2
2019-02-21T21:47:28Z
2019-02-28T21:21:39Z
2019-02-28T21:21:39Z
CONTRIBUTOR
null
`Series.str.lower` implements `str.lower`, as expected. There are also corresponding `Series` methods for the other Python 2 string casing methods. However, Python 3's `str.casefold` is missing. [Casefold](https://docs.python.org/3/library/stdtypes.html#str.casefold) improves string equality and other comparisons, because it handles a greater variety of characters, as per the Unicode Standard. It'd be nice to have `Series.str.casefold` in Pandas. The current alternative is more verbose and is slower than `Series.str.lower`. pd.Series(s.casefold() if isinstance(s, str) else s for s in series) Further, this alternative encourages a frustrating mistake -- forgetting to keep the original Series' index, which causes trouble if the new Series needs to be inserted into the same DataFrame as the original. Apologies for double-posting. I used the wrong account for #25404 .
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25405/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25405/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25406
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25406/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25406/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25406/events
https://github.com/pandas-dev/pandas/issues/25406
413,200,133
MDU6SXNzdWU0MTMyMDAxMzM=
25,406
RecursionError when comparing columns with a string beginning in "interval" on Debian
{ "avatar_url": "https://avatars.githubusercontent.com/u/8292702?v=4", "events_url": "https://api.github.com/users/cdebost/events{/privacy}", "followers_url": "https://api.github.com/users/cdebost/followers", "following_url": "https://api.github.com/users/cdebost/following{/other_user}", "gists_url": "https://api.github.com/users/cdebost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cdebost", "id": 8292702, "login": "cdebost", "node_id": "MDQ6VXNlcjgyOTI3MDI=", "organizations_url": "https://api.github.com/users/cdebost/orgs", "received_events_url": "https://api.github.com/users/cdebost/received_events", "repos_url": "https://api.github.com/users/cdebost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cdebost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cdebost/subscriptions", "type": "User", "url": "https://api.github.com/users/cdebost" }
[ { "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": "009800", ...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2019-02-22T01:27:18Z
2019-02-25T22:35:40Z
2019-02-22T02:18:45Z
NONE
null
#### Code Sample ```python import pandas as pd d = {'col1': ['a', 'b']} df = pd.DataFrame(data=d) df.col1 == 'interval' # works df.col1 == 'bintervals' # works df.col1 == 'intervals' # RecursionError df.col1 == 'interval11111' # RecursionError ``` Reproduced on python 2.7.15, 3.6.7, 3.7.0, 3.7.2 on Debian (using official Docker images), can't reproduce on macOS. #### Issue Description My use case involves using a very small DataFrame from a csv, whose columns will be compared against words in news stories. Recently, I noticed some `RecusionError`s in my server logs. After some digging, I discovered that comparing a DataFrame's column against a string that starts with "interval" causes the RecursionError. The error appears to occur when the string starts with "interval" (no characters preceding it) and has additional characters after "interval". I'm not familiar enough with pandas to know why this could be happening. Are values starting with "interval" reserved for pandas' internal implementation of Intervals? Strangely I can't reproduce the RecursionError on macOS. This issue could be related to Python on Debian, but the recursion loop does seem to originate in `pandas/core/dtypes/dtypes.py`. My apologies if this is a duplicate issue that is already being tracked. I could not find any other reports of issues with this value, or documentation that states "interval..." is a reserved value. #### Stack trace of RecursionError <details> Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/pandas/core/ops.py", line 1728, in wrapper (is_extension_array_dtype(other) and not is_scalar(other))): File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 1749, in is_extension_array_dtype registry.find(dtype) is not None) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 938, in construct_from_string return cls(string) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 899, in __new__ subtype = pandas_dtype(subtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/common.py", line 2004, in pandas_dtype result = registry.find(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 89, in find return dtype_type.construct_from_string(dtype) File "/usr/local/lib/python2.7/site-packages/pandas/core/dtypes/dtypes.py", line 689, in construct_from_string if isinstance(string, compat.string_types): RuntimeError: maximum recursion depth exceeded while calling a Python object </details> #### Expected Output Pandas should not raise a RecursionError. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.9.125-linuxkit machine: x86_64 processor: byteorder: little LC_ALL: None LANG: C.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.1 pytest: 4.3.0 pip: 18.1 setuptools: 40.6.2 Cython: None numpy: 1.16.1 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: 1.2.18 pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25406/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25406/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25407
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25407/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25407/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25407/events
https://github.com/pandas-dev/pandas/pull/25407
413,263,497
MDExOlB1bGxSZXF1ZXN0MjU1Mjg2ODY2
25,407
dropna(subset=...) should accept incomplete key
{ "avatar_url": "https://avatars.githubusercontent.com/u/33966871?v=4", "events_url": "https://api.github.com/users/alexander-ponomaroff/events{/privacy}", "followers_url": "https://api.github.com/users/alexander-ponomaroff/followers", "following_url": "https://api.github.com/users/alexander-ponomaroff/following{/other_user}", "gists_url": "https://api.github.com/users/alexander-ponomaroff/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alexander-ponomaroff", "id": 33966871, "login": "alexander-ponomaroff", "node_id": "MDQ6VXNlcjMzOTY2ODcx", "organizations_url": "https://api.github.com/users/alexander-ponomaroff/orgs", "received_events_url": "https://api.github.com/users/alexander-ponomaroff/received_events", "repos_url": "https://api.github.com/users/alexander-ponomaroff/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alexander-ponomaroff/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexander-ponomaroff/subscriptions", "type": "User", "url": "https://api.github.com/users/alexander-ponomaroff" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
null
5
2019-02-22T06:34:00Z
2019-04-20T17:40:43Z
2019-04-20T17:40:43Z
CONTRIBUTOR
null
I'm not sure if this is the best way to go about solving this problem, so feedback would be appreciated. - [x] closes #17737 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25407/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25407/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25407.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25407", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25407.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25407" }
https://api.github.com/repos/pandas-dev/pandas/issues/25408
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25408/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25408/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25408/events
https://github.com/pandas-dev/pandas/issues/25408
413,327,873
MDU6SXNzdWU0MTMzMjc4NzM=
25,408
Unexpected to_dict output after upgrading to 0.24.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/81103?v=4", "events_url": "https://api.github.com/users/atlasstrategic/events{/privacy}", "followers_url": "https://api.github.com/users/atlasstrategic/followers", "following_url": "https://api.github.com/users/atlasstrategic/following{/other_user}", "gists_url": "https://api.github.com/users/atlasstrategic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/atlasstrategic", "id": 81103, "login": "atlasstrategic", "node_id": "MDQ6VXNlcjgxMTAz", "organizations_url": "https://api.github.com/users/atlasstrategic/orgs", "received_events_url": "https://api.github.com/users/atlasstrategic/received_events", "repos_url": "https://api.github.com/users/atlasstrategic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/atlasstrategic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/atlasstrategic/subscriptions", "type": "User", "url": "https://api.github.com/users/atlasstrategic" }
[ { "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": "Functionality that used ...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2019-02-22T09:59:59Z
2020-12-20T16:10:43Z
null
NONE
null
#### Code to illustrate 0.23.4 versus 0.24.1 #### pandas 0.23.4 ```python import pandas as pd columns = ["A", "B"] pd.DataFrame(columns=columns).transpose().to_dict(orient="split") # output # {'index': ['A', 'B'], 'columns': [], 'data': [[], []]} pd.DataFrame(columns=columns).transpose().values.tolist() # output # [[], []] ``` #### pandas 0.24.1 ```python import pandas as pd columns = ["A", "B"] pd.DataFrame(columns=columns).transpose().to_dict(orient="split") # output not consistent with 0.23.4 # {'index': ['A', 'B'], 'columns': [], 'data': []} pd.DataFrame(columns=columns).transpose().values.tolist() # output is consistent with 0.23.4 # [[], []] ``` #### Problem description After upgrading to Pandas 0.24.1, the expected output when doing a `transpose`, followed by a `to_dict` has changed. Before, an empty DataFrame was returning an empty list for each column (similar to `values.tolist()`) e.g. `'data': [[]. []]`. Now the output is `'data': []`. #### Expected Output Refer to code and output for `0.23.4` above. #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.6.6.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-45-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_ZA.UTF-8 LOCALE: en_ZA.UTF-8 pandas: 0.24.1 pytest: None pip: 19.0.2 setuptools: 40.4.3 Cython: None numpy: 1.14.0 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.7.3 pytz: 2018.3 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: 2.5.12 xlrd: None xlwt: None xlsxwriter: 1.1.2 lxml.etree: None bs4: 4.7.1 html5lib: None sqlalchemy: None pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None ``` </details>
{ "+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/25408/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25408/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25409
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25409/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25409/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25409/events
https://github.com/pandas-dev/pandas/issues/25409
413,371,347
MDU6SXNzdWU0MTMzNzEzNDc=
25,409
Factorize don't preserve na_sentinel values when sort is specified
{ "avatar_url": "https://avatars.githubusercontent.com/u/1908664?v=4", "events_url": "https://api.github.com/users/rahulnair23/events{/privacy}", "followers_url": "https://api.github.com/users/rahulnair23/followers", "following_url": "https://api.github.com/users/rahulnair23/following{/other_user}", "gists_url": "https://api.github.com/users/rahulnair23/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rahulnair23", "id": 1908664, "login": "rahulnair23", "node_id": "MDQ6VXNlcjE5MDg2NjQ=", "organizations_url": "https://api.github.com/users/rahulnair23/orgs", "received_events_url": "https://api.github.com/users/rahulnair23/received_events", "repos_url": "https://api.github.com/users/rahulnair23/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rahulnair23/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rahulnair23/subscriptions", "type": "User", "url": "https://api.github.com/users/rahulnair23" }
[ { "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": "eb6420", "default": false, "description": "Non-arithmetic algos: va...
closed
false
null
[]
{ "closed_at": "2019-03-13T21:33:10Z", "closed_issues": 127, "created_at": "2019-01-30T14:20:23Z", "creator": { "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" }, "description": "on-merge: backport to 0.24.x", "due_on": "2019-03-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/63", "id": 4015221, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63/labels", "node_id": "MDk6TWlsZXN0b25lNDAxNTIyMQ==", "number": 63, "open_issues": 0, "state": "closed", "title": "0.24.2", "updated_at": "2019-03-13T21:33:10Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/63" }
7
2019-02-22T11:53:45Z
2019-03-12T20:25:37Z
2019-03-12T20:25:26Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python print("\nWithout sort:") labels, uniques = pd.factorize(['b', None, 'a', 'c', 'b'], na_sentinel=100) print("Labels: {}".format(labels)) print("Uniques: {}".format(uniques)) print("\nWith sort:") labels, uniques = pd.factorize(['b', None, 'a', 'c', 'b'], na_sentinel=100, sort=True) print("Labels: {}".format(labels)) print("Uniques: {}".format(uniques)) Without sort: Labels: [ 0 100 1 2 0] Uniques: ['b', 'a', 'c'] With sort: Labels: [ 1 4556668520 0 2 1] Uniques: ['a', 'b', 'c'] ``` #### Problem description Calls to `factorize` with a na_sentinel value set and `sort=True` appears not to respect the na_sentinel values specified. #### Expected Output ``` Without sort: Labels: [ 0 100 1 2 0] Uniques: ['b', 'a', 'c'] With sort: Labels: [ 1 100 0 2 1] Uniques: ['a', 'b', 'c'] ``` #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Darwin OS-release: 18.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_IE.UTF-8 LOCALE: en_IE.UTF-8 pandas: 0.24.1 pytest: None pip: 18.1 setuptools: 40.6.3 Cython: None numpy: 1.16.1 scipy: 1.2.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25409/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25409/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25410
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25410/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25410/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25410/events
https://github.com/pandas-dev/pandas/pull/25410
413,404,734
MDExOlB1bGxSZXF1ZXN0MjU1Mzk1MzMz
25,410
DOC: Edited docstring of Interval
{ "avatar_url": "https://avatars.githubusercontent.com/u/11660522?v=4", "events_url": "https://api.github.com/users/wdecoster/events{/privacy}", "followers_url": "https://api.github.com/users/wdecoster/followers", "following_url": "https://api.github.com/users/wdecoster/following{/other_user}", "gists_url": "https://api.github.com/users/wdecoster/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wdecoster", "id": 11660522, "login": "wdecoster", "node_id": "MDQ6VXNlcjExNjYwNTIy", "organizations_url": "https://api.github.com/users/wdecoster/orgs", "received_events_url": "https://api.github.com/users/wdecoster/received_events", "repos_url": "https://api.github.com/users/wdecoster/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wdecoster/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wdecoster/subscriptions", "type": "User", "url": "https://api.github.com/users/wdecoster" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-02-22T13:31:11Z
2019-02-22T15:14:22Z
2019-02-22T15:13:31Z
CONTRIBUTOR
null
The docstring contained a repeated segment, which I removed.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25410/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25410/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25410.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25410", "merged_at": "2019-02-22T15:13:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25410.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25410" }
https://api.github.com/repos/pandas-dev/pandas/issues/25411
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25411/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25411/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25411/events
https://github.com/pandas-dev/pandas/issues/25411
413,405,973
MDU6SXNzdWU0MTM0MDU5NzM=
25,411
Unexpected result with Resampler.apply for non-naive time index
{ "avatar_url": "https://avatars.githubusercontent.com/u/1150402?v=4", "events_url": "https://api.github.com/users/kdebrab/events{/privacy}", "followers_url": "https://api.github.com/users/kdebrab/followers", "following_url": "https://api.github.com/users/kdebrab/following{/other_user}", "gists_url": "https://api.github.com/users/kdebrab/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kdebrab", "id": 1150402, "login": "kdebrab", "node_id": "MDQ6VXNlcjExNTA0MDI=", "organizations_url": "https://api.github.com/users/kdebrab/orgs", "received_events_url": "https://api.github.com/users/kdebrab/received_events", "repos_url": "https://api.github.com/users/kdebrab/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kdebrab/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kdebrab/subscriptions", "type": "User", "url": "https://api.github.com/users/kdebrab" }
[ { "color": "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, ...
open
false
null
[]
null
5
2019-02-22T13:34:18Z
2020-06-08T19:19:10Z
null
CONTRIBUTOR
null
When resampling a non-naive time series with a custom function (using apply or agg), an unexpected result is returned. ```python import pandas as pd def weighted_quantile(series, weights, q): series = series.sort_values() cumsum = weights.reindex(series.index).fillna(0).cumsum() cutoff = cumsum.iloc[-1] * q return series[cumsum >= cutoff].iloc[0] times = pd.date_range('2017-6-23 18:00', periods=8, freq='15T', tz='UTC') data = pd.Series([1., 1, 1, 1, 1, 2, 2, 0], index=times) weights = pd.Series([160., 91, 65, 43, 24, 10, 1, 0], index=times) data.resample('D').apply(weighted_quantile, weights=weights, q=0.5) ``` ``` Out[2]: 2017-06-23 00:00:00+00:00 0.0 Freq: D, dtype: float64 ``` #### Expected Output The (single) value of the series should correspond with: ```python weighted_quantile(data, weights=weights, q=0.5) ``` ``` Out[3]: 1.0 ``` One indeed gets this result when passing `data` and `weigths` with naive time index: ```python times_naive = pd.date_range('2017-6-23 18:00', periods=8, freq='15T') data = pd.Series([1., 1, 1, 1, 1, 2, 2, 0], index=times_naive) weights = pd.Series([160., 91, 65, 43, 24, 10, 1, 0], index=times_naive) data.resample('D').apply(weighted_quantile, weights=weights, q=0.5) ``` ``` Out[4]: 2017-06-23 1.0 Freq: D, dtype: float64 ``` But, as shown above, not when passing non-naive time series. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.6.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.23.4 pytest: 4.2.1 pip: 19.0.2 setuptools: 39.0.1 Cython: 0.29.4 numpy: 1.16.0 scipy: 1.2.0 pyarrow: None xarray: 0.11.3 IPython: 7.2.0 sphinx: None patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: None numexpr: None feather: None matplotlib: 2.2.3 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml: 4.3.0 bs4: 4.6.1 html5lib: 1.0.1 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25411/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25411/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25412
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25412/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25412/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25412/events
https://github.com/pandas-dev/pandas/issues/25412
413,449,759
MDU6SXNzdWU0MTM0NDk3NTk=
25,412
pd.concat doesn't preserve Categorical dtype when the categorical columns is missing in one of the DataFrames.
{ "avatar_url": "https://avatars.githubusercontent.com/u/4789087?v=4", "events_url": "https://api.github.com/users/zachmoshe/events{/privacy}", "followers_url": "https://api.github.com/users/zachmoshe/followers", "following_url": "https://api.github.com/users/zachmoshe/following{/other_user}", "gists_url": "https://api.github.com/users/zachmoshe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zachmoshe", "id": 4789087, "login": "zachmoshe", "node_id": "MDQ6VXNlcjQ3ODkwODc=", "organizations_url": "https://api.github.com/users/zachmoshe/orgs", "received_events_url": "https://api.github.com/users/zachmoshe/received_events", "repos_url": "https://api.github.com/users/zachmoshe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zachmoshe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zachmoshe/subscriptions", "type": "User", "url": "https://api.github.com/users/zachmoshe" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "de...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
6
2019-02-22T15:19:30Z
2021-06-27T18:32:43Z
null
NONE
null
```python a = pd.DataFrame({'f1': [1,2,3]}) b = pd.DataFrame({'f1': [2,3,1], 'f2': pd.Series([4,4,4]).astype('category')}) pd.concat((a,b), sort=True).dtypes >> f1 int64 >> f2 object >> dtype: object ``` #### Problem description (Similar to #14016, not sure if it's caused by the same bug or another one. feel free to merge) When concatenating two DataFrames where one has a categorical column that the other is missing, the result contains the categorical column as a 'object' (losing the "real" dtype). If we were to fill the missing column with Nones (but with the same categorical dtype), the concatenation would keep the dtype. In the previous example, adding: ```python a['f2'] = pd.Series([None, None, None]).astype(b.dtypes['f2']) ``` before concatenating, will solve the problem. I believe if a field is missing from one of the merged dataframes, a reasonable behavior would be to copy it and preserve its dtype. #### Expected Output Column 'f2' should be a categorical (same as b['f2']). #### Output of ``pd.show_versions()`` INSTALLED VERSIONS ------------------ commit: None python: 3.6.5.final.0 python-bits: 64 OS: Darwin OS-release: 18.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.23.0 pytest: None pip: 10.0.1 setuptools: 39.0.1 Cython: None numpy: 1.14.3 scipy: 1.1.0 pyarrow: None xarray: None IPython: 6.4.0 sphinx: None patsy: None dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 2.0.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: 0.9999999 sqlalchemy: 1.1.13 pymysql: None psycopg2: 2.7.3.2 (dt dec pq3 ext lo64) jinja2: 2.9.4 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None
{ "+1": 6, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 6, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25412/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25412/timeline
null
null
null