Created
April 14, 2021 00:43
-
-
Save AviSoori1x/80e5e10469079f3ba12c735f9a9f5d63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def score(samplepd): | |
s.upload(samplepd,casout={'name' : 'realtime', 'caslib' : 'public','replace' : True}) | |
s.aStore.score(rstore = {"caslib":"public","name":"hmeqTestAstore"}, | |
table = {"caslib":'public',"name":'realtime'}, | |
out = {"caslib":'public',"name":'realscore', 'replace':True}) | |
scoredData = s.CASTable(name='realscore',caslib='public') | |
datasetDict = scoredData.to_dict() | |
scores = pd.DataFrame(datasetDict, index=[0]) | |
return scores |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment