line¶
- class virtualitics_sdk.elements.line.LineType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
Enum
- HORIZONTAL = 'horizontal'¶
- LINEAR = 'linear'¶
- VERTICAL = 'vertical'¶
- class virtualitics_sdk.elements.line.OLSTrendLine(data, x_col, y_col, domain, description='', intersect_origin=False, is_time_series=False, fit_center=True, color_key=None, time_series_unit=Timedelta('1 days 00:00:00'))¶
Bases:
Line
- fit_transform(data, x_col, y_col, domain)¶
- to_json()¶
Converts the trend line object to a JSON serializable dictionary.
- Returns:
dict: A dictionary representation of the trend line object.