Q:

Write a Pandas program to create and display a one-dimensional array-like object containing an array of data

0

Write a Pandas program to create and display a one-dimensional array-like object containing an array of data.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import pandas as pd
ds = pd.Series([2, 4, 6, 8, 10])
print(ds)

Sample Output:

0     2                                                                
1     4                                                                
2     6                                                                
3     8                                                                
4    10                                                                
dtype: int64

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now