Pandas Series comparison ops __finalize__ inconsistent

Looking at core.ops. _comp_method_SERIES and whether we can have the datetime and timedelta cases defer to Index subclas...

Pandas DOC: NumFOCUS link broken at http://pandas.pydata.org

The links to NumFOCUS on the pandas web site are all broken.Link on pages:http://pandas.pydata.orghttp://pandas.pydata.o...

Pandas BUG: dtype comparison between numpy dtypes and pandas dtypes fail

Code Sample, a copy-pastable example if possible>>> ndt = np.dtype(object)>>> pdt = pd.api.types.Categ...

Pandas can't import pandas unless press cntr-c

Problem descriptionI have to press ctrl-c to load pandas in python termination. Or it just stuck there.It's too weird, I...

Pandas DataFrame.values sometimes returns a view and sometimes a copy

Example 1 (.values returning a view)df = pd.DataFrame([["A", "B"],["C", "D"]])df...

Pandas rolling().apply() skips window if it contains NaN

Code Sample import pandas as pd import numpy as np iinput = np.arange(10.0) iinput[5] = np.nan x = pd.Ser...

Pandas resample precision issue

Code Sample, a copy-pastable example if possible"""Bug pandas."""from pandas import read_c...

Pandas Categoricals are not preserved by groupby.Groupby.last()

Code Sample, a copy-pastable example if possiblea = pd.DataFrame({ 'ID': [1, 1, 2, 2], 'GENDER': ['male', 'male', ...

Pandas fillna can't process np.float16 type

Code Sample, a copy-pastable example if possiblep_s = pd.Series(data=[47.97, np.NAN, np.NAN, 47.16, 47.97], dtype=np....

Pandas BUG: DataFrame creation from a tz-aware Index

dti = pd.date_range('2016-09-23', periods=3, tz='US/Central')df = pd.DataFrame(dti)>>> df.TTraceback (most rece...

Pandas .unique fails with read-only input.

Code Sample, a copy-pastable example if possiblearr = np.arange(10)arr.setflags(write=False)ser = pd.Series(arr, index=a...

Pandas Off By One for PeriodIndex.asfreq?

I haven't looked into this at all but is this the correct behavior?In [1]: import pandas as pd;In [2]: p1 = pd.PeriodInd...

Pandas Category dtype lost after pd.melt

Python CodeBefore pd.meltimport pandas as pddf = pd.DataFrame({'A': {0: 'a', 1: 'b', 2: 'c'}, 'B': {0...

Pandas reduce output when printing indices and columns in pandas data frame and series

I often work with pandas using big dataframes and series with multi-index or multi-column and I use the EMACS shell. O...

Pandas DatetimeIndex: 'freq' inconsistencies

Code Sample, a copy-pastable example if possibleimport pandas as pdfrom pandas.tseries.offsets import *rng = pd.date_ran...

Pandas DataFrame groupby + apply did the first function twice

In [1]: import pandas as pd ...: import numpy as np ...: In [2]: pd.__version__Out[2]: '0.20.3'In [3]: In [3]: a = p...

Pandas class inheritance

import pandas as pdclass NewDF( pd.DataFrame ): def __init__( self , data ): super().__init__( data )a = NewDF...

Pandas AttributeError: module 'pandas' has no attribute 'Data'

import pandas as pddict={ "country":["Brasil", "Russia", "India", "China", "South Africa"], "capital":["Brasilia",...

Pandas SettingWithCopyWarning while iterating on groupby results

Code Sampleimport pandas as pddf = pd.DataFrame({ 'x': range(4), 'c': list('aabb')})# These operations should have...

Pandas .loc[list-of-float-labels] yields new rows instead of KeyError

Code Sample, a copy-pastable example if possibledf = pd.DataFrame( { "a":[11, 11, 22], "...
上一页 下一页
.