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

Advanced Python Internal Questions

The document outlines a series of programming tasks focused on NumPy and Pandas in Python. It includes creating and manipulating arrays, performing DataFrame operations, handling missing values, and data visualization techniques. Each section provides specific objectives for coding exercises related to array manipulation, data preprocessing, and visual representation of data.
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)
10 views2 pages

Advanced Python Internal Questions

The document outlines a series of programming tasks focused on NumPy and Pandas in Python. It includes creating and manipulating arrays, performing DataFrame operations, handling missing values, and data visualization techniques. Each section provides specific objectives for coding exercises related to array manipulation, data preprocessing, and visual representation of data.
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

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

You might also like