Pandas DataFrame Copy
What happens when you modify df2 in this code?
df1 = pd.DataFrame({'A': [1, 2, 3]})
df2 = df1
df2['A'] = [4, 5, 6]
Sign in to answer questions and track your progress
Sign InWhat happens when you modify df2 in this code?
df1 = pd.DataFrame({'A': [1, 2, 3]})
df2 = df1
df2['A'] = [4, 5, 6]
Sign in to answer questions and track your progress
Sign In