musif.process.filter module

class musif.process.filter.DataFilter(info: Union[str, pandas.DataFrame], *args, **kwargs)[source]

Bases: object

Processor class that treats columns and information of a DataFrame

This operator processes information from a DataFrame or a .csv file. It deletes unseful columns and merges those that are required to clean the data. The main method .process() returns a DataFrame and saves it into a .csv file. Requires to have a Passions.csv file in the current working directory containing each passion for each aria. …

data

DataFrame extracted with FeaturesExtractor containing all info.

Type

DataFrame

info

Path to .csv file or Dataframe containing the information from FeaturesExtractor

Type

str

filter_data(by: Optional[str] = None, equal_to: list = [], instrument: str = '') pandas.DataFrame[source]
post_process_intervals(by, instrument, percentages_intervals: pandas.DataFrame)[source]