MCPcopy Index your code
hub / github.com/pydata/xarray / last_item

Function last_item

xarray/core/formatting.py:133–136  ·  view source on GitHub ↗

Returns the last item of an array.

(array)

Source from the content-addressed store, hash-verified

131
132
133def 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
139def calc_max_rows_first(max_rows: int) -> int:

Callers 1

Calls 2

ravelFunction · 0.90
to_duck_arrayFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…