Experiment-Based Questions
1. NumPy Arrays
Write a Python program to create:
A basic NumPy array
Array of zeros and ones
Identity matrix
Evenly spaced array using linspace()
2. Array Shape & Reshaping
Write a program to:
Find dimension, shape, and size of an array
Reshape a 1D array into 2D
Flatten the array
Find transpose
3. Expand & Squeeze
Write a Python program to:
Expand dimensions of a NumPy array
Squeeze the array
Sort elements in the array
4. Indexing & Slicing
Write a program to demonstrate:
1D array slicing
2D array slicing
Negative slicing
Access elements from a 3D array
5. Stacking & Concatenation
Write a Python program to:
Perform vertical stacking
Horizontal stacking
Concatenate two arrays
6. Pandas DataFrame Operations
Write a program to:
Create a DataFrame
Add a new column
Apply conditions (filtering)
Concatenate two DataFrames
7. Pandas Advanced Operations
Write a Python program to:
Handle missing values using fillna()
Sort data based on a column
Perform groupby() operation
8. File Handling using Pandas
Write a Python program to read:
CSV file
Display first 5 rows of each.
9. Data Preprocessing
Write a program to perform:
Feature scaling
Standardization
Label Encoding
One Hot Encoding
10. Data Visualization
Write a Python program to plot:
Bar graph
Histogram
Scatter plot
Line chart