tapas.datasets.utils.get_dtype

tapas.datasets.utils.get_dtype(col_type, col_repr)

Return the pandas type of a column based on the json schema for the dataset.

Parameters
  • col_type (str) – The abstract type of the data column (e.g. "finite", "countable/ordered", etc).

  • col_repr (object) – Either a string, an integer, or a list of string. The interpretation depends upon col_type.

Returns

A type for the given column. Currently either int, float, or str.

Return type

dtype