divide dataframe by column value code example
Example 1: python divide one column by another
df['Result'] = df['Column A']/df['Column B']
Example 2: dataframe partition dataset based on column
s = 30
df1 = df[df[0] >= s]
df['Result'] = df['Column A']/df['Column B']
s = 30
df1 = df[df[0] >= s]