This file contains 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 the pandas and sweetviz library. Make sure both are installed in your system properly. | |
# if not, pass the command 'pip install pandas' and 'pip install sweetviz' | |
import pandas as pd | |
import sweetviz |
This file contains 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
#load the train and test datasets using pandas | |
train = pd.read_csv("train.csv") | |
test = pd.read_csv("test.csv") |
This file contains 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
#check the 1st 5 rows | |
train.head() | |
#check the last 5 rows | |
train.tail() |
This file contains 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
#create a variable called report. | |
report = sweetviz.analyze([train,"Train"], target_feat = 'SalePrice') | |
# creating the report as a html file to view and study the exploratory data analysis. | |
report.show_html('Report.html') |
This file contains 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
# sweetviz's compare function helps to compare and make eda on two or more features | |
report1 = sweetviz.compare([train,"Train"],[test,"Test"], "SalePrice") | |
# generating the interactive html report; this gets automatically saved to your folder | |
report1.show_html('Report1.html') |
This file contains 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
y(t) = Level + Trend + Seasonality + Noise |
This file contains 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
y(t) = Level * Trend * Seasonality * Noise |
This file contains 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 pandas as pd | |
import os | |
import shutil | |
# create a data for the covid +ve samples (ieee real world dataset) | |
FILE_PATH = "covid-chestxray-dataset-master/metadata.csv" | |
IMAGES_PATH = "covid-chestxray-dataset-master/images" |
This file contains 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
df = pd.read_csv(FILE_PATH) | |
print(df.shape) | |
df = pd.read_csv(FILE_PATH) | |
print(df.shape) |
This file contains 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
df = pd.read_csv(FILE_PATH) | |
print(df.shape) |
OlderNewer