Returns the last item of an array.
(array)
| 131 | |
| 132 | |
| 133 | def last_item(array): |
| 134 | """Returns the last item of an array.""" |
| 135 | indexer = (slice(-1, None),) * array.ndim |
| 136 | return ravel(to_duck_array(array[indexer])) |
| 137 | |
| 138 | |
| 139 | def calc_max_rows_first(max_rows: int) -> int: |
no test coverage detected
searching dependent graphs…