How to get data types of each feature in Data for Classification

In [1]:
# Data Types for Each Attribute

from pandas import read_csv

filename = ""

names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class']

data = read_csv(filename, names=names)

types = data.dtypes

preg       int64
plas       int64
pres       int64
skin       int64
test       int64
mass     float64
pedi     float64
age        int64
class      int64
dtype: object