We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 140947e commit 4e3ed5bCopy full SHA for 4e3ed5b
1948-rearrange-products-table/solution.py
@@ -0,0 +1,6 @@
1
+import pandas as pd
2
+
3
+def rearrange_products_table(products: pd.DataFrame) -> pd.DataFrame:
4
+ df = products.melt(id_vars='product_id', var_name='store', value_name='price')
5
+ df = df.dropna(axis=0)
6
+ return df
0 commit comments