Oct-12-2019, 01:21 PM
Hi everyone,
I really need an help, I created a small code to read 27 file .csv together and plot in the same graph.
In the csv files there is the time( x-axis) and 2 temperatures(y-axis), I don't understand why I get this kind of terrible graph.
https://ibb.co/dkn3jB1
I really need an help, I created a small code to read 27 file .csv together and plot in the same graph.
In the csv files there is the time( x-axis) and 2 temperatures(y-axis), I don't understand why I get this kind of terrible graph.
import pandas as pd from glob import glob import matplotlib.pyplot as plt import plotly.graph_objects as go numFiles = 27 #Number of CSV files in your directory separator = "," #Character that separates each value inside file fExtension = ".csv" #Extension of the file storing the data dataframe = sorted(glob('test*.csv')) pd.concat((pd.read_csv(file).assign(filename = file) for file in dataframe), ignore_index = True) plt.plot(list(str(dataframe)) ) plt.show()In this Url link there is the plot
https://ibb.co/dkn3jB1