code: def impute_dataframe_zero(df_impute):
      """
      Replaces all ``NaNs``, ``-infs`` and ``+infs`` from the DataFrame `df_impute` with 0s.
      The `df_impute` will be modified in place. All its columns will be into converted into dtype ``np.float64``.
  
      :param df_impute: DataFrame to impute
      :type df_impute: pandas.DataFrame
  
      :return df_impute: imputed DataFrame
      :rtype df_impute: pandas.DataFrame
      """
      if len(df_impute) == 0:
          return df_impute
  
      df_impute.replace([np.PINF, np.NINF], 0, inplace=True)
      df_impute.fillna(0, inplace=True)
  
      # Ensure a type of "np.float64"
      df_impute.astype(np.float64, copy=False)
      return df_impute
  
file_path: tsfresh/tsfresh/utilities/dataframe_functions.py
imports: import warnings
  import numpy
  import pandas
  from tsfresh import defaults
  from tsfresh.utilities.distribution import DistributorBaseClass, MapDistributor, MultiprocessingDistributor
label_desc: Use image node_id 3 for calling a global function with example usage: impute_dataframe_zero(df_impute) and returns: df_impute, df_impute