I have replaced:
days = ['mon', 'tues', 'wed', 'thur', 'fri', 'sat', 'sun']with:
days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']However, I am getting the following ErrorMessage:
Error:Traceback (most recent call last):
File "bikeshare.py", line 238, in <module>
main()
File "bikeshare.py", line 219, in main
trip_duration_stats(df)
File "bikeshare.py", line 161, in trip_duration_stats
print('Total Travel Time: ', seconds_to_datestamp(df['Trip Duration'].sum()))
File "bikeshare.py", line 145, in seconds_to_datestamp
seconds = seconds - (days * seconds_in_day)
TypeError: ufunc 'subtract' did not contain a loop with signature matching types dtype('<U10') dtype('<U10') dtype('<U10')