Getting following error..
Traceback (most recent call last): File "C:/BAB/POC/comparesheets.py", line 54, in sheet1['KEY_COLUMN']=sheet1[expectedsheetkeycols].apply(lambda x: ''.join(x), axis = 1) File "C:\2020\python\lib\site-packages\pandas\core\frame.py", line 6878, in apply return op.get_result() File "C:\2020\python\lib\site-packages\pandas\core\apply.py", line 186, in get_result return self.apply_standard() File "C:\2020\python\lib\site-packages\pandas\core\apply.py", line 296, in apply_standard values, self.f, axis=self.axis, dummy=dummy, labels=labels File "pandas_libs\reduction.pyx", line 618, in pandas._libs.reduction.compute_reduction File "pandas_libs\reduction.pyx", line 128, in pandas._libs.reduction.Reducer.get_result File "C:/BAB/POC/comparesheets.py", line 54, in sheet1['KEY_COLUMN']=sheet1[expectedsheetkeycols].apply(lambda x: ''.join(x), axis = 1) TypeError: sequence item 1: expected str instance, Timestamp found
Code …
sheet1['KEY_COLUMN']=sheet1[expectedsheetkeycols].apply(lambda x: ''.join(x), axis = 1)
how would I change above line to avoid the error?