I'm new to Python so I don't know which is the best method to do the task I have to do.
Basically I've got a Spreadsheet with my data; Date, Timestamp, and 6 columns with different particle counts in 6 different sizes. I have managed to read the sheet using pandas and then plotting it as a line graph with the matplotlib.pyplot library. This is all relatively straight forward.
However, I would like to add more lines to the plot, for each count I would like an average for the past 1000 counts.
I am unsure whether to manipulate the dataset with pandas or if there is a different more efficient way to do this. I read that you can also do this with numpy arrays... But I have no experience with either.
Here is the code I have so far:
import pandas as pd
import matplotlib.pyplot as plt
dataset = "2019-10-09-08_DATA.XLS"
dataset_all = pd.read_excel(dataset, skiprows=6, usecols=(
"Date", "Time", "0.3um", "0.5um", "1.0um", "2.0um", "5.0um", "10.0um"))
dataset_all.plot()
print(dataset_all)
plt.show()
Here is the link to the Spreadsheet: https://drive.google.com/file/d/1GFU_wwt5KMuLkziQlEyWJMHrkV4Pta3k/view?usp=sharing