{"id":17003,"date":"2020-04-19T06:35:41","date_gmt":"2020-04-19T10:35:41","guid":{"rendered":"https:\/\/bangla.salearningschool.com\/recent-posts\/python-ecommerce-part-2-drop-duplicates-sort-and-take-only-unique-products-after-merging-all-supplier-d-ata-files-into-one-file\/"},"modified":"2020-04-19T15:15:50","modified_gmt":"2020-04-19T19:15:50","slug":"python-ecommerce-part-2-drop-duplicates-sort-and-take-only-unique-products-after-merging-all-supplier-d-ata-files-into-one-file","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=17003","title":{"rendered":"Python: Ecommerce: Part \u2014 2: Drop Duplicates, Sort, and Take Only Unique Products After Merging All Supplier D ata Files into One File"},"content":{"rendered":"<article class=\"meteredContent\">\n<div>\n<section class=\"fr fs ih ii ij\">\n<div class=\"n p\">\n<div class=\"z ab ac ae af ik ah ai\">\n<p id=\"2393\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\">All code in One Block<\/strong><\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"8a35\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\"># # Section: Verify, and Process Supplier Data Before Sending products to \n# # your retail (Magento 2) or marketplace (Amazon, Walmart)<\/span><span id=\"010f\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># In[7]:<\/span><span id=\"b394\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># combined_csv.sort_values(\u201cModel Code\u201d, inplace = True) \n# dropping ALL duplicte values based on Product SKU = Model Code<\/span><span id=\"744c\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">no_duplicates_combined_csv = combined_csv.drop_duplicates(subset = \u201cModel Code\u201d, \n keep = False, inplace = False);\nno_duplicates_combined_csv.shape<\/span><span id=\"1a70\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># In[8]:<\/span><span id=\"4c17\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">#55690 vs 55527<\/span><span id=\"e125\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># In[9]:<\/span><span id=\"ef2e\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">no_duplicates_combined_csv_verify = combined_csv;\ntype(no_duplicates_combined_csv_verify)<\/span><span id=\"885b\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># In[10]:<\/span><span id=\"78f6\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># verify the shape after dropping duplicates\nno_duplicates_combined_csv_verify.drop_duplicates(subset = \u201cModel Code\u201d, \n keep = False, inplace = True);\nlen(no_duplicates_combined_csv_verify)<\/span><span id=\"dde0\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># In[11]:<\/span><span id=\"4e98\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">#55690 vs 55527<\/span><span id=\"79b4\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># In[12]:<\/span><span id=\"673b\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># show combined data : show first 10 rows\nno_duplicates_combined_csv[:3]<\/span><span id=\"d856\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># In[16]:<\/span><span id=\"bfdf\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># Stop<\/span><span id=\"8748\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># # Find only the unique products, sorted and duplicate removed<\/span><span id=\"6049\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># In[14]:<\/span><span id=\"9d61\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># sorting by SKU = Model Code\nsorted_merged_data = no_duplicates_combined_csv.sort_values(\u201cModel Code\u201d, inplace = False) \nsorted_merged_data.head()<\/span><span id=\"e6d9\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># dropping ALL duplicte values : No need here. Though old code : keeping it anyway\nunique_sorted_data = sorted_merged_data.drop_duplicates(subset =\u201dModel Code\u201d, keep = False, inplace = False) \nunique_sorted_data.head(3)<\/span><span id=\"3950\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># In[15]:<\/span><span id=\"384a\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"># total data count at this point\nunique_sorted_data.shape<\/span><\/pre>\n<p id=\"bfc1\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\">From Jupyter Notebook: Cell by Cell with output<\/strong><\/p>\n<h1 id=\"7647\" class=\"lz lo ap by bx ey io ma iq mb mc md me mf mg mh mi\" data-selectable-paragraph=\"\">Section: Verify, and Process Supplier Data Before Sending products to your retail (Magento 2) or marketplace (Amazon, Walmart)<\/h1>\n<p id=\"139c\" class=\"jy jz ap by ka b kb mo kd mp kf mq kh mr kj ms kl fr\" data-selectable-paragraph=\"\">In [7]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"e2b8\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\"><em class=\"lt\"># combined_csv.sort_values(\"Model Code\", inplace = True)<\/em><\/span><span id=\"c2c7\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"><em class=\"lt\"># dropping ALL duplicte values based on Product SKU = Model Code<\/em><\/span><span id=\"3de6\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">no_duplicates_combined_csv <strong class=\"lp km\">=<\/strong> combined_csv.drop_duplicates(subset <strong class=\"lp km\">=<\/strong> \"Model Code\", keep <strong class=\"lp km\">=<\/strong> <strong class=\"lp km\">False<\/strong>, inplace <strong class=\"lp km\">=<\/strong> <strong class=\"lp km\">False<\/strong>);<\/span><span id=\"ce4b\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">no_duplicates_combined_csv.shape<\/span><\/pre>\n<p id=\"669b\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">Out[7]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"62c7\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\">(55527, 40)<\/span><\/pre>\n<p id=\"42e7\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">In [8]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"f3bb\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\"><em class=\"lt\">#55690 vs 55527<\/em><\/span><\/pre>\n<p id=\"b6fb\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">In [9]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"da3a\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\">no_duplicates_combined_csv_verify <strong class=\"lp km\">=<\/strong> combined_csv;<\/span><span id=\"09ba\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">type(no_duplicates_combined_csv_verify)<\/span><\/pre>\n<p id=\"bd9e\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">Out[9]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"31a4\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\">pandas.core.frame.DataFrame<\/span><\/pre>\n<p id=\"9ece\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">In [10]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"bb17\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\"><em class=\"lt\"># verify the shape after dropping duplicates<\/em><\/span><span id=\"f8a1\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">no_duplicates_combined_csv_verify.drop_duplicates(subset <strong class=\"lp km\">=<\/strong> \"Model Code\", keep <strong class=\"lp km\">=<\/strong> <strong class=\"lp km\">False<\/strong>, inplace <strong class=\"lp km\">=<\/strong> <strong class=\"lp km\">True<\/strong>);<\/span><span id=\"748d\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">len(no_duplicates_combined_csv_verify)<\/span><\/pre>\n<p id=\"7f72\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">Out[10]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"c9eb\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\">55527<\/span><\/pre>\n<p id=\"acf8\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">In [11]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"556f\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\"><em class=\"lt\">#55690 vs 55527<\/em><\/span><\/pre>\n<p id=\"90df\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">In [12]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"bac3\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\"><em class=\"lt\"># show combined data : show first 10 rows<\/em><\/span><span id=\"501f\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">no_duplicates_combined_csv[:3]<\/span><\/pre>\n<p id=\"5809\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">Out[12]:<\/p>\n<p id=\"7840\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">Product IDModel CodeFull Product NameShort Product NameProduct URLCategory NameCategory URLSubcategory NameSubcategory URLDate Product Was Launched\u2026Related ProductsRelated AccessoriesWeight KgHeight mmWidth mmDepth mmVideo linkRetail PriceStock statusDate Back0107890POU_0850GV7YPull Rope Fitness Exercises Resistance Bands L\u2026Pull Rope Fitness Exercises Resistance Bands L\u2026<\/p>\n<p id=\"0460\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">3 rows \u00d7 40 columns<\/p>\n<p id=\"928c\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">In [16]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"aa63\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\"><em class=\"lt\"># Stop<\/em><\/span><\/pre>\n<h1 id=\"7090\" class=\"lz lo ap by bx ey io ma iq mb mc md me mf mg mh mi\" data-selectable-paragraph=\"\">Find only the unique products, sorted and duplicate removed<\/h1>\n<p id=\"3968\" class=\"jy jz ap by ka b kb mo kd mp kf mq kh mr kj ms kl fr\" data-selectable-paragraph=\"\">In [14]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"2f2c\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\"><em class=\"lt\"># sorting by SKU = Model Code<\/em><\/span><span id=\"aa5a\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">sorted_merged_data <strong class=\"lp km\">=<\/strong> no_duplicates_combined_csv.sort_values(\"Model Code\", inplace <strong class=\"lp km\">=<\/strong> <strong class=\"lp km\">False<\/strong>)<\/span><span id=\"4d45\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">sorted_merged_data.head()<\/span><span id=\"2638\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\"><em class=\"lt\"># dropping ALL duplicate values :  No need here. Though old code : keeping it anyway<\/em><\/span><span id=\"5cf7\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">unique_sorted_data <strong class=\"lp km\">=<\/strong> sorted_merged_data.drop_duplicates(subset <strong class=\"lp km\">=<\/strong>\"Model Code\",  keep <strong class=\"lp km\">=<\/strong> <strong class=\"lp km\">False<\/strong>, inplace <strong class=\"lp km\">=<\/strong> <strong class=\"lp km\">False<\/strong>)<\/span><span id=\"f65d\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">unique_sorted_data.head(3)<\/span><\/pre>\n<p id=\"dc1b\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">Out[14]:<\/p>\n<p id=\"c383\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">Product IDModel CodeFull Product NameShort Product NameProduct URLCategory NameCategory URLSubcategory NameSubcategory URLDate Product Was Launched\u2026Related ProductsRelated AccessoriesWeight KgHeight mmWidth mmDepth mmVideo linkRetail PriceStock statusDate Back899230399A01AL3301111Black 3x3x3 MoYu AoLong V2 PuzzleBlack 3x3x3 MoYu AoLong V2 Puzzle<\/p>\n<p id=\"1d1c\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">3 rows \u00d7 40 columns<\/p>\n<p id=\"cbbb\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">In [15]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"52aa\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\"><em class=\"lt\"># total data count at this point<\/em><\/span><span id=\"db6e\" class=\"ln lo ap by lp b cp lu lv lw lx ly lr r ls\" data-selectable-paragraph=\"\">unique_sorted_data.shape<\/span><\/pre>\n<p id=\"846c\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">Out[15]:<\/p>\n<pre class=\"lh li lj lk ll hz lm fi\"><span id=\"8b4e\" class=\"ln lo ap by lp b cp lq lr r ls\" data-selectable-paragraph=\"\">(55527, 40)<\/span><\/pre>\n<p id=\"a5f4\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">***. ***. ***<\/em><\/strong><\/p>\n<p id=\"fdf6\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">Note: Older short-notes from this site are posted on Medium:\u00a0<\/em><\/strong><a class=\"cu dw mk ml mm mn\" href=\"https:\/\/medium.com\/@SayedAhmedCanada\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/medium.com\/@SayedAhmedCanada<\/a><\/p>\n<p id=\"7da0\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\">*** . *** *** . *** . *** . ***<\/p>\n<p id=\"c2da\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">Sayed Ahmed<\/em><\/strong><\/p>\n<p id=\"b370\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">BSc. Eng. in Comp. Sc. &amp; Eng. (BUET)<\/em><\/strong><\/p>\n<p id=\"db81\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">MSc. in Comp. Sc. (U of Manitoba, Canada)<\/em><\/strong><\/p>\n<p id=\"bc1f\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">MSc. in Data Science and Analytics (Ryerson University, Canada)<\/em><\/strong><\/p>\n<p id=\"3ead\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">Linkedin<\/em><\/strong><em class=\"lt\">:\u00a0<\/em><a class=\"cu dw mk ml mm mn\" href=\"https:\/\/ca.linkedin.com\/in\/sayedjustetc\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><em class=\"lt\">https:\/\/ca.linkedin.com\/in\/sayedjustetc<\/em><\/a><\/p>\n<p id=\"03d1\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">Blog<\/em><\/strong><em class=\"lt\">:\u00a0<\/em><a class=\"cu dw mk ml mm mn\" href=\"http:\/\/bangla.salearningschool.com\/\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><em class=\"lt\">http:\/\/Bangla.SaLearningSchool.com<\/em><\/a><em class=\"lt\">,\u00a0<\/em><a class=\"cu dw mk ml mm mn\" href=\"http:\/\/sitestree.com\/\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><em class=\"lt\">http:\/\/SitesTree.com<\/em><\/a><\/p>\n<p id=\"0984\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">Training Courses:\u00a0<\/em><\/strong><a class=\"cu dw mk ml mm mn\" href=\"http:\/\/training.sitestree.com\/\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><em class=\"lt\">http:\/\/Training.SitesTree.com<\/em><\/a><\/p>\n<p id=\"98af\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">8112223 Canada Inc\/Justetc<\/em><\/strong><em class=\"lt\">:\u00a0<\/em><a class=\"cu dw mk ml mm mn\" href=\"http:\/\/justetc.net\/\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><em class=\"lt\">http:\/\/JustEtc.net<\/em><\/a><\/p>\n<p id=\"58f1\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><strong class=\"ka km\"><em class=\"lt\">Facebook Groups\/Forums to discuss (Q &amp; A):<\/em><\/strong><\/p>\n<p id=\"6e1b\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><a class=\"cu dw mk ml mm mn\" href=\"https:\/\/www.facebook.com\/banglasalearningschool\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">https:\/\/www.facebook.com\/banglasalearningschool<\/a><\/p>\n<p id=\"1c1e\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><a class=\"cu dw mk ml mm mn\" href=\"https:\/\/www.facebook.com\/justetcsocial\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">https:\/\/www.facebook.com\/justetcsocial<\/a><\/p>\n<p id=\"fe57\" class=\"jy jz ap by ka b kb kc kd ke kf kg kh ki kj kk kl fr\" data-selectable-paragraph=\"\"><em class=\"lt\">Get access to courses on Big Data, Data Science, AI, Cloud, Linux, System Admin, Web Development and Misc. related. Also, create your own course to sell to others.\u00a0<\/em><a class=\"cu dw mk ml mm mn\" href=\"http:\/\/sitestree.com\/training\/\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">http:\/\/sitestree.com\/training\/<\/a><\/p>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/article>\n<div class=\"cq ig mt gl ai na my nb\" data-test-id=\"post-sidebar\">\n<div class=\"n p\">\n<div class=\"z ab ac ae af ag ah ai\">\n<div class=\"nc n hu\">\n<div class=\"ig\">\n<div class=\"nd fg r\">\n<h2 class=\"bx ey fz bz ap\">Build Ecommerce Software and Systems<\/h2>\n<div class=\"eu ne r\">\n<h4 class=\"bx fp cp bz av nf cj as ng au cc\">Build Ecommerce Software and Systems<\/h4>\n<\/div>\n<div class=\"cl\" aria-hidden=\"true\"><button class=\"dg ni nj nk nl nm nn bn do no np nq ds bx b by bz ca cb dt du dv cl dw bq\">Following<\/button><\/div>\n<\/div>\n<div class=\"nr ns nt n\">\n<div class=\"n o\">\n<div class=\"nu r cr\">\n<div class=\"\">\n<div>\n<div class=\"cl\" role=\"tooltip\" aria-hidden=\"true\" aria-describedby=\"1204\" aria-labelledby=\"1204\">\n<div class=\"bl nv nw nx ny nz oa ob jw oc od oe\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"ns r\"><\/div>\n<div>\n<div class=\"jw\">\n<div>\n<div class=\"cl\" role=\"tooltip\" aria-hidden=\"true\" aria-describedby=\"1205\" aria-labelledby=\"1205\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"cq ig mt gl mu mv mw mx my mz\"><\/div>\n<div>\n<div class=\"of og n hu p\">\n<div class=\"n p\">\n<div class=\"z ab ac ae af ik ah ai\">\n<div class=\"n ew\"><\/div>\n<div class=\"n o ew\"><\/div>\n<div class=\"oh r\">\n<ul class=\"bl bm\">\n<li class=\"cl fh fc ia\"><a class=\"oi oj dw cc r lm ok a b ib\" href=\"https:\/\/medium.com\/tag\/python\">Python<\/a><\/li>\n<li class=\"cl fh fc ia\"><a class=\"oi oj dw cc r lm ok a b ib\" href=\"https:\/\/medium.com\/tag\/ecommerce\">Ecommerce<\/a><\/li>\n<li class=\"cl fh fc ia\"><a class=\"oi oj dw cc r lm ok a b ib\" href=\"https:\/\/medium.com\/tag\/data-protection\">Data Protection<\/a><\/li>\n<li class=\"cl fh fc ia\"><a class=\"oi oj dw cc r lm ok a b ib\" href=\"https:\/\/medium.com\/tag\/big-data\">Big Data<\/a><\/li>\n<li class=\"cl fh fc ia\"><a class=\"oi oj dw cc r lm ok a b ib\" href=\"https:\/\/medium.com\/tag\/duplicate\">Duplicate<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"ol n ev y\">\n<div class=\"n o\">\n<div class=\"nu r cr\">\n<div class=\"\">\n<div>\n<div class=\"cl\" role=\"tooltip\" aria-hidden=\"true\" aria-describedby=\"1206\" aria-labelledby=\"1206\">\n<div class=\"bl nv nw nx ny nz oa ob jw oc od oe\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"n o\">\n<div class=\"jv r bw\"><\/div>\n<div class=\"jv r bw\"><\/div>\n<div class=\"jv r bw\"><\/div>\n<div class=\"om r bw\">\n<div>\n<div class=\"jw\">\n<div>\n<div class=\"cl\" role=\"tooltip\" aria-hidden=\"true\" aria-describedby=\"1207\" aria-labelledby=\"1207\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"cl\" aria-hidden=\"true\">\n<div class=\"cl\" aria-hidden=\"true\">\n<div class=\"cl\" aria-hidden=\"true\">\n<div class=\"r bw\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"on he oo oh r y\">\n<div class=\"op oq r cr\">\n<div class=\"r s os ot\"><a href=\"https:\/\/medium.com\/@SayedAhmedCanada?source=follow_footer--------------------------follow_footer-\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"r dz hn ou\" src=\"https:\/\/miro.medium.com\/fit\/c\/80\/80\/0*P_esmjKoJnHlNjFX\" alt=\"8112223 Canada Inc. (Justetc)\" width=\"80\" height=\"80\" \/><\/a><\/div>\n<div class=\"ov r ow\">\n<p class=\"bx fp ib bz cc ox oy\">WRITTEN BY<\/p>\n<\/div>\n<div class=\"ov oz n ow\">\n<div class=\"ai n o ev\">\n<h2 class=\"bx ey gw gx ap\"><a class=\"cu cv bg bh bi bj bk bl bm bn cw cx bq br cy cz\" href=\"https:\/\/medium.com\/@SayedAhmedCanada?source=follow_footer--------------------------follow_footer-\" rel=\"noopener\">8112223 Canada Inc. (Justetc)<\/a><\/h2>\n<div class=\"r g\"><\/div>\n<\/div>\n<\/div>\n<div class=\"ov pa r ow bb\">\n<div class=\"pb r\">\n<h4 class=\"bx fp fz ga cc\">Software Engineer, Data Scientist, Machine Learning Engineer.<\/h4>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"on r\"><\/div>\n<div class=\"op oq r cr\">\n<div class=\"r s os ot\"><a href=\"https:\/\/medium.com\/build-ecommerce-software-and-systems?source=follow_footer--------------------------follow_footer-\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"ds ou hn\" src=\"https:\/\/i0.wp.com\/miro.medium.com\/fit\/c\/80\/80\/1%2A2Kzjk3cDjNvBHhFyF2rtyA.jpeg?resize=80%2C80&#038;ssl=1\" alt=\"Build Ecommerce Software and Systems\" width=\"80\" height=\"80\" \/><\/a><\/div>\n<div class=\"ov oz n ow\">\n<div class=\"ai n o ev\">\n<h2 class=\"bx ey gw gx ap\"><a class=\"cu cv bg bh bi bj bk bl bm bn cw cx bq br cy cz\" href=\"https:\/\/medium.com\/build-ecommerce-software-and-systems?source=follow_footer--------------------------follow_footer-\" rel=\"noopener\">Build Ecommerce Software and Systems<\/a><\/h2>\n<div class=\"r g\">\n<div class=\"cl\" aria-hidden=\"true\"><button class=\"dg ni nj nk nl nm nn bn do no np nq ds bx b by bz ca cb dt du dv cl dw bq\">Following<\/button><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"ov pd r ow bb\">\n<div class=\"pb r\">\n<h4 class=\"bx fp fz ga cc\">Build Ecommerce Software and Systems<\/h4>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"pe he r y\">\n<div class=\"hz pi ds r pj g\"><span class=\"ha\">Write the first response<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>All code in One Block # # Section: Verify, and Process Supplier Data Before Sending products to # # your retail (Magento 2) or marketplace (Amazon, Walmart)# In[7]:# combined_csv.sort_values(\u201cModel Code\u201d, inplace = True) # dropping ALL duplicte values based on Product SKU = Model Codeno_duplicates_combined_csv = combined_csv.drop_duplicates(subset = \u201cModel Code\u201d, keep = False, inplace = &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=17003\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1912,182],"tags":[],"class_list":["post-17003","post","type-post","status-publish","format-standard","hentry","category-build-ecommerce-software","category---blog","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":17002,"url":"http:\/\/bangla.sitestree.com\/?p=17002","url_meta":{"origin":17003,"position":0},"title":"Python: Ecommerce: Part \u2014 1: Merge Multiple Supplier Data Files into One File","author":"Sayed","date":"April 19, 2020","format":false,"excerpt":"Section: Merge multiple Supplier Data Files All code in one block #!\/usr\/bin\/env python # coding: utf-8# # Section: Merge multiple Supplier Data Files ## In[1]:# if there is a need to merge multiple files \u2014 use this block import os; import glob; import pandas as pd;# supplier data files\/feeds are\u2026","rel":"","context":"In &quot;Build Ecommerce Software&quot;","block_context":{"text":"Build Ecommerce Software","link":"http:\/\/bangla.sitestree.com\/?cat=1912"},"img":{"alt_text":"8112223 Canada Inc. (Justetc)","src":"https:\/\/miro.medium.com\/fit\/c\/80\/80\/0*P_esmjKoJnHlNjFX","width":350,"height":200},"classes":[]},{"id":17001,"url":"http:\/\/bangla.sitestree.com\/?p=17001","url_meta":{"origin":17003,"position":1},"title":"Python: Ecommerce: Part\u200a\u2014\u200a1: Merge Multiple Supplier Data Files into One File","author":"Sayed","date":"April 18, 2020","format":false,"excerpt":"Python: Ecommerce: Part\u200a\u2014\u200a1: Merge Multiple Supplier Data Files into One File Section: Merge multiple Supplier Data Files All code in one block #!\/usr\/bin\/env python # coding: utf-8 # # Section: Merge multiple Supplier Data Files # # In[1]: # if there is a need to merge multiple files \u2014 use\u2026","rel":"","context":"In &quot;Build Ecommerce Software&quot;","block_context":{"text":"Build Ecommerce Software","link":"http:\/\/bangla.sitestree.com\/?cat=1912"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17005,"url":"http:\/\/bangla.sitestree.com\/?p=17005","url_meta":{"origin":17003,"position":2},"title":"Python: Ecommerce: Part \u2014 4: Calculate Your Sell Prices for your Retail Website, and then calculate for Amazon  and Ebay","author":"Author-Check- Article-or-Video","date":"April 19, 2020","format":false,"excerpt":"The requirements for each of the sales channel can be different such as for Ebay you might want to calculate Paypal fees; for Amazon you have to check for Amazon fees. For your own retail site, shipping cost might need different calculation as well as based on your target audience\u2026","rel":"","context":"In &quot;Build Ecommerce Software&quot;","block_context":{"text":"Build Ecommerce Software","link":"http:\/\/bangla.sitestree.com\/?cat=1912"},"img":{"alt_text":"8112223 Canada Inc. (Justetc)","src":"https:\/\/miro.medium.com\/fit\/c\/80\/80\/0*P_esmjKoJnHlNjFX","width":350,"height":200},"classes":[]},{"id":17008,"url":"http:\/\/bangla.sitestree.com\/?p=17008","url_meta":{"origin":17003,"position":3},"title":"Python: Ecommerce: Part \u2014 7: Partition a Data File (with product information) into Multiple Files.","author":"Sayed","date":"April 19, 2020","format":false,"excerpt":"In previous steps, we created a product data file to be uploaded to Magento 2 (from supplier data). However, there is a limit, how big a file can be uploaded to Magento 2 for product data import. Hence, this code will divide the data file into multiple files. This data\u2026","rel":"","context":"In &quot;Build Ecommerce Software&quot;","block_context":{"text":"Build Ecommerce Software","link":"http:\/\/bangla.sitestree.com\/?cat=1912"},"img":{"alt_text":"8112223 Canada Inc. (Justetc)","src":"https:\/\/miro.medium.com\/fit\/c\/80\/80\/0*P_esmjKoJnHlNjFX","width":350,"height":200},"classes":[]},{"id":17346,"url":"http:\/\/bangla.sitestree.com\/?p=17346","url_meta":{"origin":17003,"position":4},"title":"Amazon Selling, Ecommerce, Inventory, Product Management, Product Database Articles","author":"Sayed","date":"August 13, 2020","format":false,"excerpt":"Misc. Stored Procedures as Used to Manage Products, Product Pricing for a Amazon Store: http:\/\/bangla.salearningschool.com\/recent-posts\/category\/selling-on-amazon\/ Python Code to import supplier product data to Magento. Including Price Calculations. http:\/\/bangla.salearningschool.com\/recent-posts\/category\/build-ecommerce-software\/ Ecommerce shop development: https:\/\/www.youtube.com\/watch?v=T8RqjC_iQqM&list=PLUA7SYgJYDFqOx7--ezlbukRbVX1wIfeI Amazon Product Management Database: https:\/\/www.youtube.com\/watch?v=qrbMO5W9uYw&list=PLUA7SYgJYDFryEwISZ2jrnbJf0wCBKrxQ Online\/Ecommerce Product and Pricing Database: http:\/\/www.shopforsoul.com\/ *** . *** *** . *** .\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17345,"url":"http:\/\/bangla.sitestree.com\/?p=17345","url_meta":{"origin":17003,"position":5},"title":"Ecommerce, Inventory, Product Management Articles","author":"Sayed","date":"August 13, 2020","format":false,"excerpt":"Misc. Stored Procedures as Used to Manage Products, Product Pricing for a Amazon Store: http:\/\/bangla.salearningschool.com\/recent-posts\/category\/selling-on-amazon\/ Python Code to import supplier product data to Magento. Including Price Calculations. http:\/\/bangla.salearningschool.com\/recent-posts\/category\/build-ecommerce-software\/ Ecommerce shop development: https:\/\/www.youtube.com\/watch?v=T8RqjC_iQqM&list=PLUA7SYgJYDFqOx7--ezlbukRbVX1wIfeI Amazon Product Management Database: https:\/\/www.youtube.com\/watch?v=qrbMO5W9uYw&list=PLUA7SYgJYDFryEwISZ2jrnbJf0wCBKrxQ *** . *** *** . *** . *** . *** Training Courses: http:\/\/Training.SitesTree.com\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/17003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17003"}],"version-history":[{"count":2,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/17003\/revisions"}],"predecessor-version":[{"id":17030,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/17003\/revisions\/17030"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17003"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}