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 :
| 613 | |
| 614 | |
| 615 | class DataError(Exception): |
| 616 | """ |
| 617 | Exception raised when performing an operation on non-numerical data. |
| 618 | |
| 619 | For example, calling ``ohlc`` on a non-numerical column or a function |
| 620 | on a rolling window. |
| 621 | |
| 622 | See Also |
| 623 | -------- |
| 624 | Series.rolling : Provide rolling window calculations on Series object. |
| 625 | DataFrame.rolling : Provide rolling window calculations on DataFrame object. |
| 626 | |
| 627 | Examples |
| 628 | -------- |
| 629 | >>> ser = pd.Series(["a", "b", "c"]) |
| 630 | >>> ser.rolling(2).sum() |
| 631 | Traceback (most recent call last): |
| 632 | DataError: No numeric types to aggregate |
| 633 | """ |
| 634 | |
| 635 | |
| 636 | class SpecificationError(Exception): |
no outgoing calls
no test coverage detected