Week - 2 Assignment - Introduction to AI programming
Week - 2 Assignment - Introduction to AI programming
Prepared by,
Chauhan Sagarbhai Manjibhai
Solanki Shivani Ajitbhai
1. Pandas
Core Functionality: Pandas provides data structures for efficiently working with structured data (like
tables or spreadsheets) and time series. Its primary data structures are the DataFrame (a
2-dimensional labeled table) and the Series (a 1-dimensional labeled array). Pandas offers powerful
tools for data cleaning, transformation, merging, reshaping, and analysis.
Relevance to the Manufacturing Industry: The manufacturing sector generates vast amounts of
structured data from various sources, including:
● Sensor Data from Machines: Readings on temperature, pressure, vibration, etc., crucial for
predictive maintenance.
● Quality Control Data: Measurements and classifications of product quality at different stages of
production.
● Production Logs: Records of production times, quantities, and any errors or downtime.
● Supply Chain Information: Data on raw materials, inventory levels, and delivery schedules.
● Sales and Customer Feedback: Information on product demand and customer satisfaction.
● Pandas is invaluable for:
● Data Ingestion and Preprocessing: Reading data from various file formats (CSV, Excel,
databases) and cleaning it by handling missing values, inconsistencies, and outliers. This is a
critical first step for any AI/ML model.
● Feature Engineering: Creating new features from existing data that can improve the
performance of AI models. For example, calculating rolling averages of sensor readings or
identifying trends in production errors.
● Time Series Analysis: Analyzing time-stamped data to identify patterns, seasonality, and
anomalies, which is essential for predicting machine failures or optimizing production
schedules.
● Data Exploration and Analysis: Performing descriptive statistics, grouping data, and filtering to
gain insights into manufacturing processes and identify areas for improvement.
2. NumPy
Core Functionality: NumPy is the fundamental package for numerical computation in Python. It
provides support for large, multi-dimensional arrays and matrices, along with a vast collection of
high-level mathematical functions to operate on these arrays efficiently.
Relevance to the Manufacturing Industry: Many AI and machine learning algorithms rely heavily
on numerical operations. In manufacturing, NumPy is essential for:
3. Matplotlib
Core Functionality: Matplotlib is a comprehensive library for creating static, interactive, and
animated visualizations in Python. It allows users to generate various types of plots, charts, and
graphs, providing powerful ways to understand and communicate data.
Relevance to the Manufacturing Industry: Visualizing data is crucial for gaining insights,
monitoring performance, and communicating findings in a manufacturing context. Matplotlib enables: