wenjiez / pokemongo Goto Github PK
View Code? Open in Web Editor NEWUsing Nash Equlibrium to build minimalist PvE lists for Pokémon GO.
Home Page: http://www.zhengwenjie.net/pokemon-meta-list/
Using Nash Equlibrium to build minimalist PvE lists for Pokémon GO.
Home Page: http://www.zhengwenjie.net/pokemon-meta-list/
Fresh install of python 3.7.2
After pip installing numpy and pandas
you will need to all pip install xlrd
Title
on pandas 0.23.4 (as that is what seems to work)
C:\Python3\python.exe pokemongo.py
pokemongo.py:35: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Name'] = pokemon.index[-1]
pokemongo.py:36: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Fast'] = species_moves.iloc[i, j]
pokemongo.py:37: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Charge'] = species_moves.iloc[i, k]
pokemongo.py:38: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Type_F'] = moves.loc[pokemon.iloc[-1].Fast].Type
pokemongo.py:39: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Type_C'] = moves.loc[pokemon.iloc[-1].Charge].Type
pokemongo.py:40: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Power1'] = moves.loc[pokemon.iloc[-1].Fast].Power
pokemongo.py:41: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Energy1'] = moves.loc[pokemon.iloc[-1].Fast].Energy
pokemongo.py:42: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Time1'] = moves.loc[pokemon.iloc[-1].Fast].Duration
pokemongo.py:43: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Stab1'] = 1.2 if pokemon.iloc[-1].Type_F in (pokemon.iloc[-1].Type1, pokemon.iloc[-1].Type2) else 1
pokemongo.py:44: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Power2'] = moves.loc[pokemon.iloc[-1].Charge].Power
pokemongo.py:45: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Energy2'] = moves.loc[pokemon.iloc[-1].Charge].Energy
pokemongo.py:46: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
pokemon.ix[-1, 'Time2'] = moves.loc[pokemon.iloc[-1].Charge].Duration
pokemongo.py:47: DeprecationWarning:
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing
python 3.7.2
Successfully installed pandas-0.24.2 python-dateutil-2.8.0 pytz-2018.9 six-1.12.0
Will result in a column mismatch error when running.
C:\Python3\python.exe pokemongo.py Traceback (most recent call last): File "pokemongo.py", line 7, in , skiprows=[163], usecols=[4, 9, 16, 17, 19, 20, 21], names=['Final', 'Type1','Type2','Atk','Def','Sta']) File "C:\Python3\lib\site-packages\pandas\util_decorators.py", line 188, in wrapper return func(args, *kwargs)
raise ValueError('Number of passed names did not match '
From the reddit thread, pandas 0.23.4 is what you used but did not specify that version in the requirements.
That version works.
I would make a requirements.txt so others will not run into this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.