rajistics philschmid HF staff commited on
Commit
1e43c5c
1 Parent(s): b5c7a55

Update handler.py (#1)

Browse files

- Update handler.py (e01039cabaad6e7a64667038b465bcb649b8be46)


Co-authored-by: Philipp Schmid <[email protected]>

Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -22,7 +22,7 @@ class EndpointHandler():
22
  """
23
  inputs = data.pop("inputs", data)
24
  parameters = data.pop("parameters", None)
25
- df = pd.DataFrame(data)
26
 
27
  df["TotalCharges"] = df["TotalCharges"].replace(" ", np.nan, regex=False).astype(float)
28
  df = df.drop(columns=["customerID"])
 
22
  """
23
  inputs = data.pop("inputs", data)
24
  parameters = data.pop("parameters", None)
25
+ df = pd.DataFrame(inputs)
26
 
27
  df["TotalCharges"] = df["TotalCharges"].replace(" ", np.nan, regex=False).astype(float)
28
  df = df.drop(columns=["customerID"])