Comments (3)
Hello @jeffhandl, @wenouyang
I was able to reproduce the issue on windows and it turns out that it's a known issue when attempting to convert a datetime to a negative timestamp (before 1970).
Here is a stack overflow post regarding the error on windows
https://stackoverflow.com/questions/56931738/python-crash-on-windows-with-a-datetime-close-to-the-epoch?noredirect=1#comment100413591_56931738
and a link to the issue in python itself
https://bugs.python.org/issue37527
This problem can be currently be sidestepped on windows by not attempting the unix timestamp conversion and using other methods instead. Other methods are outlined inside of the kats_101_basics.ipynb
in the surrounding cells.
Some of the alternatives are:
# Passing the entire dataframe to the TimeSeriesData Object
air_passengers_ts = TimeSeriesData(air_passengers_df)
# Passing the series of string dates
air_passengers_ts_from_series = TimeSeriesData(time=air_passengers_df.time, value=air_passengers_df.value)
# Passing in a series of python datetime objects in a series
from dateutil import parser
air_passengers_ts_datetime = air_passengers_df.time.apply(
lambda x: parser.parse(x)
)
ts_from_unixtime = TimeSeriesData(
time=air_passengers_ts_datetime ,
value=air_passengers_df.value,
use_unix_time=True,
unix_time_units="s"
)
from kats.
Hi @wenouyang, thank you for submitting this issue. I'm not able to reproduce it and am wondering if it's related to the version of Pandas you are using and this known issue. Does this error persist after upgrading Pandas?
from kats.
@Axemen , @jeffhandl , thank you very much for your response. The issue has been solved as you suggested.
from kats.
Related Issues (20)
- stream data
- stream data
- Ax-Platform Issue HOT 1
- metalearner metadata error
- Hyper Parameter Tuning Explanation
- pip install kats fail HOT 22
- After installation on Databricks Error object.__init__() takes exactly one argument HOT 3
- Is it possible to "conda install kats"? HOT 1
- Anomaly detection in multivariate time series documentation benchmark
- Can't install Kats in Python 3.11, 3.10, 3.9
- Kats installation failure HOT 5
- KeyError: 'overall_anomaly_score' HOT 1
- kats 0.2.0 ax-platform dependency
- Tutorial 202 detection BOCPDetector parameter error HOT 1
- Issues on first use HOT 1
- Implementation of online/real time inference for detection of change point by bocpd
- pip install error for kats 0.2.0
- kats installation error HOT 13
- How can I set custom model parameters in GetMetaData?
- Kats installation failure due to Cython and numpy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kats.