Nineya
Home
Blog
Pandas groupby(..).apply() has inconsistent behavior when there is only one group
2025-02-10 00:43:35
1298
Code Sample, a copy-pastable example if possibledf = pd.DataFrame({'a':['foo', 'foo', 'bar'], 'b':[1,1,1]}).set_index('a...
Pandas DataFrame.describe can't return percentiles when data set contain nan
2025-02-10 00:43:31
900
Code Sample, a copy-pastable example if possibledes_table = df_final_S1415.describe(percentiles=[.05, .25, .5, .75, .95 ...
Pandas BUG: Large MultiIndex-ed series fails on slicing
2025-02-10 00:43:25
958
With a large MultiIndex-ed series, slicing doesn't fully slice on a 2nd-level.I've been struggling with this for a while...
Pandas ENH: parallel support in .apply
2025-02-10 00:43:20
4756
xref #5751questions from SO.mrocklins nice example of using .applySo here is an example of how to do a parallel apply us...
Pandas .transform not respecting axis=1 in combine stage of group-apply-combine
2025-02-10 00:43:15
1249
.transform does not appear to be respecting the axis argument of the groupby in the combine stage. The code below yield...
Pandas Problems installing pandas using pip
2025-02-10 00:43:11
7321
Hey everyone,I installed pandas via pip gitpip install git+git://github.com/pydata/pandas.gitand during the installation...
Pandas COMPAT: gbq schema compat
2025-02-10 00:43:06
10142
Code Sampledef get_user_account_credentials(): # https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py#L160 ...
Pandas 0.16.2 : IndexError: index out of bounds
2025-02-10 00:43:01
3011
Hi, i am use 0.16.2. I got the "IndexError: index out of bounds", the script is:import pandas as pddef test(): names ...
Pandas BUG: pd.read_csv not correctly parsing date/month field when set parse_date = ['column name']
2025-02-10 00:42:57
3421
I ran in to this bug while trying to parse the few dates through parse_dates of pandas.read_csv(). In the following code...
Pandas pd.to_datetime giving invalid output
2025-02-10 00:42:52
1169
This works:>>> pd.to_datetime(1, unit='D')Timestamp('1970-01-02 00:00:00')However, the following gives incorrec...
Pandas Failed ri2py conversion of Vectors.ListVector object to Python dictionary
2025-02-10 00:42:47
3075
Current conversion of R objects into Python usng pandas2ri.ri2py does not work for the <class 'rpy2.robjects.vectors....
Pandas read_csv index_col ignores dtype if specified
2025-02-10 00:42:42
1415
Hi, I'm not sure if this is intended but when using the index_col parameter in read_csv it ignore the input format speci...
Pandas Selecting a categorial column returns a DataFrame
2025-02-10 00:42:38
851
I am not 100% sure if this is a bug, but it generates very unexpected behaviour!Essentially, if columns are of type Cate...
Pandas to_panel error when DataFrame contains tz-awared datetime column
2025-02-10 00:42:31
5704
This code fails with an exception in pandas 0.18import pandasdf = pandas.DataFrame({'dates': pandas.date_range('2015', p...
Pandas BUG: Create Panel from DataFrame of tz-aware datetimes fails
2025-02-10 00:42:26
3901
In pandas 0.18, if you create a Panel where at least one of the items consists of all tz-aware timestamps, then trying t...
Pandas Label indexing of float index does not work
2025-02-10 00:42:21
4469
In [195]: df = pd.DataFrame(np.random.randn(14), index=np.arange(138.915, 140.0, 0.08), colu...
Pandas Large MultiIndex objects are not truncated when printing
2025-02-10 00:42:16
5247
Most Pandas objects have some truncation applied with they are printed in the REPL. For example:In[3]: pd.Index(np.arang...
Pandas Query function gives error if column names have front slash
2025-02-10 00:42:11
778
import pandasdf = pandas.DataFrame({'ColName / WithFrontSlash': [1, 2]})df['ColName / WithFrontSlash']0 11 2Name: ...
Pandas Datetime series cannot subtract numpy.datetime64
2025-02-10 00:42:07
4153
For some reason, it's not possible to subtract a numpy.datetime64 object from a Series, even though subtracting a dateti...
Pandas df.itertuples changes the name of the columns
2025-02-10 00:42:02
7274
`df = pd.DataFrame([[1, 'a'],[2, 'b'],[3, 'c'],[4, 'd']], columns=['_id', 'id'])for row in df.itertuples(): print...
上一页
下一页
1
…
77
78
79
80
81
…
2246
.