def np_array_datetime64_compat(arr, *args, **kwargs):
 if (not _np_version_under1p11):
  if (hasattr(arr, '__iter__') and (not isinstance(arr, string_and_binary_types))):
   arr = [tz_replacer(s) for s in arr]
  else:
   arr = tz_replacer(arr)
 return np.array(arr, *args, **kwargs)

def np_array_datetime64_compat ( arr , * args , ** kwargs ) : if ( not _np_version_under1p11 ) : if ( hasattr ( arr , '__iter__' ) and ( not isinstance ( arr , string_and_binary_types ) ) ) : arr = [ tz_replacer ( s ) for s in arr ] else : arr = tz_replacer ( arr ) return np . array ( arr , * args , ** kwargs )
provide compat for construction of an array of strings to a np .