I want to plot line graph row my row & I want the previous line to be updated by the next line (on the same frame). Here's the example of the input:
Here's the code that I have:
def openB():
bmFile = filedialog.askopenfile(mode='r',
filetypes=(("CSV file", "*.csv"), ("All files", "*.*")),
title="Select a CSV file")
bmFile2 = pd.read_csv(bmFile, header=[2])
selectCol = bmFile2.iloc[0:,3:]
selectCol.T.plot()
plt.show()
I want to plot each row, that's why I am using Transpose method on selectCol.
In order to plot row by row (dynamically changing), what function should I do? FuncAnimation or for loop (range)? and How?
Thank you. Greatly appreciated :)
