Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
darenasc committed Dec 24, 2024
1 parent a4473f7 commit 27f7168
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ from afes import afe
TARGET_FOLDER = "<PATH_TO_FILES_TO_EXPLORE>"

# Run exploration on the files
df_files = afe.explore(TARGET_FOLDER)
df_files = afe.explore_files(TARGET_FOLDER)
df_files
```

Expand All @@ -108,7 +108,7 @@ with python as the following code, or using a Jupyter
Using the dataframe `df_files` generated in the explore phase, you can generate
working python pandas code to be used.

the function `generate()` will generate python code to load the files using
The function `generate_files()` will generate python code to load the files using
`pandas`.

```python
Expand All @@ -118,8 +118,8 @@ from afes import afe
TARGET_FOLDER = "<PATH_TO_FILES_TO_EXPLORE>"
OUTPUT_FOLDER = "<PATH_TO_OUTPUTS>"

df_files = afe.explore(TARGET_FOLDER)
afe.generate(df_files)
df_files = afe.explore_files(TARGET_FOLDER)
afe.generate_code(df_files)
```

The generated code will look like this:
Expand Down Expand Up @@ -159,10 +159,10 @@ TARGET_FOLDER = "<PATH_TO_FILES_TO_EXPLORE>"
OUTPUT_FOLDER = "<PATH_TO_OUTPUTS>"

# Run exploration on the files
df_files = afe.explore(TARGET_FOLDER)
df_files = afe.explore_files(TARGET_FOLDER)

afe.profile(df_files, profile_tool="ydata-profiling", output_path=OUTPUT_FOLDER) # or
afe.profile(df_files, profile_tool="sweetviz", output_path=OUTPUT_FOLDER)
afe.profile_files(df_files, profile_tool="ydata-profiling", output_path=OUTPUT_FOLDER) # or
afe.profile_files(df_files, profile_tool="sweetviz", output_path=OUTPUT_FOLDER)
```

By default, it will process the files using `ydata-profiling` by size order
Expand Down
8 changes: 0 additions & 8 deletions src/afes/databases.ini.template

This file was deleted.

8 changes: 4 additions & 4 deletions src/afes/notebook-example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"outputs": [],
"source": [
"# Run exploration on the files\n",
"df_files = afe.explore(TARGET_FOLDER)\n",
"df_files = afe.explore_files(TARGET_FOLDER)\n",
"df_files"
]
},
Expand All @@ -37,7 +37,7 @@
"outputs": [],
"source": [
"# Generate pandas code to load the files\n",
"afe.generate(df_files)"
"afe.generate_code(df_files)"
]
},
{
Expand All @@ -47,8 +47,8 @@
"outputs": [],
"source": [
"# Run profiling on each file\n",
"afe.profile(df_files, profile_tool=\"ydata-profiling\", output_path=OUTPUT_FOLDER)\n",
"afe.profile(df_files, profile_tool=\"sweetviz\", output_path=OUTPUT_FOLDER)"
"afe.profile_files(df_files, profile_tool=\"ydata-profiling\", output_path=OUTPUT_FOLDER)\n",
"afe.profile_files(df_files, profile_tool=\"sweetviz\", output_path=OUTPUT_FOLDER)"
]
}
],
Expand Down

0 comments on commit 27f7168

Please sign in to comment.