# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: PyCharm (Data-preparation)
#     language: python
#     name: pycharm-eaa1fcfe
# ---

import pandas as pd

# + pycharm={"name": "#%%\n"}
data = pd.read_csv('C:/Users/toduc/OneDrive - National Economics University/Desktop/NEU/Machine Learning/Visualization/Data/tsunamis.csv', sep=',')
data

# + pycharm={"name": "#%%\n"}
data.head(3)

# + pycharm={"name": "#%%\n"}
data.tail()

# + pycharm={"name": "#%%\n"}
data.describe()

# + pycharm={"name": "#%%\n"}
data.nunique()

# + pycharm={"name": "#%%\n"}
data.columns

# + pycharm={"name": "#%%\n"}
data['mag'].unique()

# + pycharm={"name": "#%%\n"}
data['mag'].value_counts(normalize=True)

# + pycharm={"name": "#%%\n"}
data[['mag', 'time']][40:50]

# + pycharm={"name": "#%%\n"}
data = pd.read_csv('C:/Users/toduc/OneDrive - National Economics University/Desktop/NEU/Machine Learning/Visualization/Data/earthquakes.csv', sep=',')
data.head()

# + pycharm={"name": "#%%\n"}
data.shape

# + pycharm={"name": "#%%\n"}
data['magType'].unique()

# + pycharm={"name": "#%%\n"}
data['mag'] > 3

# + pycharm={"name": "#%%\n"}
sum(data['mag']>3)

# + pycharm={"name": "#%%\n"}
sum(data['place'].str.contains('Indonesia'))

# + pycharm={"name": "#%%\n"}


StarcoderdataJupyterScriptsDedupFiltered