Use the syntax df.second - df.first to subtract the first column from the second column. df = pd.DataFrame(columns=["one", "two"]). df.one = ["2019-01-24" ...
DOWNLOAD: https://tinurli.com/2fc8rg
DOWNLOAD: https://tinurli.com/2fc8rg
pandas-groupby-subtract-two-columns
939c2ea5af
Comments