parameters: (dtype_set)
docstring: Change string like dtypes to object for
      ``DataFrame.select_dtypes()``.
docstring_summary: Change string like dtypes to object for
      ``DataFrame.select_dtypes()``.
docstring_tokens: Change string like dtypes to object for DataFrame . select_dtypes () .
function: def invalidate_string_dtypes(dtype_set):
      """Change string like dtypes to object for
      ``DataFrame.select_dtypes()``.
      """
      non_string_dtypes = dtype_set - {np.dtype("S").type, np.dtype("<U").type}
      if non_string_dtypes != dtype_set:
          raise TypeError("string dtypes are not allowed, use 'object' instead")
function_tokens: def invalidate_string_dtypes ( dtype_set ) : non_string_dtypes = dtype_set - { np . dtype ( "S" ) . type , np . dtype ( "<U" ) . type } if non_string_dtypes != dtype_set : raise TypeError ( "string dtypes are not allowed, use 'object' instead" )