Pandas Group by using time grouper and 1 other column does not work

Code Sample, a copy-pastable example if possiblelist_of_dicts = [{ 'time': pandas.to_datetime('2016-12-03 18:00:00'),...

Pandas Series.expanding not working with ndarray

Code Sample, a copy-pastable example if possible>>> df e q w0 4 1 21 5 2 32 6 3 43 7 4 54 8 5...

Pandas DataFrame.to_xarray() is sorting dimensional coordinates

Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as nprd = np.zeros((4,4), dtype=np.float...

Pandas Wrong slicing behavior for DataFrame loc

Code Sample, a copy-pastable example if possible>>> df 0 1 2 30 1 21 51 611 2 22 52 622 3 23 ...

Pandas ENH: add errors=ignore|raise kw to DataFrame.rename

Code Sample, a copy-pastable example if possibleimport pandasdf = pandas.DataFrame({'a': [1,2], 'b': [3,4]})df.rename({'...

Pandas .plot() method breaks for two ostensibly identical time series DataFrames

pd.version == 0.19.0I have two DataFrames which have the same index types, dtypes & columns. For some reason, the fi...

Pandas BUG: fillna with inplace does not work with multiple columns selection by loc

Code Sample, a copy-pastable example if possibledf = pd.DataFrame(np.random.randn(3, 4), columns=list('ABCD'))df.iloc[1,...

Pandas what is a KeyError in Python 3.5/Pandas?

I work with files were exported from stream twitter . but when run code then error : KeyError: 'text' on tweets['python'...

Pandas Groupby iteration fails when one of the key's values is None

Code Sampleimport pandas as pddf = pd.DataFrame({ 'a': [1, 1, 2, 3], 'b': [None, 1, 2, 3], 'c': [1,2,3,4],})gro...

Pandas Plot does not work in the 10 Minutes tutorial

The following codes from 10 Minutes to pandas could not be run properly.In [135]: ts = pd.Series(np.random.randn(1000), ...

Pandas Efficient way to create a DataFrame iteratively

I am working on a financial simulation (financial_life), in which I would like to collect my timeseries data in a DataFr...

Pandas test_round_trip_exception_ got stuck (on s390x)

Just FYI and for reference (feel free to close)... was running all the tests and they got stuck on this onethen tried to...

Pandas to_json() output format issue

https://github.com/hupili/pandas-to-json-multi-index-issue/blob/master/pandas%20to_json%20test.ipynbCode Sample, a copy-...

Pandas Feature Request: symbol datatype (for string compression)

Should pandas have a Symbol datatype for strings which are frequently re-used?For example, consider a table of stock tr...

Pandas groupby function: different printed result after irrelevant change

(1)def groupby_func(x): #computing speedup, relative to first line return x.iloc[0, :] / x.iloc[0: , :] # ...

Pandas ENH: Pandas DataFrame.append and Series.append methods should get an inplace kwag

Problem descriptionCurrently to append to a DataFrame, the following is the approach:df = pd.DataFrame(np.random.rand(5,...

Pandas Append with two DateTimeIndex returns Index and not DateTimeIndex

In 0.19.1 appending a DateTimeIndex to another DateTimeIndex where they have different time zones now returns an Index o...

Pandas can not run pandas unit tests without x11 connection

I am working on automating the testing of conda environments that include pandas. I am unable to run the tests if I do n...

Pandas Boolean slicing on MultiIndex only works if bool index is same length as MultiIndex

Code Sample, a copy-pastable example if possiblefrom __future__ import print_functionimport numpy as npimport pandas as ...

Pandas pandas dataframe to rpy2 dataframe gives me unwanted data

Code Sample df.to_csv("output_df.csv", sep=',', encoding='utf-8') df2 = pandas2ri.py2ri(df...
上一页 下一页
.