Pandas -> JSON -> pandas -> plotly: Can I skip the second conversion?

Iā€™m opening my data with Pandas, converting the dataframe to a JSON string to store it in a dcc.Store, and then reconverting it back to a dataframe and then plotting it.

eg:

df = pd.read_file("data.txt")
store = df.to_json(orient='split', date_format='iso')
plot_df = store.read_json(data[pattern], orient="split")

trace = go.Scattergl(plot_df["x2_ordinate"], plot_df["y3_ordinate"])
layout = go.layout(......)

I have several columns in my data that I need to be able to choose from to plot as both x and y ordinates.

Is there a way to skip that last conversion from JSON to dataframe, and pass the JSON directly to plotly?