Getting same Error for any python command 'If using all scalar values, you must pass an index'

I keep getting same error for any python command.

Traceback (most recent call last):
File “c:\Users\Shantaram.Nadkarni\Downloads\DA\ALGO\sample.py”, line 14, in
get_holdings(dhan)
~~~~~~~~~~~~^^^^^^
File “c:\Users\Shantaram.Nadkarni\Downloads\DA\ALGO\sample.py”, line 11, in get_holdings
holdings = pd.DataFrame(data_holdings[‘data’])
File “C:\Users\Shantaram.Nadkarni\AppData\Local\Programs\Python\Python313\Lib\site-packages\pandas\core\frame.py”, line 778, in init
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
File “C:\Users\Shantaram.Nadkarni\AppData\Local\Programs\Python\Python313\Lib\site-packages\pandas\core\internals\construction.py”, line 503, in dict_to_mgr
return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
File “C:\Users\Shantaram.Nadkarni\AppData\Local\Programs\Python\Python313\Lib\site-packages\pandas\core\internals\construction.py”, line 114, in arrays_to_mgr
index = _extract_index(arrays)
File “C:\Users\Shantaram.Nadkarni\AppData\Local\Programs\Python\Python313\Lib\site-packages\pandas\core\internals\construction.py”, line 667, in _extract_index
raise ValueError(“If using all scalar values, you must pass an index”)
ValueError: If using all scalar values, you must pass an index

[Done] exited with code=1 in 2.193 seconds