General helper for validating and converting dtypes#

Helper to validate and convert common data types used in mobgap.

DataFrame Like#

is_dflike(data)

Check if the passed data is dataframe-like.

dflike_as_2d_array(data)

Convert the passed data to a 2d numpy array and return a function to convert it back to the original datatype.

Types#

DfLike