GithubHelp home page GithubHelp logo

owenauch / nba-fantasy-optimizer Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 13.0 59 KB

NBA Daily Fantasy Lineup Optimizer for FanDuel Using Python

Python 100.00%
basketball fanduel fantasy nba python scraping statistics

nba-fantasy-optimizer's People

Contributors

jmbeach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nba-fantasy-optimizer's Issues

Error message when trying to run program

Traceback (most recent call last):
File "/home/elwill/NBA-Fantasy-Optimizer-master/NBAFantasyStats.py", line 392, in
season_desc_df = get_desc_stats(season_df)
File "/home/elwill/NBA-Fantasy-Optimizer-master/NBAFantasyStats.py", line 140, in get_desc_stats
means = means.rename ("mean")
File "/usr/lib/python2.7/dist-packages/pandas/core/series.py", line 2264, in rename
return super(Series, self).rename(index=index, **kwargs)
File "/usr/lib/python2.7/dist-packages/pandas/core/generic.py", line 606, in rename
result._data = result._data.rename_axis(f, axis=baxis, copy=copy)
File "/usr/lib/python2.7/dist-packages/pandas/core/internals.py", line 2588, in rename_axis
obj.set_axis(axis, _transform_index(self.axes[axis], mapper))
File "/usr/lib/python2.7/dist-packages/pandas/core/internals.py", line 4391, in _transform_index
items = [func(x) for x in index]
TypeError: 'str' object is not callable

pretty lineup empty

hello,

I m using your script in python 3.7.1 and when I run the script with idle I got this

Fetching NBA statistics and determining optimal lineup...

pretty_lineup
Are any of the players in this lineup injured? (y/n)

I also reworked the script for this new version of python and made some changes

-urllib2 change to urllib.request

-tabify all regions 8

  • all lines with print (" ")

after that's I got no errors , could you help me ?

regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.