-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
32 lines (24 loc) · 818 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import numpy as np
import pandas as pd
from sqlalchemy import between, column
# df_test = pd.read_csv('/Users/ianjpeck/Documents/GitHub/madden22stats/Files/LogicTest.csv')
# logic_dict = {'ScrimYards':{'tier_0': range(100,250), 'tier_1': range(80,100), 'tier_2': range(60,80),
# 'tier_3': range(40,60), 'tier_4': range(20,40), 'tier_5': range(0,20)}, }
# my_num = 26
# def find_my_tier(num):
# for tier, range in logic_dict['ScrimYards'].items():
# if num in range:
# return tier
# else:
# continue
# print(find_my_tier(my_num))
# df_new = df_test.drop(columns='StatValue')
# print(df_new.set_index('StatRange').to_dict())
# my_num = .85
# if my_num in np.arange(0,1,.01):
# print('True')
high = 4
low = 4
num = 4
if num <= high and num >= low:
print(True)