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 | |
# Read a TSV file into a data frame | |
# This will automatically handle the data types | |
df = pd.read_csv("my_data.txt", sep="\t") | |
# Write the data frame to a storer HDF5 file in the table "data", overwriting existing files | |
df.to_hdf("my_data.store.h5", 'data', mode="w") | |
# Writing to ta table formatted HDF5 file is a little trickier |
NewerOlder