= "https://raw.githubusercontent.com/fahadsultan/csc272/main/data/elections.csv"
url = pd.read_csv(url)
data = data[data['Result']=='win'].sort_values('Year')
wins = data[data['Result']=='loss'].sort_values('Year')
losses 'Year'], wins['Popular vote']);
plt.plot(wins['Year'], losses['Popular vote']);
plt.plot(losses['Wins', 'Losses']);
plt.legend(['Popular vote in US presidential elections'); plt.title(
Time Series
Time series data is data that is collected over time. Time series data is often represented as a sequence of numbers. The numbers are usually collected at regular intervals. For example, the stock price of a company is collected every day at the close of the stock market.