parameters: (cls, data, freq, tz=None)
return_statement: return cls(data, freq=freq)
docstring: Construct a PeriodArray from a datetime64 array
  
          Parameters
          ----------
          data : ndarray[datetime64[ns], datetime64[ns, tz]]
          freq : str or Tick
          tz : tzinfo, optional
  
          Returns
          -------
          PeriodArray[freq]
docstring_summary: Construct a PeriodArray from a datetime64 array
docstring_tokens: Construct a PeriodArray from a datetime64 array
function: def _from_datetime64(cls, data, freq, tz=None):
          """
          Construct a PeriodArray from a datetime64 array
  
          Parameters
          ----------
          data : ndarray[datetime64[ns], datetime64[ns, tz]]
          freq : str or Tick
          tz : tzinfo, optional
  
          Returns
          -------
          PeriodArray[freq]
          """
          data, freq = dt64arr_to_periodarr(data, freq, tz)
          return cls(data, freq=freq)
function_tokens: def _from_datetime64 ( cls , data , freq , tz = None ) : data , freq = dt64arr_to_periodarr ( data , freq , tz ) return cls ( data , freq = freq )