@classmethod<EOL><INDENT>def _from_datetime64(cls, data, freq, tz=None):<DEDENT>
data, freq = dt64arr_to_periodarr(data, freq, tz)<EOL>return cls(data, freq=freq)<EOL>
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]