Speed up text input with pandas