Nineya
Home
Blog
Pandas Passing psycopg2 DictRow raises TypeError
2025-02-10 00:55:58
1309
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
2025-02-10 00:55:53
1473
>>> 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
2025-02-10 00:55:47
1823
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
2025-02-10 00:55:42
2678
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
2025-02-10 00:55:36
1819
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
2025-02-10 00:55:30
1553
#With this code:#-----------------------------from datetime import datetimeimport pytzfrom pandas import DataFrameorigin...
Pandas Renaming an empty MultiIndex fails
2025-02-10 00:55:24
700
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)
2025-02-10 00:55:19
1802
Can there be a way to to do masking that is dependent on more than one boolean? 0 < pd.Series(x) < 1--------------...
Pandas Series/DataFrame breaks truth-checking
2025-02-10 00:55:10
3657
This behavior is obviously by design. Why choose to break substitutability?>>> bool([])False>>> bool(n...
Pandas transpose subplots
2025-02-10 00:55:05
1395
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
2025-02-10 00:54:57
3578
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
2025-02-10 00:54:52
1921
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
2025-02-10 00:54:43
2788
Code Sample, a copy-pastable example if possibleIn [1]: %pasteimport datetimefrom dateutil.tz import tzlocal, tzutcimpor...
Pandas first/last converts datetime into float
2025-02-10 00:54:37
1426
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
2025-02-10 00:54:33
3666
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
2025-02-10 00:54:28
540
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
2025-02-10 00:54:23
3246
Code Sample, a copy-pastable example if possibleWhen the index is set from 0, df.ix[0,0] works fine.>>> df = pd...
Pandas Adding datetime.timedelta to Series breaks via .add() but works via addition
2025-02-10 00:54:18
2763
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)
2025-02-10 00:54:13
4096
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
2025-02-10 00:54:08
1273
Code Sample, a copy-pastable example if possiblehttp://stackoverflow.com/questions/39129419/why-does-dataframe-construct...
上一页
下一页
1
…
70
71
72
73
74
…
2246
.