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/8015 below:

pd.Series.groupby is said to have only optional parameters · Issue #8015 · pandas-dev/pandas · GitHub

s = pd.Series(x)
m = s.groupby().count() # does not work
m = s.groupby(s.values).count() # works

In https://github.com/pydata/pandas/blob/master/pandas/core/generic.py, by=None should be corrected to just by as None always leads to an error.

   def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
            group_keys=True, squeeze=False):

        from pandas.core.groupby import groupby
        axis = self._get_axis_number(axis)
        return groupby(self, by, axis=axis, level=level, as_index=as_index,
            sort=sort, group_keys=group_keys, squeeze=squeeze)

See this http://stackoverflow.com/questions/17929426/groupby-for-pandas-series-not-working


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