Hole | Wins | Losses | Score | +8 |
---|---|---|---|---|
1 | 6 | 3 | -1 | Birdie (-1) |
2 | 6 | 3 | -2 | Birdie (-1) |
3 | 4 | 5 | -1 | Bogey (+1) |
4 | 3 | 6 | +1 | Dbl Bogey (+2) |
5 | 4 | 5 | +2 | Bogey (+1) |
6 | 5 | 4 | +2 | Par (E) |
7 | 2 | 7 | +5 | Trpl Bogey (+3) |
8 | 6 | 3 | +4 | Birdie (-1) |
9 | 3 | 6 | +6 | Dbl Bogey (+2) |
In: +4 | ||||
10 | 4 | 5 | +7 | Bogey (+1) |
11 | 3 | 6 | +9 | Dbl Bogey (+2) |
12 | 5 | 4 | +9 | Par (E) |
13 | 5 | 4 | +9 | Par (E) |
14 | 5 | 4 | +9 | Par (E) |
15 | 2 | 6 | +12 | (+3) |
16 | 7 | 2 | +10 | Eagle (-2) |
17 | 5 | 4 | +10 | Par (E) |
18 | 7 | 2 | +8 | Eagle (-2) |
Out: +10 | ||||
19 | ||||
Avg | 5 | 4 | E | Par |
This text appears to be a large block of text containing the results of baseball games played by the St. Louis Cardinals in the 2016 season. It is likely that this data was automatically generated or scraped from an online source.
Here's how I would process this text:
Some possible Python libraries that could be used for this analysis are:
pandas
for data manipulation and analysisnumpy
for numerical computationsmatplotlib
or seaborn
for data visualizationscikit-learn
for machine learning tasks (if desired)Here is an example of how you might use Python to extract and clean the game results:
import re
# Remove newline symbols and convert text to lowercase
text = text.replace('\n', ' ').lower()
# Use regular expressions to extract game results
matches = re.findall(r'(\d{3}-\d{3}) ([A-Z]+) (\d+)-(\d+)', text)
game_results = []
for match in matches:
date, team, score1, score2 = match
# Convert scores to integers
score1 = int(score1)
score2 = int(score2)
game_results.append({
'date': date,
'team': team,
'score1': score1,
'score2': score2
})
# Remove duplicates and invalid data points
unique_game_results = []
for result in game_results:
if result['score1'] > 0 and result['score2'] > 0:
unique_game_results.append(result)
print(unique_game_results)
This is just one possible approach, and there are many other ways to process this text data. Updated: June 27, 2025 at 12:09 AM