Nineya
Home
Blog
Pandas Series comparison ops __finalize__ inconsistent
2025-02-10 03:38:40
1745
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
2025-02-10 03:38:34
1269
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
2025-02-10 03:38:28
2403
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
2025-02-10 03:38:23
359
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
2025-02-10 03:38:18
2954
Example 1 (.values returning a view)df = pd.DataFrame([["A", "B"],["C", "D"]])df...
Pandas rolling().apply() skips window if it contains NaN
2025-02-10 03:38:12
3072
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
2025-02-10 03:38:07
7922
Code Sample, a copy-pastable example if possible"""Bug pandas."""from pandas import read_c...
Pandas Categoricals are not preserved by groupby.Groupby.last()
2025-02-10 03:38:02
1381
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
2025-02-10 03:37:56
2820
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
2025-02-10 03:37:51
1295
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.
2025-02-10 03:37:45
2376
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?
2025-02-10 03:37:39
592
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
2025-02-10 03:37:35
1354
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
2025-02-10 03:37:23
447
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
2025-02-10 03:37:18
3702
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
2025-02-10 03:37:13
1346
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
2025-02-10 03:37:08
648
import pandas as pdclass NewDF( pd.DataFrame ): def __init__( self , data ): super().__init__( data )a = NewDF...
Pandas AttributeError: module 'pandas' has no attribute 'Data'
2025-02-10 03:37:04
1979
import pandas as pddict={ "country":["Brasil", "Russia", "India", "China", "South Africa"], "capital":["Brasilia",...
Pandas SettingWithCopyWarning while iterating on groupby results
2025-02-10 03:36:59
2381
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
2025-02-10 03:36:53
2557
Code Sample, a copy-pastable example if possibledf = pd.DataFrame( { "a":[11, 11, 22], "...
上一页
下一页
1
…
35
36
37
38
39
…
2246
.