最佳答案
例如,我有简单的DF:
import pandas as pd
from random import randint
df = pd.DataFrame({'A': [randint(1, 9) for x in range(10)],
'B': [randint(1, 9)*10 for x in range(10)],
'C': [randint(1, 9)*100 for x in range(10)]})
我可以使用Pandas的方法和习语,从“A”中选择对应的“B”大于50,而“C”不等于900的值吗?