You are on page 1of 24
218/28, 11:28 PM “Turkey&Syria earthquake analysis import pandas as pd rom pandas_profiling import ProfileReport import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set (color_codes=True) Xmatplotlib inline data = pd.read_csv(‘turkey quake.csv") data.head(2) time latitude longitude depth mag magType nst gap dmin rms .. 2023-02- . © orroszeais00 361206 36.448 18551 44 mb 500 1280 1255 048. y7roe.4 2023-02- 1 orroareaa res 378886 373491 10.000 43 mb 200 870 0724 036 » g7p42 2 rows x 22 columns > pd. isnull(data).sum().sum() 2 data.dropna( inplace-True) data.head(2) time latitude longitude depth mag magType nst gap dmin rms .. 2023-02- < © orroszeaisoo 261206 36.448 18551 44 mb 500 1280 1255 048 yrroe.4 2023-02- 1 ortoareaa res 378886 373491 10.000 43 mb 200 870 0724 036 » g7y4 2 rows x 22 columns > pd. isnull (data) .sum(). sum() e fie: 1IC:/UsersishiveshDownloads/Turkey&Syria earthquake analysis. him! 124 21823, 11:28 PM “Turkey&Syria earthquake analysis data. shape (98, 22) ProfileReport(data) Summarize dataset: @%| Generate report structure: @%| Render HTML: — @%| Overview Dataset statistics Number of variables Number of observations Missing cells issing cells (%) Duplicate rows Duplicate rows (%) Total size in memory Average record size in memory Variable types Categorical Numeric Alerts ‘type has constant value "earthquake" time has a high cardinality: 98 distinct values id has a high cardinality: 98 distinct values. fie: 1IC:/UsersishiveshDownloads/Turkey&Syria earthquakes analysis. him! | 0/5 [@8:00 4 gu $ fie: 1IC:/UsersishiveshDownloads/Turkey&Syria earthquake analysis. him! aiza 218/28, 11:28 PM “Turkey&Syria earthquake analysis fie: 1IC:/UsersishiveshDownloads/Turkey&Syria earthquake analysis. him! 19124 218/28, 1:28 PM “Turkey&Syria earthquake analysis Tit "any 5 of 6 @ a rr 16124 218/28, 11:28 PM “Turkey&Syria earthquake analysis * ee 2 Te ‘Beene aan. ‘i lun Tan. ‘Dane fie: IC:/Usersishivesh/Downloads/Turkey&Syria earthquake analysis. him! rie 218/28, 11:28 PM “Turkey&Syria earthquake analysis Sith hee GLEE Enaaee ‘le:C:/UseratshiveshvDownloadsTurkeySyria earthquake analysis Nil coupes Lg iy Miiieg if Ld Lb Mt Milf Ms Miley LE ee ASSESS a 18124 218/28, 11:28 PM A, Yd ge MUM LILES ALE PIL IPE PEELE E fie: 1IC:/UsersishiveshDownloads/Turkey&Syria earthquake analysis. him! hie ELIE Turkey Syria carqunke ana Ohi ie Sie Lee MELLEL LLY Othe CLL Celis ie 19124 218/28, 11:28 PM “Turkey&Syria earthquake analysis fie: 1IC:/UsersishiveshDownloads/Turkey&Syria earthquake analysis. him! 20124 218/28, 11:28 PM “Turkey&Syria earthquake analysis a L | cf — 7 7 7 f 7 7 7 / / = - ae y y 7 v 7 / 7 / / All Plots done Time to run AutoViz = 21 seconds dendeeRaeHHeRRREEHHEHE AUTO VISUALIZATION Completed ##RHHHHHERRRRHHEERR RHEE sns.displot(data[‘mag'],rug = True, kde = True) fie: 1IC:/UsersishiveshDownloads/Turkey&Syria earthquake analysis. him! 2124 218/28, 11:28 PM “Turkey&Syria earthquake analysis mag In [50 sns.jointplot(data['mag' ],data[ ‘depth’ ],data[ ‘type’ ]) 50 fie: 1IC:/UsersishiveshDownloads/Turkey&Syria earthquake analysis. him! 204 218/28, 11:28 PM “Turkey&Syria earthquake analysis 350 7 300 250 200 . g 6 3 150 ° . 100 a + . = . o a1 | 3 4 5 6 7 mag sns.jointplot(data[’ latitude’ ],data[' longitude" ],kind = ‘hex') fie: 1IC:/UsersishiveshDownloads/Turkey&Syria earthquake analysis. him! 224 218/28, 11:28 PM “Turkey&Syria earthquake analysis 150 100 longitude 100 150 latitude fie: 1IC:/UsersishiveshDownloads/Turkey&Syria earthquake analysis. him! 224

You might also like