Pandas groupby(..).apply() has inconsistent behavior when there is only one group

Code Sample, a copy-pastable example if possibledf = pd.DataFrame({'a':['foo', 'foo', 'bar'], 'b':[1,1,1]}).set_index('a...

Pandas DataFrame.describe can't return percentiles when data set contain nan

Code Sample, a copy-pastable example if possibledes_table = df_final_S1415.describe(percentiles=[.05, .25, .5, .75, .95 ...

Pandas BUG: Large MultiIndex-ed series fails on slicing

With a large MultiIndex-ed series, slicing doesn't fully slice on a 2nd-level.I've been struggling with this for a while...

Pandas ENH: parallel support in .apply

xref #5751questions from SO.mrocklins nice example of using .applySo here is an example of how to do a parallel apply us...

Pandas .transform not respecting axis=1 in combine stage of group-apply-combine

.transform does not appear to be respecting the axis argument of the groupby in the combine stage. The code below yield...

Pandas Problems installing pandas using pip

Hey everyone,I installed pandas via pip gitpip install git+git://github.com/pydata/pandas.gitand during the installation...

Pandas COMPAT: gbq schema compat

Code Sampledef get_user_account_credentials(): # https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L160 ...

Pandas 0.16.2 : IndexError: index out of bounds

Hi, i am use 0.16.2. I got the "IndexError: index out of bounds", the script is:import pandas as pddef test(): names ...

Pandas BUG: pd.read_csv not correctly parsing date/month field when set parse_date = ['column name']

I ran in to this bug while trying to parse the few dates through parse_dates of pandas.read_csv(). In the following code...

Pandas pd.to_datetime giving invalid output

This works:>>> pd.to_datetime(1, unit='D')Timestamp('1970-01-02 00:00:00')However, the following gives incorrec...

Pandas Failed ri2py conversion of Vectors.ListVector object to Python dictionary

Current conversion of R objects into Python usng pandas2ri.ri2py does not work for the <class 'rpy2.robjects.vectors....

Pandas read_csv index_col ignores dtype if specified

Hi, I'm not sure if this is intended but when using the index_col parameter in read_csv it ignore the input format speci...

Pandas Selecting a categorial column returns a DataFrame

I am not 100% sure if this is a bug, but it generates very unexpected behaviour!Essentially, if columns are of type Cate...

Pandas to_panel error when DataFrame contains tz-awared datetime column

This code fails with an exception in pandas 0.18import pandasdf = pandas.DataFrame({'dates': pandas.date_range('2015', p...

Pandas BUG: Create Panel from DataFrame of tz-aware datetimes fails

In pandas 0.18, if you create a Panel where at least one of the items consists of all tz-aware timestamps, then trying t...

Pandas Label indexing of float index does not work

In [195]: df = pd.DataFrame(np.random.randn(14), index=np.arange(138.915, 140.0, 0.08), colu...

Pandas Large MultiIndex objects are not truncated when printing

Most Pandas objects have some truncation applied with they are printed in the REPL. For example:In[3]: pd.Index(np.arang...

Pandas Query function gives error if column names have front slash

import pandasdf = pandas.DataFrame({'ColName / WithFrontSlash': [1, 2]})df['ColName / WithFrontSlash']0 11 2Name: ...

Pandas Datetime series cannot subtract numpy.datetime64

For some reason, it's not possible to subtract a numpy.datetime64 object from a Series, even though subtracting a dateti...

Pandas df.itertuples changes the name of the columns

`df = pd.DataFrame([[1, 'a'],[2, 'b'],[3, 'c'],[4, 'd']], columns=['_id', 'id'])for row in df.itertuples(): print...
上一页 下一页
.