# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import itertools

import pandas as pd

prices2 = [3.41,7.68, 4.22]
variations2 = itertools.permutations(prices2,2)

data2 = pd.DataFrame(variations2, columns = ["first", "second"])
data2["change"] = ((data2["second"]-data2["first"])/data2["first"] * 100).round(2)
data2

6



StarcoderdataJupyterScriptsDedupFiltered