title: How to graph only time data with 12 hour format in python
body: <p>I'm new to python and need to create a graph that will show times in a 12 hour format on a daily basis.</p>
  <p>The message dict will contain the following:</p>
  <pre><code>&quot;messages&quot;: [
  {
  &quot;timeStamp&quot;: &quot;Aug 17, 02:29 PM&quot;,
  &quot;summary&quot;: &quot;Could not reach the endpoint&quot;,..
  </code></pre>
  <p>I want the graph to show the day of the week in a 12-hour format on the side, with the time of the error represented in the graph for each day.</p>
  <pre><code>df = pd.DataFrame(msg_output_dict2)
  df
  
      appcheck name   msgdate  msgtime    DayofWeek   summary
  0   AdminTool Pxy   Aug 17  12:11 AM    Wed    Could not reach the endpoint
  1   AdminTool Pxy   Aug 17  12:25 AM    Wed    Could not reach the endpoint
  2   AdminTool Pxy   Aug 17  12:40 AM    Wed    Could not reach the endpoint
  ... ... ... ... ... ... ...
  1744 RecallService  Aug 23, 11:32 AM    Tue    Could not reach the endpoint
  1745 rows × 5 columns
  </code></pre>
  <p><strong>I'm using Scatter graph:</strong></p>
  <pre><code>fig = px.scatter(df, x=&quot;DayofWeek&quot;, y=&quot;msgtime&quot;, color=&quot;appcheck name&quot;, symbol=&quot;appcheck name&quot;)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/6aX6g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6aX6g.png" alt="enter image description here" /></a></p>
  <p>Instead of showing the msgtime as the y axis, I would like to show a 12 hour time format, with the msgtime data shown in the graph for each day.</p>
  <p>Any help is appreciated. Thanks.</p>