Pandas DataFrame sum method for all NAs does not return NA

Output of code:pd.DataFrame([[np.NaN, np.NaN], [np.NaN, np.NaN]]).sum(skipna=True)is:0 0.01 0.0dtype: float64What ...

Pandas Msgpack roundtrips python 3 strings to bytes

Possibly related to https://github.com/pydata/pandas/issues/13591. Causes https://github.com/dask/dask/issues/1452Code S...

Pandas BUG: loffset isn't applied when using resample() with a TimedeltaIndex

Code Sample, a copy-pastable example if possibleIn [3]: from pandas import *In [4]: rng = timedelta_range(start='0s', pe...

Pandas CI: re-enable 3.4 build / updated conda-build on appeveyor

fix conda-build versionBuilds are consecutive, 1 at a time.disable 3.4 buildComment From: jrebackclosing, 3.4 is getting...

Pandas Groupby apply using a custom function displays incorrect arguments (DF)

Code Sample, a copy-pastable example if possibledef func3(df): print(df) df['Mean'] = np.mean(df['Data'].values) ...

Pandas BUG: DatetimeIndex indexing fails at nanosecond precision if timezone is used

DatetimeIndex fails to find its own values if a timezone is used:index = pd.DatetimeIndex(['2016-06-28 08:30:00.12345678...

Pandas Failure to load Pandas in Docker

Code Sample, a copy-pastable example if possibleMore difficult than that. Trying to import pandas when Running Python 3....

Pandas pandas.DataFrame.to_html() does not provide an option to remove all styling attributes

DataFrame.to_html() renders by default a table element with a border='1' attribute. The text-align style attribute on th...

Pandas Series.idxmax() and Series.max() show inconsistent behaviour with pd.np.Inf

idxmax is supposed to return the index of the maximum element. However, it seems to ignore special values like infinity ...

Pandas read_csv with character "

Code Sample, a copy-pastable example if possibleInput file: (content of example file)a1 b1 c1 d1" c y za3 ...

Pandas Mixing bars and lines in a time series plot clobbers the xaxis tick values?

All rendered in a jupter notebook with %matplotlib inlineThe following non-time series plot works finedd = pd.DataFrame(...

Pandas specific-column-is-last

Code Sample, a copy-pastable example if possibledf.columns Index([u'a', u'b', u'c', u'd'], dtype='object')Dont do this, ...

Pandas Why is there no mode method for groupby objects?

There is mean, max, median, min and mad yet no mode for groupby objects. Is there a good reason? What if I add and iss...

Pandas "Or" does not have commutative property (possibly because it catches exceptions silently?)

Code Sample, a copy-pastable example if possibleimport pandas as pd#Create sample dataframetest = pd.DataFrame({"a&...

Pandas BUG: resample nunique calculation incorrect

SummaryPassing 'nunique' to resample produces incorrect output. However, passing pd.Series.nunique works. Code Sample, a...

Pandas super call on FrozenList seems broken

This seems like a bug to me. Can't really figure out why this is happening. Calling sys.getsizeof on a FrozenList return...

Pandas pandas applymap converts zero-length dataframe to series

Much simpler exampleIn [1]: df = pandas.DataFrame({ 'x' : [], 'y' : [], 'z' : []})In [2]: dfOut[2]: Empty DataFrameColum...

Pandas transfering DataFrame to JSON using dictionary style with Type Error

Code Sample, a copy-pastable example if possibleI want to transfer the follwing dataframe to JSON using a dictionary sty...

Pandas Strange agg/idmin behavior

I try to mimic this with a datetime dtype columnCode Sample, a copy-pastable example if possibleimport pandas as pddf = ...

Pandas pd.expanding is incorrectly calculating window size when axis=1

Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as npdf = pd.DataFrame({'A': [0, 1, 2, n...
上一页 下一页
.