|
8 | 8 | The sequences used in this module can include values like "days since an event" (e.g., -2, -1, 0, 1, 2) or "months
|
9 | 9 | since a competitor store opened." **This module is not intended for use with actual datetime values**. If a datetime
|
10 | 10 | or datetime-like column is passed as **`x_col`**, a warning will be triggered, suggesting the use of the
|
11 |
| -**`timeline`** module. |
| 11 | +**`plots.time_line`** module. |
12 | 12 |
|
13 | 13 | ### Core Features
|
14 | 14 |
|
|
28 | 28 | ### Limitations and Handling of Temporal Data
|
29 | 29 |
|
30 | 30 | - **Limited Handling of Temporal Data**: This module can plot simple time-based sequences, such as "days since an event," but it cannot manipulate or directly handle datetime or date-like columns. It is not optimized for actual datetime values.
|
31 |
| -If a datetime column is passed or more complex temporal plotting is needed, a warning will suggest using the **`timeline`** module, which is specifically designed for working with temporal data and performing time-based manipulation. |
| 31 | +If a datetime column is passed or more complex temporal plotting is needed, a warning will suggest using the **`plots.time_line`** module, which is specifically designed for working with temporal data and performing time-based manipulation. |
32 | 32 | - **Pre-Aggregated Data Required**: The module does not perform any data aggregation, so all data must be pre-aggregated before being passed in for plotting.
|
33 | 33 |
|
34 | 34 | """
|
@@ -77,14 +77,14 @@ def plot(
|
77 | 77 | """
|
78 | 78 | if x_col is not None and pd.api.types.is_datetime64_any_dtype(df[x_col]):
|
79 | 79 | warnings.warn(
|
80 |
| - f"The column '{x_col}' is datetime-like. Consider using the 'plots.timeline' module for time-based plots.", |
| 80 | + f"The column '{x_col}' is datetime-like. Consider using the 'plots.time_line' module for time-based plots.", |
81 | 81 | UserWarning,
|
82 | 82 | stacklevel=2,
|
83 | 83 | )
|
84 | 84 |
|
85 | 85 | elif x_col is None and pd.api.types.is_datetime64_any_dtype(df.index):
|
86 | 86 | warnings.warn(
|
87 |
| - "The DataFrame index is datetime-like. Consider using the 'plots.timeline' module for time-based plots.", |
| 87 | + "The DataFrame index is datetime-like. Consider using the 'plots.time_line' module for time-based plots.", |
88 | 88 | UserWarning,
|
89 | 89 | stacklevel=2,
|
90 | 90 | )
|
|
0 commit comments