update pandas
move functions out of action()