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

Python Libraries Questions

The document contains a series of questions related to various Python libraries used in data science, including NumPy, Pandas, Matplotlib, Scikit-learn, Statsmodels, TensorFlow, and PyTorch. Each section covers fundamental concepts, functionalities, and differences between methods and libraries. The questions aim to assess knowledge on data manipulation, visualization, machine learning, and deep learning techniques.

Uploaded by

scubegaming236
Copyright
© © All Rights Reserved
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
0% found this document useful (0 votes)
2 views3 pages

Python Libraries Questions

The document contains a series of questions related to various Python libraries used in data science, including NumPy, Pandas, Matplotlib, Scikit-learn, Statsmodels, TensorFlow, and PyTorch. Each section covers fundamental concepts, functionalities, and differences between methods and libraries. The questions aim to assess knowledge on data manipulation, visualization, machine learning, and deep learning techniques.

Uploaded by

scubegaming236
Copyright
© © All Rights Reserved
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/ 3

Python Libraries Questions

🧮 NumPy (Numerical Python)


1.​ What is NumPy? Why is it used in data science?​

2.​ How is a NumPy array different from a Python list?​

3.​ How do you create a NumPy array from a list or range?​

4.​ What are broadcasting rules in NumPy?​

5.​ How do you compute the mean, median, and standard deviation using NumPy?​

6.​ What is the difference between np.zeros(), np.ones(), and np.empty()?​

📊 Pandas (Data Manipulation)


7.​ What is a DataFrame in Pandas?​

8.​ How do you read a CSV file using Pandas?​

9.​ How do you handle missing data in a DataFrame?​

10.​What is the difference between loc[] and iloc[]?​

11.​How do you group data in Pandas (groupby)?​

12.​How do you merge or join two DataFrames?​

13.​How can you remove duplicates from a DataFrame?​

📈 Matplotlib & Seaborn (Data Visualization)


14.​How do you create a line plot or bar plot using Matplotlib?​
15.​What is the difference between plt.plot() and plt.scatter()?​

16.​How do you visualize missing data using Seaborn?​

17.​How can you create a correlation heatmap in Seaborn?​

18.​What is the role of plt.show() in Matplotlib?​

🤖 Scikit-learn (Machine Learning)


19.​What are the steps to train a machine learning model in Scikit-learn?​

20.​How do you split your dataset into training and testing sets?​

21.​What is the use of StandardScaler() in Scikit-learn?​

22.​How do you evaluate a classification model in Scikit-learn?​

23.​What is the difference between fit() and transform()?​

24.​How do you perform cross-validation using Scikit-learn?​

📊 Statsmodels (Statistical Modeling)


25.​What is the difference between Scikit-learn and Statsmodels?​

26.​How do you perform linear regression using Statsmodels?​

27.​What is the use of the .summary() function in Statsmodels?​


🤖 TensorFlow / PyTorch (Deep Learning)
28.​What is TensorFlow used for in data science?​

29.​How do you define a simple neural network using Keras (in TensorFlow)?​

30.​What is the difference between PyTorch and TensorFlow?​

You might also like