Python
Python
CHAPTER 1
INTRODUCTION
This chapter brief about the history of the organization, major milestones, overall organization
structure Products and services offered, number of people working in the organization, operation of
different departments and their functions.
Vision of the Company: To empower individuals with a strong foundation in Data Science,
setting the stage for success in the digital age.
Benefits of tools
• Improved decision making
• Predictive analytics
• Innovation
CHAPTER 2
DOMAIN SPECIFIC/SOFTWARE/TOOLS ENVIRONMENT
This chapter gives the detailed description of company, its various departments and about
domain specific/software/tools environment. Alpha Ace Academy is working on following
domains:
2.1 Data Science & Analysis:
Data science and analysis involve extracting insights and knowledge from data using various
techniques, tools, and methods. The process typically involves:
1. Data collection: Gathering data from various sources
2. Data cleaning: Preprocessing and cleaning the data
3. Data visualization: Visualizing data to understand patterns and trends
4. Data analysis: Applying statistical and machine learning techniques to extract insights
5. Insight generation: Interpreting results and generating actionable insights
6. Communication: Presenting findings to stakeholders
• Data science and analysis are used in various fields, including:
1. Business: To inform business decisions, optimize operations, and improve customer
experiences
2. Healthcare: To improve patient outcomes, reduce costs, and optimize resource allocation
3. Social sciences: To understand social phenomena, predict behavior, and inform policy
decisions
4. Environmental science: To understand climate patterns, monitor ecosystems, and inform
conservation efforts
5. Sports: To improve team and player performance, inform coaching decisions, and
optimize strategy
• Some common data analysis techniques include:
1. Regression analysis
2. Cluster analysis
3. Decision trees
4. Random forests
5. Neural networks
6. Hypothesis testing
7. Confidence intervals
2.2 Full Stack Web Development: Full stack web development refers to the development of a
complete web application, from the front-end (client-side) to the back-end (server-side). A full
stack web developer is proficient in both front-end and back-end development and can handle all
aspects of web application development.
2.3 Cyber security: Cyber security refers to the practices, technologies, and processes designed to
protect digital information, networks, and systems from unauthorized access, use, disclosure,
disruption, modification, or destruction. This includes protection against malware, viruses,
hacking, phishing, and other types of cyber threats.
2.4 React JS: React JS is a popular JavaScript library for building user interfaces. It was developed by
Facebook and is now maintained by Facebook and a community of developers.
React allows you to build reusable UI components and manage the state of your application in a
declarative way. It uses a virtual DOM (a lightweight in-memory representation of your UI) to optimize
rendering and update only the parts of the UI that have changed.
2.5 Artificial Intelligence: AI (Artificial Intelligence) refers to the development of computer systems
that can perform tasks that typically require human intelligence, such as:
1. Learning
2. Problem-solving
3. Reasoning
5. Language understanding
2.6 Machine Learning:
Machine Learning (ML) is a subset of Artificial Intelligence (AI) that involves developing algorithms and
statistical models that enable machines to learn from data, make predictions, and improve their performance
over time.
1. Data preprocessing
2. Model selection
3. Training
4. Validation
5. Deployment
• Industry experts who are committed to providing with the latest practical knowledge.
• Data-First Philosophy: Data Science isn’t just a part of what we do; it’s our essence.
CHAPTER 3
TASKS PERFORMED DURING THE INTERNSHIP
This Chapter contains the detailed description of Task:
• VARIABLES:
1. Name given to a memory location to store object.
2. Rules: can’t start with number, use only alpha-numeric character expect _ .etc
• LIST TYPE:
1. Ordered collection of objects, Mutable
2. Slicing, Methods
Dept. of ECE, ATMECE, Mysuru Page 7
Data Science with Python
• TUPLE TYPE:
3. Ordered collection of objects, immutable
4. Indexing, slicing, tuple unpacking, methods.
• DICTIONARIES TYPE:
1. Ordered collection of objects stored as key value pairs.
2. Accessing, modifying, delete, methods .etc.
• SETS TYPE:
1. Unordered collection of unique objects
2. Set operations
• STATEMENTS:
1. Tools to solve problems
2. Control flow statements – if, if else, if elif elif --- else
3. Looping statements – for, while .etc
• FUNCTIONS AND OOP:
1. Range (), Input (). etc, inheritance, polymorphism, encapsulation,abstraction.etc
• PATTERN PRINTING
n=5
def pypart2(n):
k = 2*n – 2
for i in range(0, n):
for j in range(0, k):
print(end=" ")
k=k–2
def triangle(n):
k=n-1
def numpat(n):
num = 1
num = 1
num = num + 1
print("\r")
n=5
numpat(n)
n=5
alph = 65
This game is a word-guessing game that challenges the player to guess a 5-letter word in 6 attempts
or less. The game provides feedback in the form of:
The player must use this feedback to refine their guesses and try to guess the word correctly before
running out of attempts. If they succeed, they win! If they use up all 6 attempts without guessing
correctly, the game ends. The game also features a play-again option, allowing the player to start a
new round with a new word to guess.
import random
score = 5
while True:
guess = int(input("Enter a number between 1 and 20: "))
if guess == secret_number:
print("Correct guess!")
score -= 1 # decrement score even on correct guess
print("Score =", score)
break
else:
print("Too low!")
score -= 1
OUTPUT:
import random
random_word = words[random_index]
letters_not_present = []
trial = 1
while True:
if trial <= 6:
print(f"Trial {trial}")
if len(guess_word) != 5:
print("Invalid word")
continue
if guess_word == random_word:
choice = input("Do you want to play again?\nY for yes\nN for no: ").lower()
if choice == 'y':
random_word = words[random_index]
print(random_word)
Dept. of ECE, ATMECE, Mysuru Page 13
Data Science with Python
trial = 1
continue
else:
break
else:
correct_spot_letters = []
wrong_spot_letters = []
if g_letter == random_word[g_index]:
correct_spot_letters.append(g_letter)
wrong_spot_letters.append(g_letter)
else:
letters_not_present.append(g_letter)
trial += 1
else:
print("Trial over.....!")
choice = input("Do you want to play again?\nY for yes\nN for no: ").lower()
if choice == 'y':
random_word = words[random_index]
print(random_word)
trial = 1
continue else:
break
Dept. of ECE, ATMECE, Mysuru Page 14
Data Science with Python
OUTPUT:
3 BANKING:
class BankAccount:
def __init__(self, account_number, account_name, balance=0):
self.account_number = account_number
self.account_name = account_name
self.balance = balance
def display_details(self):
print(f"Account Number: {self.account_number}")
print(f"Account Name: {self.account_name}")
print(f"Balance: {self.balance}")
def main():
account = BankAccount("123456789", "John Doe")
Importing the data of the heart data set in the tabular column in below figure 3.4 and plotting the graph
using the data.
The representation of every data in the above figure 3.4 in the form of bar graph. The below figure 3.5
represents the bar graph for the data in the above figure 3.4.
Python libraries like NumPy and Pandas provide efficient functions to calculate statistical measures like
mean, median, and variance. Here's a brief description of how to use these libraries to calculate these
statistics. These libraries provide efficient and convenient ways to calculate statistical measures, making
data analysis and scientific computing tasks easier in Python. The below figure 3.6 and 3.7 shows the
calculation of mean median variance using python libraries.
• The price of a car depends on a lot of factors like the goodwill of the brand of the car,
features of the car, horsepower and the mileage it gives and many more.
• Car price prediction is one of the major research areas in machine learning.
• Train a car price prediction model with machine learning using Python.
• One of the main areas of research in machine learning is the prediction of the price of
cars.
• It is based on finance and the marketing domain.
• It is a major research topic in machine learning because the price of a car depends on
many factors. Some of the factors that contribute a lot to the price of a car are:
• If one ignores the brand of the car, a car manufacturer primarily fixes the price of a car
based on the features it can offer a customer.
• Later, the brand may raise the price depending on its goodwill, but the most important
factors are what features a car gives you to add value to your life.
• The dataset used here to train a car price prediction model is the car dataset.
• It contains data about all the main features that contribute to the price of a car.
STEPS:
1. Importing the necessary Python libraries and the dataset. Figure 3.8 represents the same.
2. There are 26 columns in this dataset, so it is very important to check whether or not
this dataset contains null values before going any further. Below figure 3.9 shows
the data set.
3. So, this dataset doesn’t have any null values, now let’s look at some of the other
important insights to get an idea of what kind of data we’re dealing with as shown
in below figure 3.10.
5. Now let’s have a look at the correlation among all the features of this dataset in the below
figure 3.13.
Use the decision tree regression algorithm to train a car price prediction model. So let’s split the data into
training and test sets and use the decision tree regression algorithm to train the model as shown below
figure 3.14. The model gives 100% accuracy on the test set, which is excellent.
This is how we can train a machine learning model for the task of predicting car prices by using the
Python programming language. It is a major research topic in machine learning because the price of a car
depends on many factors
4.1 Application:
• In Finance: Data Science plays a key role in Financial Industries. Financial Industries
always have an issue of fraud and risk of losses. Thus, Financial Industries needs to
automate risk of loss analysis in order to carry out strategic decisions for the company.
Also, Financial Industries uses Data Science Analytics tools in order to predict the future.
It allows the companies to predict customer lifetime value and their stock market moves.
• In E-Commerce: E-Commerce Websites like Amazon, Flipkart, etc. uses data Science
to make a better user experience with personalized recommendations. For Example,
when we search for something on the E-commerce websites, we get suggestions similar
to choices according to our past data and also, we get recommendations according to
most buy the product, most rated, most searched, etc. This is all done with the help of
Data Science.
• In Health Care: In the Healthcare Industry data science act as a boon. Data Science is
used for: Detecting Tumor, Drug discoveries, Medical Image Analysis, Virtual Medical
Bots, Genetics and Genomics, Predictive Modeling for Diagnosis etc.
• Image Recognition: Currently, Data Science is also used in Image Recognition. For
Example, when we upload our image with our friend on Facebook, Facebook gives
suggestions Tagging who is in the picture. This is done with the help of machine
learning and Data Science. When an Image is Recognized, the data analysis is done on
one’s Facebook friends and after analysis, if the faces which are present in the picture
matched with someone else profile, then Facebook suggests us auto-tagging.
• Data Science in Gaming: In most of the games where a user will play with an
opponent i.e. a Computer Opponent, data science concepts are used with machine
learning where with the help of past data the computer will improve its performance.
There are many games like Chess, EA Sports, etc. will use Data Science concepts.
• In Delivery Logistics: Various Logistics companies like DHL, FedEx, etc. make use of
Data Science. Data Science helps these companies to find the best route for the Shipment
of their Products, the best time suited for delivery, the best mode of transport to reach the
destination, etc.
4.2 Advantages:
CONCLUSION
The internship experience in Data Science with python internship was very insightful. In
conclusion, this internship experience has provided valuable insights into the practical application
of data science methodologies and tools in real-world scenarios. Through hands-on projects and
collaboration with experienced professionals, I have developed a deeper understanding of data
analysis, visualization, and interpretation. Moreover, the exposure to diverse datasets and
challenges has honed my problem-solving skills and critical thinking abilities. Overall, this
internship has been instrumental in shaping my career path in data science and has equipped me
with the necessary skills and knowledge to excel in this field.
https://www.geeksforgeeks.org/major-applications-of-data-science/
https://www.tops-int.com/blog/benefits-of-a-data-science-internship/
https://a-cube-alpha-aceacademy.business.site/?utm_source=gmb&utm_medium=referra
GEOTAG PHOTOS