1 line
17 KiB
Plaintext
1 line
17 KiB
Plaintext
|
{"cells":[{"cell_type":"code","execution_count":1,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"elapsed":20282,"status":"ok","timestamp":1682168503068,"user":{"displayName":"Martyna Drumińska","userId":"13361003509289187965"},"user_tz":-120},"id":"pFXwuw2YtOWN","outputId":"fc5db6e3-af0b-4c7f-aeda-e53cc06e3896"},"outputs":[{"name":"stdout","output_type":"stream","text":["Mounted at /content/drive\n"]}],"source":["from google.colab import drive\n","drive.mount('/content/drive')"]},{"cell_type":"code","execution_count":2,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"elapsed":414,"status":"ok","timestamp":1682168503480,"user":{"displayName":"Martyna Drumińska","userId":"13361003509289187965"},"user_tz":-120},"id":"ezUTMea6Dd-S","outputId":"025d045b-62ba-4788-cbf2-e71e07e5cfea"},"outputs":[{"name":"stdout","output_type":"stream","text":["/content/drive/MyDrive\n"]}],"source":["cd drive/MyDrive"]},{"cell_type":"code","execution_count":3,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"elapsed":11,"status":"ok","timestamp":1682168503482,"user":{"displayName":"Martyna Drumińska","userId":"13361003509289187965"},"user_tz":-120},"id":"B8pDlU1gDjgx","outputId":"dae1fdd8-0b5f-4edb-deb6-bbc7754104af"},"outputs":[{"name":"stdout","output_type":"stream","text":["/content/drive/MyDrive/challenging-america-word-gap-prediction\n"]}],"source":["cd challenging-america-word-gap-prediction/"]},{"cell_type":"code","execution_count":4,"metadata":{"executionInfo":{"elapsed":659,"status":"ok","timestamp":1682168508921,"user":{"displayName":"Martyna Drumińska","userId":"13361003509289187965"},"user_tz":-120},"id":"ZXkygn2uDmRL"},"outputs":[],"source":["import pandas as pd"]},{"cell_type":"code","execution_count":42,"metadata":{"executionInfo":{"elapsed":6714,"status":"ok","timestamp":1682169607414,"user":{"displayName":"Martyna Drumińska","userId":"13361003509289187965"},"user_tz":-120},"id":"ynVR7uWXDqyV"},"outputs":[],"source":["cleaned = pd.read_csv(\"cleaned.csv\", sep=\",\", on_bad_lines='skip', encoding=\"utf-8\")"]},{"cell_type":"code","execution_count":43,"metadata":{"executionInfo":{"elapsed":383,"status":"ok","timestamp":1682169610747,"user":{"displayName":"Martyna Drumińska","userId":"13361003509289187965"},"user_tz":-120},"id":"0Fe6NoQ_HMCp"},"outputs":[],"source":["import numpy as np\n","cleaned.fillna('', inplace=True)"]},{"cell_type":"code","execution_count":44,"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":423},"executionInfo":{"elapsed":303,"status":"ok","timestamp":1682169614519,"user":{"displayName":"Martyna Drumińska","userId":"13361003509289187965"},"user_tz":-120},"id":"ia6-CxAvDwOi","outputId":"da5ccc07-e844-4d61-f190-fd96fd7680ee"},"outputs":[{"data":{"text/html":["\n"," \u003cdiv id=\"df-4c96f10b-08c9-4d5b-b86d-feb4369ed2f0\"\u003e\n"," \u003cdiv class=\"colab-df-container\"\u003e\n"," \u003cdiv\u003e\n","\u003cstyle scoped\u003e\n"," .dataframe tbody tr th:only-of-type {\n"," vertical-align: middle;\n"," }\n","\n"," .dataframe tbody tr th {\n"," vertical-align: top;\n"," }\n","\n"," .dataframe thead th {\n"," text-align: right;\n"," }\n","\u003c/style\u003e\n","\u003ctable border=\"1\" class=\"dataframe\"\u003e\n"," \u003cthead\u003e\n"," \u003ctr style=\"text-align: right;\"\u003e\n"," \u003cth\u003e\u003c/th\u003e\n"," \u003cth\u003ecol1\u003c/th\u003e\n"," \u003c/tr\u003e\n"," \u003c/thead\u003e\n"," \u003ctbody\u003e\n"," \u003ctr\u003e\n"," \u003cth\u003e0\u003c/th\u003e\n"," \u003ctd\u003ecame fiom the last place tothis place and this...\u003c/td\u003e\n"," \u003c/tr\u003e\n"," \u003ctr\u003e\n"," \u003cth\u003e1\u003c/th\u003e\n"," \u003ctd\u003emb boot political obeednattempt to imagine a p...\u003c/td\u003e\n"," \u003c/tr\u003e\n"," \u003ctr\u003e\n"," \u003cth\u003e2\u003c/th\u003e\n"," \u003ctd\u003e\u003c/td\u003e\n"," \u003c/tr\u003e\n"," \u003ctr\u003e\n"," \u003cth\u003e
|