How to make a x y line plot with python?

Viewed 141

Hello I have the following dataframe:

df = [{'Column1': 1, 'Colunm2': 'A', 'Colunm3': 2}, 
      {'Column1': 2, 'Colunm2': 'A', 'Colunm3': 4},
      {'Column1': 3, 'Colunm2': 'A', 'Colunm3': 1},
      {'Column1': 1, 'Colunm2': 'B', 'Colunm3': 7},
      {'Column1': 2, 'Colunm2': 'B', 'Colunm3': 2},
      {'Column1': 3, 'Colunm2': 'B', 'Colunm3': 9}]

How can I make a X Y plot between Column1 and Colunm3 but plotting two diffentent lines, one for values Colunm2 = 'A' and other for values Colunm2 ='B'?

3 Answers
Related