Skip to content
Advertisement

Tag: dataframe

Filling column based on conditions

In the DataFrame below I am trying to update the Value column based on the following conditions, if Action is Sell check if the Status is not – if both the conditions are true then the first two characters of the Country needs to be updated as the Value column else if Status column is – and the Action column

Advertisement