Created
May 2, 2016 16:42
-
-
Save fonnesbeck/629f0e46420633b365c57783d17dda79 to your computer and use it in GitHub Desktop.
Writing a formated binary file from a Pandas Dataframe
This file contains 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
df_records = pd.DataFrame(records) | |
# do some stuff | |
new_recarray = df_records.to_records() | |
new_recarray.tofile("myfile.npy") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment