logo

Crowdly

What is the output of the following code? import pandas as pd df1 = pd.DataFra...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output of the following code?

import pandas as pd

df1 = pd.DataFrame({  'A': [1, 2],

                                        'B': ['x', 'y']  })

df2 = pd.DataFrame({  'A': [3, 4],

                                        'B': ['z', 'w']  })

result = pd.concat([df1, df2], ignore_index=True)

print(result)

0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!