Python数据帧使用表达式查找值

2024-06-26 18:07:07 发布

您现在位置:Python中文网/ 问答频道 /正文

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: thenamedfnames作者thisjohntutorial