मराठी

What will be the output of the following code: import pandas as pd s1 = pd.Series(data=2*(3, 10)) print(s1) - Informatics Practices

Advertisements
Advertisements

प्रश्न

What will be the output of the following code:

import pandas as pd
s1 = pd.Series(data=2*(3, 10))
print(s1)
लघु उत्तर

उत्तर

Output

0     3
1     10
2     3
3     10

Explanation: 2*(3,10) moves the tuple and uses it as the series' data.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2022-2023 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×