finam.data.strip_time#
- finam.data.strip_time(xdata, grid)[source]#
Returns a view of the data with the time dimension squeezed if there is only a single entry
- Parameters:
xdata (arraylike) – Data to strip time dimension from
grid (GridBase) – The associated grid specification
- Returns:
Stripped data
- Return type:
arraylike
- Raises:
FinamDataError – If the data has multiple time entries.