Rest of the Ip Project
Rest of the Ip Project
CLASS: XII(COMMERCE)
What is Python?
Python is an open source, object-oriented
high-level programming language
developed by Guido Van Rossum in 1991 at
the National Research Institute for
Mathematics, Netherlands.
Features of Python:
It is an interactive, interpreted language.
It is a loosely typed object-oriented
language.
It is a free open-source and portable
language.
It takes less time to develop programs.
It is extensible/extendable and highly
efficient.
It supports GUI.
It can be easily compatible with other
languages like C, C++ etc.
It is used for both scientific and non-
scientific programming.
Installing Python: It can be installed by
using the website:
https://www.python.org/downloads/
Interacting with python :
Python programs can be run in two ways:
USING IDLE
Modules Used:
Pandas Module:
Pandas is a powerful and versatile library that
simplifies tasks of data manipulation in Python.
Pandas is built on top of the NumPy library and is
particularly well-suited for working with tabular
data, such as spreadsheets or SQL tables. Its
versatility and ease of use make it an essential
tool for data analysts, scientists, and engineers
working with structured data in Python.
What can we do using Pandas?
Pandas are generally used for data science. This
is because pandas are used in conjunction with
other libraries that are used for data science. It is
built on the top of the NumPy library which
means that a lot of structures of NumPy are used
or replicated in Pandas. The data produced by
Pandas are often used as input for plotting
functions of Matplotlib, statistical analysis in
SciPy, and machine learning algorithms in Scikit-
learn. Here is a list of things that we can do using
Pandas.
Pandas Data Structures
Pandas generally provide two data structures for
manipulating data. They are:
a) Series
b) DataFrame
a) Pandas Series:
Example of Series:
b) Pandas Dataframe:
Illustration:
To install Matplotlib:
Name,Age,City
Alice,25,New York
Bob,30,Los Angeles
Importing and Exporting CSV files:
Many applications, including spreadsheet software (like
Microsoft Excel) and programming languages (like
Python), can import and export data in CSV format. This
makes CSV files a versatile format for data storage and
exchange.
Code:
import pandas as pd
df = pd.read_csv("E:\\emp.csv")
print(df)
Output:
dataframe.to_csv("E:\\dataframe1.csv")
This method exports DataFrame df1 into a CSV file named dataframe1.csv.
Output:
Name SirName
0 Sachin Bhardwaj
1 Vinod Verma
2 Rajesh Mishra
4.3 What is a Database?
A database is a structured collection of information related to a specific
topic or purpose. It's like a digital filing cabinet, where you can store and
retrieve data efficiently.
Data Manipulation:
o Creating tables
o Adding, deleting, and modifying records
o Retrieving data selectively or collectively
Data Organization:
o Sorting and indexing data for efficient retrieval
Report Generation:
o Producing standardized or customized reports based on the
stored data
Data Calculation:
o Performing mathematical calculations on the stored data
Data Integrity:
o Ensuring data accuracy and consistency
Database Use:
o Managing and optimizing database usage
MySQL
Menu :
PRESS 7: EXIT
System Implementation