Python Libraries - NumPy, Pandas, Matplotlib, SciPy - Question Bank
1. What is the primary data structure in NumPy?
2. The `scipy.sparse` module is designed for:
3. Which Matplotlib function allows you to create subplots within a figure?
4. What is the default behavior of `df.drop()` if `axis` is not specified?
5. Which NumPy function returns the cumulative sum of elements along a given axis?
6. What does `scipy.integrate.quad()` do?
7. To create a pie chart in Matplotlib, you would use:
8. Which Pandas method is used to combine two or more Series or DataFrames along a particular axis?
9. What is the primary purpose of `np.linalg.solve(a, b)`?
10. The `scipy.ndimage` module provides functions for:
11. Which Matplotlib object represents the entire figure, including all axes, titles, and legends?
12. What does `df.apply()` in Pandas do?
13. Which NumPy function generates an array of random numbers from a uniform distribution?
14. What is the difference between `np.where(condition)` and `pd.Series.where(condition)`?
15. The `scipy.spatial` module contains functions for:
16. Which Matplotlib function adds a legend to a plot?
17. What is the primary function of the `pivot_table()` method in Pandas?
18. Which NumPy function creates an array by repeating elements of an existing array?
19. In SciPy, what does the `scipy.fftpack` module provide?
20. To create a bar chart in Matplotlib, you would typically use:
21. Which Pandas method is used to handle missing values (NaN)?
22. What is the result of `np.mean(array, axis=1)` for a 2D NumPy array?
23. The `scipy.interpolate` module is used for:
24. Which Matplotlib function is used to add labels to the x and y axes?
25. What is the purpose of the `merge()` function in Pandas?
26. Which NumPy function creates an array with a specified data type?
27. What is the fundamental difference between `np.array()` and `pd.Series()`?
28. Which SciPy submodule is used for signal processing tasks like filtering and spectral analysis?
29. To create a scatter plot in Matplotlib, you would typically use:
30. What does `df.groupby()` in Pandas do?
31. Which NumPy function allows you to reshape an array without changing its data?
32. The `scipy.linalg` module is primarily used for operations related to:
33. To create a histogram in Matplotlib, which function is typically used?
34. Which Pandas method is used to select rows based on a condition?
35. What is the result of `np.dot(a, b)` when `a` and `b` are 1D NumPy arrays?
36. In SciPy, what is the primary use of the `scipy.optimize` submodule?
37. Which Matplotlib function is used to display a plot?
38. What does the `inplace=True` argument in Pandas methods do?
39. Which NumPy function generates an array with evenly spaced values within a given interval?
40. How do you create a Pandas Series from a Python list?
41. The `scipy.stats` module provides functions for what purpose?
42. Which Matplotlib function adds a title to a plot?
43. What is the purpose of the `read_csv()` function in Pandas?
44. Which NumPy attribute returns the dimensions of an array?
45. What does the `axis=0` parameter typically represent in a Pandas DataFrame operation?
46. In SciPy, which submodule is used for integration?
47. Which Matplotlib function is commonly used to create a line plot?
48. What is the primary data structure in Pandas used for data manipulation and analysis?
49. Which NumPy function is used to create an array of zeros?