-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Error ReportingIncorrect or improved errors from pandasIncorrect or improved errors from pandasGroupbyResampleresample methodresample methodTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite
Milestone
Description
Was this available at some stage (it's looking in self._cython_functions
for it rather than just saying no dice with a plain ol' AttributeError):
In [1]: rng = pd.date_range('2012', periods=3)
In [2]: df = pd.DataFrame([[1, 2], [1, 3], [5, 6]], rng, columns=['A', 'B'])
In [3]: g = df.groupby('A')
In [4]: g.foo()
AttributeError: 'DataFrameGroupBy' object has no attribute 'foo'
In [5]: g.ohlc()
KeyError: 'ohlc'
In [6]: g.ohlc(rule='D')
TypeError: ohlc() got an unexpected keyword argument 'rule'
Can do atm using g.resample('D', how='ohlc')
.
Metadata
Metadata
Assignees
Labels
Error ReportingIncorrect or improved errors from pandasIncorrect or improved errors from pandasGroupbyResampleresample methodresample methodTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite