AttributeError: ‘Timestamp‘ object has no attribute ‘weekday_name‘/pandas.errors.InvalidIndexError:
AttributeError: 'Timestamp' object has no attribute 'weekday_name运行这段代码时,出现报错week = pd.DatetimeIndex(data['place_order_time'])data['weekday'] = week.weekday_name()报错为AttributeError: 'Timestamp' object has no attribute 'weekday_name'是因为weekday_name