Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI/ML Assignment Repository

Welcome to the AI/ML Assignment repository! This repository contains Python assignments focused on Data Science, Machine Learning, and Artificial Intelligence concepts using popular libraries like NumPy and Pandas.

� Quick Links

�📚 Repository Contents

This repository contains assignment solutions with their corresponding question papers.

File Name Description
Assignment_01.ipynb First assignment - Python basics
Mid_assignment.ipynb Mid-term assignment solutions
Python for ML Mid Term.pdf Mid-term exam question paper
employees.csv Auto-generated dataset for analysis
README.md This documentation file

1. Assignment_01.ipynb

First assignment covering fundamental Python programming concepts:

  • Filter Operations: Working with lambda functions and filters to extract even numbers from lists
  • Data Manipulation: Basic Python data structure operations
  • Interactive Programming: Input/output handling in Python

2. Mid_assignment.ipynb

Mid-term assignment focusing on data analysis with NumPy and Pandas.

📄 View Question Paper: Python for ML Mid Term.pdf

This notebook contains solutions to all questions from the mid-term examination.

NumPy Section (Questions 1-5)

  • Array creation and properties (dtype, ndim, shape, size)
  • Statistical operations (max, min, mean)
  • Array filtering and boolean indexing
  • Element-wise operations
  • Aggregate functions (sum, difference calculations)

Pandas Section (Questions 6-10)

  • DataFrame operations (head, tail, info, describe)
  • Data selection and slicing
  • Filtering data by conditions
  • Sorting operations
  • Data modification and updates
  • Working with CSV files

Dataset: Employee data containing:

  • ID
  • Age
  • Salary
  • Department (HR, IT, Finance, Sales)

🚀 Getting Started

Prerequisites

Make sure you have Python installed (Python 3.7+ recommended) along with the following libraries:

pip install numpy pandas jupyter

Running the Notebooks

  1. Clone this repository:
git clone https://github.com/Jami40/AI_ML_Assignment.git
cd AI_ML_Assignment
  1. Launch Jupyter Notebook:
jupyter notebook
  1. Open any of the .ipynb files to view and run the assignments

📊 Assignment Details

Assignment 1

Simple Python operations demonstrating:

  • List comprehensions
  • Lambda functions
  • Filter operations
  • User input handling

Mid Assignment (Question Paper PDF)

Comprehensive data analysis assignment covering:

NumPy Tasks:

  1. Extract age and salary arrays from CSV data
  2. Calculate statistics (max, min, average)
  3. Filter employees by age criteria
  4. Perform array transformations
  5. Calculate aggregates

Pandas Tasks: 6. Load and explore employee dataset 7. Select specific columns and rows 8. Filter by department 9. Sort by salary (descending) 10. Update salary values and recalculate averages

📝 Key Learning Outcomes

  • Understanding NumPy array operations and properties
  • Working with Pandas DataFrames
  • Data filtering and selection techniques
  • Statistical analysis using Python
  • CSV file handling
  • Data transformation and manipulation

🔧 Technologies Used

  • Python 3.x: Core programming language
  • NumPy: Numerical computing library
  • Pandas: Data analysis and manipulation library
  • Jupyter Notebook: Interactive development environment

📧 Contact

Email: jnjami40@gmail.com

📄 License

This repository is for educational purposes as part of AI/ML coursework.

🤝 Contributing

This is an assignment repository, but suggestions and improvements are welcome! Feel free to:

  1. Fork the repository
  2. Create your feature branch
  3. Submit a pull request

📖 Additional Resources


Note: The employees.csv file is generated automatically when running the Mid Assignment notebook. Make sure to run the data generation cell first before attempting other questions.

🎯 Assignment Status

  • ✅ Assignment 01 - Completed
  • ✅ Mid Assignment - Completed

Happy Learning! 🎓

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages