CSV file related? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

CSV file related?

How to replace values which are greater than 30 into 0 of a CSV file??

16th Sep 2021, 6:09 AM
Sourya Banerjee
Sourya Banerjee - avatar
1 ответ
Use the pandas (pd) module. Import the data with pd's read_csv. Replace the values. Save with pd's to_csv.
16th Sep 2021, 6:27 AM
Simon Sauter
Simon Sauter - avatar