{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"machine_shape":"hm","authorship_tag":"ABX9TyO9Njc22vmGTpGX04d5c9Ib"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"},"widgets":{"application/vnd.jupyter.widget-state+json":{"367dcd92f77242e18c5fdbb348a6e336":{"model_module":"@jupyter-widgets/controls","model_name":"HBoxModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_e406c8172bea4848a6e8da3ffb0b6ae4","IPY_MODEL_ef9065461dc14ca1b074b0ed6f392638","IPY_MODEL_a15d848adebb49bfbd7bd11893580c39"],"layout":"IPY_MODEL_9bdca34ac88d4057b43710ecf555e640"}},"e406c8172bea4848a6e8da3ffb0b6ae4":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_8f34e5a5cc2d43528714fd139e9206dc","placeholder":"​","style":"IPY_MODEL_45e7c712f867479d9860bcdc8121c102","value":"Downloading data: 100%"}},"ef9065461dc14ca1b074b0ed6f392638":{"model_module":"@jupyter-widgets/controls","model_name":"FloatProgressModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"ProgressView","bar_style":"success","description":"","description_tooltip":null,"layout":"IPY_MODEL_a82ec5c2a46f40ee889439ea699f7e01","max":118863795,"min":0,"orientation":"horizontal","style":"IPY_MODEL_0213eff2b18a4d19847ba7b4f26e8a84","value":118863795}},"a15d848adebb49bfbd7bd11893580c39":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_cc79b7abc1bd404487595c8677c2a639","placeholder":"​","style":"IPY_MODEL_3d97c946ba594102b25fd97157185c71","value":" 119M/119M [00:03<00:00, 36.6MB/s]"}},"9bdca34ac88d4057b43710ecf555e640":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"8f34e5a5cc2d43528714fd139e9206dc":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"45e7c712f867479d9860bcdc8121c102":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}},"a82ec5c2a46f40ee889439ea699f7e01":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"0213eff2b18a4d19847ba7b4f26e8a84":{"model_module":"@jupyter-widgets/controls","model_name":"ProgressStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"cc79b7abc1bd404487595c8677c2a639":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"3d97c946ba594102b25fd97157185c71":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}},"23c1a57abe5d4f188bc212b043beb154":{"model_module":"@jupyter-widgets/controls","model_name":"HBoxModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_c9dd315eff574a5386217579049b9975","IPY_MODEL_d592397a846b4e13893350b9866a22ae","IPY_MODEL_04ceb014bcb1440ca5c1bc5a833cafec"],"layout":"IPY_MODEL_4aa961ca56e24328be6d7f7db1136d1b"}},"c9dd315eff574a5386217579049b9975":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_53f006287cf34d089d816a3105e0e87c","placeholder":"​","style":"IPY_MODEL_e29bdac4d0614a2d86d7e96df89c9dc5","value":"Downloading data: 100%"}},"d592397a846b4e13893350b9866a22ae":{"model_module":"@jupyter-widgets/controls","model_name":"FloatProgressModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"ProgressView","bar_style":"success","description":"","description_tooltip":null,"layout":"IPY_MODEL_44349a48564a47bca322dfd552f07ee8","max":5341868833,"min":0,"orientation":"horizontal","style":"IPY_MODEL_eb8843e7c0ac4762841844b2a162014b","value":5341868833}},"04ceb014bcb1440ca5c1bc5a833cafec":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_7539df2894b34a718c33686b565175ad","placeholder":"​","style":"IPY_MODEL_8fa2778cbd054d7ea2f014c6075c4d5b","value":" 5.34G/5.34G [02:16<00:00, 35.4MB/s]"}},"4aa961ca56e24328be6d7f7db1136d1b":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"53f006287cf34d089d816a3105e0e87c":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"e29bdac4d0614a2d86d7e96df89c9dc5":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}},"44349a48564a47bca322dfd552f07ee8":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"eb8843e7c0ac4762841844b2a162014b":{"model_module":"@jupyter-widgets/controls","model_name":"ProgressStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"7539df2894b34a718c33686b565175ad":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"8fa2778cbd054d7ea2f014c6075c4d5b":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}},"f8abf200a5754dc181f806f6bb24bfba":{"model_module":"@jupyter-widgets/controls","model_name":"HBoxModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HBoxModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HBoxView","box_style":"","children":["IPY_MODEL_1cb9a87ba5a847a6880736e774929b7d","IPY_MODEL_b5f8fcced8044ceab3f5764834e5453e","IPY_MODEL_4729c28feed847a49caab3f9b8baae49"],"layout":"IPY_MODEL_043ebc7944c64d10840b7ea4dfb6925c"}},"1cb9a87ba5a847a6880736e774929b7d":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_a6ccb2a8d4c142e59b0014194f0aed7f","placeholder":"​","style":"IPY_MODEL_f6d2766c03b84a18bf5929df0a5ed3cb","value":"Computing checksums: 100%"}},"b5f8fcced8044ceab3f5764834e5453e":{"model_module":"@jupyter-widgets/controls","model_name":"FloatProgressModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"FloatProgressModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"ProgressView","bar_style":"success","description":"","description_tooltip":null,"layout":"IPY_MODEL_ed7d3c1f01594544be38cffd4ac690f6","max":1,"min":0,"orientation":"horizontal","style":"IPY_MODEL_99a7a103e0714327804b8d673cc288d4","value":1}},"4729c28feed847a49caab3f9b8baae49":{"model_module":"@jupyter-widgets/controls","model_name":"HTMLModel","model_module_version":"1.5.0","state":{"_dom_classes":[],"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"HTMLModel","_view_count":null,"_view_module":"@jupyter-widgets/controls","_view_module_version":"1.5.0","_view_name":"HTMLView","description":"","description_tooltip":null,"layout":"IPY_MODEL_8e12d93fd72e46c79811d5873c3d540a","placeholder":"​","style":"IPY_MODEL_6dfd8deed689427c826164860b1e1ab2","value":" 1/1 [00:16<00:00, 16.74s/it]"}},"043ebc7944c64d10840b7ea4dfb6925c":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"a6ccb2a8d4c142e59b0014194f0aed7f":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"f6d2766c03b84a18bf5929df0a5ed3cb":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}},"ed7d3c1f01594544be38cffd4ac690f6":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"99a7a103e0714327804b8d673cc288d4":{"model_module":"@jupyter-widgets/controls","model_name":"ProgressStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"ProgressStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","bar_color":null,"description_width":""}},"8e12d93fd72e46c79811d5873c3d540a":{"model_module":"@jupyter-widgets/base","model_name":"LayoutModel","model_module_version":"1.2.0","state":{"_model_module":"@jupyter-widgets/base","_model_module_version":"1.2.0","_model_name":"LayoutModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"LayoutView","align_content":null,"align_items":null,"align_self":null,"border":null,"bottom":null,"display":null,"flex":null,"flex_flow":null,"grid_area":null,"grid_auto_columns":null,"grid_auto_flow":null,"grid_auto_rows":null,"grid_column":null,"grid_gap":null,"grid_row":null,"grid_template_areas":null,"grid_template_columns":null,"grid_template_rows":null,"height":null,"justify_content":null,"justify_items":null,"left":null,"margin":null,"max_height":null,"max_width":null,"min_height":null,"min_width":null,"object_fit":null,"object_position":null,"order":null,"overflow":null,"overflow_x":null,"overflow_y":null,"padding":null,"right":null,"top":null,"visibility":null,"width":null}},"6dfd8deed689427c826164860b1e1ab2":{"model_module":"@jupyter-widgets/controls","model_name":"DescriptionStyleModel","model_module_version":"1.5.0","state":{"_model_module":"@jupyter-widgets/controls","_model_module_version":"1.5.0","_model_name":"DescriptionStyleModel","_view_count":null,"_view_module":"@jupyter-widgets/base","_view_module_version":"1.2.0","_view_name":"StyleView","description_width":""}}}}},"cells":[{"cell_type":"code","execution_count":1,"metadata":{"id":"ZKw9I8PXTXOb","executionInfo":{"status":"ok","timestamp":1710289587476,"user_tz":420,"elapsed":9511,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}},"colab":{"base_uri":"https://localhost:8080/"},"outputId":"af6d4592-57de-4a5e-e372-81842e1ce33e"},"outputs":[{"output_type":"stream","name":"stdout","text":["Collecting datasets\n"," Downloading datasets-2.18.0-py3-none-any.whl (510 kB)\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m510.5/510.5 kB\u001b[0m \u001b[31m9.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25hRequirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from datasets) (3.13.1)\n","Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from datasets) (1.25.2)\n","Requirement already satisfied: pyarrow>=12.0.0 in /usr/local/lib/python3.10/dist-packages (from datasets) (14.0.2)\n","Requirement already satisfied: pyarrow-hotfix in /usr/local/lib/python3.10/dist-packages (from datasets) (0.6)\n","Collecting dill<0.3.9,>=0.3.0 (from datasets)\n"," Downloading dill-0.3.8-py3-none-any.whl (116 kB)\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m116.3/116.3 kB\u001b[0m \u001b[31m16.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25hRequirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from datasets) (1.5.3)\n","Requirement already satisfied: requests>=2.19.0 in /usr/local/lib/python3.10/dist-packages (from datasets) (2.31.0)\n","Requirement already satisfied: tqdm>=4.62.1 in /usr/local/lib/python3.10/dist-packages (from datasets) (4.66.2)\n","Collecting xxhash (from datasets)\n"," Downloading xxhash-3.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (194 kB)\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m194.1/194.1 kB\u001b[0m \u001b[31m25.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25hCollecting multiprocess (from datasets)\n"," Downloading multiprocess-0.70.16-py310-none-any.whl (134 kB)\n","\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m134.8/134.8 kB\u001b[0m \u001b[31m16.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n","\u001b[?25hRequirement already satisfied: fsspec[http]<=2024.2.0,>=2023.1.0 in /usr/local/lib/python3.10/dist-packages (from datasets) (2023.6.0)\n","Requirement already satisfied: aiohttp in /usr/local/lib/python3.10/dist-packages (from datasets) (3.9.3)\n","Requirement already satisfied: huggingface-hub>=0.19.4 in /usr/local/lib/python3.10/dist-packages (from datasets) (0.20.3)\n","Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from datasets) (23.2)\n","Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from datasets) (6.0.1)\n","Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets) (1.3.1)\n","Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets) (23.2.0)\n","Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets) (1.4.1)\n","Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets) (6.0.5)\n","Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets) (1.9.4)\n","Requirement already satisfied: async-timeout<5.0,>=4.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->datasets) (4.0.3)\n","Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub>=0.19.4->datasets) (4.10.0)\n","Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets) (3.3.2)\n","Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets) (3.6)\n","Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets) (2.0.7)\n","Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->datasets) (2024.2.2)\n","Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets) (2.8.2)\n","Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas->datasets) (2023.4)\n","Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/dist-packages (from python-dateutil>=2.8.1->pandas->datasets) (1.16.0)\n","Installing collected packages: xxhash, dill, multiprocess, datasets\n","Successfully installed datasets-2.18.0 dill-0.3.8 multiprocess-0.70.16 xxhash-3.4.1\n"]}],"source":["import json\n","import pandas as pd\n","!pip install datasets"]},{"cell_type":"code","source":["from datasets import DownloadManager\n","import json\n","\n","# Initialize the DownloadManager\n","download_manager = DownloadManager()\n","\n","url = 'https://yelpdata.s3.us-west-2.amazonaws.com/yelp_academic_dataset_business.json'\n","\n","# Use DownloadManager to download the file\n","downloaded_file_path = download_manager.download(url)\n","\n","business_data = []\n","with open(downloaded_file_path, 'r') as file:\n"," for line in file:\n"," business_data.append(json.loads(line))\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":49,"referenced_widgets":["367dcd92f77242e18c5fdbb348a6e336","e406c8172bea4848a6e8da3ffb0b6ae4","ef9065461dc14ca1b074b0ed6f392638","a15d848adebb49bfbd7bd11893580c39","9bdca34ac88d4057b43710ecf555e640","8f34e5a5cc2d43528714fd139e9206dc","45e7c712f867479d9860bcdc8121c102","a82ec5c2a46f40ee889439ea699f7e01","0213eff2b18a4d19847ba7b4f26e8a84","cc79b7abc1bd404487595c8677c2a639","3d97c946ba594102b25fd97157185c71"]},"id":"tTCj6H5x8MKt","executionInfo":{"status":"ok","timestamp":1710289597805,"user_tz":420,"elapsed":8952,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}},"outputId":"3d7cacca-3bca-4fbc-ea9e-0b5a6d0ecae5"},"execution_count":2,"outputs":[{"output_type":"display_data","data":{"text/plain":["Downloading data: 0%| | 0.00/119M [00:00\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"," \n"," \n"," \n"," \n"," \n"," \n"," \n","
business_idnameaddresscitystatepostal_codelatitudelongitudestarsreview_countis_openattributescategorieshours
0Pns2l4eNsfO8kk83dixA6AAbby Rappoport, LAC, CMQ1616 Chapala St, Ste 2Santa BarbaraCA9310134.426679-119.7111975.070{'ByAppointmentOnly': 'True'}Doctors, Traditional Chinese Medicine, Naturop...None
1mpf3x-BjTdTEA3yCZrAYPwThe UPS Store87 Grasso Plaza Shopping CenterAfftonMO6312338.551126-90.3356953.0151{'BusinessAcceptsCreditCards': 'True'}Shipping Centers, Local Services, Notaries, Ma...{'Monday': '0:0-0:0', 'Tuesday': '8:0-18:30', ...
2tUFrWirKiKi_TAnsVWINQQTarget5255 E Broadway BlvdTucsonAZ8571132.223236-110.8804523.5220{'BikeParking': 'True', 'BusinessAcceptsCredit...Department Stores, Shopping, Fashion, Home & G...{'Monday': '8:0-22:0', 'Tuesday': '8:0-22:0', ...
3MTSW4McQd7CbVtyjqoe9mwSt Honore Pastries935 Race StPhiladelphiaPA1910739.955505-75.1555644.0801{'RestaurantsDelivery': 'False', 'OutdoorSeati...Restaurants, Food, Bubble Tea, Coffee & Tea, B...{'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ...
4mWMc6_wTdE0EUBKIGXDVfAPerkiomen Valley Brewery101 Walnut StGreen LanePA1805440.338183-75.4716594.5131{'BusinessAcceptsCreditCards': 'True', 'Wheelc...Brewpubs, Breweries, Food{'Wednesday': '14:0-22:0', 'Thursday': '16:0-2...
\n","
\n","
\n","\n","
\n"," \n","\n"," \n","\n"," \n","
\n","\n","\n","
\n"," \n","\n","\n","\n"," \n","
\n","\n","
\n"," \n"],"application/vnd.google.colaboratory.intrinsic+json":{"type":"dataframe","variable_name":"df_bus"}},"metadata":{},"execution_count":3}]},{"cell_type":"code","source":["url2 = 'https://yelpdata.s3.us-west-2.amazonaws.com/yelp_academic_dataset_review.json'\n","\n","# Use DownloadManager to download the file\n","downloaded_file_path2 = download_manager.download(url2)\n","\n","data_review = []\n","with open(downloaded_file_path2, 'r') as file:\n"," for line in file:\n"," data_review.append(json.loads(line))"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":81,"referenced_widgets":["23c1a57abe5d4f188bc212b043beb154","c9dd315eff574a5386217579049b9975","d592397a846b4e13893350b9866a22ae","04ceb014bcb1440ca5c1bc5a833cafec","4aa961ca56e24328be6d7f7db1136d1b","53f006287cf34d089d816a3105e0e87c","e29bdac4d0614a2d86d7e96df89c9dc5","44349a48564a47bca322dfd552f07ee8","eb8843e7c0ac4762841844b2a162014b","7539df2894b34a718c33686b565175ad","8fa2778cbd054d7ea2f014c6075c4d5b","f8abf200a5754dc181f806f6bb24bfba","1cb9a87ba5a847a6880736e774929b7d","b5f8fcced8044ceab3f5764834e5453e","4729c28feed847a49caab3f9b8baae49","043ebc7944c64d10840b7ea4dfb6925c","a6ccb2a8d4c142e59b0014194f0aed7f","f6d2766c03b84a18bf5929df0a5ed3cb","ed7d3c1f01594544be38cffd4ac690f6","99a7a103e0714327804b8d673cc288d4","8e12d93fd72e46c79811d5873c3d540a","6dfd8deed689427c826164860b1e1ab2"]},"id":"toAL6vVI-caE","executionInfo":{"status":"ok","timestamp":1710289822563,"user_tz":420,"elapsed":214015,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}},"outputId":"a69f07ef-86cf-4379-ffba-0357048cf4d8"},"execution_count":4,"outputs":[{"output_type":"display_data","data":{"text/plain":["Downloading data: 0%| | 0.00/5.34G [00:00\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","
review_iduser_idbusiness_idstarsusefulfunnycooltextdate
0KU_O5udG6zpxOg-VcAEodgmh_-eMZ6K5RLWhZyISBhwAXQfwVwDr-v0ZS3_CbbE5Xw3.0000If you decide to eat here, just be aware it is...2018-07-07 22:09:11
1BiTunyQ73aT9WBnpR9DZGwOyoGAe7OKpv6SyGZT5g77Q7ATYjTIgM3jUlt4UM3IypQ5.0101I've taken a lot of spin classes over the year...2012-01-03 15:28:18
2saUsX_uimxRlCVr67Z4Jig8g_iMtfSiwikVnbP2etR0AYjUWPpI6HXG530lwP-fb2A3.0000Family diner. Had the buffet. Eclectic assortm...2014-02-05 20:30:30
3AqPFMleE6RsU23_auESxiA_7bHUi9Uuf5__HHc_Q8guQkxX2SOes4o-D3ZQBkiMRfA5.0101Wow! Yummy, different, delicious. Our favo...2015-01-04 00:01:03
4Sx8TMOWLNuJBWer-0pcmoAbcjbaE6dDog4jkNY91ncLQe4Vwtrqf-wpJfwesgvdgxQ4.0101Cute interior and owner (?) gave us tour of up...2017-01-14 20:54:15
\n","
\n","
\n","\n","
\n"," \n","\n"," \n","\n"," \n","
\n","\n","\n","
\n"," \n","\n","\n","\n"," \n","
\n","\n","
\n"," \n"],"application/vnd.google.colaboratory.intrinsic+json":{"type":"dataframe","variable_name":"df_rev"}},"metadata":{},"execution_count":5}]},{"cell_type":"code","source":["merged_df = pd.merge(df_bus, df_rev, on='business_id', how='inner')"],"metadata":{"id":"fXaMUmxSG_s1","executionInfo":{"status":"ok","timestamp":1710289870611,"user_tz":420,"elapsed":22645,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}}},"execution_count":6,"outputs":[]},{"cell_type":"code","source":["merged_df.head()"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":603},"id":"h9g2kGedHOcm","executionInfo":{"status":"ok","timestamp":1708346912587,"user_tz":300,"elapsed":22,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}},"outputId":"7bb3adde-f89e-422c-866f-13980e7e6663"},"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/plain":[" business_id name address \\\n","0 Pns2l4eNsfO8kk83dixA6A Abby Rappoport, LAC, CMQ 1616 Chapala St, Ste 2 \n","1 Pns2l4eNsfO8kk83dixA6A Abby Rappoport, LAC, CMQ 1616 Chapala St, Ste 2 \n","2 Pns2l4eNsfO8kk83dixA6A Abby Rappoport, LAC, CMQ 1616 Chapala St, Ste 2 \n","3 Pns2l4eNsfO8kk83dixA6A Abby Rappoport, LAC, CMQ 1616 Chapala St, Ste 2 \n","4 Pns2l4eNsfO8kk83dixA6A Abby Rappoport, LAC, CMQ 1616 Chapala St, Ste 2 \n","\n"," city state postal_code latitude longitude stars_x \\\n","0 Santa Barbara CA 93101 34.426679 -119.711197 5.0 \n","1 Santa Barbara CA 93101 34.426679 -119.711197 5.0 \n","2 Santa Barbara CA 93101 34.426679 -119.711197 5.0 \n","3 Santa Barbara CA 93101 34.426679 -119.711197 5.0 \n","4 Santa Barbara CA 93101 34.426679 -119.711197 5.0 \n","\n"," review_count ... categories hours \\\n","0 7 ... Doctors, Traditional Chinese Medicine, Naturop... None \n","1 7 ... Doctors, Traditional Chinese Medicine, Naturop... None \n","2 7 ... Doctors, Traditional Chinese Medicine, Naturop... None \n","3 7 ... Doctors, Traditional Chinese Medicine, Naturop... None \n","4 7 ... Doctors, Traditional Chinese Medicine, Naturop... None \n","\n"," review_id user_id stars_y useful funny cool \\\n","0 9vwYDBVI3ymdqcyJ5WW2Tg e0imecnX_9MtLnS2rUZM-A 5.0 3 2 1 \n","1 OXgg1LdxHDv3CBU5-xi2lA _Q0fdLVoTnlNkEypUvNkHA 5.0 1 0 0 \n","2 DG64cjud9cWB4fANskVxSw ycUooVIDWPgXPf6niW-FWQ 4.0 2 0 0 \n","3 hzvRRb40oPttxAdyr7kfow CiwVvb7jWijWB5jkmatzKA 5.0 0 1 0 \n","4 xUkBPk-QfcW4i3MRU5TeXw QkCbMKBktkrkOFJugHvY6w 5.0 0 0 0 \n","\n"," text date \n","0 I've had acupuncture treatments with Abby over... 2012-05-02 18:07:38 \n","1 Abby is an amazing practitioner. In a treatmen... 2013-03-01 06:11:05 \n","2 I went to see Abby for some digestive issues. ... 2013-01-17 00:05:43 \n","3 Abby helped me with some longstanding issues, ... 2015-03-16 03:43:08 \n","4 Recently, I referred a patient of mine with mu... 2013-03-05 18:45:07 \n","\n","[5 rows x 22 columns]"],"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"," \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","
business_idnameaddresscitystatepostal_codelatitudelongitudestars_xreview_count...categorieshoursreview_iduser_idstars_yusefulfunnycooltextdate
0Pns2l4eNsfO8kk83dixA6AAbby Rappoport, LAC, CMQ1616 Chapala St, Ste 2Santa BarbaraCA9310134.426679-119.7111975.07...Doctors, Traditional Chinese Medicine, Naturop...None9vwYDBVI3ymdqcyJ5WW2Tge0imecnX_9MtLnS2rUZM-A5.0321I've had acupuncture treatments with Abby over...2012-05-02 18:07:38
1Pns2l4eNsfO8kk83dixA6AAbby Rappoport, LAC, CMQ1616 Chapala St, Ste 2Santa BarbaraCA9310134.426679-119.7111975.07...Doctors, Traditional Chinese Medicine, Naturop...NoneOXgg1LdxHDv3CBU5-xi2lA_Q0fdLVoTnlNkEypUvNkHA5.0100Abby is an amazing practitioner. In a treatmen...2013-03-01 06:11:05
2Pns2l4eNsfO8kk83dixA6AAbby Rappoport, LAC, CMQ1616 Chapala St, Ste 2Santa BarbaraCA9310134.426679-119.7111975.07...Doctors, Traditional Chinese Medicine, Naturop...NoneDG64cjud9cWB4fANskVxSwycUooVIDWPgXPf6niW-FWQ4.0200I went to see Abby for some digestive issues. ...2013-01-17 00:05:43
3Pns2l4eNsfO8kk83dixA6AAbby Rappoport, LAC, CMQ1616 Chapala St, Ste 2Santa BarbaraCA9310134.426679-119.7111975.07...Doctors, Traditional Chinese Medicine, Naturop...NonehzvRRb40oPttxAdyr7kfowCiwVvb7jWijWB5jkmatzKA5.0010Abby helped me with some longstanding issues, ...2015-03-16 03:43:08
4Pns2l4eNsfO8kk83dixA6AAbby Rappoport, LAC, CMQ1616 Chapala St, Ste 2Santa BarbaraCA9310134.426679-119.7111975.07...Doctors, Traditional Chinese Medicine, Naturop...NonexUkBPk-QfcW4i3MRU5TeXwQkCbMKBktkrkOFJugHvY6w5.0000Recently, I referred a patient of mine with mu...2013-03-05 18:45:07
\n","

5 rows × 22 columns

\n","
\n","
\n","\n","
\n"," \n","\n"," \n","\n"," \n","
\n","\n","\n","
\n"," \n","\n","\n","\n"," \n","
\n","\n","
\n","
\n"],"application/vnd.google.colaboratory.intrinsic+json":{"type":"dataframe","variable_name":"merged_df"}},"metadata":{},"execution_count":9}]},{"cell_type":"code","source":["merged_df.info()"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"-7rPayV0HSXi","executionInfo":{"status":"ok","timestamp":1708346912746,"user_tz":300,"elapsed":178,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}},"outputId":"78c60d2f-cc18-4e7e-e33b-538925778510"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["\n","Int64Index: 6990280 entries, 0 to 6990279\n","Data columns (total 22 columns):\n"," # Column Dtype \n","--- ------ ----- \n"," 0 business_id object \n"," 1 name object \n"," 2 address object \n"," 3 city object \n"," 4 state object \n"," 5 postal_code object \n"," 6 latitude float64\n"," 7 longitude float64\n"," 8 stars_x float64\n"," 9 review_count int64 \n"," 10 is_open int64 \n"," 11 attributes object \n"," 12 categories object \n"," 13 hours object \n"," 14 review_id object \n"," 15 user_id object \n"," 16 stars_y float64\n"," 17 useful int64 \n"," 18 funny int64 \n"," 19 cool int64 \n"," 20 text object \n"," 21 date object \n","dtypes: float64(4), int64(5), object(13)\n","memory usage: 1.2+ GB\n"]}]},{"cell_type":"code","source":["restaurant = merged_df[merged_df['categories'].str.contains('restaurants', case=False, na=False)]"],"metadata":{"id":"uXH_QCvfHXEY","executionInfo":{"status":"ok","timestamp":1710290491542,"user_tz":420,"elapsed":9789,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}}},"execution_count":9,"outputs":[]},{"cell_type":"code","source":["rest = restaurant.head(100)"],"metadata":{"id":"2-aDSJ-9QeMq","executionInfo":{"status":"ok","timestamp":1710290535132,"user_tz":420,"elapsed":2,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}}},"execution_count":12,"outputs":[]},{"cell_type":"code","source":["rest.to_parquet('yelpdata.parquet', engine='pyarrow')"],"metadata":{"id":"ipjMswPSQoxZ","executionInfo":{"status":"ok","timestamp":1710369458715,"user_tz":420,"elapsed":134,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}}},"execution_count":14,"outputs":[]},{"cell_type":"code","source":["restaurant.head()"],"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":603},"id":"gJi0cNATHgts","executionInfo":{"status":"ok","timestamp":1708346931380,"user_tz":300,"elapsed":17,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}},"outputId":"58d66936-d98e-4c56-d845-8b298129a425"},"execution_count":null,"outputs":[{"output_type":"execute_result","data":{"text/plain":[" business_id name address city \\\n","46 MTSW4McQd7CbVtyjqoe9mw St Honore Pastries 935 Race St Philadelphia \n","47 MTSW4McQd7CbVtyjqoe9mw St Honore Pastries 935 Race St Philadelphia \n","48 MTSW4McQd7CbVtyjqoe9mw St Honore Pastries 935 Race St Philadelphia \n","49 MTSW4McQd7CbVtyjqoe9mw St Honore Pastries 935 Race St Philadelphia \n","50 MTSW4McQd7CbVtyjqoe9mw St Honore Pastries 935 Race St Philadelphia \n","\n"," state postal_code latitude longitude stars_x review_count ... \\\n","46 PA 19107 39.955505 -75.155564 4.0 80 ... \n","47 PA 19107 39.955505 -75.155564 4.0 80 ... \n","48 PA 19107 39.955505 -75.155564 4.0 80 ... \n","49 PA 19107 39.955505 -75.155564 4.0 80 ... \n","50 PA 19107 39.955505 -75.155564 4.0 80 ... \n","\n"," categories \\\n","46 Restaurants, Food, Bubble Tea, Coffee & Tea, B... \n","47 Restaurants, Food, Bubble Tea, Coffee & Tea, B... \n","48 Restaurants, Food, Bubble Tea, Coffee & Tea, B... \n","49 Restaurants, Food, Bubble Tea, Coffee & Tea, B... \n","50 Restaurants, Food, Bubble Tea, Coffee & Tea, B... \n","\n"," hours review_id \\\n","46 {'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ... BXQcBN0iAi1lAUxibGLFzA \n","47 {'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ... uduvUCvi9w3T2bSGivCfXg \n","48 {'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ... a0vwPOqDXXZuJkbBW2356g \n","49 {'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ... MKNp_CdR2k2202-c8GN5Dw \n","50 {'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ... D1GisLDPe84Rrk_R4X2brQ \n","\n"," user_id stars_y useful funny cool \\\n","46 6_SpY41LIHZuIaiDs5FMKA 4.0 0 0 1 \n","47 tCXElwhzekJEH6QJe3xs7Q 4.0 3 1 2 \n","48 WqfKtI-aGMmvbA9pPUxNQQ 5.0 0 0 0 \n","49 3-1va0IQfK-9tUMzfHWfTA 5.0 5 0 5 \n","50 EouCKoDfzaVG0klEgdDvCQ 4.0 2 1 1 \n","\n"," text date \n","46 This is nice little Chinese bakery in the hear... 2014-05-26 01:09:53 \n","47 This is the bakery I usually go to in Chinatow... 2013-10-05 15:19:06 \n","48 A delightful find in Chinatown! Very clean, an... 2013-10-25 01:34:57 \n","49 I ordered a graduation cake for my niece and i... 2018-05-20 17:58:57 \n","50 HK-STYLE MILK TEA: FOUR STARS\\n\\nNot quite su... 2013-10-25 02:31:35 \n","\n","[5 rows x 22 columns]"],"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"," \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","
business_idnameaddresscitystatepostal_codelatitudelongitudestars_xreview_count...categorieshoursreview_iduser_idstars_yusefulfunnycooltextdate
46MTSW4McQd7CbVtyjqoe9mwSt Honore Pastries935 Race StPhiladelphiaPA1910739.955505-75.1555644.080...Restaurants, Food, Bubble Tea, Coffee & Tea, B...{'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ...BXQcBN0iAi1lAUxibGLFzA6_SpY41LIHZuIaiDs5FMKA4.0001This is nice little Chinese bakery in the hear...2014-05-26 01:09:53
47MTSW4McQd7CbVtyjqoe9mwSt Honore Pastries935 Race StPhiladelphiaPA1910739.955505-75.1555644.080...Restaurants, Food, Bubble Tea, Coffee & Tea, B...{'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ...uduvUCvi9w3T2bSGivCfXgtCXElwhzekJEH6QJe3xs7Q4.0312This is the bakery I usually go to in Chinatow...2013-10-05 15:19:06
48MTSW4McQd7CbVtyjqoe9mwSt Honore Pastries935 Race StPhiladelphiaPA1910739.955505-75.1555644.080...Restaurants, Food, Bubble Tea, Coffee & Tea, B...{'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ...a0vwPOqDXXZuJkbBW2356gWqfKtI-aGMmvbA9pPUxNQQ5.0000A delightful find in Chinatown! Very clean, an...2013-10-25 01:34:57
49MTSW4McQd7CbVtyjqoe9mwSt Honore Pastries935 Race StPhiladelphiaPA1910739.955505-75.1555644.080...Restaurants, Food, Bubble Tea, Coffee & Tea, B...{'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ...MKNp_CdR2k2202-c8GN5Dw3-1va0IQfK-9tUMzfHWfTA5.0505I ordered a graduation cake for my niece and i...2018-05-20 17:58:57
50MTSW4McQd7CbVtyjqoe9mwSt Honore Pastries935 Race StPhiladelphiaPA1910739.955505-75.1555644.080...Restaurants, Food, Bubble Tea, Coffee & Tea, B...{'Monday': '7:0-20:0', 'Tuesday': '7:0-20:0', ...D1GisLDPe84Rrk_R4X2brQEouCKoDfzaVG0klEgdDvCQ4.0211HK-STYLE MILK TEA: FOUR STARS\\n\\nNot quite su...2013-10-25 02:31:35
\n","

5 rows × 22 columns

\n","
\n","
\n","\n","
\n"," \n","\n"," \n","\n"," \n","
\n","\n","\n","
\n"," \n","\n","\n","\n"," \n","
\n","\n","
\n","
\n"],"application/vnd.google.colaboratory.intrinsic+json":{"type":"dataframe","variable_name":"restaurant"}},"metadata":{},"execution_count":12}]},{"cell_type":"code","source":["restaurant.info()"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"iK3setg3Qn0f","executionInfo":{"status":"ok","timestamp":1708346931380,"user_tz":300,"elapsed":6,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}},"outputId":"bdb8b942-9003-43c8-c8c4-e81579b91dd3"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["\n","Int64Index: 4724471 entries, 46 to 6990218\n","Data columns (total 22 columns):\n"," # Column Dtype \n","--- ------ ----- \n"," 0 business_id object \n"," 1 name object \n"," 2 address object \n"," 3 city object \n"," 4 state object \n"," 5 postal_code object \n"," 6 latitude float64\n"," 7 longitude float64\n"," 8 stars_x float64\n"," 9 review_count int64 \n"," 10 is_open int64 \n"," 11 attributes object \n"," 12 categories object \n"," 13 hours object \n"," 14 review_id object \n"," 15 user_id object \n"," 16 stars_y float64\n"," 17 useful int64 \n"," 18 funny int64 \n"," 19 cool int64 \n"," 20 text object \n"," 21 date object \n","dtypes: float64(4), int64(5), object(13)\n","memory usage: 829.0+ MB\n"]}]},{"cell_type":"code","source":["restaurant.to_csv('yelp_dataset.csv', index=False)"],"metadata":{"id":"3XUeT490MKJ_"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["dt = pd.read_csv('yelp_dataset.csv')"],"metadata":{"id":"zVR8flU9UhwO"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["import numpy as np\n","\n","np.random.seed(42)\n","\n","# Shuffle the dataset\n","dt_shuffled = dt.sample(frac=1).reset_index(drop=True)\n","\n","# Calculate split index\n","split_ratio = 0.8 # 80% for part1, 20% for part2\n","split_index = int(dt_shuffled.shape[0] * split_ratio)\n","\n","# Split the dataset\n","train = dt_shuffled[:split_index]\n","test = dt_shuffled[split_index:]\n","\n","# Output the sizes of the splits\n","print(\"Part 1 size:\", train.shape[0])\n","print(\"Part 2 size:\", test.shape[0])\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"_RooYkHx3bs0","executionInfo":{"status":"ok","timestamp":1708355209264,"user_tz":300,"elapsed":22438,"user":{"displayName":"Johnny Ye","userId":"16268450102215689935"}},"outputId":"567589ee-180a-46af-ee79-00547a3a0999"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Part 1 size: 3779578\n","Part 2 size: 944895\n"]}]},{"cell_type":"code","source":["# Convert to csv file\n","train.to_csv('yelp_train.csv', index=False)"],"metadata":{"id":"N3VVRZBa5GUh"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["test.to_csv('yelp_test.csv', index=False)"],"metadata":{"id":"CyfasfE35JyE"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# Download dataset\n","from google.colab import files\n","files.download('yelp_train.csv')"],"metadata":{"id":"keLmGwxp5WG9"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["from google.colab import files\n","files.download('yelp_test.csv')"],"metadata":{"id":"ggLhdWKA5X7t"},"execution_count":null,"outputs":[]}]}