Numpy geomspace gives error

Hi,

First of all, thanks for making Python even more accessible in making simple web app :smiley:
So, when exporting my code into streamlit, i hit the wall when I implement np.geomspace.

ctab_many = np.geomspace(ctab[0],ctab[-1],num=200)

UFuncTypeError: ufunc 'sign' did not contain a loop with signature matching types dtype('<U32') -> dtype('<U32')

The traceback:

File "...\dataframe.py", line 323, in main
    ctab_many = np.geomspace(ctab[0],ctab[-1],num=200)
File "<__array_function__ internals>", line 5, in geomspace
File "...\function_base.py", line 417, in geomspace
    both_negative = (_nx.sign(start) == -1) & (_nx.sign(stop) == -1)

This works just fine in my JupyterNotebook. Maybe some people know or experience the same thing?
Thank you!

Best
iS

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.