I am doing data manipulation in Python. Currently, there are 231244 rows and 6750 cols in the data. My code for manipulation is below.
for i in range(231244):
for j in range(len(data[i][0])):
df.at[i,data[i][0][j]] = 1
This is the data row. It is basically a pickle file
The problem I am encountering is it is taking too much time. I leave it for one whole day on Google Colab and there are no results. In fact the session got restarted. Is there any method I can get results in a few minutes only?