Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion episodes/03-transform.md
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ We can write a Pandas `DataFrame` to an HDF5 file like this:
```python
filename = 'gd1_data.hdf'

results_df.to_hdf(filename, 'results_df', mode='w')
results_df.to_hdf(filename, key='results_df', mode='w')
```

Because an HDF5 file can contain more than one Dataset, we have to
Expand Down
4 changes: 2 additions & 2 deletions episodes/04-motion.md
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ We can add to our existing Pandas `DataFrame` to an HDF5 file by omitting the `m
```python
filename = 'gd1_data.hdf'

selected_df.to_hdf(filename, 'selected_df')
selected_df.to_hdf(filename, key='selected_df')
```

Because an HDF5 file can contain more than one Dataset, we have to
Expand All @@ -592,7 +592,7 @@ Hint: Since the file already exists, you should *not* use `mode='w'`.
## Solution

```python
centerline_df.to_hdf(filename, 'centerline_df')
centerline_df.to_hdf(filename, key='centerline_df')
```

:::::::::::::::::::::::::
Expand Down