Backward compatible implementation of ``map`` See Also -------- DatasetGroupBy.map
(self, func, args=(), shortcut=None, **kwargs)
| 1834 | return self._combine(applied) |
| 1835 | |
| 1836 | def apply(self, func, args=(), shortcut=None, **kwargs): |
| 1837 | """ |
| 1838 | Backward compatible implementation of ``map`` |
| 1839 | |
| 1840 | See Also |
| 1841 | -------- |
| 1842 | DatasetGroupBy.map |
| 1843 | """ |
| 1844 | |
| 1845 | warnings.warn( |
| 1846 | "GroupBy.apply may be deprecated in the future. Using GroupBy.map is encouraged", |
| 1847 | PendingDeprecationWarning, |
| 1848 | stacklevel=2, |
| 1849 | ) |
| 1850 | return self.map(func, shortcut=shortcut, args=args, **kwargs) |
| 1851 | |
| 1852 | def _combine(self, applied): |
| 1853 | """Recombine the applied objects like the original.""" |