2
遅れ見つけるんする必要がどこパンダを使用する方法のコードですは私が日付列を分割し日間のないここで
AttributeError
Traceback (most recent call last)
<ipython-input-19-ce1db3e6387fin <module>()
13
14
---15 delay(end_date, start_date)
<ipython-input-19-ce1db3e6387fin delay(end, start)
10
11 def delay(end, start):
---12 return (d(end) - d(start)).days
13
14
<ipython-input-19-ce1db3e6387fin d(s)
6 end_date = purchase_data.DeliveryDate
7 def d(s):
----8 [day, month, year] = map(int, s.split('-'))
9 return date(day, month, year)
10
F:\Anaconda3\lib\site-packages\pandas\core\generic.py in
__getattr__(self, name)
2968 if name in self._info_axis:
2969 return self[name]
-2970 return object.__getattribute__(self, name)
2971
2972 def __setattr__(self, name, value):
AttributeError: 'Series' object has no attribute 'split'
:ここ
はエラーメッセージです10誰も助けてくれませんか?