(
frame,
other,
npartitions: int,
ascending: bool = True,
partition_size: float = 128e6,
upsample: float = 1.0,
)
| 1320 | |
| 1321 | |
| 1322 | def _get_divisions( |
| 1323 | frame, |
| 1324 | other, |
| 1325 | npartitions: int, |
| 1326 | ascending: bool = True, |
| 1327 | partition_size: float = 128e6, |
| 1328 | upsample: float = 1.0, |
| 1329 | ): |
| 1330 | key = (other._name, npartitions, ascending, partition_size, upsample) |
| 1331 | if key in divisions_lru: |
| 1332 | return divisions_lru[key] |
| 1333 | result = _calculate_divisions( |
| 1334 | frame, other, npartitions, ascending, partition_size, upsample |
| 1335 | ) |
| 1336 | divisions_lru[key] = result |
| 1337 | return result |
| 1338 | |
| 1339 | |
| 1340 | def _calculate_divisions( |
no test coverage detected