So fügen Sie die Spalte zum Beginn des DataFrame hinzu
# 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)
df.insert(loc, column, value)