The output gives just the ticker symbols, which is not very informative as to what the ETF represents. So “associated” the symbol with the name, which provides much more informative.
But to read through 2500 entries to find the one you want is painful so tried to use StringMatchQ[] without success. Had to create another list of just the names …
eftNames = FinancialData[dataETF, "Name"];
But StringMatchQ[] still would not work, but StringContainQ[] did work
Beautiful, absolutely beautiful, Thank you very much Rohit.
But it just hurts my brain, the output of AssociationThread[] and AssociationMap[] look absolutely the same, yet StringContainsQ works with AssociationMap[] but not AssociationThread[] , just hurts my brain.
dataETFn // Select[StringContainsQ[#, {“UltraShort”, “Short”}] &] worked very well in sorting out all the contra ETFs, but if I search for Ultra ETFs I get UltraShort as well. Is there a way to exclude strings – that is, search for Ultra but not UltraShort???
Wrapping the output of AssociationThread with Column is causing the problem. It is no longer an Association. Any StringExpression can be used as the pattern to filter on. e.g.