df[df['列名'].isin([相应的值])]
data[data.iloc[:,0].isin([data_line])] # 第一列某个值的行号
import numpy as np import pandas as pd import random rnd_1 = [random.randrange(null,20) for x in range(1000)] rnd_2 = [random.randrange(null,20) for x in range(1000)] rnd_3 = [random.randrange(null,20) for x in range(1000)] fecha = pd.date_range('2012-4-10', '2015-1-4') data = pd.DataFrame({'fecha':fecha, 'rnd_1': rnd_1, 'rnd_2': rnd_2, 'rnd_3': rnd_3}) data.loc[data["fecha"] == "2013-04-10"]
结果
以上为个人经验,希望对您有所帮助。