ASKER
Since the data is too big, like 7241764, if everytime I fetch 5000, it will take over 1400 times to fetch.
ASKER
Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in other languages. Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive set of standard libraries, including NumPy, SciPy, Django, PyQuery, and PyLibrary.
TRUSTED BY
pandas.DataFrame.to_csv
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html#pandas-dataframe-to-csv
some examples:
Saving a Pandas Dataframe as a CSV
https://www.geeksforgeeks.org/saving-a-pandas-dataframe-as-a-csv/
How to Export Pandas DataFrame to a CSV File
https://datatofish.com/export-dataframe-to-csv/