Docs
.dtypes

Dataframe.dtypes

This function return an object Record<string, string> that shows the data type of each column in the dataframe in a key:value pair

Returns

  • Record<string, string>
const dtypes: Record<string, string> = df.dtypes; // { age: "number", ... }