![]() ![]() ![]() Further, I think this was supported in a previous pandas version as the error just appeared on an older notebook (if wanted I could try to find out up to which version or you decide it is not supported anymore then I will let shaply and geopandas know). The requested array has an inhomogeneous shape after 1 dimensions. It would be great if the error message would be displayed directly in the notebook or the provided datatype should be supported again.Īs background info: this datatype you will get when working with geopandas ( ) and shaply ( ) and you want to extract the centre coordinates of a geometry. ValueError: setting an array element with a sequence. The Example also includes two solutions to it, but a decent error message still would be nice. The error setting an array element with a sequence occurs when the datatype of all the elements of the numpy array are not the same as the datatype passed to. The resultant array will contain numpy. To fix this, we either need to ensure the elements are of consistent length or set the data type of the array to object. From the notebook inside it looks like the cell is still computing. ValueError: setting an array element with a sequence. Issue 59912 tensorflow/tensorflow GitHub tensorflow tensorflow Notifications Fork 87.9k Star 172k Insights New issue ValueError: setting an array element with a sequence. The error message only appears in the console where the jupyter notebook is running. ValueError: setting an array element with a sequence. If the Example above is running in a jupyter notebook, the notebook gets stuck and no error message is shown. I have confirmed this bug exists on the main branch of pandas. I have confirmed this bug exists on the latest version of pandas. I have checked that this issue has not already been reported. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |