Need contour plots of my data

Hii, experts good evening. I want a contour plot using xyz data sets. But while using after following the matplotlib examples error is Z must be a 2D array. My data file is attached below…

x y z
25.0 2.20000 14.565
25.0 2.17794 13.7396
25.0 2.15709 12.963
25.0 2.13737 12.2323
25.0 2.11868 11.5444
25.0 2.10094 10.897
25.0 2.08408 10.288
25.0 2.06805 9.71554
25.0 2.05277 9.17814
25.0 2.03820 8.67459
25.0 2.02429 8.20373
25.0 2.01099 7.76486
25.0 1.99827 7.35736
25.0 1.98609 6.98074
25.0 1.97441 6.63473
25.0 1.96321 6.3192
25.0 1.95245 6.03405
25.0 1.94212 5.77932
25.0 1.93218 5.55484
25.0 1.92261 5.36046
25.0 1.91340 5.19599
25.0 1.90452 5.06085
25.0 1.89596 4.95445
25.0 1.88769 4.8757
25.0 1.87971 4.82332
25.0 1.87200 4.79582
26.0 2.20000 15.7535
26.0 2.17794 14.8873
26.0 2.15709 14.0711
26.0 2.13737 13.3016
26.0 2.11868 12.5757
26.0 2.10094 11.8907
26.0 2.08408 11.2444
26.0 2.06805 10.6347
26.0 2.05277 10.0599
26.0 2.03820 9.51853
26.0 2.02429 9.00925
26.0 2.01099 8.53112
26.0 1.99827 8.08325
26.0 1.98609 7.66496
26.0 1.97441 7.27584
26.0 1.96321 6.91552
26.0 1.95245 6.58382
26.0 1.94212 6.2806
26.0 1.93218 6.00596
26.0 1.92261 5.75969
26.0 1.91340 5.54198
26.0 1.90452 5.35263
26.0 1.89596 5.19148
26.0 1.88769 5.05808
26.0 1.87971 4.95192
26.0 1.87200 4.87205
27.0 2.20000 16.9536
27.0 2.17794 16.0478
27.0 2.15709 15.1934
27.0 2.13737 14.3867
27.0 2.11868 13.6245
27.0 2.10094 12.904
27.0 2.08408 12.2226
27.0 2.06805 11.5781
27.0 2.05277 10.9688
27.0 2.03820 10.3927
27.0 2.02429 9.84851
27.0 2.01099 9.33508
27.0 1.99827 8.85124
27.0 1.98609 8.39623
27.0 1.97441 7.96922
27.0 1.96321 7.56986
27.0 1.95245 7.19772
27.0 1.94212 6.85246
27.0 1.93218 6.53413
27.0 1.92261 6.24247
27.0 1.91340 5.97774
27.0 1.90452 5.73979
27.0 1.89596 5.52872
27.0 1.88769 5.34453
27.0 1.87971 5.18699
27.0 1.87200 5.0558
28.0 2.20000 18.163
28.0 2.17794 17.2186
28.0 2.15709 16.327
28.0 2.13737 15.4843
28.0 2.11868 14.6871
28.0 2.10094 13.9324
28.0 2.08408 13.2176
28.0 2.06805 12.5403
28.0 2.05277 11.8984
28.0 2.03820 11.29
28.0 2.02429 10.7137
28.0 2.01099 10.1678
28.0 1.99827 9.65128
28.0 1.98609 9.16314
28.0 1.97441 8.70238
28.0 1.96321 8.26844
28.0 1.95245 7.86065
28.0 1.94212 7.47869
28.0 1.93218 7.12223
28.0 1.92261 6.79109
28.0 1.91340 6.48519
28.0 1.90452 6.20462
28.0 1.89596 5.94929
28.0 1.88769 5.71948
28.0 1.87971 5.51505
28.0 1.87200 5.33601
29.0 2.20000 19.3801
29.0 2.17794 18.3978
29.0 2.15709 17.4698
29.0 2.13737 16.592
29.0 2.11868 15.7607
29.0 2.10094 14.973
29.0 2.08408 14.226
29.0 2.06805 13.5172
29.0 2.05277 12.8443
29.0 2.03820 12.2055
29.0 2.02429 11.5988
29.0 2.01099 11.0228
29.0 1.99827 10.4761
29.0 1.98609 9.95752
29.0 1.97441 9.46608
29.0 1.96321 9.00097
29.0 1.95245 8.56136
29.0 1.94212 8.14666
29.0 1.93218 7.75665
29.0 1.92261 7.39074
29.0 1.91340 7.04886
29.0 1.90452 6.73091
29.0 1.89596 6.43682
29.0 1.88769 6.16671
29.0 1.87971 5.92055
29.0 1.87200 5.69847
30.0 2.20000 20.6035
30.0 2.17794 19.5839
30.0 2.15709 18.62
30.0 2.13737 17.7076
30.0 2.11868 16.8432
30.0 2.10094 16.0233
30.0 2.08408 15.2451
30.0 2.06805 14.5059
30.0 2.05277 13.8032
30.0 2.03820 13.1352
30.0 2.02429 12.4997
30.0 2.01099 11.8952
30.0 1.99827 11.3202
30.0 1.98609 10.7734
How can i plot contour for above data.please suggest.

That is a very broad question, can you be a bit more specific about what is not working? Can you share any code that isn’t working and what exceptions you are getting?

https://matplotlib.org/3.1.3/gallery/images_contours_and_fields/contour_demo.html and https://matplotlib.org/3.1.3/api/_as_gen/matplotlib.axes.Axes.contour.html may help.