code: def recipr0(x):
      """
      Reciprocal of an array with entries less than 0 set to 0.
  
      Parameters
      ----------
      x : array_like
          The input array.
  
      Returns
      -------
      ndarray
          The array with 0-filled reciprocals.
      """
      x = np.asarray(x)
      out = np.zeros_like(x, dtype=np.float64)
      nans = np.isnan(x.flat)
      non_zero = ~nans
      non_zero[non_zero] = non_zero[non_zero] & (x.flat[non_zero] != 0)
      out.flat[non_zero] = 1.0 / x.flat[non_zero]
      out.flat[nans] = np.nan
      return out
  
imports: import numpy
  import pandas
  import scipy.linalg
  from statsmodels.tools.data import _is_using_pandas
  from statsmodels.tools.validation import array_like
label_desc: Use image node_id 9 for calling a global function with example usage: recipr0(x) and returns: out