Skip to content

Instantly share code, notes, and snippets.

@ant358
Last active October 5, 2023 14:57
Show Gist options
  • Save ant358/31d02747a67376898050e0092533e444 to your computer and use it in GitHub Desktop.
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
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
@ant358
Copy link
Author

ant358 commented Oct 28, 2022

import pandas as pd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment