file_list = find_csv_files(data_folder, True) df_list = [] # Loop through each file in file_list and read it into a data frame for file in file_list: df = pd.read_csv(file) df_list.append(df) # Concatenate all data frames in df_list into a single data frame merged_df = pd.concat(df_list, ignore_index=True) # Extract timestamps from the first column of merged_df timestamps = merged_df.iloc[:, 0] # Create a new figure and axes fig, ax = plt.subplots() # Loop through each column (except the first one) in merged_df and plot it for column in merged_df.columns[1:]: if "Disk Queue" in column: print(f"Column {column} included") ax.plot(timestamps, merged_df[column], label=column) else: print(f"Column {column} skipped") # Add labels and legend ax.set_xlabel('Timestamp') ax.set_ylabel('Value') ax.legend() # Show the plot plt.show()