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.
我有一个包含几列的数据集。其中之一是我存储行中日期的日期。我还有一个我想学习的天数列表(称为天数),我只想保留那些与属于该列表的天数相对应的行。
因此,我写了:
dat = data[data.day.isin(days)]
然后,我收到以下错误消息:
TypeError:“系列”对象是可变的,因此它们不能被散列