Pandas sort_values bug while by both list and other values

first, I know the strings in column b can be used directly for sorting. My function aFucntion seems to be so stupid, bec...

Pandas how to load 0.19 MultiIndex into 0.20?

I created some index in the 0.19 pandas I would reuse in the 0.20 without to recreate them from raw data in the pandas 0...

Pandas Imprecise intervals/labels by pd.cut

Code Sampleimport pandas as pdx = [0, 1, 2, 3, 4]res = pd.cut(x, (0, 2, 4), include_lowest=True)print(res, '\n')for val ...

Pandas pd.DatetimeIndex.astype(datetime.datetime) no longer working

Code Sample, a copy-pastable example if possibleimport numpy as npimport pandas as pdimport pytzimport datetime# Timezon...

Pandas .resample documentation too vague

Problem description: ".resample" documentation too vagueurl: http://pandas.pydata.org/pandas-docs/stable/generated/panda...

Pandas pandas.NaT returned when converting series to standard python datetime, but does not support datetime functionality

Code Sample, a copy-pastable example if possibleimport pandas as pdpandas_datetimes = pd.Series(pd.date_range('20130101'...

Pandas Different results with tzlib and dateutil_tz with "ambiguous" argument to tz_localize

Code Sample, a copy-pastable example if possibleIn [2]: import pytzIn [3]: pytz_tz = pytz.timezone('US/Eastern') ...: ...

Pandas dataframe.query() select columns

In function query@pandas/core/frame.py I found dataframe return eval result, and use self.loc to return new dataframe, a...

Pandas Empty dataframe with groupby when nan column

Hi,I encountered a 'problem' when my program tried to groupby a dataframe with an empty (ie full of nan) column. Here a ...

Pandas keepdims fails when taking mean

Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as npprint(np.mean(np.zeros((30, 30)), a...

Pandas rolling.quantile does not behave like quantile and np.percentile.

Code Sample>>> import numpy as np>>> import pandas as pd>>> arr = np.arange(100)>>> ...

Pandas Build empty SparseDataFrame by columns very loog compared to by index.

Code Sample, a copy-pastable example if possibleI want to create a sparse matrix with a 4 level multiindex and about 340...

Pandas Using loc with assignment and multiple columns fails

Code Sample, a copy-pastable example if possible# Your code heredf = pd.DataFrame({'a': range(4), 'b': range(4,8)})df.lo...

Pandas Assignment using .loc takes longer and longer

Code Sample, a copy-pastable example if possibleimport pandas, numpyimport timedf1 = pandas.DataFrame(numpy.random.rando...

Pandas BUG: multi-index joining returns wrong multiindex

Code Sample, a copy-pastable example if possiblemodified from TestMergeMulti.test_join_multi_levelsimport pandas as pdho...

Pandas Pandas : to_csv() got an unexpected keyword argument

df.to_csv('transactions.x', header=False, doublequote=False)While I am trying to use some of the parameters in dataframe...

Pandas MultiIndex levels() and get_level_values() give different results

Code Sample, a copy-pastable example if possibleimport pandas as pdraw_data = {'regiment': ['Nighthawks', 'Nighthawks', ...

Pandas pd.to_datetime throws OutOfBoundsDatetime parsing strings without the year

Code Sample, a copy-pastable example if possiblepd.to_datetime(pd.Series('5pm april'))Problem descriptionStrings that ca...

Pandas DataFrame.ix drops level of MultiIndex

Code Sample, a copy-pastable example if possibleimport pandas as pddf = pd.DataFrame(columns=["A", "B&quo...

Pandas read_sas crashes when reading time data

read_sas works just fine with my other tables. I suspect this may have something to do with converting timeseries or tim...
上一页 下一页
.