Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能把这段代码放在一行中?
game = data[(data.date==test_day)] game = game.loc[game.index[0]]
iloc改为使用
iloc
data[data.date == test_day].iloc[0]
我只是在写同样的东西
game = data[(data.date==test_day)].iloc[game.index[0]]