You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@BorjaRei@manwestc , great library you've created! It's so helpful, and I have recently been exploring how to create something similar myself. I'm glad you created it before I did.
I found a small bug that needs fixing. In the model.py the following code generates UnboundLocalError: local variable 'array' referenced before assignment
# Read the CSV
if type(data)==str:
dataset = pd.read_csv(data)
array = dataset.values
elif type(data)==pd:
array = data.values
The elif statement in this code is incorrect. Here's a corrected version:
# Read the CSV
if type(data)==str:
dataset = pd.read_csv(data)
array = dataset.values
elif isinstance(data, pd.DataFrame):
array = data.values
The text was updated successfully, but these errors were encountered:
@BorjaRei @manwestc , great library you've created! It's so helpful, and I have recently been exploring how to create something similar myself. I'm glad you created it before I did.
I found a small bug that needs fixing. In the model.py the following code generates
UnboundLocalError: local variable 'array' referenced before assignment
The elif statement in this code is incorrect. Here's a corrected version:
The text was updated successfully, but these errors were encountered: