<jupyter_start><jupyter_text>Connecting to Your Google Drive<jupyter_code># Start by connecting google drive into google colab

from google.colab import drive

drive.mount('/content/gdrive')
!ls "/content/gdrive/My Drive/DigitalHistory"
cd "/content/gdrive/My Drive/DigitalHistory"

ls<jupyter_output><empty_output><jupyter_text>Import Libraries and unpack file<jupyter_code>import pandas as pd
import zipfile

file_location = 'data/trans-atlantic-slave-trade.zip'

zip_ref = zipfile.ZipFile(file_location,'r')
zip_ref.extractall('tmp/trans-atlantic-slave-trade')
zip_ref.close()<jupyter_output><empty_output><jupyter_text>Load file<jupyter_code>df = pd.read_csv('tmp/trans-atlantic-slave-trade/trans-atlantic-slave-trade.csv')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11889035667107001, 'fraction_numerical': 0.0, 'mean_word_length': 8.023809523809524, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '362308', 'license': 'MIT', 'n_tokens_mistral': 281, 'n_tokens_neox': 267, 'n_words': 42, 'path': 'DigitalHistory/Week-2/Week2-Introduction-to-Data.ipynb', 'repo_name': 'bitprj/curriculum', 'size': '757'}