Posts by Paulo Lemes • 1 point
1 post
-
-1
votes1
answer31
viewsQ: How to compare if the value of a dataframe column is in an array if you are creating a new column with that value?
lista = array(['NF', 'BT', 'C', 'N', 'I', 'IP', 'Aa', 'Sa', 'Gl', 'Et', 'To', 'Hr', 'Cr', 'Ro', 'X', 'Oa', 'Ml', 'Me'], dtype=object) "DATAFRAME" x_1 x_2 0 NF 0 1 A 0 2 B 0 3 KK 0 4 Gl 0 5 Oa 0 The…