标签: python pandas
我是Python新手。我想知道如何在Python中提取列的前三个值。我使用的是CSV文件。这是我的代码:
import pandas as pd census_df = pd.read_csv('census.csv') def answer_five(): return census_df['COUNTY'].idxmax(3) answer_five()