(self, file_name)
Take a single metadata csv file and convert it to yaml
        :param file_name: path to a metadata csv file
Take a single metadata csv file and convert it to yaml
        :param file_name: path to a metadata csv file
Take a single metadata csv file and convert it to yaml : param file_name : path to a metadata csv file
def process_integration_metric(self, file_name):
        """
        Take a single metadata csv file and convert it to yaml
        :param file_name: path to a metadata csv file
        """
        if file_name.endswith("/metadata.csv"):
            key_name = basename(
                dirname(normpath(file_name))
            )
        else:
            key_name = basename(
                file_name.replace("_metadata.csv", "")
            )
        new_file_name = "{}{}.yaml".format(
            self.data_integrations_dir, key_name
        )
        self.metric_csv_to_yaml(key_name, file_name, new_file_name)
def process_integration_metric ( self , file_name ) : if file_name . endswith ( "/metadata.csv" ) : key_name = basename ( dirname ( normpath ( file_name ) ) ) else : key_name = basename ( file_name . replace ( "_metadata.csv" , "" ) ) new_file_name = "{}{}.yaml" . format ( self . data_integrations_dir , key_name ) self . metric_csv_to_yaml ( key_name , file_name , new_file_name )