- API reference
- Testing
- pandas.error...
pandas.errors.DataError#
- exceptionpandas.errors.DataError[source]#
Exceptionn raised when performing an operation on non-numerical data.
For example, calling
ohlcon a non-numerical column or a functionon a rolling window.Examples
>>>ser=pd.Series(['a','b','c'])>>>ser.rolling(2).sum()Traceback (most recent call last):DataError:No numeric types to aggregate
On this page