Pandas dataframe plot method throws an error

Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as npimport matplotlibimport matplotlib....

Pandas one group run twice when use .apply() function

Code Sample, a copy-pastable example if possible# Your code hereimport pandas as pddf = pd.DataFrame({'animal': 'cat dog...

Pandas eval and query behavior on sparse dataframes

Code Sample, a copy-pastable example if possiblepd.DataFrame({'b': [True, pd.np.nan, True, pd.np.nan] }).to_sparse().eva...

Pandas ValueError when merging dataframes

Code Sample, a copy-pastable example if possibleimport pandas as pddf = pd.DataFrame({'Item Num': [456, 456, 340, 340, 5...

Pandas sparse = True in pd.get_dummies triggers TypeError at further manipulation

import pandas as pdimport numpy as npfrom sklearn.datasets import load_irisiris = load_iris()data = iris.datacolumn_name...

Pandas plotting in pandas is not picking the list of colors passed, it only gets the first value in bar graph

Code Sample, a copy-pastable example if possible# Your code hereProblem description[this should explain why the current ...

Pandas float precision issue with rolling sum

Code Sample, a copy-pastable example if possibleimport pandas as pddf = pd.DataFrame({'foo': [1.0001] * 5 + [0.]*5})df ...

Pandas Subclass pandas DataFrame with required argument

import pandas as pdclass MyDataFrame(pd.DataFrame): @property def _constructor(self): return MyDataFrame ...

Pandas Filtering on empty dataframe (using .apply) results in dropping column structure

Code Sample, a copy-pastable example if possible# Your code hereIn [61]: df_null = pd.DataFrame(columns=['a','b','c'])In...

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...
上一页 下一页
.