code: def _linear_impute_timeseries_dataframe(df):
      res_df = df.interpolate(axis=0, limit_direction="both")
      return res_df
  
imports: import pandas
label_desc: Use image node_id 4 for calling a global function with example usage: _linear_impute_timeseries_dataframe(df) and returns: res_df