<jupyter_start><jupyter_text>Update Cache SymbolsA useful utility for demonstating the use of the update/remove cache symbols functions.  You can use this notebook to periodically update all of the timeseries in your symbol cache.<jupyter_code>import pandas as pd
import pinkfish as pf<jupyter_output><empty_output><jupyter_text>Update time series for the symbols below.  Time series will be fetched for any symbols not already cached.<jupyter_code>pf.update_cache_symbols(symbols=['msft', 'orcl', 'tsla'])<jupyter_output>updating symbols:
MSFT ORCL TSLA<jupyter_text>Remove the time series for TSLA<jupyter_code>pf.remove_cache_symbols(symbols=['tsla'])<jupyter_output>removing symbols:
TSLA<jupyter_text>Update time series for all symbols in the cache directory<jupyter_code>pf.update_cache_symbols()<jupyter_output>updating symbols:
EURUSD=X CMCSA BTC=F BMY V ZC=F VNQ ADA-USD NQ=F UB=F 
('Date')
RUB=X 
IWM ZN=F MNQ=F BND 6A=F IEF SLV SHY PA=F PM 
DBC THB=X PL=F DIA BRK-B XLK MIR=F INR=X XLB VGK 
DX=F MES=F NUE AMZN ETH-USD GIS BIL UL XLE EURCHF=X 
EEM GF=F USDT-USD XLP EURGBP=X M6A=F SPY CT=F DC=F KC=F 
ZO=F SLY 6Z=F KE=F M2K=F BTC-USD 6R=F AUDUSD=X M6E=F UUP 
BUD ZB=F JNJ ZM=F XLU CU=F 
(No data fetched for symbol CU=F using YahooDailyReader)
HD EURHUF=X INTC FXE 
LBS=F GOOG XHB JKE 6J=F FXB 6B=F GDX RSP XOM 
BTCUSD=X GLD JNK MGC=F BSV BCH-USD XRP-USD RB=F PHP=X NLY 
GBPUSD=X BTI MO K ORCL HG=F HKD=X CLX XLI TLT 
XLY ZAR=X 6L=F T ZW=F SO NFLX MYR=X UNG GBPJPY=X 
EFA HSY LTC-USD CNY=X IWB MSF=F KMI IYR KO EWJ 
FB BNB-USD SGD=X ZR=F LQD MRK PG AAPL PGX XLV 
KMB ZQ=F VZ HRL NZDUSD=X MCD=F IVV MSFT TN=F ISF 

(No data fetched for symbol ISF using YahooDailyReader)
6S=F DIS SIL=F HE=F QA=F 
(No data fetched for symbol QA=F using YahooDailyReader)
CC=F 6M=F CHRIS-CME_ES1 
(No data fetched for symbol C[...]<jupyter_text>Remove time series for all symbols in the cache directory<jupyter_code># WARNING!!! - if you uncomment the line below, you'll wipe out
# all the symbols in your cache directory
#pf.remove_cache_symbols()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08309178743961353, 'fraction_numerical': 0.005797101449275362, 'mean_word_length': 5.256797583081571, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '275236', 'license': 'MIT', 'n_tokens_mistral': 946, 'n_tokens_neox': 876, 'n_words': 285, 'path': 'examples/A00.update-cache-symbols/update-cache-symbols.ipynb', 'repo_name': 'vishalbelsare/pinkfish', 'size': '2070'}