2. Make the necessary changes in the given
code to get the output as 8, Also state the
reason.(2)
>>> sl="3"
>>> S2=5
>>> S3=Sl+s2
Answers
Answered by
1
Python Pandas DataFrame: Exercises, Practice, Solution
Last update on September 01 2020 12:21:10 (UTC/GMT +8 hours)
[An editor is available at the bottom of the page to write and execute the scripts.]
Pandas DataFrame [81 exercises with solution]

1. Write a Pandas program to get the powers of an array values element-wise. Go to the editor
Note: First array elements raised to powers from second array
Sample data: {'X':[78,85,96,80,86], 'Y':[84,94,89,83,86],'Z':[86,97,96,72,83]}
Expected Output:
X Y Z
0 78 84 86
1 85 94 97
2 96 89 96
3 80 83 72
4 86 86 83
Attachments:
Similar questions