✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
📊 Dash 2.0 is Arriving. Register here.

Invalid value of type 'pandas.core.series.Series' received for the 'x' property of scatter

Hi Folks,

New to this, so hoping someone can explain this error message, point me in the right direction?

Invalid value of type ‘pandas.core.series.Series’ received for the ‘x’ property of scatter
_ Received value: <class ‘pandas.core.series.Series’>_

_ The ‘x’ property is an array that may be specified as a tuple,_
_ list, numpy array, or pandas Series_

?? - I’m guessing it’s a reference error, pointing at the wrong structure, but I’m not getting what needs to change to get it right, I’ve searched far and wide and read everything I can find that gets close to it, but I’ve not sorted it out yet.

Obviously what’s being passed is type ‘pandas.core.series.Series’ which I believe echoes “pandas Series” of the choices noted as acceptable to scatter as ‘x’.

So, what’s the issue?

Hopefully these snippets will help, this is what I’m working to resolve,

#Dataframe from JSON received
series0 = jsonDF.loc['__ROW_KEY__']
print("\r\nSeries 00:\r\n", series0, "\r\n:Series 00")

series1 = jsonDF.loc['tls-dimension--1209'].values
print("\r\nSeries 11:\r\n", series1, "\r\n:Series 11")

series2 = jsonDF.loc['tls-dimension--7']
print("\r\nSeries 22:\r\n", series2, "\r\n:Series 22")

series3 = jsonDF.loc['tls-metric--4611']
print("\r\nSeries 33:\r\n", series3, "\r\n:Series 33")

series4 = jsonDF.loc['tls-metric--4612']
print("\r\nSeries 44:\r\n", series4, "\r\n:Series 44")

series5 = jsonDF.loc['tls-metric--4657']
print("\r\nSeries 55:\r\n", series5, "\r\n:Series 55")

series6 = jsonDF.loc['_drilldown']
print("\r\nSeries 66:\r\n", series6, "\r\n:Series 66")

                html.H6("Monthly Conversion Rate",
                        className="gs-header gs-table-header padded"),
                        'data': [
                                **y = series3,**
                                **x = series2,**
                                #y = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
                                #x = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],
                                #x = [".090", ".110", ".120", ".125", ".127", ".129", ".131", ".134", ".136", ".131", ".139", ".142"],
                                line = {"color": "rgb(53, 83, 255)"},
                                mode = "lines",
                                name = "Monthly Conversion Rate"
                        'layout': go.Layout(


best for #api:python