medium10 pts · first answer countspythonpandasmissing-data
Forward fill without crossing customers
A DataFrame sorted by customer and date has gaps in a plan column. You want each gap filled with that customer's last known plan, never another customer's. Which line does this?
Discussion 0
Join free to post in the discussion.
Related questions
- Counting missing values in pandasData Scientist
- pandas mean with a missing valueData Scientist
- value_counts with normalizeData Scientist
- COUNT of a column with NULLsData Scientist
- Changing an item in a tupleData Scientist
- Reading a missing dictionary key safelyData Scientist
- List comprehension with a conditionData Scientist
- is versus == for two listsData Scientist