dropEmptyColumns¶
- lsst.ap.association.dropEmptyColumns(apdbSchema, sourceTable, tableName)¶
Drop empty columns that are nullable.
This method uses the table definitions in
sdm_schemasto load the schema of the APDB, and does not actually connect to the APDB.- Parameters:
- apdbSchema
lsst.dax.apdb.apdbSchema.ApdbSchema Schema from
sdm_schemascontaining the table definition to use.- sourceTable
pandas.DataFrame The input table to remove missing data columns from.
- tableName
str Name of the table in the schema to use.
- apdbSchema