-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added normal plot for time series #550
feat: added normal plot for time series #550
Conversation
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #550 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 50 50
Lines 2866 2915 +49
=========================================
+ Hits 2866 2915 +49 ☔ View full report in Codecov by Sentry. |
Wouldn't it also make sense to plot numeric feature columns against the time column? In that case, this function should get a parameter |
Yes, it would give a user a more detailed view on, how the other data points are correlated to the target column. On the other hand, the plots can get messy, but only if a lot of columns are plotted. Also, it should be an optional argument, so the user can always easy plot the time series. |
I was only thinking of plotting one feature column against the time column.
Then let's add an optional |
Should a user choose between scatter and normal plot? |
In the We could also have those two methods in |
- added optional parameter
- with one optional parameter
The X-Axis is usally the date in time series or the usual index column. Should I still add the |
I'd say yes due to two reasons:
Hmm, probably not. The time column should include dates (timestamps). Otherwise, we would also need to support separate columns for year/month/day, hour/minute/second/nanos or variations thereof. |
The default value of, |
- added tests for scatter and line plot with the additional parameters
…-time-series' into 549-feat-normal-visualization-of-time-series # Conflicts: # src/safeds/data/tabular/containers/_time_series.py
tests/safeds/data/tabular/containers/_table/_tagged_table/_time_series/test_plot_time_series.py
Outdated
Show resolved
Hide resolved
...s/data/tabular/containers/_table/_tagged_table/_time_series/test_plot_time_series_scatter.py
Outdated
Show resolved
Hide resolved
Would the time column not make more sense as the default x |
Yes, I didn't notice. |
I added this behavior, to the function, which throws up new questions. The time column can be pretty useful for plotting, so the user could see dates in the plot. But we don't handle them as dates, only as a time dummy right now. Should the time column only allow numerical values? As we don't want it to handle, “real” date-types. |
Data types would be a useful addition eventually. Maybe create an issue for this if we don't have one already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my point of view, this is ready to merge. Thank you!
## [0.20.0](v0.19.0...v0.20.0) (2024-04-03) ### Features * add deterministic hash methods to all types ([#573](#573)) ([f6a3ca7](f6a3ca7)) * add fnn functionality ([#529](#529)) ([ce53153](ce53153)), closes [#522](#522) * add suffixes to models to indicate their task ([#588](#588)) ([d490dee](d490dee)) * added lag_plot ([#548](#548)) ([0fb38d2](0fb38d2)), closes [#519](#519) * added normal plot for time series ([#550](#550)) ([dbdf11e](dbdf11e)), closes [#549](#549) * when using from table to time series feature must be given ([#572](#572)) ([ca23f0f](ca23f0f)), closes [#571](#571) ### Bug Fixes * incorrect type hint for `number_of_bins` parameter ([#567](#567)) ([b434e53](b434e53)) * mark various API elements as internal ([#587](#587)) ([ea176fc](ea176fc)), closes [#582](#582) [#585](#585)
🎉 This PR is included in version 0.20.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Closes #549
Summary of Changes
Add more plot for time series:
TimeSeries.plot_lineplot
TimeSeries.plot_scatterplot