general scripts for pandas