df = pd.DataFrame({f"col{i}":np.random.randint(1, 10, 10) for i in range(8)})
df[8] = df.index+5000
print (df)
col0 col1 col2 col3 col4 col5 col6 col7 8
0 1 3 7 7 6 7 5 7 5000
1 4 5 5 1 4 4 2 6 5001
2 7 5 8 1 7 1 4 1 5002
3 2 1 7 3 6 4 3 1 5003
4 7 8 8 8 7 6 9 9 5004
5 4 5 8 2 8 3 5 5 5005
6 6 5 6 8 3 1 5 3 5006
7 5 3 3 9 1 4 1 9 5007
8 8 8 4 3 8 7 7 9 5008
9 6 5 1 3 3 7 1 8 5009
a = np.array([1,2,3,4,5])
[3 4 5 6 7]
.df.index%1000+5000
9 5009
Name: 8, dtype: int64
<class 'pandas.core.series.Series'>
df[8].iat[-1]
5009