# import pandas
      import pandas as pd
      # take inputs
      df = pd.DataFrame({'column1':[4,9,10,15], 'column2':[2,3,5,15]})
      # divide columns
      df['division'] = df['column1'] / df['column2']
      # print division value
      print(df)
      

      Python language logo
      Column Division

      pythonPandas
      logic

      Dividing Two Columns using Python Pandas

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.