📜  如何根据多个分类值在 python 中对数据框进行子集化 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:08.996000             🧑  作者: Mango

代码示例1
# Select the species and plot columns from the DataFrame
surveys_df[['species_id', 'plot_id']]

# What happens when you flip the order?
surveys_df[['plot_id', 'species_id']]

# What happens if you ask for a column that doesn't exist?
surveys_df['speciess']