Skip to content
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

Include Date columns in histogram #143

Open
leebrian opened this issue Sep 9, 2020 · 2 comments
Open

Include Date columns in histogram #143

leebrian opened this issue Sep 9, 2020 · 2 comments

Comments

@leebrian
Copy link

leebrian commented Sep 9, 2020

Thanks for the package, it's really helpful in first round data exploration.

Would you please include Dates in the histogram portion of the profile?

Currently, only numerics are processed and are considered continuous in the plot_histogram function. But if Dates were considered continuous, or you were to explicitly add an option to configure to handle dates, they would be included in this section of the profile.

Currently dates are included in the bar chart section, but since they frequently have so many different values they are excluded. Also since dates are sequential the default bar chart sorting doesn't work as well as, I think, it's easier to view dates ordered by their date instead of most frequent.

@boxuancui
Copy link
Owner

Thanks for your suggestion. Dates are always tricky and subjective, and I do not have a plan yet to generalize date handling. However, have you tried setting dates as numerical values? For example: as.numeric(Sys.Date()) will turn dates into integers and be treated as continuous.

@leebrian
Copy link
Author

Thanks, that does work and is what I do now. The challenge is that the profile is harder to understand as the time period is not as easy to understand, especially if there are different periods in the same dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants