GithubHelp home page GithubHelp logo

Comments (4)

George3d6 avatar George3d6 commented on August 15, 2024

We should add a test with older date times and fix this.

Ideally times before Jan 1st 1970 should just be negative values, e.g. 1969-12-31 23:59:59 becomes -1.

from mindsdb_native.

ilia-tsyplenkov avatar ilia-tsyplenkov commented on August 15, 2024

We should add a test with older date times and fix this.

Ideally times before Jan 1st 1970 should just be negative values, e.g. 1969-12-31 23:59:59 becomes -1.

it is present in pandas:

>>> import pandas as pd
>>> 
>>> 
>>> 
>>> dt = "1969-12-31 23:59:59"
>>> dt = pd.to_datetime(dt, errors='coerce')
>>> dt.timestamp()
-1.0
>>> dt = "1968-12-31 23:59:59"
>>> dt = pd.to_datetime(dt, errors='coerce')
>>> dt.timestamp()
-31536001.0

from mindsdb_native.

ilia-tsyplenkov avatar ilia-tsyplenkov commented on August 15, 2024

I don't think that we need to proceed with this issue, since parent issue is not reproducible anymore (I've checked it) @paxcema could you please suggest?

from mindsdb_native.

paxcema avatar paxcema commented on August 15, 2024

The sinusoidal mode in Lightwood's datetime encoder seems to be working fine for normalizing any timestamp, so I think we can close this for now.

from mindsdb_native.

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.