Pandas Passing psycopg2 DictRow raises TypeError

Maybe something you want to look into:http://stackoverflow.com/questions/35604186/convert-psycopg2-dictrow-query-to-pand...

Pandas Sparse becomes float under fancy indexing

>>> pd.SparseSeries([False, True], dtype=bool)[[0, 1]]0 0.01 1.0dtype: float64BlockIndexBlock locations: ...

Pandas BUG: pandas.Series.astype('category', categories=[list_of_categories]) returns all NaNs

The following code returns all NaN's instead of "given" categories:Code Sample, a copy-pastable example if possibleIn [2...

Pandas ENH: Reduce DF/Series to smallest possible dtype

Hi,I have been currently working with dataset mostly consisting of binary features (column has only 1, 0 or NaN). I know...

Pandas Feature request: Access multiindex by name

Code Sample, a copy-pastable example if possibleI have not found an easy way to access a column of a multi index by name...

Pandas Datatime stored in DataFrame loses tz info and it goes to hour:minute

#With this code:#-----------------------------from datetime import datetimeimport pytzfrom pandas import DataFrameorigin...

Pandas Renaming an empty MultiIndex fails

s = pd.Series([0], index=pd.MultiIndex.from_tuples([('a', 1)]))# This works:s.rename(lambda x: x)# This fails:s.iloc[0:0...

Pandas Feature request: Advanced masking (e.g. 0 < pd.Series(x) < 1)

Can there be a way to to do masking that is dependent on more than one boolean? 0 &lt; pd.Series(x) &lt; 1--------------...

Pandas Series/DataFrame breaks truth-checking

This behavior is obviously by design. Why choose to break substitutability?&gt;&gt;&gt; bool([])False&gt;&gt;&gt; bool(n...

Pandas transpose subplots

Right now its easy to plot columns as rows like this:df.plot(subplots=True, layout = (15, 1),legend=False) # for a 300x1...

Pandas BUG: read_csv() does strange things if data rows have trailing delimiter

Given a file t.txt like this:A,B,C1,4,7,2,5,8,3,6,9,pandas.read_csv('t.txt') produces: A B C1 4 7 NaN2 5 8 NaN3...

Pandas Performance regression in DataFrame.to_csv

Hello,I recently upgraded from pandas 0.17.1 to 0.18.1 and ran into a performance regression with DataFrame.to_csv:Code ...

Pandas MultiIndex with dateutil tzlocal data corruption

Code Sample, a copy-pastable example if possibleIn [1]: %pasteimport datetimefrom dateutil.tz import tzlocal, tzutcimpor...

Pandas first/last converts datetime into float

Code Sample, a copy-pastable example if possibleimport pandas as pddf = pd.DataFrame({'a': [1, 1, 2, 2], 'b': pd.to_date...

Pandas pandas sort_values significantly slower on Python 3.5.2 vs. Python 2.7.12

Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as npfrom time import timeimport sysdf_d...

Pandas Can't install pandas-0.18.1

Try to install pandas via pip, but it is failed:error.txtComment From: TomAugspurgerWhat OS are on, and what version of ...

Pandas df.ix causing exception when index is not from 0

Code Sample, a copy-pastable example if possibleWhen the index is set from 0, df.ix[0,0] works fine.&gt;&gt;&gt; df = pd...

Pandas Adding datetime.timedelta to Series breaks via .add() but works via addition

Adding a datetime.timedelta to a series of datetime64[ns, UTC] breaks when using the Series .add(offset) method, but wor...

Pandas resample drops dtype('O') columns from DataFrame (but not Series)

Code Sample, a copy-pastable example if possibleimport numpyimport pandas as pdidx = pd.date_range('1/1/2016', periods=1...

Pandas DataFrame construction breaks python on numpy empty_like

Code Sample, a copy-pastable example if possiblehttp://stackoverflow.com/questions/39129419/why-does-dataframe-construct...
上一页 下一页
.