You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Narwhals implementation of from_dataframe and performance benchmark (#2661)
* narwhals implementation for and test benchmark
* changes from MarcoGorelli incorporated
* improvement thanks to reviewers
* added comments about slow and fast parts of the code
* using pandas index to avoid .to_list()
* bug fix added
* updated test script
* narwhals timeseries added
* from_series changed, names changed
* changelog updated
* small improvement
* clean test scripts added
* BUGFIX added for non_pandas df
* tests added for polars df
* polars and narwhals added to dependencies. Ideally, polars should be an optional dependency.
* refactoring pd_series and pd_dataframe
* removed test scripts from git repo
* Update CHANGELOG.md
Co-authored-by: Dennis Bader <[email protected]>
* Update darts/timeseries.py
Co-authored-by: Dennis Bader <[email protected]>
* easy corrections applied
* narwhals_test_time removed
* Update requirements/core.txt
Co-authored-by: Dennis Bader <[email protected]>
* Update darts/timeseries.py
Co-authored-by: Francesco Bruzzesi <[email protected]>
* most corrections added
* polars tests removed
* tests corrected
* Update darts/timeseries.py
Co-authored-by: Dennis Bader <[email protected]>
* Update darts/timeseries.py
Co-authored-by: Dennis Bader <[email protected]>
* no time_col, define one
---------
Co-authored-by: “authierj” <“[email protected]”>
Co-authored-by: Dennis Bader <[email protected]>
Co-authored-by: Francesco Bruzzesi <[email protected]>
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ but cannot always guarantee backwards compatibility. Changes that may **break co
11
11
12
12
**Improved**
13
13
14
+
-`TimeSeries.from_dataframe()` and `from_series()` now support creating `TimeSeries` from additional backends (Polars, PyArrow, ...). We leverage `narwhals` as the compatibility layer between dataframe libraries. See the `narwhals`[documentation](https://narwhals-dev.github.io/narwhals/) for all supported backends. [#2661](https://github.com/unit8co/darts/pull/2661) by [Jules Authier](https://github.com/authierj)
14
15
- Added ONNX support for torch-based models with method `TorchForecastingModel.to_onnx()`. Check out [this example](https://unit8co.github.io/darts/userguide/gpu_and_tpu_usage.html#exporting-model-to-onnx-format-for-inference) from the user guide on how to export and load a model for inference. [#2620](https://github.com/unit8co/darts/pull/2620) by [Antoine Madrona](https://github.com/madtoinou)
15
16
- Made method `ForecastingModel.untrained_model()` public. Use this method to get a new (untrained) model instance created with the same parameters. [#2684](https://github.com/unit8co/darts/pull/2684) by [Timon Erhart](https://github.com/turbotimon)
16
17
-`TimeSeries.plot()` now supports setting the color for each component in the series. Simply pass a list / sequence of colors with length matching the number of components as parameters "c" or "colors". [#2680](https://github.com/unit8co/darts/pull/2680) by [Jules Authier](https://github.com/authierj)
0 commit comments