convert_a_dictionary_of_dataframes_to_a_big_dataframe
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
convert_a_dictionary_of_dataframes_to_a_big_dataframe [2022/03/18 23:29] – created raju | convert_a_dictionary_of_dataframes_to_a_big_dataframe [2023/01/01 15:51] (current) – [Task] raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Convert a dictionary of dataframes to a big dataframe ===== | ===== Convert a dictionary of dataframes to a big dataframe ===== | ||
==== Task ==== | ==== Task ==== | ||
- | Given a dictionary strings to dataframes, create an expanded dataframe by putting the keys into their own column. For example, given | + | Given a dictionary |
< | < | ||
{' | {' | ||
Line 86: | Line 86: | ||
< | < | ||
+ | In [4]: | ||
def dict_df_to_df(dict_df, | def dict_df_to_df(dict_df, | ||
df = ( | df = ( | ||
Line 172: | Line 173: | ||
7 | 7 | ||
</ | </ | ||
+ | |||
+ | ==== Ref ==== | ||
+ | * https:// |
convert_a_dictionary_of_dataframes_to_a_big_dataframe.1647646178.txt.gz · Last modified: 2022/03/18 23:29 by raju