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
Created an enum class for allowed time series plot data types and replaced string usages with TSAllowedPlotDataTypes Enum instances #2655
Created an enum class for allowed time series plot data types and replaced string usages with TSAllowedPlotDataTypes Enum instances #2655
Conversation
…ring usages with the TSAllowedPlotDataTypes Enum class
@desaizeeshan22 Thanks for taking the initiative to add this. Can you comment on the actual Issue so that I can assign it to you? Also, a few changes - Currently, we are adding change to I see you have changed the allowed type to ENUM. Can you check if the plots still work, since the users will be specifying the string values in plot_model and check_stats not the ENUM. eda.plot_model(data_kwargs={"plot_data_type": ["original", "imputed", "transformed"]) |
Ohh okay I see the plots are failing because the supported types are ENUMS.How do you suggest I go about changing this should I use the ENUM.value instead which outputs a string? |
The user should still enter the string (we should not change the user interface). Inside the code, when you check for correctness, you will have to check the strong against the possible ENUM values (currently, it is just checking string against string). |
It seems that the tests are failing. Can you merge the latest develop branch into your branch and then we can evaluate the changes? |
Yup just finished merging the latest changes on develop branch with my branch |
2415
Add ENUM for allowed data types instead of strings #2415
Closes #2415
Describe the changes you've made
Created an enum class for allowed time series plot data types and replaced string usages with TSAllowedPlotDataTypes Enum instances
Type of change
How Has This Been Tested?
Used the existing test_get_data_types_to_plot in the file test_time_series_utils_plots.py
Describe if there is any unusual behaviour of your code(Write
NA
if there isn't)NA
Checklist:
Screenshots