Convert a column in pandas of HH:MM to minutes
问题 I want to convert a column in dataset of hh:mm format to minutes. I tried the following code but it says " AttributeError: 'Series' object has no attribute 'split' ". The data is in following format. I also have nan values in the dataset and the plan is to compute the median of values and then fill the rows which has nan with the median 02:32 02:14 02:31 02:15 02:28 02:15 02:22 02:16 02:22 02:14 I have tried this so far s = dataset['Enroute_time_(hh mm)'] hours, minutes = s.split(':') int