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

Performance with Pandas #9

Open
eusoubrasileiro opened this issue Oct 4, 2018 · 0 comments
Open

Performance with Pandas #9

eusoubrasileiro opened this issue Oct 4, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@eusoubrasileiro
Copy link
Owner

Increase performance using:

  • Resample a time series to D, using mean to group
    ts.resample('D').mean()
  • specify resolution while converting to datetime indexes
    pd.to_datetime([1349720105, 1349806505, 1349892905, 1349979305, 1350065705], unit='s')
  • datetime64 is a better type since my resolutin is seconds at maximum
  • periods
    index=pd.date_range('20130101',periods=100000,freq='T')
  • pandas reference documentation
@eusoubrasileiro eusoubrasileiro added the enhancement New feature or request label Oct 4, 2018
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