Glider
Loading...
Searching...
No Matches
src.importer.Validate.validate_data Class Reference

Public Member Functions

 upc_validation (self, df, release_id)
 
 isrc_validation (self, df, isrc)
 
 territory_validation (self, df, territory)
 
 delete_rows (self, df, col, value)
 
 validation (self, df)
 

Detailed Description

When data is processed, it reads all lines and verify it data is complete or not

Definition at line 6 of file Validate.py.

Member Function Documentation

◆ delete_rows()

src.importer.Validate.validate_data.delete_rows ( self,
df,
col,
value )
 Deletes rows which don't satisfy the OTTO standard

Args:
    df (pandas dataframe): processed file loaded as dataframe
    col (str): column name
    value (str): determines which lines should be deleted 
Returns: lines_to_drop (list)

Definition at line 72 of file Validate.py.

◆ isrc_validation()

src.importer.Validate.validate_data.isrc_validation ( self,
df,
isrc )
 Sets 'undefined' value for null isrc_id

Args:
    df (pandas dataframe): processed file loaded as dataframe
    isrc (str): release_id column
Returns: 
    isrc (str)

Definition at line 34 of file Validate.py.

Here is the caller graph for this function:

◆ territory_validation()

src.importer.Validate.validate_data.territory_validation ( self,
df,
territory )
 Sets 'undefined' value for null territory_code

Args:
    df (pandas dataframe): processed file loaded as dataframe
    territory (str): release_id column
Returns: 
    territory (str)

Definition at line 54 of file Validate.py.

Here is the caller graph for this function:

◆ upc_validation()

src.importer.Validate.validate_data.upc_validation ( self,
df,
release_id )
 Sets 'undefined' value for null release_id

Args:
    df (pandas dataframe): processed file loaded as dataframe
    release_id (str): release_id column
Returns: 
    release_id (str)

Definition at line 10 of file Validate.py.

Here is the caller graph for this function:

◆ validation()

src.importer.Validate.validate_data.validation ( self,
df )
 Executes de data validation

Args:
    df (pandas dataframe): processed file loaded as dataframe
Returns: df (pandas dataframe)
         status (str)

Definition at line 108 of file Validate.py.

Here is the call graph for this function:

The documentation for this class was generated from the following file: