I'm trying to generate missing lines in my dataframe based on years (integer). I tried several solutions that I found on stackoverflow but did not work. it returns me the error: ValueError: cannot reindex from a duplicate axis.
Add missing dates to pandas dataframe
Missing data, insert rows in Pandas and fill with NAN
data = {'id': [100, 100, 100, 100, 100, 200, 200],
'year': [2010, 2013, 2014, 2015, 2016, 2010, 2012],
'value': [3000, 1000, 2000, 1200, 1300, 2000, 1500]}
df = pd.DataFrame(data)
df
What I m looking for

