rafa-rod / pytrendseries Goto Github PK
View Code? Open in Web Editor NEWDetect trend in time series, drawdown, drawdown within a constant look-back window , maximum drawdown, time underwater.
Detect trend in time series, drawdown, drawdown within a constant look-back window , maximum drawdown, time underwater.
import pandas as pd
df= pd.read_csv(r'..\stock.csv',header=0,index_col=0)
df.index = pd.to_datetime(df.index)
df=pd.DataFrame(df['close'])
import pytrendseries
trend = "downtrend"
window = 126 #6 months
trends_detected = pytrendseries.detecttrend(df, trend=trend, window=window)
Traceback (most recent call last):
File "XXXX\Desktop\pytrendseries.py", line 8, in
import pytrendseries
File "XXX\Desktop\pytrendseries.py", line 13, in
trends_detected = pytrendseries.detecttrend(df, trend=trend, window=window)
AttributeError: partially initialized module 'pytrendseries' has no attribute 'detecttrend' (most likely due to a circular import)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.