- Видео 18
- Просмотров 431
Ambi Data Science channel
Австралия
Добавлен 13 май 2021
This video channel has been created by Ambi to promote and share Data Science concepts.
Thanks for watching.
Thanks for watching.
Data Cleaning
#Below is the code used in the video
"""
@author: ambi
copyright = "Copyright (C) Ambi"
"""
#TOPIC 1 : Visualize Missing values
#TOPIC 2 : Dealing with unusual values
#TOPIC 3 Dealing with Missing Data, drop them or replace with mean/median/mode
#TOPIC 4 : Dealing with Outliers
#TOPIC 5 : Dealing with duplicates
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
df=pd.read_excel('small_iris_dataset_demo_for_cleaning.xlsx')
df.info()
dfOriginal=df.copy()
plt.figure()
sns.heatmap(df.isna())
colName='sepal_length'
for x in df.index:
if df.loc[x,colName] lessthan 0 or df.loc[x, colName] moreThan 400:
df.loc[x,colName]= pd.NA
df.info()
num_missing_values=df.isnull().sum()
print(num_missing_va...
"""
@author: ambi
copyright = "Copyright (C) Ambi"
"""
#TOPIC 1 : Visualize Missing values
#TOPIC 2 : Dealing with unusual values
#TOPIC 3 Dealing with Missing Data, drop them or replace with mean/median/mode
#TOPIC 4 : Dealing with Outliers
#TOPIC 5 : Dealing with duplicates
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
df=pd.read_excel('small_iris_dataset_demo_for_cleaning.xlsx')
df.info()
dfOriginal=df.copy()
plt.figure()
sns.heatmap(df.isna())
colName='sepal_length'
for x in df.index:
if df.loc[x,colName] lessthan 0 or df.loc[x, colName] moreThan 400:
df.loc[x,colName]= pd.NA
df.info()
num_missing_values=df.isnull().sum()
print(num_missing_va...
Просмотров: 3
Видео
T2: Introduction to List Comprehension
Просмотров 62 часа назад
#Below is the code used in the video """ #Introduction to List Comprehension @author: ambi copyright = "Copyright (C) Ambi" """ numberList=list(range(10)) ''' evenNumberList=[] for item in numberList: if(item % 2 0): evenNumberList.append(item) evenNumberList=[x for x in numberList if x%2 0] oddNumberList=[x for x in numberList if x%2 != 0] ''' data=["Australia","UK","USA","Japan"] newlist=[x f...
Brief Introduction to key concepts in Programming Sequence Selection Part 1
Просмотров 32 часа назад
Brief Introduction to key concepts in Programming Sequence Selection Part 1
Brief Introduction to key concepts in Programming Sequence Selection Part 2
Просмотров 12 часа назад
Brief Introduction to key concepts in Programming Sequence Selection Part 2
Brief Introduction to key concepts in Programming Iteration Part 3
Просмотров 32 часа назад
Brief Introduction to key concepts in Programming Iteration Part 3
Brief Introduction to key concepts in Programming Iteration Part 4
Просмотров 62 часа назад
Brief Introduction to key concepts in Programming Iteration Part 4
T3: Difference between List and Tuple in Python
Просмотров 72 часа назад
""" Below is the code used in the video. Difference between List and Tuple in Python @author: ambi copyright = "Copyright (C) Ambi" """ #List data=["Australia","UK","USA","Japan"] #Tuple #data=("Australia","UK","USA","Japan") #TypeError: 'tuple' object does not support item assignment data[1]="England" for item in data: print(item)
T1:Brief Introduction to Data Structures in Python List, Tuple Set and Dictionary
Просмотров 32 часа назад
""" Below is the code used in the video. Brief Introduction to Data Structures in Python List, Tuple Set and Dictionary @author: ambi copyright = "Copyright (C) Ambi" """ #Brief Introduction to Data Structures in Python List, Tuple Set and Dictionary #List data=["Australia","UK","USA","Japan"] #Tuple, immutable, value can not be changed afterwards data=("Australia","UK","USA","Japan") #Set, dup...
T4: Difference between AND OR and Exclusive OR operations
Просмотров 42 часа назад
Difference between AND OR and Exclusive OR operations. Below is the code used in the video """ @author: ambi copyright = "Copyright (C) Ambi" """ #Difference between AND OR and Exclusiove OR operations bringPizza=True bringCoke=False happiness=bringPizza and bringCoke #happiness=bringPizza or bringCoke #XOR #happiness=bringPizza ^ bringCoke print(happiness)
T5: Passing variable number of arguments to a function in Python using star args *args
Просмотров 62 часа назад
#Below is the code used in the video #Passing variable number of arguments to a function in Python using star args *args. """ @author: ambi copyright = "Copyright (C) Ambi" """ def add(*args): #print(type(args)) #args a tuple result=0 for a in args: result=result a return result print(add(5,6)) print(add(5,6,4,5,2,3,5))
T01 Find Min of a function using gradient descent
Просмотров 322 часа назад
T01 Find Min of a function using gradient descent
Intro to Simple Regression Model for absolute beginners Using excel, no coding needed
Просмотров 82 часа назад
Intro to Simple Regression Model for absolute beginners Using excel, no coding needed
Introduction to Machine Learning Model for absolute beginners Using excel, no coding needed
Просмотров 132 часа назад
Introduction to Machine Learning Model for absolute beginners Using excel, no coding needed
Tutorial to Visualize relationship between a categorical and a continuous variable Video
Просмотров 3314 дней назад
Link for Code as Jupyter Notebook: github.com/ambi1999/DataScienceTutorials/blob/main/Data Visualization/Visualize Relationship between a categorical and a continuous variable Code.ipynb #Tutorial to visualize relationship between a categorical variables and a continuous variable #Dataset: Auto MPG, Avialble from UCI Machine Learning Repository #This car dataset is about fuel consumption in mil...
Tutorial to visualize relationship between two categorical variables
Просмотров 3814 дней назад
Link for Python code as Jupyter notebook github.com/ambi1999/DataScienceTutorials/blob/main/Data Visualization/Visualize Relationship between two categorical variables Code.ipynb @author: Dr Ambi Developed by Dr Ambi, copyright@Dr Ambi #Tutorial to visualize relationship between two categorical variables #Dataset: Auto MPG, Avialble from UCI Machine Learning Repository #This car dataset is abou...
Video tutorial for Digital Signal Processing concepts (Discrete Fourier Transform and Filtering)
Просмотров 233 года назад
Video tutorial for Digital Signal Processing concepts (Discrete Fourier Transform and Filtering)
Tutorial for Simple Classification Model
Просмотров 1123 года назад
Tutorial for Simple Classification Model