parameters: (arr)
return_statement: return vartypes
docstring: Tries to guess the dtypes of the str_ ndarray `arr`, by testing element-wise
  conversion. Returns a list of dtypes.
  The array is first converted to ndarray. If the array is 2D, the test is performed
  on the first line. An exception is raised if the file is 3D or more.
docstring_summary: Tries to guess the dtypes of the str_ ndarray `arr`, by testing element-wise
  conversion. Returns a list of dtypes.
  The array is first converted to ndarray. If the array is 2D, the test is performed
  on the first line. An exception is raised if the file is 3D or more.
docstring_tokens: Tries to guess the dtypes of the str_ ndarray arr by testing element - wise conversion . Returns a list of dtypes . The array is first converted to ndarray . If the array is 2D the test is performed on the first line . An exception is raised if the file is 3D or more .
function: def _guessvartypes(arr):
      """Tries to guess the dtypes of the str_ ndarray `arr`, by testing element-wise
  conversion. Returns a list of dtypes.
  The array is first converted to ndarray. If the array is 2D, the test is performed
  on the first line. An exception is raised if the file is 3D or more.
      """
      vartypes = []
      arr = np.asarray(arr)
      if len(arr.shape) == 2 :
          arr = arr[0]
      elif len(arr.shape) > 2:
          raise ValueError, "The array should be 2D at most!"
      # Start the conversion loop .......
      for f in arr:
          try:
              int(f)
          except ValueError:
              try:
                  float(f)
              except ValueError:
                  try:
                      val = complex(f)
                  except ValueError:
                      vartypes.append(arr.dtype)
                  else:
                      vartypes.append(np.dtype(complex))
              else:
                  vartypes.append(np.dtype(float))
          else:
              vartypes.append(np.dtype(int))
      return vartypes
function_tokens: def _guessvartypes ( arr ) : vartypes = [ ] arr = np . asarray ( arr ) if len ( arr . shape ) == 2 : arr = arr [ 0 ] elif len ( arr . shape ) > 2 : raise ValueError , "The array should be 2D at most!" # Start the conversion loop ....... for f in arr : try : int ( f ) except ValueError : try : float ( f ) except ValueError : try : val = complex ( f ) except ValueError : vartypes . append ( arr . dtype ) else : vartypes . append ( np . dtype ( complex ) ) else : vartypes . append ( np . dtype ( float ) ) else : vartypes . append ( np . dtype ( int ) ) return vartypes