The dataset viewer is not available for this split.
Error code: FeaturesError
Exception: ArrowTypeError
Message: ("Expected bytes, got a 'int' object", 'Conversion failed for column match_round with type object')
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 249, in compute_first_rows_from_streaming_response
iterable_dataset = iterable_dataset._resolve_features()
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4379, in _resolve_features
features = _infer_features_from_batch(self.with_format(None)._head())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2661, in _head
return next(iter(self.iter(batch_size=n)))
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2839, in iter
for key, pa_table in ex_iterable.iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2377, in _iter_arrow
yield from self.ex_iterable._iter_arrow()
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/csv/csv.py", line 199, in _generate_tables
pa_table = pa.Table.from_pandas(df)
File "pyarrow/table.pxi", line 4795, in pyarrow.lib.Table.from_pandas
File "/usr/local/lib/python3.14/site-packages/pyarrow/pandas_compat.py", line 653, in dataframe_to_arrays
arrays[i] = maybe_fut.result()
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 443, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
raise self._exception
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
result = ctx.run(self.task)
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
return fn(*args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/pyarrow/pandas_compat.py", line 628, in convert_column
raise e
File "/usr/local/lib/python3.14/site-packages/pyarrow/pandas_compat.py", line 622, in convert_column
result = pa.array(col, type=type_, from_pandas=True, safe=safe)
File "pyarrow/array.pxi", line 365, in pyarrow.lib.array
File "pyarrow/array.pxi", line 91, in pyarrow.lib._ndarray_to_array
check_status(NdarrayToArrow(pool, values, mask, from_pandas,
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowTypeError: ("Expected bytes, got a 'int' object", 'Conversion failed for column match_round with type object')Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
AFL Player Match Statistics, 2000–2023
206,722 player-match records from 4,670 AFL games across 24 seasons, with match context, weather, attendance and the full advanced statistical suite (pressure acts, contested one-on-ones, metres gained, score involvements, ruck contests) alongside AFL Fantasy and SuperCoach scores.
One row = one player in one match.
| Rows | 206,722 |
| Columns | 81 |
| Matches | 4,670 |
| Players | 2,599 |
| Venues | 27 |
| Seasons | 2000–2023 |
| Format | UTF-8 CSV, comma-delimited, RFC 4180 quoting |
| Size | ~60 MB |
| Licence | CC BY 4.0 |
Why this one
Most public AFL datasets stop at the basic box score — kicks, marks, handballs. This one carries the advanced tracking statistics that only became available from the mid-2010s, plus per-match weather and attendance, which makes it usable for venue, fatigue and conditions modelling rather than just counting stats.
Columns
Match context — match_id, match_date, match_local_start, match_round, venue_name,
match_home_team, match_away_team, match_attendance, per-team goals/behinds/score,
match_margin, match_winner, match_weather_temp_c, match_weather_type
Player — player_id, player_first_name, player_last_name, player_team,
player_height_cm, player_weight_kg, player_position, guernsey_number, player_is_retired,
subbed
Core statistics — kicks, marks, handballs, disposals, effective disposals, disposal efficiency, goals, behinds, hitouts, tackles, rebounds, inside fifties, clearances, clangers, free kicks for and against, contested and uncontested possessions, contested marks, marks inside fifty, one percenters, bounces, goal assists, time on ground percentage, Brownlow votes
Advanced — centre and stoppage clearances, score involvements, metres gained, turnovers, intercepts, tackles inside fifty, contested defensive and offensive one-on-ones, defensive-half pressure acts, effective kicks, forward-fifty and general ground ball gets, hitouts to advantage, hitout win percentage, intercept marks, marks on lead, pressure acts, rating points, ruck contests, score launches, shots at goal, spoils
Fantasy — afl_fantasy_score, supercoach_score
Known limitations — read before modelling
These are honest caveats, not defects to discover later:
- Weather covers 125,278 rows (60.6%), from the 2010 season onward.
match_weather_typeandmatch_weather_temp_care empty for 2000–2009. Do not treat missing weather as "fine conditions". - Advanced statistics begin in 2012, covering ~108,000 rows (52%). Pressure acts, metres gained, score involvements, centre and stoppage clearances and the contest one-on-one family are all empty before the 2012 season, when the AFL's tracking provider introduced them. Core statistics (disposals, marks, tackles, goals, Brownlow votes) cover all 206,722 rows from 2000.
match_local_starthas been reconstructed. The source stored a correct local time-of-day against a constant placeholder date; it has been recombined with the real match date. The time-of-day is as supplied; no timezone conversion has been applied.- Missing values are empty, not
NA. The source used the literal string"NA"; 3.27 million such cells have been converted to true empties so numeric columns parse cleanly. - 2020 was a shortened, relocated season. Match lengths and venues that year are not comparable to the rest of the range.
- Player names are not globally unique; join on
player_id.
Loading
import pandas as pd
df = pd.read_csv("afl_player_games_2000_2023.csv", parse_dates=["match_date", "match_local_start"])
print(df.shape) # (206722, 81)
# Weather-aware subset
wet = df[df["match_weather_type"].notna()]
print(wet.groupby("match_weather_type")["disposals"].mean().sort_values())
library(readr)
df <- read_csv("afl_player_games_2000_2023.csv")
Ideas
- Does rain measurably suppress disposal efficiency, and for which positions?
- Do interstate travelling teams lose more contested possessions late in matches?
- Which advanced statistics actually predict Brownlow votes once you control for team success?
- Venue effects on scoring once weather and attendance are held constant
- Projecting AFL Fantasy and SuperCoach scores from prior-form windows
Provenance and licence
Derived from publicly published AFL match statistics, assembled via the fitzRoy R package and cleaned as described above. Statistics are factual records of public sporting events.
Released under CC BY 4.0 — free to use, including commercially, with attribution.
Attribution: Bet Better — https://betbetter.world
Maintained by Bet Better, which also publishes a free sports model API of win probabilities across nine sports.
This dataset contains no betting odds and no wagering data of any kind.
- Downloads last month
- 62