Glider
|
Public Member Functions | |
preprocessing (self, filename, features, session, rel_col) | |
preprocessing_music (self, filename, features, session, rel_col) | |
type (self, upc) | |
assetType (self, df) | |
date (self, filename) | |
Definition at line 4 of file itunesTemplate.py.
src.importer.templates.itunesTemplate.itunesTemplate.assetType | ( | self, | |
df ) |
Applies type functions to current dataframe Args: df (pandas dataframe): dataframe where changes will applied Returns: df (pandas dataframe)
Definition at line 56 of file itunesTemplate.py.
src.importer.templates.itunesTemplate.itunesTemplate.date | ( | self, | |
filename ) |
Sets date column given the filename (it contains the date) For example S1_89680172_0723_ZZ.txt Args: filename (str): current filename Returns: date_str (str)
Definition at line 65 of file itunesTemplate.py.
src.importer.templates.itunesTemplate.itunesTemplate.preprocessing | ( | self, | |
filename, | |||
features, | |||
session, | |||
rel_col ) |
Loads file and do some fixes to fit it to our standard and make it able to be processed Args: filename (str): s3 full path of filename features (dict): contains delimiter, skip_rows and encoding required for current file session (boto3 obj): AWS client connection rel_col (str): column name used to identify upc/release_id Returns: df (pandas dataframe)
Definition at line 5 of file itunesTemplate.py.
src.importer.templates.itunesTemplate.itunesTemplate.preprocessing_music | ( | self, | |
filename, | |||
features, | |||
session, | |||
rel_col ) |
Loads file and do some fixes to fit it to our standard and make it able to be processed. It's used for a specific itunes version Args: filename (str): s3 full path of filename features (dict): contains delimiter, skip_rows and encoding required for current file session (boto3 obj): AWS client connection rel_col (str): column name used to identify upc/release_id Returns: df (pandas dataframe)
Definition at line 25 of file itunesTemplate.py.
src.importer.templates.itunesTemplate.itunesTemplate.type | ( | self, | |
upc ) |
Maps the sale type with the name specified by the client according their requirements Args: upc (str): sale type (for products) shown in the original file Returns: (sale type in a single one letter)
Definition at line 46 of file itunesTemplate.py.