Skip to content

Lab assignments and practicals for Data Analysis Using Python. This repository contains code and examples for data manipulation, visualization, and exploration using libraries like Pandas, NumPy, and Matplotlib, as part of the Data Analysis Using Python laboratory course.

Notifications You must be signed in to change notification settings

karthik-ryali/data-analysis-using-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Analysis Using Python

This repository contains lab assignments and practical scripts for the "Data Analysis Using Python" course at Aditya University. Each week’s folder includes Python scripts focused on data manipulation, visualization, and exploratory analysis using libraries such as Pandas, NumPy, and Matplotlib. The scripts are named as per the official lab schedule (e.g., 1a, 1b, …, 5d), and each script is described below.

Student Name

R.V.S.V.KARTHIK
Roll No: 24B11AI373


Lab Contents & Code Descriptions

File Description
week1/1a.py Convert kilograms to pounds with user input validation.
week1/1b.py Print a sequence (8, 11, 14, ..., 89) using both for and while loops.
week1/1c.py Split a string into an array (list) of individual characters.
week1/1d.py Calculate the nth Fibonacci number using recursion.
week1/1e.py Find and print the largest number from a list.
week2/2a.py Define a Car class with attributes and methods for starting and stopping the car.
week2/2b.py Demonstrate class inheritance using Animal, Dog, and Cat classes with unique methods.
week2/2c.py Handle division by zero and invalid input using try-except for safe number division.
week2/2d.py Demonstrate polymorphism with an Animal base class and method overriding in subclasses.
week3/3a.py Use NumPy for array creation, element-wise operations, comparisons, and conversion to list.
week3/3b.py Analyze arrays: extract elements, find unique values, indices, and count using NumPy.
week4/4a.py Create and display a Pandas Series; convert it to a Python list and display type.
week4/4b.py Create, update, and manipulate a Pandas DataFrame from a dictionary; add columns, headers.
week5/5a.py Plot multiple graphs (sine, cosine, product) on subplots with Matplotlib.
week5/5b.py Create a subplot layout with scatter, line, and bar plots using matplotlib and pandas data.
week5/5c.py Visualize time-series data, customizing axis labels and date formats in matplotlib/pandas.
week5/5d.py Generate a 3D scatter plot using matplotlib and numpy.

Getting Started

To run any code:

  1. Install Python 3 and the following packages if needed: pip install numpy pandas matplotlib

  2. Navigate to the relevant week folder and run the script: python 1a.py


License

This project is intended for academic use by students at Aditya University.
Feel free to fork or reference for your own lab learning.

About

Lab assignments and practicals for Data Analysis Using Python. This repository contains code and examples for data manipulation, visualization, and exploration using libraries like Pandas, NumPy, and Matplotlib, as part of the Data Analysis Using Python laboratory course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages