From e0ad69675d573480dee9264e121c94e8e802600d Mon Sep 17 00:00:00 2001 From: Philip May Date: Sun, 19 Nov 2023 18:07:05 +0100 Subject: [PATCH] Update pandas.md --- source/python/pandas.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/python/pandas.md b/source/python/pandas.md index fa74d2e..5ceae40 100644 --- a/source/python/pandas.md +++ b/source/python/pandas.md @@ -39,13 +39,13 @@ df = pd.read_csv( ## Load and Save as Parquet -- save to parquet: `df.to_parquet(".parquet.gz", compression="gzip", index=False)` -- load from parquet: `df = read_parquet(".parquet.gz")` +- save to parquet: `df.to_parquet("file_name.parquet.gz", compression="gzip", index=False)` +- load from parquet: `df = read_parquet("file_name.parquet.gz")` ## Load and Save with Pickle -- save to parquet: `df.to_pickle(".pkl.xz", compression="xz")` -- load from parquet: `df = read_pickle(".pkl.xz")` +- save to parquet: `df.to_pickle("file_name.pkl.xz", compression="xz")` +- load from parquet: `df = read_pickle("file_name.pkl.xz")` - see - see