I wrote (copied) a code
iowa_file_data = pd.read_csv(iowa_train_prices_file_path)
#dtypes is a Series
s = (iowa_file_data.dtypes == 'object')
I get that iowa_file_data
is of type dataframe
and dtypes
is a Series
. But how did s
become a Series
? Does output of (iowa_file_data.dtypes == 'object')
make a Series
?