I have to translate some R code into python. I got stuck in the following line which I don't understand what happens there:
new_data <- data %>% select(-contains('exit'),exit)
what is -contains for string? as for the select - I understand that the second exit is regarding a specific column named exit, but what does it mean the -contains? that the exit column will not contain "exit" string?
Thanks