const allTickers = stocks.map(d => d.Ticker)
// display(allTickers)
const setTickers = new Set(allTickers)
const uniqueTickers = Array.from(setTickers)
display(uniqueTickers)
Selected stock is:
AI HELP
Here's what I asked AI:
I am working with Observable Plot, and I would like to join two datasets in this file (viewership, costs) on show name. I want to make a new metric, TOTAL views per TOTAL dollar (spent).
Here is the cost data structure: { show_name: "Stranger Things" cost_per_episode_usd: 12000000 number_of_episodes: 42 total_production_cost_usd: 504000000 }
Here is the views data structure: { show_name: "Stranger Things" avg_weekly_viewers: 15200000 launch_date: 2016-07-15 weeks_since_launch: 486 total_estimated_viewership: 7387200000 }
It returned: