セクション 3. 章 5
single
Column Names and Data Types
メニューを表示するにはスワイプしてください
To display all column names as a list, use the following line of code:
column_names = df.columns
To get a summary of all data types in the DataFrame, use the following attribute:
.dtypes.
data_types = df.dtypes
タスク
スワイプしてコーディングを開始
You are given a DataFrame named wine_data.
- Get the column names that this
DataFramecontains and store the result in thecolumn_namesvariable. - Get the data types of these columns from this
DataFrameand store the result in thedata_typesvariable.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 5
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください