This questions is similar to Python: Pandas Divide DataFrame by first row
I have a DataFrame which looks like this:
1125400 5430095 1095751
A clearer way is to use iloc:
df.iloc[0] / df.iloc[-1]