🌱 flatMap example
Uses flatmap to merge 4 csv datasets
stocks = [
['AAPL', aapl],
['AMZN', amzn],
['GOOG', goog],
['IBM', ibm],
].flatMap(([Symbol, data]) => data.map((d) => ({ Symbol, ...d })))
Uses flatmap to merge 4 csv datasets
stocks = [
['AAPL', aapl],
['AMZN', amzn],
['GOOG', goog],
['IBM', ibm],
].flatMap(([Symbol, data]) => data.map((d) => ({ Symbol, ...d })))