Data Prepration Guide
Each sub-dataset (delivery, pickup) contains 5 CSV files, with each representing the data from a specific city, the detail of each city can be find in the following dataset.
Last updated
Each sub-dataset (delivery, pickup) contains 5 CSV files, with each representing the data from a specific city, the detail of each city can be find in the following dataset.
Last updated
df['city'] = 'CityName'import pandas as pd
# Load datasets for each city
df_city1 = pd.read_csv('city1.csv')
df_city2 = pd.read_csv('city2.csv')
df_city3 = pd.read_csv('city3.csv')
df_city4 = pd.read_csv('city4.csv')
df_city5 = pd.read_csv('city5.csv')df_city1['city'] = 'City1'
df_city2['city'] = 'City2'
df_city3['city'] = 'City3'
df_city4['city'] = 'City4'
df_city5['city'] = 'City5'merged_df = pd.concat([df_city1, df_city2, df_city3, df_city4, df_city5], ignore_index=True)print(merged_df.info())
print(merged_df['city'].value_counts())merged_df.to_csv('merged_city_data.csv', index=False)merged_df = merged_df.drop_duplicates()