Pandas: Rolling mean using only the last update based on another column
I would like to perform a rolling mean while the mean excludes duplicates found in another column. Let me provide an example dataframe: Date Warehose Value 10-01-1998 London 10 13-01-1998 London 13 15-01-1998 New York 37 12-02-1998 London 21 20-02-1998 New York 39 21-02-1998 New York 17 In this example, let’s say I like to… Read More Pandas: Rolling mean using only the last update based on another column