We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 628d400 commit 313eaa7Copy full SHA for 313eaa7
1 file changed
src/data_profiling/model/describe.py
@@ -1,5 +1,5 @@
1
"""Organize the calculation of statistics for each series in this DataFrame."""
2
-from datetime import datetime
+from datetime import datetime, timezone
3
from typing import Any, Dict, Optional, Union
4
5
import pandas as pd
@@ -82,7 +82,7 @@ def describe(
82
disable=not config.progress_bar,
83
position=0,
84
) as pbar:
85
- date_start = datetime.utcnow()
+ date_start = datetime.now(timezone.utc)
86
87
# Variable-specific
88
pbar.total += len(df.columns)
@@ -187,7 +187,7 @@ def describe(
187
188
pbar.set_postfix_str("Completed")
189
190
- date_end = datetime.utcnow()
+ date_end = datetime.now(timezone.utc)
191
192
analysis = BaseAnalysis(config.title, date_start, date_end)
193
time_index_analysis = None
0 commit comments