The particular dilemma has currently been solved in preceding responses, so I will address the general idea of employing conditionals inside of list comprehensions.Why is accessing elements utilizing `tolist` faster than accessing it directly with the pandas series? twoHowever, you can't just assign some integers separated by colons into a variable