Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

PYTHON STUDY NOTES

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
23-10-2025
Written in
2025/2026

This python material focus all the exam based questions... There is no unwanted stuffs...It is the clear package of exam based questions

Institution
Course

Content preview

UNIT- 5
Python packages: Simple programs using the built-in functions of packages matplotlib, numpy, pandas etc.
Illustrative programs: create a pandas series using numpy, make a pandas data frame with 2D list. GUI
Programming: Tkinter introduction, Tkinter and Python Programming, Tk Widgets, Tkinter examples. Python
programming with IDE. Illustrative programs: create a GUI marksheet, calendar, file explorer using Tkinter.

Python Packages – Theory

What are Python Packages?

 A package is a way of organizing related modules (Python files) into a single directory.
 Packages make code reusable and organized.
 Some common packages: numpy, pandas, matplotlib, tkinter

a) NumPy (Numerical Python)

 NumPy is used for scientific computing with arrays and matrices.
 It supports mathematical operations on large datasets efficiently.

Install:

pip install numpy

Common functions:

 np.array(): Create arrays
 np.arange(): Range of values
 np.reshape(): Reshape array
 np.mean(), np.median(), np.std(): Statistical functions

NumPy – Syntax & Examples

numpy.array()

Syntax:

numpy.array([elements])

Example:

import numpy as np
a = np.array([1, 2, 3])
print(a)


numpy.arange()

Syntax:

numpy.arange(start, stop, step)

Example:

import numpy as np

, a = np.arange(1, 10, 2)
print(a)

numpy.reshape()

Syntax:

array.reshape(rows, columns)

Example:

import numpy as np
a = np.array([1, 2, 3, 4, 5, 6])
b = a.reshape(2, 3)
print(b)


numpy.mean(), median(), std()

import numpy as np
a = np.array([10, 20, 30, 40])

print("Mean:", np.mean(a))
print("Median:", np.median(a))
print("Standard Deviation:", np.std(a))

b) Pandas

 Pandas is a powerful package for data manipulation and analysis.
 It uses two key data structures: Series (1D) and DataFrame (2D).

Install:

pip install pandas

Common uses:

 pd.Series(): Create 1D labeled array
 pd.DataFrame(): Create tabular data
 .head(), .tail(): View data
 .describe(), .info(): Data summary

2. Pandas – Syntax & Examples

pandas.Series()

Syntax:

pandas.Series(data)

Example:

import pandas as pd
import numpy as np

Written for

Institution
Course

Document information

Uploaded on
October 23, 2025
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
itriedthat

Also available in package deal

Get to know the seller

Seller avatar
itriedthat Panimalar Engineering college
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions