my df looks like this:
sprint sprint_created
------ -----------
S100 2020-01-01
S101 2020-01-10
NULL 2020-01-20
NULL 2020-01-31
S101 2020-01-10
...
in the above df, you can see that some of the sprint values are NULL
I have another df2 that has sprint date ranges:
sprint sprint_start sprint_end
------ ----------- ----------
S100 2020-01-01 2020-01-09
S101 2020-01-10 2020-01-19
S102 2020-01-20 2020-01-29
S103 2020-01-30 2020-02-09
S104 2020-02-10 2020-02-19
...
How can I map these data and fill in the NULL values in the df by comparing the data in the df2?
Please note that the shape of df and df2 are different.
5indfalways corresponds to row5indf2. Or do you need to match them based on thesprint_createdandsprint_startedcolumns? (which look the same here but may not be). Pandas has good documentation on concatenation and merging: pandas.pydata.org/pandas-docs/stable/user_guide/merging.htmldf2yes, since it is providing the value of thesprintdate ranges. Butdfcould be randomdfwill have multiple samesprintidand the key indfwould be another column which isproject_id