dropEmptyColumns

lsst.ap.association.dropEmptyColumns(apdbSchema, sourceTable, tableName)

Drop empty columns that are nullable.

This method uses the table definitions in sdm_schemas to load the schema of the APDB, and does not actually connect to the APDB.

Parameters:
apdbSchemadict [str, lsst.dax.apdb.schema_model.Table]

Schema from sdm_schemas containing the table definition to use.

sourceTablepandas.DataFrame

The input table to remove missing data columns from.

tableNamestr

Name of the table in the schema to use.