-
-
Save about36km/2b13924baf3d5d75e90d2e8aca8aa035 to your computer and use it in GitHub Desktop.
pandas with huge data.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def output_by_query(self, query, filename): | |
| with self.connection as conn: | |
| for chunk1 in pandas.read_sql(query, conn, chunksize=10000): | |
| chunk1.to_csv(filename, header=False, index=None,mode='a') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment