I have a main dataframe "dfnum"
I have created two dataframes from it:
dfbase = dfnum
df1 = dfnum
Now when I want to add columns to "df1" that column is also added to the other two dataframes as well:
dfbase = dfnum
df1 = dfnum
df1['A'] = (df1['B'] / (1 - df1['B']))
df1['C'] = 0.0314 * (df1['D'] / df1['B']).pow(0.5)
df1['S'] = (df1['C'] / df1['A'])
How can I solve this problem?
I am using python 3.7 and Spyder 5.0.3 both installed from Anaconda