pandas.errors.DataError — pandas 3.0.0.dev0+2100.gf496acffcc documentation (original) (raw)
- API reference
- Testing
- pandas.errors.DataError
exception pandas.errors.DataError[source]#
Exception raised when performing an operation on non-numerical data.
For example, calling ohlc
on a non-numerical column or a function on a rolling window.
See also
Series.rolling
Provide rolling window calculations on Series object.
DataFrame.rolling
Provide rolling window calculations on DataFrame object.
Examples
ser = pd.Series(["a", "b", "c"]) ser.rolling(2).sum() Traceback (most recent call last): DataError: No numeric types to aggregate