get_splits() throwing unexpected error
Open
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
This happens for quite a few players and it happens over every year
Executing:
`get_splits("kershcl01", 2015)`
Throws:
```
IndexError: single positional indexer is out-of-bounds
at pybaseball\split_stats.py", line 128, in get_splits
data = data.rename(columns=data.iloc[0])
```
Contributor guide
Assessment
This issue has not been assessed yet.