diff --git a/c25_ans.csv b/c25_ans.csv index f23391e..33f2c2e 100644 --- a/c25_ans.csv +++ b/c25_ans.csv @@ -1,2 +1,2 @@ -Winning_Numbers,Chance -14-16-18-2-22-9,171/88550 +Forecast,Chance +14-15-16-22-25-6,17/8855 diff --git a/cash25.py b/cash25.py index fcbc2b8..98bc4cd 100755 --- a/cash25.py +++ b/cash25.py @@ -17,10 +17,10 @@ def get_data(): # Get web data r = requests.get(url, headers=header) - dfs = pd.read_html(r.text) + dfs = list(pd.read_html(r.text)) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records - df = dfs[0].append(salvaged, ignore_index=True) + df = pd.concat([dfs[0], salvaged], ignore_index=True) df2 = df[['Date', 'Numbers']] date = list(df2['Date']) nums = list(df2['Numbers'].astype('str')) @@ -43,13 +43,13 @@ for n in range(0, 25): sorted_nums = sorted(likely_nums) total_freq = sum(frequency) Chance = frac(total_freq, 177100) # Chance = number call freq / all possible numbers i.e. 177100 -Winning_Numbers = str("-".join(sorted_nums)) +Forecast = str("-".join(sorted_nums)) -#print(f"Likely numbers are . . . {Winning_Numbers} \n" +#print(f"Likely numbers are . . . {Forecast} \n" #f"With percent chance of winning being {Chance}") -d = dict(((k, eval (k)) for k in ('Winning_Numbers','Chance'))) -h = 'Winning_Numbers', 'Chance' +d = dict(((k, eval (k)) for k in ('Forecast','Chance'))) +h = 'Forecast', 'Chance' f = open('c25_ans.csv', 'w', encoding='utf_8') writer = csv.DictWriter(f, fieldnames=h) writer.writeheader() diff --git a/d3_ans.csv b/d3_ans.csv index a65af5f..02650c6 100644 --- a/d3_ans.csv +++ b/d3_ans.csv @@ -1,2 +1,2 @@ -Winning_Numbers,Chance -2-3-6,10123/15000 +Forecast,Chance +2-3-6,3419/5000 diff --git a/d4_ans.csv b/d4_ans.csv index ea3af1b..fb2810e 100644 --- a/d4_ans.csv +++ b/d4_ans.csv @@ -1,2 +1,2 @@ -Winning_Numbers,Chance -3-5-6-8,27/500 +Forecast,Chance +3-4-8-9,531/10000 diff --git a/daily3.py b/daily3.py index b9c149d..43aa749 100755 --- a/daily3.py +++ b/daily3.py @@ -39,13 +39,13 @@ for n in range(0, 10): sorted_nums = sorted(likely_nums) total_freq = sum(frequency) Chance = frac(total_freq, 15000) # Chance = number call freq / all possible numbers i.e. 1000 -Winning_Numbers = str("-".join(sorted_nums)) +Forecast = str("-".join(sorted_nums)) -#print(f"Likely numbers are . . . {Winning_Numbers} \n" +#print(f"Likely numbers are . . . {Forecast} \n" #f"With percent chance of winning being {Chance}") -d = dict(((k, eval (k)) for k in ('Winning_Numbers','Chance'))) -h = 'Winning_Numbers', 'Chance' +d = dict(((k, eval (k)) for k in ('Forecast','Chance'))) +h = 'Forecast', 'Chance' f = open('d3_ans.csv', 'w', encoding='utf_8') writer = csv.DictWriter(f, fieldnames=h) writer.writeheader() diff --git a/daily4.py b/daily4.py index 9cfa094..9bb1c18 100755 --- a/daily4.py +++ b/daily4.py @@ -16,10 +16,10 @@ def get_data(): } # Get web data r = requests.get(url, headers=header) - dfs = pd.read_html(r.text) + dfs = list(pd.read_html(r.text)) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records - df = dfs[0].append(salvaged, ignore_index=True) + df = pd.concat([dfs[0], salvaged], ignore_index=True) df2 = df[['Date', 'Numbers']] date = list(df2['Date']) nums = list(df2['Numbers'].astype('str')) @@ -42,13 +42,13 @@ for n in range(0, 9): sorted_nums = sorted(likely_nums) total_freq = sum(frequency) Chance = frac(total_freq, 10000) # Chance = number call freq / all possible numbers i.e. 10000 -Winning_Numbers = str("-".join(sorted_nums)) +Forecast = str("-".join(sorted_nums)) -#print(f"Likely numbers are . . . {Winning_Numbers} \n" +#print(f"Likely numbers are . . . {Forecast} \n" #f"With percent chance of winning being {Chance}") -d = dict(((k, eval (k)) for k in ('Winning_Numbers','Chance'))) -h = 'Winning_Numbers', 'Chance' +d = dict(((k, eval (k)) for k in ('Forecast','Chance'))) +h = 'Forecast', 'Chance' f = open('d4_ans.csv', 'w', encoding='utf_8') writer = csv.DictWriter(f, fieldnames=h) writer.writeheader() diff --git a/la_ans.csv b/la_ans.csv index 9ee5753..5afc6ad 100644 --- a/la_ans.csv +++ b/la_ans.csv @@ -1,2 +1,2 @@ -Winning_Numbers,SB,Chance -1-10-32-46-48,[9],47/8663200 +Forecast,SB,Chance +1-14-32-48-52,[2],37/6497400 diff --git a/lotto_america.py b/lotto_america.py index 5de5c95..145a3fc 100755 --- a/lotto_america.py +++ b/lotto_america.py @@ -1,5 +1,5 @@ # WVLottopy: Matteo DiBiagio -#from django_lottopy.lottopy_site.lottopy.lottopy_web_edition.megamil import Winning_Numbers +#from django_lottopy.lottopy_site.lottopy.lottopy_web_edition.megamil import Forecast from fractions import Fraction as frac import pandas as pd import requests @@ -18,10 +18,10 @@ def get_data(): # Get web data r = requests.get(url, headers=header) - dfs = pd.read_html(r.text) + dfs = list(pd.read_html(r.text)) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records - df = dfs[0].append(salvaged, ignore_index=True) + df = pd.concat([dfs[0], salvaged], ignore_index=True) df2 = df[['Date', 'Numbers', 'SB', 'All Star']] date = list(df2['Date']) nums = list(df2['Numbers'].astype('str')) @@ -50,13 +50,13 @@ for n in range(0, 10): sorted_nums = sorted(likely_nums) total_freq = sum(frequency + frequency_sb) Chance = frac(total_freq, 25989600) # Chance = number call freq / all possible numbers i.e. 25,989,600 -Winning_Numbers = str("-".join(sorted_nums)) +Forecast = str("-".join(sorted_nums)) -#print(f"Likely numbers are . . . {Winning_Numbers} SB: {SB}\n" +#print(f"Likely numbers are . . . {Forecast} SB: {SB}\n" #f"With percent chance of winning being {Chance}") -d = dict(((k, eval (k)) for k in ('Winning_Numbers', 'SB', 'Chance'))) -h = 'Winning_Numbers', 'SB', 'Chance' +d = dict(((k, eval (k)) for k in ('Forecast', 'SB', 'Chance'))) +h = 'Forecast', 'SB', 'Chance' f = open('la_ans.csv', 'w', encoding='utf_8') writer = csv.DictWriter(f, fieldnames=h) writer.writeheader() diff --git a/lottopy_pb.py b/lottopy_pb.py index a1c8e71..20be78a 100755 --- a/lottopy_pb.py +++ b/lottopy_pb.py @@ -16,10 +16,10 @@ def get_data(): } # Get web data r = requests.get(url, headers=header) - dfs = pd.read_html(r.text) + dfs = list(pd.read_html(r.text)) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records - df = dfs[0].append(salvaged, ignore_index=True) + df = pd.concat([dfs[0], salvaged], ignore_index=True) df2 = df[['Date', 'Numbers', 'PB', 'PPX', 'Winners WV Only', 'Payout WV Only']] date = list(df2['Date']) nums = list(df2['Numbers'].astype('str')) @@ -48,13 +48,13 @@ for n in range(0, 26): sorted_nums = sorted(likely_nums) total_freq = sum(frequency + frequency_pb) Chance = frac(total_freq, 292201338) # Chance = number call freq / all possible numbers i.e. 292201338 -Winning_Numbers = str("-".join(sorted_nums)) +Forecast = str("-".join(sorted_nums)) -#print(f"Likely numbers are . . . {Winning_Numbers} PB: {PB}\n" +#print(f"Likely numbers are . . . {Forecast} PB: {PB}\n" #f"With percent chance of winning being {Chance}") -d = dict(((k, eval (k)) for k in ('Winning_Numbers', 'PB', 'Chance'))) -h = 'Winning_Numbers', 'PB', 'Chance' +d = dict(((k, eval (k)) for k in ('Forecast', 'PB', 'Chance'))) +h = 'Forecast', 'PB', 'Chance' f = open('pb_ans.csv', 'w', encoding='utf_8') writer = csv.DictWriter(f, fieldnames=h) writer.writeheader() diff --git a/megamil.py b/megamil.py index ec50762..9f1361a 100755 --- a/megamil.py +++ b/megamil.py @@ -18,10 +18,10 @@ def get_data(): # Get web data r = requests.get(url, headers=header) - dfs = pd.read_html(r.text) + dfs = list(pd.read_html(r.text)) pd.set_option('display.max_rows', None) # Specifies no max rows, otherwise only shows 10 records - df = dfs[0].append(salvaged, ignore_index=True) + df = pd.concat([dfs[0], salvaged], ignore_index=True) df2 = df[['Date', 'Numbers', 'MB', 'MP']] date = list(df2['Date']) nums = list(df2['Numbers'].astype('str')) @@ -50,13 +50,13 @@ for n in range(0, 25): sorted_nums = sorted(likely_nums) total_freq = sum(frequency + frequency_mb) Chance = frac(total_freq, 302575350) # Chance = number call freq / all possible numbers i.e. 11238513 -Winning_Numbers = str("-".join(sorted_nums)) +Forecast = str("-".join(sorted_nums)) -#print(f"Likely numbers are . . . {Winning_Numbers} MB: {MB}\n" +#print(f"Likely numbers are . . . {Forecast} MB: {MB}\n" #f"With percent chance of winning being {Chance}") -d = dict(((k, eval (k)) for k in ('Winning_Numbers', 'MB', 'Chance'))) -h = 'Winning_Numbers', 'MB', 'Chance' +d = dict(((k, eval (k)) for k in ('Forecast', 'MB', 'Chance'))) +h = 'Forecast', 'MB', 'Chance' f = open('mm_ans.csv', 'w', encoding='utf_8') writer = csv.DictWriter(f, fieldnames=h) writer.writeheader() diff --git a/mm_ans.csv b/mm_ans.csv index 27cf792..35eb94e 100644 --- a/mm_ans.csv +++ b/mm_ans.csv @@ -1,2 +1,2 @@ -Winning_Numbers,MB,Chance -17-21-3-40-7,[9],131/302575350 +Forecast,MB,Chance +15-21-38-64-7,[9],43/100858450 diff --git a/pb_ans.csv b/pb_ans.csv index 56d42ad..9b9829e 100644 --- a/pb_ans.csv +++ b/pb_ans.csv @@ -1,2 +1,2 @@ -Winning_Numbers,PB,Chance -21-39-48-61-63,[18],193/292201338 +Forecast,PB,Chance +33-36-37-39-6,[18],103/146100669