Skip to content

Commit

Permalink
Update pandas.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay authored Nov 20, 2023
1 parent cc22be9 commit e971440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/python/pandas.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ df = pd.read_csv(
- `df.to_parquet("file_name.parquet.gz", compression="gzip", index=False)`
- see <https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_parquet.html>
- load from parquet
- `df = read_parquet("file_name.parquet.gz")`
- `df = pd.read_parquet("file_name.parquet.gz")`
- see <https://pandas.pydata.org/docs/reference/api/pandas.read_parquet.html>

## Load and Save with Pickle
Expand All @@ -52,7 +52,7 @@ df = pd.read_csv(
- `df.to_pickle("file_name.pkl.xz", compression="xz")`
- see <https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_pickle.html>
- load with pickle
- `df = read_pickle("file_name.pkl.xz")`
- `df = pd.read_pickle("file_name.pkl.xz")`
- see <https://pandas.pydata.org/docs/reference/api/pandas.read_pickle.html>

## Display Data
Expand Down

0 comments on commit e971440

Please sign in to comment.