GetAQAnnotations

AQPython.Utilities.GetAQAnnotations(df, props=[], lcProps=[], decodeProps=[], numPartitions=200)

This function converts a Dataframe of CATAnnotations to a Dataframe of AQAnnotations.

A bare-bones AQAnnotation (with no properties) can be generated by only passing a Dataframe of CATAnnotations. If properties (name-value pairs from the CATAnnotation other column) are desired, you have the option of specifying an Array of names (from these name-value pairs). Additionally, you have the option of specifying if the values for these properties should be lower-cased and/or url decoded.

Parameters
  • catAnnots – Dataframe of CATAnnotations

  • props – Array of property names (from the name-value pairs in the other column in CATAnnotation) that you would like populated in the AQAnnotation Map of properties.

  • lcProps – Array of property names where the value should be lower cased when populating the AQAnnotation Map of properties.

  • decodeProps – Array of property names where the value should be url decoded when populating the AQAnnotation Map of properties.

  • numPartitions – Number of partitions for the Dataframe of AQAnnotations.

Returns

Dataframe of AQAnnotations