import pandas def predictPosition(fg3a: int, reb: int, blk: int) -> str: if fg3a == None: fg3a = 0 if reb == None: reb = 0 if blk == None: blk = 0 features_df = pandas.DataFrame({'FG3A': [fg3a], 'REB': [reb], 'BLK': [blk]}) return position_classifier.predict(features_df)[0] predictPosition(15, 1, 0)
Hosted onDeepnote