Open sborto86 opened 1 year ago
Clear overall, but there is space for improvement. see if you can add more comments in the readme under all the graphs. This way information of some of the first graphs is forgotten after looking at al the other ones.
`# Groupping data by region regions = hotel_country.groupby("continent_name")[['agoda_num','booking_num']].sum()
regions["Region"] = list(regions.index)
regions = regions.rename(columns={"agoda_num": "Agoda", "booking_num": "Booking"}) regions = regions.sort_values(by='Booking', ascending=False)
regions2 = pd.melt(regions, id_vars=["Region"], value_name="Number of Hotels")
regions2 = regions2.rename(columns={"variable":"Platform"}) regions_graph=sns.barplot(data=regions2, x="Number of Hotels", y="Region", hue="Platform", hue_order= ["Booking", "Agoda"]) plt.xticks(rotation=45) regions_graph.set(title = 'Number of Hotels by Region') plt.ticklabel_format(style='plain', axis='x')`
Files are all well organised but maybe you can move the enriching-and-cleaning.ipynb to the src folder also.
In general good work! Keep it up!
Thank you Sam really appreciate the comments. I will try to improve the project once I have a little time
https://github.com/sborto86/project-II-pipelines