Replace a single character in a Numpy list of strings
问题 I have a Numpy array of datetime64 objects that I need to convert to a specific time format yyyy-mm-dd,HH:MM:SS.SSS Numpy has a function called datetime_as_string that outputs ISO8601 (yyyy-mm-ddTHH:MM:SS.SSS) time, which is extremely close to what I want, the only difference being there is a T where I want a comma. Is there a way to quickly swap the "T" for a ","? Here is an example data set: offset = np.arange(0, 1000) epoch = np.datetime64('1970-01-01T00:00:00.000') time_objects = epoch +