Module pandas_profiling.utils.paths
Paths that are useful throughout the project.
Source code
"""Paths that are useful throughout the project."""
from pathlib import Path
def get_project_root() -> Path:
"""Returns the path to the project root folder.
Returns:
The path to the project root folder.
"""
return Path(__file__).parent.parent.parent
def get_config_default() -> Path():
"""Returns the path to the default config file.
Returns:
The path to the default config file.
"""
return Path(__file__).parent.parent / "config_default.yaml"
Functions
def get_config_default()
-
Returns the path to the default config file.
Returns
The path to the default config file.
Source code
def get_config_default() -> Path(): """Returns the path to the default config file. Returns: The path to the default config file. """ return Path(__file__).parent.parent / "config_default.yaml"
def get_project_root()
-
Returns the path to the project root folder.
Returns
The path to the project root folder.
Source code
def get_project_root() -> Path: """Returns the path to the project root folder. Returns: The path to the project root folder. """ return Path(__file__).parent.parent.parent