loc
loc是select by label(name)
loc函数是选择dataframe中那一行的index == k
的
iloc
loc是select by position
loc函数是选择dataframe中第position
行
举例
d1.loc[0]
d1.iloc[0]
原文地址:https://www.cnblogs.com/woxiaosade/p/12229855.html
时间: 2024-10-20 18:31:34
loc是select by label(name)
loc函数是选择dataframe中那一行的index == k
的
loc是select by position
loc函数是选择dataframe中第position
行
原文地址:https://www.cnblogs.com/woxiaosade/p/12229855.html