ANN : Query in the below code

Hi @Hadelin de Ponteves and @Kirill Eremenko ,

I am not able to understand one line of code. I have put down my queries in the snapshot too for the better understanding!

I tried online but I got the same answer everytime that I cannot concatenate integer boolean with textual boolean without using astype(int) function but in ANN lecture, below codes concatenates them without using this function!

There are 2 questions in it?

1) how is it possible without astype() function?

2) because this code is working fine but how?