Jul-26-2019, 07:42 AM
If you want to iterate over all values of the df, you can do the following:
Usually, there is no need to use raw python loops when working with pandas. Pure python loops
are slow.
m, n = df.values.shape for i in range(m): for j in range(n): print(df.values[i, j])
df.iterrows()
returns value of the index and the current row. Usually, there is no need to use raw python loops when working with pandas. Pure python loops
are slow.