{ "cells": [ { "cell_type": "code", "execution_count": 10, "id": "f3da59fb-eb6b-449f-b8d5-95ddacd456f2", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import pandas as pd\n", "from pathlib import Path" ] }, { "cell_type": "code", "execution_count": 11, "id": "0c897ead-dfb5-4d18-bcfc-949824a0868f", "metadata": {}, "outputs": [], "source": [ "uber = Path.home() / 'google-drive' / 'Charlie_6013_RECLASS' / 'Data' / 'Raw' / 'Uber Customer Reviews.csv'" ] }, { "cell_type": "code", "execution_count": 12, "id": "75ad8e81-3f11-4152-9494-b95bbba6fa01", "metadata": {}, "outputs": [], "source": [ "uber_df = pd.read_csv(uber, low_memory=False)" ] }, { "cell_type": "code", "execution_count": 13, "id": "9b8469b3-c606-461f-aaef-9619b7dc1ffd", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
sourcereview_iduser_namereview_titlereview_descriptionratingthumbs_upreview_datedeveloper_responsedeveloper_response_dateappVersionlaguage_codecountry_code
0Google Play18d6584c-d0e9-4833-a744-f607058aee97Milky WayNaNSuddenly, the driver can't have my location an...10.02023-08-10 17:48:51NaNNaNNaNenin
1Google Play50a08f18-cece-4ddf-b617-028844c8aa28Bradlee SeveraNaNVery cordial.. And helped with a quick turnaro...50.02023-08-10 17:38:35NaNNaN4.485.10000enin
2Google Playb0d8e75a-80a7-4dcd-abaf-72b046dbeeb7Amit AggarwalNaNVery good experience50.02023-08-10 17:38:17NaNNaN4.486.10002enin
3Google Play502702a9-25ed-4373-a96c-7fa1f06caacdBryant InmanNaNAll I use50.02023-08-10 17:37:45NaNNaN4.467.10008enin
4Google Playf47a3fb6-23db-49bd-9e63-f33c8d724d07Addie WhittakerNaNI have enjoyed traveling by Uber my drivers ha...50.02023-08-10 17:36:56NaNNaN4.486.10002enin
\n", "
" ], "text/plain": [ " source review_id user_name \\\n", "0 Google Play 18d6584c-d0e9-4833-a744-f607058aee97 Milky Way \n", "1 Google Play 50a08f18-cece-4ddf-b617-028844c8aa28 Bradlee Severa \n", "2 Google Play b0d8e75a-80a7-4dcd-abaf-72b046dbeeb7 Amit Aggarwal \n", "3 Google Play 502702a9-25ed-4373-a96c-7fa1f06caacd Bryant Inman \n", "4 Google Play f47a3fb6-23db-49bd-9e63-f33c8d724d07 Addie Whittaker \n", "\n", " review_title review_description rating \\\n", "0 NaN Suddenly, the driver can't have my location an... 1 \n", "1 NaN Very cordial.. And helped with a quick turnaro... 5 \n", "2 NaN Very good experience 5 \n", "3 NaN All I use 5 \n", "4 NaN I have enjoyed traveling by Uber my drivers ha... 5 \n", "\n", " thumbs_up review_date developer_response developer_response_date \\\n", "0 0.0 2023-08-10 17:48:51 NaN NaN \n", "1 0.0 2023-08-10 17:38:35 NaN NaN \n", "2 0.0 2023-08-10 17:38:17 NaN NaN \n", "3 0.0 2023-08-10 17:37:45 NaN NaN \n", "4 0.0 2023-08-10 17:36:56 NaN NaN \n", "\n", " appVersion laguage_code country_code \n", "0 NaN en in \n", "1 4.485.10000 en in \n", "2 4.486.10002 en in \n", "3 4.467.10008 en in \n", "4 4.486.10002 en in " ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "uber_df.head()" ] }, { "cell_type": "code", "execution_count": 15, "id": "1709a2cc-4f7a-4e77-994e-68668612caff", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(1069616, 13)" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.shape(uber_df)" ] }, { "cell_type": "code", "execution_count": 17, "id": "06c0c03c-14ba-4451-a6ea-44d36e85327c", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['source',\n", " 'review_id',\n", " 'user_name',\n", " 'review_title',\n", " 'review_description',\n", " 'rating',\n", " 'thumbs_up',\n", " 'review_date',\n", " 'developer_response',\n", " 'developer_response_date',\n", " 'appVersion',\n", " 'laguage_code',\n", " 'country_code']" ] }, "execution_count": 17, "metadata": {}, "output_type": "execute_result" } ], "source": [ "uber_df.columns.tolist()" ] }, { "cell_type": "code", "execution_count": 19, "id": "d22d3bce-eac0-4d02-a4ef-38343f4958ff", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "source object\n", "review_id object\n", "user_name object\n", "review_title object\n", "review_description object\n", "rating int64\n", "thumbs_up float64\n", "review_date object\n", "developer_response object\n", "developer_response_date object\n", "appVersion object\n", "laguage_code object\n", "country_code object\n", "dtype: object" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "uber_df.dtypes" ] }, { "cell_type": "code", "execution_count": 22, "id": "e08f5eae-7921-4526-b8fd-29038c55e1bb", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "source 0\n", "review_id 0\n", "user_name 1\n", "review_title 1067436\n", "review_description 169\n", "rating 0\n", "thumbs_up 2180\n", "review_date 0\n", "developer_response 871352\n", "developer_response_date 872338\n", "appVersion 241548\n", "laguage_code 0\n", "country_code 0\n", "dtype: int64" ] }, "execution_count": 22, "metadata": {}, "output_type": "execute_result" } ], "source": [ "uber_df.isnull().sum()" ] }, { "cell_type": "code", "execution_count": null, "id": "ea59d211-9958-46f6-bf76-65d8d36c50e4", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.13" } }, "nbformat": 4, "nbformat_minor": 5 }