I have Empty data frame with some columns,
df_skeleton = pd.DataFrame(columns=columns)
And I have another dataframe df which is subset of above dataframe,But in this dataframe, I have a single row with values.
I want to put a corresponding value of the second dataframe into the
df_skeleton
and all other columns values equal to zero
Eg:
df_skeleton is having 10 columns, name from col1,col2.....col10,
col1 col2 col3 col4 col5 col5 co6 col7 col8 col9 col10
0
but it does not contain any row or values. It is just skeleton.
And my df is having 3 columns
col1 col3 col7
0 23 45 10
Now what i want is
df_skeleton
col1 col2 col3 col4 col5 col6 col7 col8 col9 col10
0 23 0 45 0 0 0 10 0 0 0