pandas issue fix, formatting fixes
This commit is contained in:
1 parent
a8c39310d2
commit
da99a95fd8
12 files changed
+14
-16
No files matched your search
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
Forecast,Chance
|
Forecast,Chance
|
||||||
6-14-15-16-18-22,31/16100
|
3 - 6 - 14 - 18 - 20 - 25,71/35420
|
||||||
|
@@ -43,7 +43,7 @@ for n in range(0, 25):
|
|||||||
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
||||||
total_freq = sum(frequency)
|
total_freq = sum(frequency)
|
||||||
Chance = frac(total_freq, 177100) # Chance = number call freq / all possible numbers i.e. 177100
|
Chance = frac(total_freq, 177100) # Chance = number call freq / all possible numbers i.e. 177100
|
||||||
Forecast = str("-".join(sorted_nums))
|
Forecast = str(" - ".join(sorted_nums))
|
||||||
|
|
||||||
#print(f"Likely numbers are . . . {Forecast} \n"
|
#print(f"Likely numbers are . . . {Forecast} \n"
|
||||||
#f"With percent chance of winning being {Chance}")
|
#f"With percent chance of winning being {Chance}")
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
Forecast,Chance
|
Forecast,Chance
|
||||||
2-3-6,171/250
|
2 - 3 - 6,10379/15000
|
||||||
|
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
Forecast,Chance
|
Forecast,Chance
|
||||||
3-4-8-9,33/625
|
1 - 3 - 4 - 8,137/2500
|
||||||
|
@@ -39,7 +39,7 @@ for n in range(0, 10):
|
|||||||
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
||||||
total_freq = sum(frequency)
|
total_freq = sum(frequency)
|
||||||
Chance = frac(total_freq, 15000) # Chance = number call freq / all possible numbers i.e. 1000
|
Chance = frac(total_freq, 15000) # Chance = number call freq / all possible numbers i.e. 1000
|
||||||
Forecast = str("-".join(sorted_nums))
|
Forecast = str(" - ".join(sorted_nums))
|
||||||
|
|
||||||
#print(f"Likely numbers are . . . {Forecast} \n"
|
#print(f"Likely numbers are . . . {Forecast} \n"
|
||||||
#f"With percent chance of winning being {Chance}")
|
#f"With percent chance of winning being {Chance}")
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ for n in range(0, 9):
|
|||||||
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
||||||
total_freq = sum(frequency)
|
total_freq = sum(frequency)
|
||||||
Chance = frac(total_freq, 10000) # Chance = number call freq / all possible numbers i.e. 10000
|
Chance = frac(total_freq, 10000) # Chance = number call freq / all possible numbers i.e. 10000
|
||||||
Forecast = str("-".join(sorted_nums))
|
Forecast = str(" - ".join(sorted_nums))
|
||||||
|
|
||||||
#print(f"Likely numbers are . . . {Forecast} \n"
|
#print(f"Likely numbers are . . . {Forecast} \n"
|
||||||
#f"With percent chance of winning being {Chance}")
|
#f"With percent chance of winning being {Chance}")
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
Forecast,SB,Chance
|
Forecast,SB,Chance
|
||||||
1-29-32-48-52,[2],149/25989600
|
14 - 17 - 32 - 48 - 52,[10],79/12994800
|
||||||
|
+3
-5
@@ -12,13 +12,11 @@ def get_data():
|
|||||||
|
|
||||||
url = 'https://wvlottery.com/draw-games/lotto-america/?game-analyze=lotto-america&what-to-search=historysearch&date-range=-1'
|
url = 'https://wvlottery.com/draw-games/lotto-america/?game-analyze=lotto-america&what-to-search=historysearch&date-range=-1'
|
||||||
header = {
|
header = {
|
||||||
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36",
|
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0",
|
||||||
"X-Requeste, 'PPX', 'Winners WV Only', 'Payout WV Onlyd-With": "XMLHttpRequest"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get web data
|
# Get web data
|
||||||
r = requests.get(url, headers=header)
|
dfs = list(pd.read_html(requests.get(url, headers=header).text))
|
||||||
dfs = list(pd.read_html(r.text))
|
|
||||||
pd.set_option('display.max_rows', None)
|
pd.set_option('display.max_rows', None)
|
||||||
# Specifies no max rows, otherwise only shows 10 records
|
# Specifies no max rows, otherwise only shows 10 records
|
||||||
df = pd.concat([dfs[0], salvaged], ignore_index=True)
|
df = pd.concat([dfs[0], salvaged], ignore_index=True)
|
||||||
@@ -50,7 +48,7 @@ for n in range(0, 10):
|
|||||||
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
||||||
total_freq = sum(frequency + frequency_sb)
|
total_freq = sum(frequency + frequency_sb)
|
||||||
Chance = frac(total_freq, 25989600) # Chance = number call freq / all possible numbers i.e. 25,989,600
|
Chance = frac(total_freq, 25989600) # Chance = number call freq / all possible numbers i.e. 25,989,600
|
||||||
Forecast = str("-".join(sorted_nums))
|
Forecast = str(" - ".join(sorted_nums))
|
||||||
|
|
||||||
#print(f"Likely numbers are . . . {Forecast} SB: {SB}\n"
|
#print(f"Likely numbers are . . . {Forecast} SB: {SB}\n"
|
||||||
#f"With percent chance of winning being {Chance}")
|
#f"With percent chance of winning being {Chance}")
|
||||||
|
|||||||
+1
-1
@@ -48,7 +48,7 @@ for n in range(0, 26):
|
|||||||
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
||||||
total_freq = sum(frequency + frequency_pb)
|
total_freq = sum(frequency + frequency_pb)
|
||||||
Chance = frac(total_freq, 292201338) # Chance = number call freq / all possible numbers i.e. 292201338
|
Chance = frac(total_freq, 292201338) # Chance = number call freq / all possible numbers i.e. 292201338
|
||||||
Forecast = str("-".join(sorted_nums))
|
Forecast = str(" - ".join(sorted_nums))
|
||||||
|
|
||||||
#print(f"Likely numbers are . . . {Forecast} PB: {PB}\n"
|
#print(f"Likely numbers are . . . {Forecast} PB: {PB}\n"
|
||||||
#f"With percent chance of winning being {Chance}")
|
#f"With percent chance of winning being {Chance}")
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ for n in range(0, 25):
|
|||||||
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
sorted_nums = sorted(likely_nums, key=lambda x: (len(x), x))
|
||||||
total_freq = sum(frequency + frequency_mb)
|
total_freq = sum(frequency + frequency_mb)
|
||||||
Chance = frac(total_freq, 302575350) # Chance = number call freq / all possible numbers i.e. 11238513
|
Chance = frac(total_freq, 302575350) # Chance = number call freq / all possible numbers i.e. 11238513
|
||||||
Forecast = str("-".join(sorted_nums))
|
Forecast = str(" - ".join(sorted_nums))
|
||||||
|
|
||||||
#print(f"Likely numbers are . . . {Forecast} MB: {MB}\n"
|
#print(f"Likely numbers are . . . {Forecast} MB: {MB}\n"
|
||||||
#f"With percent chance of winning being {Chance}")
|
#f"With percent chance of winning being {Chance}")
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
Forecast,MB,Chance
|
Forecast,MB,Chance
|
||||||
3-7-15-38-64,[9],64/151287675
|
1 - 15 - 29 - 38 - 46,[9],2/4584475
|
||||||
|
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
Forecast,PB,Chance
|
Forecast,PB,Chance
|
||||||
6-33-36-37-56,[18],1/1453738
|
19 - 36 - 37 - 47 - 58,[18],5/7492342
|
||||||
|
Reference in new issue
Block a user