Skip to content

Make drop labels function outside of loadFeatureFilesFromImageTypes #93

@strixy16

Description

@strixy16

Move this code to an independent function:

try:
# Drop the labels from the dataframe if specified
if drop_labels:
# Data is now only extracted features
raw_feature_data.drop(labels_to_drop, axis=1, inplace=True)
except KeyError as e:
logger.warning(f"{feature_file_path} does not have the labels {labels_to_drop} to drop.")
# Skip to the next image type
continue

Metadata

Metadata

Assignees

Labels

featureNew feature or requestrefactorChange in existing code

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions