CBSE Class 12 Informatics Practices Question 93 of 167

Python Pandas — I — Question 4

Back to all questions
4
Question

Question 4

Write single line Pandas statement for the following. (Assuming necessary modules have been imported) :

Declare a Pandas series named Packets having dataset as :

[125, 92, 104, 92, 85, 116, 87, 90]

Answer
Packets = pandas.Series([125, 92, 104, 92, 85, 116, 87, 90], name = 'Packets')