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

DS Lab Programs

The document outlines various operations and techniques in Python for data manipulation and analysis using NumPy and Pandas, including array creation, reshaping, indexing, and file reading. It also covers web scraping, preprocessing techniques for datasets, and visualizations with Matplotlib. Additionally, it introduces Natural Language Toolkit (NLTK) and its integration with other libraries like SciKit-Learn.

Uploaded by

sravani b
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)
2 views2 pages

DS Lab Programs

The document outlines various operations and techniques in Python for data manipulation and analysis using NumPy and Pandas, including array creation, reshaping, indexing, and file reading. It also covers web scraping, preprocessing techniques for datasets, and visualizations with Matplotlib. Additionally, it introduces Natural Language Toolkit (NLTK) and its integration with other libraries like SciKit-Learn.

Uploaded by

sravani b
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

1.

Creating a NumPy Array


a. Basic ndarray
b. Array of zeros
c. Array of ones
d. Random numbers in ndarray
e. An array of your choice
f. I-matrix in NumPy
g. Evenly spaced ndarray

2. Shape and Reshaping of NumPy Array


a. Dimensions of NumPy array
b. Shape of NumPy array
c. Size of NumPy array
d. Reshaping a NumPy array
e. Flattening a NumPy array
f. Transpose of a NumPy array

3. Expanding and Squeezing a NumPy Array


a. Expanding a NumPy array
b. Squeezing a NumPy array
c. Sorting in NumPy Arrays

4. Indexing and Slicing of NumPy Array


a. Slicing 1-D NumPy arrays
b. Slicing 2-D NumPy arrays
c. Slicing 3-D NumPy arrays
d. Negative slicing

5. Stacking and Concatenating NumPy Arrays


a. Stacking ndarrays
b. Concatenating ndarrays
c. Broadcasting in NumPy Arrays

6. Pandas Operations
a. Creating dataframe
b. concat()
c. Setting conditions
d. Adding a new column

7. Additional Pandas Operations


a. Filling NaN with string
b. Sorting by column values
c. groupby()
8. Reading File Formats using pandas
a. Text files
b. CSV files
c. Excel files
d. JSON files

9. Reading Other File Types


a. Pickle files
b. Image files using PIL
c. Multiple files using Glob
d. Importing data from database

10. Web Scraping in Python

11. Preprocessing Techniques on Loan Dataset


a. Feature Scaling
b. Feature Standardization
c. Label Encoding
d. One Hot Encoding

12. Visualizations using Matplotlib


a. Bar Graph
b. Pie Chart
c. Box Plot
d. Histogram
e. Line Chart & Subplots
f. Scatter Plot

13. Getting Started with NLTK – Install using pip

14. Python program using SciKit-Learn & NLTK

15. Python program using NLTK / Spicy / PyNLPI

You might also like