Last active
October 5, 2023 14:57
-
-
Save ant358/31d02747a67376898050e0092533e444 to your computer and use it in GitHub Desktop.
Sometimes your working in systems where you don't have access to the source data. Use this to print out whole csv's . Then cut and paste
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
import pandas as pd | |
# number of rows of dataframe | |
no_rows = len(df) | |
pd.options.display.max_rows = no_rows | |
print(df) | |
# then cut and paste into a text file | |
# and use find and replace to add in the comma's etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import pandas as pd