Pandas rolling casts int to float unnecessarily

Take the following example:>>> df = pd.DataFrame(list(range(5)))>>> df 00 01 12 23 34 4>>...

Pandas Not sure how to fix/fill empty Data Frame in Python. Importing data from csv.

Hi,I am trying to group this one column that is for 1-11 regions as categorical variable and then print the mean for eac...

Pandas Converting dtype of column from str to S not working on reassignment

Code Sample, a copy-pastable example if possibleimport pandas as pddf = pd.DataFrame({'a': ['Hello', 'World']})df['a'] =...

Pandas Pandas str.findall conflict with NLTK?

Code Sample, a copy-pastable example if possibledf['url'] = df['text'].str.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&...

Pandas pandas.DataFrame.sum() skipna behavior does not match documentation

Code Sample, a copy-pastable example if possible`import pandas as pddf = pd.DataFrame([[0,0],[1,1],[np.NaN,0],[np.NaN,1]...

Pandas Index Column duplication when adding rows in a grouped-by DataFrame

Here's my codeimport numpy as npimport pandas as pdfrom numpy.random import randnaz = pd.DataFrame({ 'A' : ['a1', 'a1...

Pandas rolling.agg ignores NaNs

from pandas import DataFrame, Timestampfrom numpy import nanb = DataFrame({u'average_rrc_connected': {Timestamp('2016-11...

Pandas PeriodIndex becomes DatetimeIndex on multiple BDay resampling

Code Sample, a copy-pastable example if possibleimport pandas as pdseries = pd.Series(1., pd.period_range('2015', '2016'...

Pandas .

Comment From: jrebackyou seem to have pasted the wrong number above.In [1]: df = pd.DataFrame.from_dict({'date': ['20161...

Pandas BUG: read_table doesn't properly read uint64

Code Sampleimport pandas as pdimport numpy as npimport StringIOtmp = StringIO.StringIO(buf="id\n" + "9&qu...

Pandas Quantile fails when only NaNs on some rows/columns

Quantile method on DataFrame fails when there are NaNs in some specific way. Some cases it handles properly. I guess it'...

Pandas pandas0.19.2 make django1.10.4 not work

Code Sample, a copy-pastable example if possible#coding=utf-8from django.forms.models import model_to_dict from django....

Pandas DOC: DataFrame.plot options are not documented in docstring form

These can be seen by inspecting the __call__ attribute, but they are referenced from the particular plotting methods, bu...

Pandas [ENH] read_table(usecols = int | str) to produce squeezed Series

Problem descriptionThis is a feature request for usecols to accept integer value and string. If integer/string is provi...

Pandas BUG: groupby.transform ValueError: Could not convert object to NumPy datetime

Problem descriptionAs can be seen here, the error ValueError: Could not convert object to NumPy datetime is being thrown...

Pandas Using a string as an index of dataframe

Code Sample, a copy-pastable example if possibletemp = "['A', 'B']"transactions[temp]Problem descriptionI am trying to u...

Pandas Exception on df.groupby().rolling().agg([f1, f2])

Trying to reproduce example [_85] from the docs:from pandas import DataFrame, Timestampc = pandas.DataFrame({u'ul_payloa...

Pandas SystemError when trying to set attribute on non-empty series

Code Sample, a copy-pastable example if possible## Expected (and working on empty series)In [28]: s = pandas.Series()In ...

Pandas Error on multiIndex

Code Sample, a copy-pastable example if possiblecompare = pd.MultiIndex.from_product([df_agr['TEXT1'],df_mat['TEXT1']])....

Pandas BUG: Using df.where converts int to float64

Pretty straightforward bug, excuse me if this has already been adressed.print(info_df.dtypes)snp_id objectrs_...
上一页 下一页
.