Glider
Loading...
Searching...
No Matches
src.importer.TemplateManager.TemplateManager Class Reference

Public Member Functions

 preprocessing (**kwargs)
 
 getType (**kwargs)
 
 getDate (**kwargs)
 
 full_type (type)
 

Detailed Description

Does specifics procedures for several templates. According the current format, it executes the right template from templates folder

Definition at line 3 of file TemplateManager.py.

Member Function Documentation

◆ full_type()

src.importer.TemplateManager.TemplateManager.full_type ( type)
Sets full name for 'type' column

Args:
    type (str): A single letter 
Returns: full type (str)

Definition at line 177 of file TemplateManager.py.

◆ getDate()

src.importer.TemplateManager.TemplateManager.getDate ( ** kwargs)
Assign a date column according to format

Args:
    df (pandas dataframe): current file loaded as dataframe
    type_format (str): format name of current file
    filename (dict): current filename
Returns: Nothing

Definition at line 93 of file TemplateManager.py.

◆ getType()

src.importer.TemplateManager.TemplateManager.getType ( ** kwargs)
Assign a custom column according to format

Args:
    df (pandas dataframe): current file loaded as dataframe
    type_format (str): format name of current file
    filename (dict): current filename
Returns: Nothing

Definition at line 58 of file TemplateManager.py.

◆ preprocessing()

src.importer.TemplateManager.TemplateManager.preprocessing ( ** kwargs)
Read the current file whit some tech details according to format

Args:
    dir_file (str): s3 path where file is storage
    type_format (str): format name of current file
    file_features (dict): features required to load file
    session (boto3 obj): AWS client connection
    rel_col (str): indicates release_id column name
Returns: Nothing

Definition at line 7 of file TemplateManager.py.

Here is the call graph for this function:
Here is the caller graph for this function:

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