1.1.10.2.3.1. src.ml_pipeline.Templates.main_class_templates.Input_File.Input_File¶
- class Input_File(Input_Files_inst, **supplemental_kwargs)[source]¶
Bases:
ml_pipeline.ML_Input_File.Input_File
Methods
this needs to be defined by a child class
clean_pipeline
custom_func
do_nothing
exit
export_cleaned
export_cleaned_sample
export_query_staging
export_raw
export_raw_sample
format_string_by_atts
gen_cleaned_sample
gen_raw_sample
gen_sample
returns self.<att_string>
returns all values of atts for class instance
get_database_conn
get_possible_ncols
get_random_Child
returns True/False whether the instance has the attribute
returns a list of True/False indicating whether the class has each attribute
import_cleaned
import_cleaned_sample
import_df
import_raw
import_raw_sample
lambda_on_Children
make_Features
move_from_query_staging
open_Child_user
prep_for_joining
Print off all Class instance attributes
Print attributes of the class off, if not printed off, the string will be returned
Shows information about what type of class self is
Prints off (or returns a string) with the 'important' information about a class Most child classes will redefine this method with custom attributes to print off
Prints off (or returns a string) with information about a class in one line Most child classes will redefine this method with custom attributes to print off
Function does one of two things 1.
query_pipeline
Give the user options on what to run
runs method_name associated with self and given *args and **kwargs, returns whatever the method_pointer returns
run_query
select_Child_user
return a list of Children instances where Child_add == Child_value
sets self.att = val
sets attributes of the class equal to the dictionary values
Attributes
BASE_OPTIONS
DEFAULT_KWARGS
OVERRIDE_KWARGS
SUFFIX
UPDATED_OPTIONS
- has_atts(atts: List[str]) List[bool] ¶
returns a list of True/False indicating whether the class has each attribute
- print_atts(how: str = 'imp', **kwargs)¶
Print attributes of the class off, if not printed off, the string will be returned
- print_imp_atts(**kwargs)[source]¶
Prints off (or returns a string) with the ‘important’ information about a class Most child classes will redefine this method with custom attributes to print off
- print_one_line_atts(**kwargs)[source]¶
Prints off (or returns a string) with information about a class in one line Most child classes will redefine this method with custom attributes to print off
- print_string(string: str, print_off: bool = True) Any ¶
Function does one of two things 1. Prints off the string and returns NOne 2. Returns the string
- run()¶
Give the user options on what to run
- run_method(method_name, *method_args, **method_kwargs)¶
runs method_name associated with self and given *args and **kwargs, returns whatever the method_pointer returns
- select_Children_where(att, value)¶
return a list of Children instances where Child_add == Child_value