mirror of
https://github.com/wassname/pandas-ta.git
synced 2026-07-14 01:10:34 +08:00
19 lines
501 B
Python
19 lines
501 B
Python
import os
|
|
from random import choice
|
|
from pandas import read_csv
|
|
|
|
VERBOSE = True
|
|
|
|
ALERT = f"[!]"
|
|
INFO = f"[i]"
|
|
|
|
CORRELATION = 'corr' #'sem'
|
|
CORRELATION_THRESHOLD = 0.99 # Less than 0.99 is undesirable
|
|
|
|
sample_data = read_csv(f"data/SPY_D.csv", index_col=0, parse_dates=True, infer_datetime_format=False, keep_date_col=True)
|
|
|
|
def error_analysis(df, kind, msg, icon=INFO, newline=True):
|
|
if VERBOSE:
|
|
s = f" {icon} {df.name}['{kind}']: {msg}"
|
|
if newline: s = f"\n{s}"
|
|
print(s) |