0% found this document useful (0 votes)
2 views2 pages

Python Module4 QuestionBank

The document is a question bank for a course on Python Programming for Data Science at SJB Institute of Technology. It covers various topics related to the Pandas library, including data structures, operations, filtering, and statistical functions. Each question aims to assess understanding and practical application of Pandas in data manipulation and analysis.

Uploaded by

jasma.cojective
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Python Module4 QuestionBank

The document is a question bank for a course on Python Programming for Data Science at SJB Institute of Technology. It covers various topics related to the Pandas library, including data structures, operations, filtering, and statistical functions. Each question aims to assess understanding and practical application of Pandas in data manipulation and analysis.

Uploaded by

jasma.cojective
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

||JAI SRI GURUDEV||

Sri Adichunchanagiri Shikshana Trust ®


SJB INSTITUTE OF TECHNOLOGY
An Autonomous Institution under Visvesvaraya Technological University, Belagavi
Approved by AICTE, New Delhi, Accredited by NAAC, New Delhi with ‘A+’ Grade, Accredited by National Board of Accreditation, New Delhi
Recognized by UGC, New Delhi with 2(f) and 12(B), Certified by ISO 9001-2015
No. 67, BGS Health & Education City, Dr. Vishnuvardhan Road, Kengeri, Bengaluru - 560 060

Department of Computer Science & Engineering (Data Science)

Course Name: Python Programming for Data Science Course Code: 23CDE312
Faculty: Mrs. Jasma Bhavani B

Question Bank
Module 4

1. Define Pandas. Explain its importance in data manipulation and data analysis. List the core data
structures of Pandas.
2. Explain the Pandas Series data structure. Describe different ways of creating a Series with
suitable examples.
3. Explain how elements are accessed in a Pandas Series. Illustrate access by index label, position,
and slicing with examples.
4. Explain the process of creating a Pandas Series from a NumPy array. Discuss memory sharing
between NumPy arrays and Pandas Series.
5. Explain filtering of values in a Pandas Series. How are Boolean conditions used for filtering?
Illustrate with examples.
6. Explain arithmetic and mathematical operations on Pandas Series. Describe the use of functions
such as sum(), mean(), min(), and max().
7. Explain the functions unique(), value_counts(), and isin() used for evaluating values in a Pandas
Series with examples.
8. What are NaN values in Pandas? Explain the use of isnull() and notnull() functions with suitable
examples.
9. Explain operations between two Pandas Series. How does Pandas perform index-based
alignment during arithmetic operations?
10. Define a Pandas DataFrame. Explain different methods of creating a DataFrame using dictionary
and NumPy array with examples.
11. Explain how to select data from a Pandas DataFrame. Describe column selection, index access,
and dot notation with examples.
12. Explain assigning values in a DataFrame. Discuss updating cells, adding columns, conditional
assignment, and assignment using another column.
13. Explain membership testing in a Pandas DataFrame using isin(). How is it used for filtering data?
14. Explain different methods of deleting columns from a DataFrame using drop() and del with
examples.
15. Explain filtering in a Pandas DataFrame. How are Boolean conditions applied to extract rows?
16. Explain how to create a DataFrame from a nested dictionary. Discuss the structure and give a
suitable example.
||JAI SRI GURUDEV||
Sri Adichunchanagiri Shikshana Trust ®
SJB INSTITUTE OF TECHNOLOGY
An Autonomous Institution under Visvesvaraya Technological University, Belagavi
Approved by AICTE, New Delhi, Accredited by NAAC, New Delhi with ‘A+’ Grade, Accredited by National Board of Accreditation, New Delhi
Recognized by UGC, New Delhi with 2(f) and 12(B), Certified by ISO 9001-2015
No. 67, BGS Health & Education City, Dr. Vishnuvardhan Road, Kengeri, Bengaluru - 560 060

Department of Computer Science & Engineering (Data Science)

17. What is DataFrame transposition? Explain the use of .T and transpose() methods with examples.
18. Explain the Pandas Index object. Discuss its characteristics, immutability, and role in data
alignment.
19. Explain index methods idxmin() and idxmax() for Series and DataFrame with suitable examples.
20. Explain handling of duplicate index labels in Pandas. How is is_unique used to detect duplicates?
21. Explain reindexing in Pandas. Describe adding, removing, and reordering index labels with
examples.
22. Explain filling missing values during reindexing using fill_value, ffill, and bfill methods.
23. Explain dropping operations in Pandas for Series and DataFrames. Illustrate row and column
dropping with examples.
24. Explain arithmetic operations and data alignment between DataFrames. Why does Pandas align
data by labels?
25. Explain arithmetic methods such as add(), sub(), mul(), and div() in Pandas with examples.
26. Explain operations between a DataFrame and a Series. Describe label-based alignment and axis
usage.
27. Explain function application in Pandas. Describe element-wise functions and the role of
NumPy universal functions.
28. Explain the use of apply() function in Pandas. Describe column-wise and row-wise operations
with examples.
29. Explain statistical functions in Pandas such as sum(), mean(), and describe() with examples.
30. Explain sorting and ranking in Pandas. Describe sorting by values and sorting by index with
examples.

You might also like