say I want to merge two dataframes on a matching index using pandas, but one of the df's is missing some indexes, how could I do this without losing any data? E.g.
price
21-02-2022 2
22-02-2022 1
23-02-2022 3
sales
22-02-2022 2
should output:
price sales
21-02-2022 2 0
22-02-2022 1 2
23-02-2022 3 0
Thanks in advance and sorry for the noob question!