{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"I found some departments that have similar name, but have different department_no.\nAre there any differeces ??\n","metadata":{}},{"cell_type":"code","source":"import pandas as pd","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-02-19T05:44:19.921278Z","iopub.execute_input":"2022-02-19T05:44:19.921818Z","iopub.status.idle":"2022-02-19T05:44:19.947142Z","shell.execute_reply.started":"2022-02-19T05:44:19.921692Z","shell.execute_reply":"2022-02-19T05:44:19.946097Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"df = pd.read_csv(\"../input/h-and-m-personalized-fashion-recommendations/articles.csv\")\n_df = df[[\"department_no\", \"department_name\"]].drop_duplicates().reset_index(drop=True)\n_df.head()","metadata":{"execution":{"iopub.status.busy":"2022-02-19T05:47:44.612364Z","iopub.execute_input":"2022-02-19T05:47:44.612669Z","iopub.status.idle":"2022-02-19T05:47:45.439776Z","shell.execute_reply.started":"2022-02-19T05:47:44.612614Z","shell.execute_reply":"2022-02-19T05:47:45.438777Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"_df[_df.department_name.str.contains(\"Promotion\")]","metadata":{"execution":{"iopub.status.busy":"2022-02-19T05:47:45.441679Z","iopub.execute_input":"2022-02-19T05:47:45.442021Z","iopub.status.idle":"2022-02-19T05:47:45.454162Z","shell.execute_reply.started":"2022-02-19T05:47:45.441977Z","shell.execute_reply":"2022-02-19T05:47:45.453285Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}