Get a dask DataFrame/Series representing the `nth` partition. Parameters ---------- n : int The 0-indexed partition number to select. Returns ------- Dask DataFrame or Series The same type as the original object.
(self, n)
| 853 | return IndexCallable(self._partitions) |
| 854 | |
| 855 | def get_partition(self, n): |
| 856 | """ |
| 857 | Get a dask DataFrame/Series representing the `nth` partition. |
| 858 | |
| 859 | Parameters |
| 860 | ---------- |
| 861 | n : int |
| 862 | The 0-indexed partition number to select. |
| 863 | |
| 864 | Returns |
| 865 | ------- |
| 866 | Dask DataFrame or Series |
| 867 | The same type as the original object. |
| 868 | |
| 869 | See Also |
| 870 | -------- |
| 871 | DataFrame.partitions |
| 872 | """ |
| 873 | if not 0 <= n < self.npartitions: |
| 874 | msg = f"n must be 0 <= n < {self.npartitions}" |
| 875 | raise ValueError(msg) |
| 876 | return self.partitions[n] |
| 877 | |
| 878 | def shuffle( |
| 879 | self, |
no outgoing calls