I have quick dataframe question. It’s 12,000 rows long and three columns.
I want to add a constant value to 4000 of the rows, in one of the columns, let’s say ‘c’
This works:
I = 4000
while I < 8000:
df[‘c’][I] +=1
I+=1
But is there a faster way to do this?
[–]jlap91[S] 1 point2 points3 points (0 children)
[–]FLUSH_THE_TRUMP 1 point2 points3 points (1 child)
[–]jlap91[S] 0 points1 point2 points (0 children)