Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: clueless about the error message
Post: RE: clueless about the error message

not sure if i follow you corectly, but given the case here, it does fall on line 1
findbikash General Coding Help 2 2,364 Sep-19-2019, 01:10 PM
    Thread: clueless about the error message
Post: clueless about the error message

rfm['r_quartile'] = pd.qcut(rfm['recency'], 4, ['1','2','3','4']) rfm['f_quartile'] = pd.qcut(rfm['frequency'], 4, ['4','3','2','1']) rfm['m_quartile'] = pd.qcut(rfm['monetary'], 4, ['4','3','2','1'])...
findbikash General Coding Help 2 2,364 Sep-19-2019, 06:55 AM
    Thread: TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'str'
Post: RE: TypeError: unsupported operand type(s) for -: ...

Error:TypeError Traceback (most recent call last) ~\Anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in aggregate(self, func_or_funcs, *args, **kwargs) 349...
findbikash General Coding Help 2 9,607 Sep-18-2019, 08:27 AM
    Thread: TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'str'
Post: TypeError: unsupported operand type(s) for -: 'dat...

Can any one help me on this , unable to determince the reason behind the error while performing RFM analysis. rfm= data_filtered.groupby('ProductID').agg({'Transaction Time': lambda date: (PRESENT - ...
findbikash General Coding Help 2 9,607 Sep-18-2019, 06:34 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020