Spaces:
Build error

jskinner215 commited on
Commit
515be2e
·
1 Parent(s): c1ca766

more iloc errors and (str)

Browse files

The iloc operation seems to be returning a single value (in this case, a string) rather than a Series or DataFrame. This is why you're seeing the error 'str' object has no attribute 'values'.
The error iloc cannot enlarge its target object suggests that we're trying to access an index that might be out of bounds.
Based on these issues, I propose the following adjustments:

Replace .values with .item() for scalar values, which will safely convert single values to their respective native Python types.
Add some additional checks and logging to understand the shape and type of data you're working with.

1 file changed +16 -10
app.py+16-10