Комментарии:
very nice,thnks!
Ответитьgood explaination
Ответитьthankyou
ОтветитьCan we write
apply(movie_type)?
or
apply(lambda x: 'new' if x>2010 else 'old')
?
one question: imagine you have a column which values need to have a specific order, for example first two rows a value of 1 and the next to one a value of 0. So it should be like this: 1,1,0,1,1,0...etc. And then you find a mistake like there are three 1 or two 0.
How could u apply a lambda function to fill all the values like 1,1,0,1,1,0?