MCPcopy
hub / github.com/pandas-dev/pandas / DataError

Class DataError

pandas/errors/__init__.py:615–633  ·  view source on GitHub ↗

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 :

Source from the content-addressed store, hash-verified

613
614
615class 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
636class SpecificationError(Exception):

Callers 4

_resolve_outputMethod · 0.90
_apply_seriesMethod · 0.90
_apply_columnwiseMethod · 0.90
ohlcMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected