从this tutorial开始,作者使用了:
names = ['Bob','Jessica','Mary','John','Mel']
births = [968, 155, 77, 578, 973]
# Name associated with the maximum value
MaxName = df['Names'][df['Births'] == df['Births'].max()].values ## what does the == means?
它叫什么?它只为熊猫准备的吗?你知道吗
Tags:
表示“Names”中该条件为真的任何元素的。它叫做布尔索引,可以在这里找到:http://pandas.pydata.org/pandas-docs/stable/indexing.html#boolean-indexing
相关问题 更多 >
编程相关推荐