<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_hdf(self,filename,path=''):
 """Saves all relevant data to .h5 file; so state can be restored. """

        self.dataframe.to_hdf(filename,'{}/df'.format(path))