2024: Week 40 - Vrroom

Challenge by: Abhishek Minz 

Vrroom is an online platform for used cars where individuals and dealerships can advertise their vehicles. At present, five different dealerships are using the website. Vrroom's management team need to find out which dealership is taking the longest time (in days) to sell their vehicles through the platform. 

Input 

There are two csv data sets this week:

1. The Adverts (ads) data set:

2. The Users data set:

There are 365 users of the website - each vehicle listed is classed as a different registration number.

Requirements

  • Input the data sets
  • Break the Users data set into individual records (you should have 365 rows)
  • The User data is formed from:
    • 1st 7 characters is the User ID
    • The last letter signifies whether the user is a private individual ('P') or Dealership (D)
    • The 3 characters after the User ID for Dealerships is the Dealership ID
  • With the Ads data, remove any unsold vehicles
  • Join the data sets together
  • Find when an advert is first posted
  • Only keep the records where advert was first posted
  • Find the time between when a vehicle is first advertised on the site to when the vehicle was sold
  • Find the average days for each sale a dealership has listed (group up to the nearest whole day)
  • Output the data

Output



2 data fields:
  • Dealership ID
  • Dealership Avg Days to Sell
5 rows (6 rows incl. headers)

You can view the output here.

After you finish the challenge make sure to fill in the participation tracker, then share your solution on Twitter using #PreppinData and tagging @Datajedininja@JennyMartinDS14 & @TomProwse1

You can also post your solution on the Tableau Forum where we have a Preppin' Data community page. Post your solutions and ask questions if you need any help! 

Popular posts from this blog

2023: Week 1 The Data Source Bank

2024: Week 1 - Prep Air's Flow Card

How to...Handle Free Text