jldbc / pybaseball

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
MIT License
1.19k stars 324 forks source link

Labels will be keyword-nly #270

Closed 2Skupz closed 1 year ago

2Skupz commented 2 years ago

Message I get when running from my MacMini (don't get it on a linux computer it seems) /Users/me/Library/Python/3.8/lib/python/site-packages/pybaseball/team_results.py:83: FutureWarning: In a future version of pandas all arguments of DataFrame.drop except for the argument 'labels' will be keyword-only. data = data.drop('Streak2',1) Similarly: data = data.drop('',1) #not a useful column