Oct-27-2023, 05:04 PM
Fine, make it an index. The problem was that you were not doing so correctly.
pme_df = filtered_df[["Market", "Price"]].set_index("Market").sum()