Skip to content

Commit

Permalink
updated notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
HercoZauZau committed Jun 1, 2024
1 parent ee31570 commit 3741ff1
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions notebooks/02. cleaning_and_structuring/structure_ids.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,25 @@
"3 755840\n",
"4 858200\n",
"---------------------------------------------\n",
"Number of rows: 2362\n",
"Number of rows: 2364\n",
"Number of columns: 1\n",
"---------------------------------------------\n",
"633\n",
"630\n",
"---------------------------------------------\n",
" user_id\n",
"0 346687\n",
"1 404506\n",
"1364 510444\n",
"1366 510444\n",
"2 705308\n",
"3 755840\n",
"... ...\n",
"1359 159833173\n",
"1106 161128312\n",
"1107 161218651\n",
"1360 164799434\n",
"1361 165147195\n",
"1361 164799434\n",
"1362 165147195\n",
"1363 170897253\n",
"\n",
"[1729 rows x 1 columns]\n",
"[1734 rows x 1 columns]\n",
"---------------------------------------------\n"
]
}
Expand Down Expand Up @@ -131,7 +131,11 @@
"print(new_data)\n",
"print('---------------------------------------------')\n",
"\n",
"new_data.to_csv(f'../../data/processed/{dir_name}/users_ids.csv', index=False, encoding='latin1')\n"
"\n",
"base_path = f'../../data/processed/{dir_name}'\n",
"os.makedirs(base_path, exist_ok=True)\n",
"\n",
"new_data.to_csv(f'{base_path}/users_ids.csv', index=False, encoding='latin1')\n"
]
},
{
Expand Down

0 comments on commit 3741ff1

Please sign in to comment.