We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
QUESTION BANK
Statistical Analysis and Computing
Short Answer Questions 1. Explain the basics of the Python Interpreter. 2. List Python file modes 3. List Python set operations 4. What is Tab Completion and introspection in Ipython 5. Write a NumPy program to generate 10 random integers between 0 and 100 and find the sum, mean, and standard deviation of the resulting array 6. Write a NumPy program to create a 2D array and select the elements in the 2nd row and 3rd column. 7. Name two built-in sequence functions in Python. 8. What is Fancy Indexing 9. Write a NumPy program to create an array of 10 zeros and update sixth value to 11. 10. What is Boolean indexing 11. Explain basic indexing and slicing in NumPy arrays. 12. Write the difference between loc[] and iloc[] in pandas with examples 13. Write a program in Python to summarize and compute descriptive statistics for a pandas Series or data frame. 14. How do you create a DataFrame in pandas? 15. Discuss how to read data from a CSV file using pandas. 16. How do you apply summarization on pandas data frame 17. Write a pandas program to create a DataFrame from a dictionary of arrays/lists. 18. What are some common methods for handling missing data in pandas? 19. A DataFrame df with a column Email contains email addresses. Write a Pandas code snippet to filter out all rows where the email address does not end with ".com". 20. Describe the role of regular expressions in data cleaning and string pattern matching using pandas. 21. How do you handle missing data in pandas? 22. List Regular expression methods in python 23. Describe the GroupBy mechanics in pandas. 24. How do you iterate over groups in pandas? 25. How do you group data using dictionaries and Series in pandas? 26. What is the purpose of group operations in data analysis? 27. How do you remove duplicates from a dataset in pandas? 28. What is discretization and binning in the context of data preparation 29. Write a program that takes a date in the format "YYYY-MM-DD" as input from the user, converts it to a datetime object, and then prints the day of the week for that date. 30. Create a program that reads a pandas DataFrame containing student exam scores (columns: 'Student', 'Subject', 'Score') and computes the maximum score for each subject. 31. Write a function in Python that takes a string representing a date in the format "YYYY-MM-DD" and converts it to a datetime.date object. 32. What is the significance of crosstabulations (crosstab) in data analysis? Long Answer Questions 1. Compare and contrast tuples, lists, dictionaries, and sets in Python, highlighting their use cases and differences. 2. Explain itertools functions with examples 3. Explain how to raise an exception in Python using the raise statement. Write a program that raises a ValueError if the input is negative. 4. Describe the purpose of the try and except blocks in Python. Write a program that handles division by zero and invalid input using try and except. 5. Write a Python program using dictionary comprehension to generate a dictionary with the frequency count of each character in the string "abracadabra". 6. Discuss python built -in sequence functions with examples 7. Explain the concept of pseudorandom number generation in NumPy. 8. Explain the pseudorandom number generation in NumPy with an example. 9. Discuss array-oriented programming with NumPy with an example. 10. Explain file input and output operations with NumPy arrays. 11. Write a short note on basic array statistical methods with example programs 12. Explain the use of universal functions in NumPy with examples. 13. Discuss the commonly used numpy.linalg functions with examples 14. How can you summarize data using pandas? Provide examples. 15. Describe the process of interacting with web API using pandas. 16. Discuss the techniques used for data transformation in pandas? 17. Explain the methods to combine and merge datasets in pandas. 18. Discuss Reading and Writing Data in Text Format with examples 19. Write a python program to read data from an Excel file and display its contents and perform some operations on it. 20. Write shote notes on interacting with databases 21. Suppose you have an SQLite database containing a large table of sales data with columns for date, product, quantity, and price. Design a panda’s code to read this data into a data frame, filter it for a specific date range, calculate the total revenue for each product, and then sort the products based on their total revenue. 22. Describe hierarchical indexing in pandas with examples. 23. Explain the application of moving window functions in time series analysis. 24. Discuss Data Transformation in detail with examples 25. Explain combing and merging datasets with examples 26. Explain the concept of split-apply-combine in pandas with an example 27. Discuss Date and Time Data Types and Tools with examples 28. Describe the pivot table functionality in pandas with an example. 29. Discuss the process of resampling time series data in pandas. 30. Discuss the use of correlation and covariance in analyzing data with pandas 31. Describe the concept of hierarchical indexing in pandas. 32. Write a panda’s program to create a MultiIndex DataFrame.