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 a property that finds datetime columns #63

Open
lorenz-gorini opened this issue Sep 16, 2020 · 0 comments
Open

Include a property that finds datetime columns #63

lorenz-gorini opened this issue Sep 16, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@lorenz-gorini
Copy link
Member

Datetime columns are really hard to be identified by pandas and they are assigned with dtype="object".
Since pytrousse package wants to avoid the manual analysis of each column with dtype="object", it could be useful to include a property that returns the possible columns containing datetime values.

My proposal to do so it to try to convert to datetime values the columns with dtype="object" (by using pd.to_datetime() function) and a check can be performed on how many values are lost on those columns. This information can be shared with the user that can decide which columns should really be converted or not.

@lorenz-gorini lorenz-gorini added the enhancement New feature or request label Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant