Best way to get the values from dict or list for 3 different dataframes
Clash 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?
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.
are these dataframes have same structure?
– durjoy
Aug 8 at 8:02