Вы можете преобразовать столбцы в соответствующий тип и затем построить его, используя график.Вот полезная страница для этого: ref .Код:
# import necessaries libraries
import plotly.offline as py
import plotly.graph_objs as go
import pandas as pd
from datetime import datetime
# Create data
df = pd.DataFrame({"date": ['01/08/2018', '02/08/2018', '06/08/2018',
'10/08/2018', '12/08/2018', '13/08/2018',
'15/08/2018'],
"time": ['06:40:00', '05:57:00', '02:56:00', '03:57:00',
'12:24:00', '10:48:00', '15:56:00']})
# For now, columns data are not recognized
print(df.dtypes)
# Convert columns to datetime and plotly should recognize it
df['date'] = pd.to_datetime(df['date'], format='%d/%m/%Y')
df['time'] = pd.to_datetime(df['time'], format='%H:%M:%S')
# You see, that type of columns changed
print(df.dtypes)
# Build a plot
data = [go.Scatter(x=df.time, y=df.date)]
# Plot a plot
py.plot(data, filename='time-series-simple.html', auto_open=False)
Выход: