# 17.3 Cleaning आणि dates चा सराव

Source: https://ravindrabagale.com/mr/datascience/ch17-practice-exercises-with-answer-hints/17-3-cleaning-and-dates.html
Language: mr (Marathi with English technical terms)

Exercise E

Amount column मध्ये "1,299" आणि "N/A" सारख्या values आहेत. त्यांचा float column तयार करा.
Hint E पाहा
str.replace(",", "", regex=False) नंतर pd.to_numeric(..., errors="coerce") वापरा. Float dtype स्पष्टपणे हवा असेल तर .astype(float) वापरा.

Exercise F

14-10-2026 19:30 ही वेळ IST म्हणून parse करा आणि hour किमान 18 असेल तर flag द्या.
Hint F पाहा
Series वर pd.to_datetime(..., dayfirst=True), मग dt.tz_localize("Asia/Kolkata"). dt.hour ने hour काढून df["hour"] >= 18 तपासा.

रवींद्र बागले यांची tip

Naive local timestamp ला timezone लावणं आणि एका timezone मधून दुसऱ्यात convert करणं वेगळं आहे.
