woodwork.accessor_utils.get_invalid_schema_message

woodwork.accessor_utils.get_invalid_schema_message(dataframe, schema)[source]

Return a message indicating the reason that the provided schema cannot be used to initialize Woodwork on the dataframe. If the schema is valid for the dataframe, None will be returned.

Parameters
  • dataframe (DataFrame) – The dataframe against which to check the schema.

  • schema (ww.TableSchema) – The schema to use in the validity check.

Returns

The reason that the schema is invalid for the dataframe

Return type

str or None