I have a data frame
df = pd.DataFrame(carData)
df.column['models']
#df.ffill() This is where i need to fill the amount of columns i want to add with previous value
The data looks something like
models
1 honda
2 ford
3 chevy
I want to add an index but keep it numerical up to a certain number and forward fill the models column to the last value. so for example the dataset above has 3 entries, I want to add an have a total of 5 entries it should look something like
models
1 honda
2 ford
3 chevy
4 chevy
5 chevy