Series of hv objects - `NotImplementedError: Iteration on Elements is not supported.`

Hi,

Hope you are all well.

I think I used to be able to make a Pandas series of hv objects but now I get an error. Am I doing something wrong?



import holoviews as hv
import pandas as pd


def f(x):
    return hv.Curve([1,2])

pd.DataFrame([999,1000]).apply(f, axis=1)

C:\ProgramData\Anaconda3\envs\kitchen_sink\lib\site-packages\holoviews\core\element.py in __iter__(self)
     94     def __iter__(self):
     95         "Disable iterator interface."
---> 96         raise NotImplementedError('Iteration on Elements is not supported.')
     97 
     98 

NotImplementedError: Iteration on Elements is not supported.```


HoloViews version

'1.14.6'

Pandas 

'1.3.4'