A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/5614 below:

cumsum sums the groupby column · Issue #5614 · pandas-dev/pandas · GitHub

It shouldn't sum the groupby'd col (in fact index col should be the index, if groupby as_index).

In [13]: df = pd.DataFrame([[1, 2, np.nan], [1, np.nan, 9], [3, 4, 9]], columns=['A', 'B', 'C'])

In [14]: g = df.groupby('A')

In [16]: g.cumsum()
Out[16]: 
   A   B   C
0  1   2 NaN
1  2 NaN   9
2  3   4   9

[3 rows x 3 columns]

Nature of it being dispatch. Should fix up for 0.14 possibly along with some other whitelisted groupby functions.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4