calv84
-
Posts
2 -
Joined
-
Last visited
Content Type
Forums
Articles
FAQs
Online Manual
Support: Blocks
Support: Games
Bug Tracker
SIGames Manual (beta)
Profiles
Posts posted by calv84
-
-
Hi guys
I've been trying to teach myself Python over the last few weeks and fm seemed to be a good place to start, and this thread has been a big inspiration for me and I refer back to it every couple days.
My goal is to ultimately unearth good value players from scouting only in game statistics not attributes.
An issue that i have run into is converting the Value string into a usable float. The way the value data is extracted from the game makes it incredibly difficult (for my simple mind) to apply a set of rules to convert it into usable data.
Hopefully below will highlight the issue i'm running into.
The way I had been looking to take the issue is to replace K or M with a set number of 0's and remove the non-numeric characters. This is obviously isn't going to work due to the structure of the exported data. For example if i replaced M with 000000 i would receive:
- 2m = 2000000
- 7.5m = 75000000
- 9.75m = 975000000
Can anyone tell me how they have solved this? Or if there is a different field available? I'm really not keen on this being a manual process.
0
Analysing FM20 with Python
in Football Manager General Discussion
Posted
Of course...
I'll give that a go. Thank you.