Skip to content

Commit 90e2baa

Browse files
committed
chore: make warning message more consistent
1 parent 5bd512d commit 90e2baa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyretailscience/plots/line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def plot(
7777
"""
7878
if x_col is not None and pd.api.types.is_datetime64_any_dtype(df[x_col]):
7979
warnings.warn(
80-
f"The column '{x_col}' is datetime-like. Consider using the 'timeline' module for time-based plots.",
80+
f"The column '{x_col}' is datetime-like. Consider using the 'plots.timeline' module for time-based plots.",
8181
UserWarning,
8282
stacklevel=2,
8383
)

tests/plots/test_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_plot_warns_if_xcol_is_datetime(sample_dataframe, mocker):
9696
)
9797

9898
warnings.warn.assert_called_once_with(
99-
"The column 'x' is datetime-like. Consider using the 'timeline' module for time-based plots.",
99+
"The column 'x' is datetime-like. Consider using the 'plots.timeline' module for time-based plots.",
100100
UserWarning,
101101
stacklevel=2,
102102
)

0 commit comments

Comments
 (0)