Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

How Dash Graph communicate With Pandas DataFrame

$
0
0

Hi,

I’m new to Dash and doing some tutorials now.
In one of them there are use of Dataframe.index and Dataframe.Close for the x and y axis.
I tried to google it briefly, but didnt find anything helpful…

The underlying behavior is not fully clear to me, and I will appreciate any comment.
A link will be also be great !

The sample code:

d_dcc.Graph(
       id='example-graph',
       figure={
           'data': [
               {'x': df.index, 'y': df.Close, 'type': 'line', 'name': input_data}
           ],
           'layout': {
               'title': str(input_data + " Stock")
           }
       }
   )

Thanks !

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images