AFES
explore_files(path)
Return a dataframe with all the files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
str | Path
|
Path the file or to the directory with files. |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
pd.DataFrame: DataFrame with description of the files. |
Source code in src/afes/afe.py
generate_code(df, python_file='code.txt', verbose=True)
Generate pandas code to load the files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df
|
DataFrame
|
DataFrame with the explored files. |
required |
python_file
|
str
|
Name of the file to save the code. Defaults to "code.txt". |
'code.txt'
|
verbose
|
bool
|
Flag to print the code. Defaults to True. |
True
|
Source code in src/afes/afe.py
profile_files(df, output_path='.', profile_tool='ydata-profiling')
Profile the structured data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df
|
DataFrame
|
DataFrame with the files to be profiled. |
required |
output_path
|
str | Path
|
Folder to save the HTML reports. Defaults to ".". |
'.'
|
profile_tool
|
str
|
Select which profiling too to use. Defaults to "ydata-profiling". |
'ydata-profiling'
|