Pinned Loading
-
An extract from a correlation matrix...
An extract from a correlation matrix calculation tool 1# Select all non-ETF stocks2df = pd.read_sql("SELECT Symbol FROM symbols_valid_meta WHERE etf='n'", db)
34# Load all available history dates5total_df = pd.read_sql("SELECT DISTINCT date FROM history", db)
-
The third extract from our correlati...
The third extract from our correlation matrix tool 1merged.astype(dtype='float16').round(decimals=2)
2print("Calculating correlation")
34with ProgressBar():
5merged = merged.corr().compute()
-
Utility functions for showing/hiding...
Utility functions for showing/hiding toolbar in response to a user click whilst allowing uninterrupted scrolling. 1val SCROLL_THRESHOLD = 10f
23var showingTaskbar: HashMap<Toolbar, Boolean> = hashMapOf()
4var x = 0f
5var y = 0f
-
Second extract from correlation matr...
Second extract from correlation matrix tool 1print("Setting dataframe index")
2dataframes = [df.set_index("date", drop=True) for df in dataframes]
34print("Merging dataframes")
5merged = pd.concat(dataframes, axis=1, keys=range(len(dataframes)), join='outer', copy=False)
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.