Introduction
A DataFrame is a tabular data structure with two dimensions that is widely used for data analysis and manipulation in programming languages such as Python, R, and Pandas.
In a dataframe, rows represent separate observations or instances, while columns represent variables or attributes.
Each cell in the DataFrame contains a value, and all the cells in a particular column have the same data type.
Dataframes are ideal for managing and manipulating large datasets, as they allow for efficient data cleaning, transformation, and analysis.
They can be created from various data sources such as CSV files, Excel spreadsheets, or databases, and can be exported to these formats as well.
Overall, DataFrame provide a flexible and convenient way to organize and analyze data, making them an indispensable tool for data scientists, analysts, and researchers.
Start your MCQ-Python Dataframe Programs
Just a click away
QUIZ START
#1. Find the output a = np.array([[1,2,3],[0,1,4]]) print (a.size)
#2. Find the output s1=pd.Series() print(s1.empty) ? import pandas as pd
#3. Find the value of i arr=np.array([2,3,4,5]) for i in arr: print(i-1)
#4. Find the output of arr
#5. Find the code / line that comes after the line :- df = pd.DataFrame([8]) to add a column name 'Rollno' .
#6. Find the output of x x=np.array([ [1,2], [3,4] ]) print(x.T)
#7. df = pd.DataFrame(columns = ['A', 'B', 'C']) df is an empty dataframe with columns A,B,C. Write the code to add value 1 in column A in df (row index=0) ? add 12 in row row index=0
#8. Find the Output a=np.array([1,9,10]) b=np.array([9,-4,NaN]) arr=np.add(a,b)
print(arr) ? np.NaN
#9. df = pd.DataFrame(columns= ['A','B','C']) df is an empty data-frame with columns A,B,C. Write the code to add values 2,3,4 in respective columns.
#10. x='1' y=np.arange(2) print(int(x)+y)
#11. Which one of the following is a keyword in python?
#12. Dataframe has two different index at ______ and _______
#13. What will be output for the following code? a = np.array([1,2,3,5,8]) print (a.ndim)
#14. Find the output
arr=np.array(['Farhan',68,86])
x=arr[1]
y=arr[-1]
sub_value=x+y
print(sub_value)
#15. x=3.999, then int(x) will give
#16. Find the output of arr arr=np.linspace(1,2,2)
#17. Which one of the following is a valid example of dictionary (named-animal) in python.
#18. Find the value of x x=np.array([.5,.1]) x=x*10 print(x)
#19. In which of the following data type, duplicate items are not allowed ?
#20. arr=np.array([9,10]) print(-arr)
![cbse_class_XII_informatics practices-iqcliq.com](https://www.iqcliq.com/wp-content/uploads/2021/08/boitumelo-phetla-X89VSmdDKE0-unsplash-scaled.jpg)
Python Dataframe Programs MCQ-2
tags: CBSE Class XII Informatics Practices(IP)
Pub Date: 15/04/2021
Category:Python Program
5/5
(125+) review
Start Here
![cbse_class_XII_informatics practices-iqcliq](https://www.iqcliq.com/wp-content/uploads/2021/08/shahadat-rahman-gnyA8vd3Otc-unsplash-scaled.jpg)
Python Dataframe Programs MCQ-3
TAGS: CBSE Class XII Informatics Practices(IP)
Pub Date: 15/05/2021
category: Python program
5/5
(113+) review
Start Here
![](https://www.iqcliq.com/wp-content/uploads/2021/08/sigmund-59yRYIHWtzY-unsplash-scaled.jpg)
Python Dataframe Programs MCQ-4
TAGS: CBSE Class XII Informatics Practices(IP)
Pub Date: 15/07/2021
category: python program
5/5
(93+) review
Start Here