Python Pandas Count Number Of Rows Postgresql Vs Db2