SQL-like Window Functions in PandasHow to write SQL-like window functions in Pandas using groupby and transform