Skip to content
Advertisement

Fill up column based on condition goes wrong

I am trying to fill a column based on condition but something goes wrong.

So I am expecting if it is not 2017 there should be a no.

But yet the years 2019 and 2020 also get filled up with yes.

Does anyone know what went wrong?

JavaScript

Advertisement

Answer

Use Series.between instead & for bitwise AND, for chain by bitwise OR use |:

JavaScript

Or:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement