Advertisements
Advertisements
प्रश्न
Which of the following statement will import pandas library?
पर्याय
Import pandas as pd
import Pandas as py
import pandas as pd
import panda as pd
Advertisements
उत्तर
import pandas as pd
APPEARS IN
संबंधित प्रश्न
Select the correct statement:
Pandas Series is a ______.
Give the output of:
s=pd.Series([10,20,30,40,50],index =[‘a’,‘b’,‘c’,0,1])
print(s.loc[1])
By default, Series.tail() function display last ______ rows.
Given a Pandas series called “S”, the command which will delete the 1st row(index value 0) ______.
Command to create empty Series is ______.
Pandas Series is capable of holding ______ data type.
Write Python series to print scalar value “10” 5 times.
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.
Set the series name “Marks1” of M1 series:
The keys of the dictionary are used to represent the ______ of the Series.
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 code is correct to show rows those empno are greater than 103?
empno=[101,102,103,104,105,106,107]
p=pd.Series(empno)
Which statement is not correct to print the top 5 rows from series s?
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)To display the last five rows of a series object ‘S’, you may write ______
Write a program to create a series of objects using a dictionary that stores the number of students in each house of class 12D of your school.
Note: Assume four house names are Beas, Chenab, Ravi, and Satluj having 18, 2, 20, and 18 students respectively and pandas library has been imported as pd.
