मराठी

To display the last five rows of a series object ‘S’, you may write ______ - Informatics Practices

Advertisements
Advertisements

प्रश्न

To display the last five rows of a series object ‘S’, you may write ______

पर्याय

  • S.Head()

  • S.Tail(5)

  • S.Head(5)

  • S.tail()

MCQ
रिकाम्या जागा भरा
Advertisements

उत्तर

To display the last five rows of a series object ‘S’, you may write S.tail().

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

संबंधित प्रश्‍न

Select the correct statement:


Give the output of:

s=pd.Series([10,20,30,40,50],index =[‘a’,‘b’,‘c’,0,1])
print(s.loc[1])


Given a Pandas series called “S”, the command which will delete the 1st row(index value 0) ______.


A Series represents ______ column(s) in memory.


Pandas Series is capable of holding ______ data type.


Write Python series to print scalar value “10” 5 times.


Size and values of data of Series are ______.


Select code to display the sum of Series M1 and Series M2:

(i) print (sum(M1,M2))

(ii) print(M1+M2)

(iii) print(M1.add(M2))

(iv) print(M1.sum(M2))


Select code to show rows where values of series M1 greater than 75.


The keys of the dictionary are used to represent the ______ of the Series.


Give the output.

import pandas as pd
s=pd.Series([1,2,3,4,5])
s.drop(2)
print(s.size)

Series to print scalar value “100” 5 times:


Assuming the given series, named stud, which command will be used to print 5 as output?

1 5
2 10
3 15
4 20
5 25

Which attribute is used to return the data type of the underlying data for the given Series object?


Which statement is not correct to print the top 5 rows from series s?


Consider the following series named Result.

Rohan 90
Aman 60
Divya 34
Jeet 78
Raj 25
Jyoti 85
Gagan 32

Write the output of the command:

print(Result[: :-1])


Write the output of the given command:

import pandas as pd
s=pd.Series([10,20,30,40,50],[1,2,3,4,5])
print(s.loc[2])

Write the output of the given command:

import pandas as pd
s=pd.Series([10,20,30,40,50],[1,2,3,4,5])
print(s[2]+s.iloc[2])

Write the output of the given command:

import pandas as pd
s=pd.Series([10,20,30,40,50],[1,2,3,4,5])
print(s.loc[2]*2)

Which of the following statement will import pandas library?


Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×