OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

TypeError: line() got an unexpected keyword argument 'markers'

  • Thread starter Thread starter al rein
  • Start date Start date
A

al rein

Guest
I'm trying to use "markers" for the line function with plotly 5.4.0

Code:
import plotly.express as px

df_temp =  df_temp[df_temp.date_str.isin(selected_dates)]
        fig = px.line(df_temp, x='trialID', y='reaction_time', color='date_str', markers=True,
                         title=f'Graph2. Intervention status: {status}')

i get the error:

Code:
TypeError: line() got an unexpected keyword argument 'markers'

i read that it's about an update but i don't think it's that. does anyone know what it could be?
<p>I'm trying to use "markers" for the line function with plotly 5.4.0</p>
<pre><code>import plotly.express as px

df_temp = df_temp[df_temp.date_str.isin(selected_dates)]
fig = px.line(df_temp, x='trialID', y='reaction_time', color='date_str', markers=True,
title=f'Graph2. Intervention status: {status}')
</code></pre>
<p>i get the error:</p>
<pre><code>TypeError: line() got an unexpected keyword argument 'markers'
</code></pre>
<p>i read that it's about an update but i don't think it's that. does anyone know what it could be?</p>
 
Top