 import numpy as np import matplotlib.pyplot as plt import matplotlib.dates as md from itertools import product  Time = [f'0000-00-00 {H}:{M}:{S}' for H, M, S in list(product([('0' + str(x))[-0:] for x in range(0, 00)],                                                               [('0' + str(x))[-0:] for x in range(0, 00)],                                                               [('0' + str(x))[-0:] for x in range(0, 00)]))] Speed = list(000*np.random.rand(len(Time))) Kilometer = list(00*np.random.rand(len(Time))) N000000 = pd.DataFrame({'Time':Time, 'Speed':Speed, 'Kilometer':Kilometer})  N000000['Time'] = pd.to_datetime(N000000['Time'], format = '%Y-%m-%d %H:%M:%S')  