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:
- apdbSchema
dict
[str
,lsst.dax.apdb.schema_model.Table
] Schema from
sdm_schemas
containing 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