Let's walk through a practical use case for working with a one-dimensional array in data analysis.Here's the scenario—you are a data analyst who wants to know what is the highest daily closing price for a stock ticker for the current Year To Date (YTD). To do this, you can use an array to store each value as an element, sort the price element from high to low, and then print the first element, which would display the highest price as the output value.
Before loading the file into Jupyter, it is best to inspect the file contents, which supports our Know Your Data (KYD) concept discussed inChapter 1, Fundamentals of Data Analysis.The following screenshot is a comma-delimited, structured dataset with two columns. The file includes a header row with a Date field in the format of YYYY-MM-DD and a field labeled Close, which represents the closing price of the stock by the end of the trading day for this stock ticker.This...