Skip to content
RED SAG Skills
hardStudy question · answer published in Pandas interview questions, so no pointspythonpandas

Integers turn into floats in iterrows

df has an int column qty and a float column price. Inside for _, row in df.iterrows(), row["qty"] is 1.0 instead of 1. Why?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions