I need to learn about pandas speed optimization. Library that very effective about my problem is swifter. But i don't understand about the documentation, especially vectorized function.
My assumption is swifter input is only accept vector input, not dataframe. is it wrong?
in the documentation this is vectorized function:
def bikes_proportion(x, max_x):
return x * 1.0 / max_x
and this is non-vectorized function:
def convert_to_human(datetime):
return datetime.weekday_name + ', the ' + str(datetime.day) + 'th day of ' + datetime.strftime("%B") + ', ' + str(datetime.year)
what is the difference?
Can you tell me what is the different about vectorized and non-vectorized function? and if you ever use swifter before. can swifter work with dataframe or it only work with vector?