movingpandas.Trajectory.get_row_at#

Trajectory.get_row_at(t, method='nearest')#

Return row of the trajectory’s DataFrame at time t.

Parameters:
  • t (datetime.datetime) – Timestamp to extract a row for

  • method (str) – Interpolation method (Pandas get_loc method)

Returns:

Row of the DataFrame at time t

Return type:

Pandas series