Create line plots of Array data #3302
Philliec459
started this conversation in
General
Replies: 2 comments
-
Could you break this down with a simple example? For example, include a few rows of a sample dataframe, and if possible example code for a chart that you want to create |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have data in an Excel file that is mostly single values per column heading for each of my samples. However, in this dataset I also have two columns that are arrays, and each in their own column.
As shown in the attached image, I want to cross plot the porosity and permeability for each sample in each column using Altair, and also make line plots from the array as shown in the figure on the right for each sample.
I have reformatted each array column to contain the array of data with comma separators in each cell for each sample, but that does not seem to work. I could explode the pandas DataFrame for my 2 array columns, but that creates a lot of repetition of data. I was thinking that maybe each array cell needs to start with a [ and end with a ], but that did not work. Do you have any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions