Jak dodać kolumnę do początku DataFrame
# Third position would be at index 2, because of zero-indexing.
df.insert(2, 'new-col', data)
Odd Okapi
# Third position would be at index 2, because of zero-indexing.
df.insert(2, 'new-col', data)