<jupyter_start><jupyter_text>Assignment: Preparing Data for Analysis (Modified Titanic) ![](https://github.com/kaopanboonyuen/2110446_DataScience_2021s2/raw/main/%20files/hw.png)<jupyter_code>#Import the libraries
import numpy as np
import pandas as pd
df = pd.read_csv('https://github.com/kaopanboonyuen/2110446_DataScience_2021s2/raw/main/datasets/hw/titanic_training_dataset_v2.csv')
df.head()
df.info()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12614678899082568, 'fraction_numerical': 0.06192660550458716, 'mean_word_length': 8.297872340425531, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '455293', 'license': 'MIT', 'n_tokens_mistral': 187, 'n_tokens_neox': 160, 'n_words': 22, 'path': 'code/week2_dataprep/Assignment_TitanicV2_ToStudent.ipynb', 'repo_name': 'stangthanin/2110446_DataScience_2021s2', 'size': '436'}