Path: blob/master/Data Science using Python/Day1 Python for Data Science.ipynb
3074 views
Dealing with unstructured and structured data, Data Science is a field that comprises of everything that related to data cleansing, preparation, and analysis.
obtaining knowledge from often enormously large data sets.
process include analysis, preparing data for analysis, and presenting results to support organisational decisions
Data Science is the combination of
statistics,
mathematics,
programming,
problem-solving,
capturing data in ingenious ways, the ability to look at things differently,
and the activity of cleansing, preparing and aligning the data.
Python For Data Science
Python is one of the most popular languages used by Data Scientists. Python has in-built mathematical libraries and functions, making it easier to calculate mathematical functions.
Data Containers in Python
Strings 2. Lists 3. Tuples 4. Dictionary
Variable in Python
Operations on Numbers
Type Coversions
Quick Pratice:
Create python Script to input following details about your products:
Number of Products (30)
Name of Products Category (3*10)
Cost per Unit
Total Cost Price
Strings
Quick Practice:
Write a python script to open a railway ticket booking portal and enter following details from users :
1-Name
2-last Name
3-Age
4-Gender
5-Boarding Point
6-destination
String Functions and Methods
If else condition
Quick Parctice:
Write a python script to open a railway ticket booking portal and enter following details from users :
Ask for Sign in with UserName, Password (Greater than 5), Age > 16
Login for booking UserName and Pwd
1-Name 2-last Name 3-Age 4-Gender 5-Boarding Point 6-destination
Quick Practice:
Please create a user name of length 6 if user name is valid then create a password of length 7, if pwd is valid then print("Welcome to homepage")
Write a program that performs addition, subtraction, multiplication, or division based on user input. Prompt the user to enter two numbers and an operation (+, -, *, /). Perform the calculation and print the result.
Ques 2:
Input create a password with following critera:
Min len 3 and 10
Should contain one number
Should contain upper case member
Should not have a space
Shoukd have one special charactor sp=["@","?","*","$","&","^",#.!]
List
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [97], in <cell line: 5>()
2 b=(1,2,3)
3 #b.append(4)
----> 5 del b[2]
TypeError: 'tuple' object doesn't support item deletion
Dictionary
Mapping data types
Key value pairs
key are index to members for dictionary
Keys are unique with one value for one key
Duplicate Key creation is not possible
Quick Practice 3 :
Create a list with all float values
Create a dictionary with Emp ID as Key and Names as Values