I have a given list and a custom function with some parameters. The list contains the parameters in string form and i want to change these parameters to True if list contains else remain false in function.
Here is example:
list_params = ['remove_digits','remove_stopwords','clean_data']
custom_function(remove_digits =False, clean_data =False, remove_stopwords = False, text_lemmatization =False)
Here all parameters are false first but as soon as list contains these parameters, select them to True in function else remains false. I want all the parameters to True at once if present in list
.