报错合集
摘要:<bound method Series.函数名> 指出函数没加括号() TypeError: Index(...) must be called with a collection of some kind DataFrame的index和columns必须是某种集合[],{},但不能是元组()
阅读全文
posted @
2021-12-31 07:41
进击的许盈盈
阅读(550)
推荐(0)
做鸢尾花切片练习中的'&'问题:(&,|)和(and,or)
摘要:课上练习:要求取petal_length和petal_width两列,满足筛选条件为sepal_length>=5且species=setosa 1 iris.loc[(iris['sepal_length']>5)&(iris['species']=='setosa'),['petal_lengt
阅读全文
posted @
2021-12-30 07:39
进击的许盈盈
阅读(569)
推荐(0)