Coder Social home page Coder Social logo

Usage Date Format for ADTK about adtk HOT 2 OPEN

arundo avatar arundo commented on August 21, 2024
Usage Date Format for ADTK

from adtk.

Comments (2)

tailaiw avatar tailaiw commented on August 21, 2024

How did you convert the index? If you use something like df.index = pd.to_datetime(df.index), it should treat your integer index as nanosecond from epoch time.

adtk currently only supports pandas object with datetime index, because some models (e.g. seasonality ones) require it. We already realized it is not necessary for many other models and is somehow inconvenient, so we have #38 open.

from adtk.

senemaktas avatar senemaktas commented on August 21, 2024

Thank you very much for your response. Replace that s['time_motion'] = pd.to_datetime(s['time_motion'], format='%Y-%m-%d') -> this worked s.time_motion = pd.to_datetime(s.time_motion) and i got this output ->

0 1970-01-01 00:00:00.000000000
1 1970-01-01 00:00:00.000000001
2 1970-01-01 00:00:00.000000002
3 1970-01-01 00:00:00.000000003
4 1970-01-01 00:00:00.000000004

But after that when i try that from adtk.data import validate_series s = validate_series(s) it gives same thing. -> TypeError: Index of time series must be a pandas DatetimeIndex object.

The purpose of using this library is to give 3 time series and make beat predictions. In this case, can you recommend this library?
I'm a beginner, it's my first time working with time series. Thank you so much.

x

from adtk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.