I'm very very new in python and pandas so my question is very basic.
I have a simple dataframe that has its index and a column 'years':
Years = pd.DataFrame({'Years': range(1900,2000,1)})
To this dataframe, I need to add a column that for each year it performs a specific calculation, say: Year i = X*i
The year (i.e. 1900, 1991, etc.) doesn't matter as such, more that each "i" belongs to a specific year.
I hope you can help me resolve this. Thansks very much.