CBSE Class 12 Informatics Practices
Question 40 of 40
Python Pandas — I — Question 16
Back to all questionsimport
pandas
as
pd
import
numpy
as
np
data
=
np
.
array
([
'a'
,
'b'
,
'c'
,
'd'
,
'e'
,
'f'
,
'g'
])
S
=
pd
.
Series
(
data
)
print
(
S
)
Output
0 a
1 b
2 c
3 d
4 e
5 f
6 g
dtype: object