diff --git a/episodes/03-transform.md b/episodes/03-transform.md index afb85d8e..2eefc948 100644 --- a/episodes/03-transform.md +++ b/episodes/03-transform.md @@ -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 diff --git a/episodes/04-motion.md b/episodes/04-motion.md index c761dba4..da135918 100644 --- a/episodes/04-motion.md +++ b/episodes/04-motion.md @@ -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 @@ -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') ``` :::::::::::::::::::::::::