This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# parent class | |
class User(): | |
def __init__(self,name,age,gender): | |
self.name = name | |
self.age = age | |
self.gender = gender | |
def show_details(self) : | |
print("Personal Details") | |
print("") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Importing | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# Get the data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# importing | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
df=pd.read_csv("C:\\Users\MageshMacpeth\Desktop\College_Data.csv",index_col = 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Importing | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
iris = sns.load_dataset('iris') | |
print(iris.head()) | |
# sns.pairplot(data=iris,hue='species') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Importing | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# Get data | |
loans=pd.read_csv("C:\\Users\MageshMacpeth\Desktop\loan_data.csv") | |
# print(loans.head()) | |
# print(loans.describe()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import all the required libraries | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# get the data | |
df=pd.read_csv("C:\\Users\MageshMacpeth\Desktop\KNN_Project_Data.csv") | |
print(df.head()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Importing all the libraries | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# Get the Data | |
ad_data=pd.read_csv("C:\\Users\MageshMacpeth\Desktop\\advertising.csv") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first we need to import all the packages. | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# load the csv file to the dataframe called customers | |
customers=pd.read_csv('C:\\Users\MageshMacpeth\Desktop\Ecommerce Customers.csv') | |
# If you want to confirm the dataframe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 911 Calls Capstone Project - Solutions | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
sns.set_style('whitegrid') | |
df = pd.read_csv('D:\Magesh\Data\Python for Data Science\Py_DS_ML_Bootcamp-master\Refactored_Py_DS_ML_Bootcamp-master\Data-Capstone-Projects\911.csv') |