jldbc / jldbc/pybaseball

get_splits() throwing unexpected error

Open
#368 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.