I have data in a CSV file, for example
0, 3, 4, 2, 4, 2
2, 1, 7, 2, 8, 3
3, 4, 6, 2, 5, 1
I load it using `np.genfromtxt, then reshape it into a 3D array of shape (3,2,3), then sum it on axis 1.
I want to load it as a dataframe into Seaborn to plot it, what is the most pythonic way of doing it ?
Example:
values = np.genfromtxt('data.csv', delimiter=',') # len(values) evaluates
values = np.reshape(values,(3,2,len(values))) # to 3 in that case
sum_rates = np.sum(values,axis=1)
sns.lineplot(values)
I also would like to get it to display the average, the median and the quartiles.
