Skip to content

Project etl_homework#22

Open
harshglory129 wants to merge 5 commits intoHedgeApple:masterfrom
harshglory129:master
Open

Project etl_homework#22
harshglory129 wants to merge 5 commits intoHedgeApple:masterfrom
harshglory129:master

Conversation

@harshglory129
Copy link
Copy Markdown

The provided code is an ETL (Extract, Transform, Load) process for a project .
Here's a brief description of how the code @john-parton

  1. The code imports necessary libraries for data manipulation and analysis.
  2. It reads data from "homework.csv" and "example.csv" into DataFrames.
  3. A new DataFrame called "formatted" is created with the same structure as "example".
  4. Relevant columns from "homework" are assigned to corresponding columns in "formatted".
  5. Values in the "ean13" column are formatted by adding leading zeros and removing decimals.
  6. Currency values in "cost_price" and "min_price" columns are formatted.
  7. Country names in the "product__country_of_origin__alpha_3" column are replaced with abbreviations.
  8. The modified "formatted" DataFrame is exported to a new CSV file named "formatted.csv".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant