0% found this document useful (0 votes)
3 views19 pages

Python Final

The document outlines a series of practical exercises related to data manipulation and visualization using Python, covering topics such as reading CSV files, displaying DataFrames, and creating various plots. It also includes steps for building and evaluating a classification model using the Random Forest algorithm, along with data preprocessing techniques. Each practical section emphasizes different aspects of data handling and analysis.
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)
3 views19 pages

Python Final

The document outlines a series of practical exercises related to data manipulation and visualization using Python, covering topics such as reading CSV files, displaying DataFrames, and creating various plots. It also includes steps for building and evaluating a classification model using the Random Forest algorithm, along with data preprocessing techniques. Each practical section emphasizes different aspects of data handling and analysis.
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/ 19

Practical-9

# Display the DataFrame

# Read A Csv File

.
# Head() Method

# Tail() Method

# Describe() Method

# Info() Method
# Data Manipulation Operations

# Drop() Method
# Rename() Method

# Export to Excel File


Practical-10

# Printing The Sample Data

# Saving To Excel File


#Line Plot

#Scatter Plot
#Bar Plot

#Histogram
#Box Plot

#Pie Chart
#Heatmap (With Annotation)
Practical-11

1. Import libraries 2. Load the iris data set

3.1 Input Features

3.2 Output Features


4. Glimpse Of The Data
4.1. Input Features

4.2. Output Features

4.3. Assigning Input And Output Variables


5. Build Classification Model Using Random Forest

6. Feature Importance

7. Make Prediction
8. Data Split (80/20 Ratio)

9. Rebuild the Random Forest Model

10. Model Performance


Practical-12
# Fetching The Data

# Printing The Dataset


# Head() Method

# Independent Features And Dependent Features

# Train Test Split

# cross validation
# Cross Validation

# Prediction

# Score
Practical-13
# Load Dataset

# Info() Method

Pre-Processing Head() Method


# Describe() Method
# Printing The Dataset

# Modeling
# Insights

# Label

# Scatter Plot

You might also like