I have a data frame that looks like the following:
df1 = pd.DataFrame({'Part':['Wheel', 'Door', 'Light', 'Seatbelt']})
I want to add month columns for each unique value of 'part' so that I then get a dataframe that looks like so:
df2 = pd.DataFrame({'Part':['Wheel','Wheel','Wheel','Wheel','Wheel','Wheel','Wheel','Wheel'
,'Door','Door','Door','Door','Door','Door','Door','Door'
,'Light','Light','Light','Light','Light','Light','Light','Light'
,'Seatbelt', 'Seatbelt','Seatbelt','Seatbelt','Seatbelt','Seatbelt','Seatbelt','Seatbelt',]
,'Month':['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August',
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August',
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August',
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August',]})
Is there a function in pandas python that will allow me to add these rows for every unique value?
The main idea is that once I have created this dataframe I can then merge another dataframe to this one, so that where there are values for zero they show once merged.

