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)
| 813 | return IndexCallable(self._partitions) |
| 814 | |
| 815 | def get_partition(self, n): |
| 816 | """ |
| 817 | Get a dask DataFrame/Series representing the `nth` partition. |
| 818 | |
| 819 | Parameters |
| 820 | ---------- |
| 821 | n : int |
| 822 | The 0-indexed partition number to select. |
| 823 | |
| 824 | Returns |
| 825 | ------- |
| 826 | Dask DataFrame or Series |
| 827 | The same type as the original object. |
| 828 | |
| 829 | See Also |
| 830 | -------- |
| 831 | DataFrame.partitions |
| 832 | """ |
| 833 | if not 0 <= n < self.npartitions: |
| 834 | msg = f"n must be 0 <= n < {self.npartitions}" |
| 835 | raise ValueError(msg) |
| 836 | return self.partitions[n] |
| 837 | |
| 838 | def shuffle( |
| 839 | self, |
no outgoing calls