In the sample input, you see a dataset df. Change the dataset so that you get the dataset from the sample output. You don't need to print the resulting DataFrame, just make sure that all the changes are saved in the DataFrame.
Modifying a DataFrame
Growing square
Report a typo
Sample Input 1:
a b
0 1 2
1 4 5Sample Output 1:
a b c
0 1 2 3
1 4 5 6
2 7 8 9Write a program in Python 3
import pandas as pd
df = pd.DataFrame({'a': [1, 4], 'b': [2, 5]})
# Your code here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.