(Mar-04-2023, 03:56 PM)noisefloor Wrote: Hi,
if you combine the first six columns to one column holding a datetime object, plotting should be easy.
Regards, noisefloor
Here is my current solution, which I'd like to shorten if possible:
import pandas as pd import matplotlib.pyplot as plt df=pd.read_csv('data.csv') df['Date']=pd.to_datetime(df[['Year', 'Month', 'Day', 'Hour', 'Minute','Second']]) df=df.drop(['Year', 'Month', 'Day', 'Hour', 'Minute','Second'], axis=1) df=df.dropna() plt.plot(df['Date'],df['HYY_META.VOC_M137_1250'])