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

Conversion of timestamp from epoch format to datetime #32

Open
gautamvij opened this issue Aug 2, 2019 · 1 comment
Open

Conversion of timestamp from epoch format to datetime #32

gautamvij opened this issue Aug 2, 2019 · 1 comment

Comments

@gautamvij
Copy link

gautamvij commented Aug 2, 2019

Requirement

Support to read data from nginx logs which has timestamp in format 1564388230.097.

Approach

We can include unit param to read epoch time here as defined here

Can you help me with any other approach if this is not suitable ? or else will give the PR.

@andrewgross
Copy link
Owner

Sounds great, I think it would be reasonable add a date_unit kwarg. Should we use it only if date_format is empty? Or are there occasions where pd.to_datetime would want unit and format?

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