Spaces:
Running
Running
Pulastya B
commited on
Commit
·
1ab1ded
1
Parent(s):
ba50130
fix: Suppress harmless multiprocessing warnings from ydata-profiling
Browse files- src/tools/eda_reports.py +5 -0
src/tools/eda_reports.py
CHANGED
|
@@ -4,10 +4,15 @@ Generates comprehensive HTML reports using ydata-profiling.
|
|
| 4 |
"""
|
| 5 |
|
| 6 |
import os
|
|
|
|
| 7 |
from pathlib import Path
|
| 8 |
from typing import Dict, Any, Optional
|
| 9 |
import polars as pl
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
def generate_ydata_profiling_report(
|
| 13 |
file_path: str,
|
|
|
|
| 4 |
"""
|
| 5 |
|
| 6 |
import os
|
| 7 |
+
import warnings
|
| 8 |
from pathlib import Path
|
| 9 |
from typing import Dict, Any, Optional
|
| 10 |
import polars as pl
|
| 11 |
|
| 12 |
+
# Suppress multiprocessing warnings from ydata-profiling cleanup
|
| 13 |
+
warnings.filterwarnings("ignore", category=UserWarning, module="multiprocessing")
|
| 14 |
+
warnings.filterwarnings("ignore", message=".*resource_tracker.*")
|
| 15 |
+
|
| 16 |
|
| 17 |
def generate_ydata_profiling_report(
|
| 18 |
file_path: str,
|