Best way to get the values from dict or list for 3 different dataframes

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Best way to get the values from dict or list for 3 different dataframes



So, I have 3 different data frames:



all_options = 'free': free, 'paid': paid, 'all': df


all_options = 'free': free, 'paid': paid, 'all': df



What is the best way to iterate over to get the values for each one?
I want to make a plot in dash. So when user will click on "free" data frame it will show him the graph with free items only?





are these dataframes have same structure?
– durjoy
Aug 8 at 8:02





You need to provide more context, what values are needed, what is the structure of the dataframes? Please read this: MCVE.
– Alex
Aug 8 at 11:00





yes, so all the data frames have the same columns, just different values
– rafael
Aug 8 at 12:02




1 Answer
1



it was easy as [v.columns for k, v in all_options.items()]


[v.columns for k, v in all_options.items()]



Thank you :)






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard