Pandas isin fails with large series/lists of tuples

Code Samplefrom random import randintdef bug_report(n=2000000, idmax=22750, prodmax=3414341): ids = [randint(1, idmax...

Pandas pd.cut() support set labels,but when read,labels is deprecated,use code instead

Code Sample, a copy-pastable example if possible# Your code hereimport pandas as pdfrom pandas import DataFrame,Seriesag...

Pandas read_json() removes underscore and converts string to integer when only numbers and underscore present

Code Sampleimport pandas as pddf = pd.DataFrame({'test': ['34343_43434']})json = df.to_json(orient='records')result = pd...

Pandas Pandas 'duplicated' and 'drop_duplicated' not working properly

The dataset named 'changes' was obtained from a merge by RID:changes.head()DX_m12RIDDX_m12013110402060308041101I've used...

Pandas wrong numbers in nsmallest with columns

Code Sample, a copy-pastable example if possibleimport pandas as pddf = pd.DataFrame({'a': [1, 9, 8, 11, -1, 6, 4, 9, 0]...

Pandas ENH: Add .pipe to GroupBy objects

I propose adding a pipe method to GroupBy objects, having the same interface as DataFrame.pipe/Series.pipe. The use case...

Pandas Specify type "category" in read_sql

Would it be possible to add a feature allowing one to specify that a particular column to be downloaded via read_sql has...

Pandas slicing with dt object or pd.Timestamp on unsorted date index fails

Code Sample, a copy-pastable example if possibledata = list(zip([dt.date(2011, 1, 1), dt.date(2007, 1, 1), dt.date(2015,...

Pandas pd.to_gbq() - transient, but persistent "Message: Error encountered during execution. Retrying may solve the problem."

Code Sample, a copy-pastable example if possibleprint(TARGET_TABLE)print(df_tag2vec.shape)print(df_tag2vec.head())# send...

Pandas ImportError: No module named 'pandas.plotting'

Code Sample, a copy-pastable example if possiblefrom pandas.plotting import scatter_matrixdf = pd.DataFrame(np.random.ra...

Pandas Tons of Test Errors with 0.20.3 and 0.21.0.dev0 Python 3.6.3

Code Sample, a copy-pastable example if possiblenosetests -v pandasProblem descriptionI installed 0.20.3 and then also t...

Pandas Dataframe.isin() doesnot work after upgrading to pandas 0.20.3

Code Sample, a copy-pastable example if possible v=veh_frame.Accident_Index[(veh_frame.Accident_Index.isin(v2.tolist()))...

Pandas Several datetime tests fail on arm64, armel, armhf, mips, mips64el, mipsel, s390x. NaT seems to be handled differently.

For example this chunk of unit test code from pandas.tests.frame.test_indexing.py test_where_datetimefrom datetime impor...

Pandas Unexpected behavior of pd.isnull with np.nan

Code Sampleimport pandas as pdimport numpy as npprint pd.isnull(['abacaba', np.nan]) # [False, False]print pd.isnull(pd...

Pandas data type "datetime" not understood

When building pandas 0.19.2 or 0.20.3 I get many similar test failures.Here is one from the attempt to build 0.19.2:====...

Pandas Storing a dict in a DataFrame fails

Code Sample, a copy-pastable example if possibleBoth of the examples below fail with the same errordf = pd.DataFrame(ind...

Pandas read_csv fails to read file if there are cyrillic symbols in filename

Code Sample, a copy-pastable example if possibleimport pandascyrillic_filename = "./файл_1.csv"# 'c' engine fa...

Pandas BUG: Wrong groupby indices

Code Sample, a copy-pastable example if possible# Your code heredf = pd.DataFrame({'a':['1', '2'], 'b':[None, '20']})df....

Pandas Numerous FutureWarning with asv_bench

[ 1.85%] ····· /tmp/pandas/asv_bench/benchmarks/algorithms.py:64: FutureWarning: pd.match() is deprecated and will be r...

Pandas Subclassing Series with an original attribute

See SO posthttps://stackoverflow.com/q/46498784/2336654 Code Sample, a copy-pastable example if possiblefrom pandas imp...
上一页 下一页
.