हिंदी

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×