(self, periods=1, freq=None, axis=0)
| 2056 | |
| 2057 | @derived_from(pd.DataFrame) |
| 2058 | def shift(self, periods=1, freq=None, axis=0): |
| 2059 | if not isinstance(periods, Integral): |
| 2060 | raise TypeError("periods must be an integer") |
| 2061 | |
| 2062 | axis = _validate_axis(axis) |
| 2063 | if axis == 0: |
| 2064 | return new_collection(Shift(self, periods, freq)) |
| 2065 | |
| 2066 | return self.map_partitions( |
| 2067 | func=Shift.func, |
| 2068 | enforce_metadata=False, |
| 2069 | transform_divisions=False, |
| 2070 | periods=periods, |
| 2071 | axis=axis, |
| 2072 | freq=freq, |
| 2073 | ) |
| 2074 | |
| 2075 | @derived_from(pd.DataFrame) |
| 2076 | def diff(self, periods=1, axis=0): |
nothing calls this directly
no test coverage detected