Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9024881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:08:07+00:00 2026-06-16T06:08:07+00:00

I have a DataFrame object with a datetime as index: In [210]: f f.plot(legend=True)

  • 0

I have a DataFrame object with a datetime as index:

In [210]:
f
f.plot(legend=True)

Out[210]:
                         user_time  sys_time  wait_io_time
date_time                                             
2012-11-01 08:59:27          3         1             0
2012-11-01 08:59:32          0         0             0
2012-11-01 08:59:37         20         2             1
2012-11-01 08:59:42          0         0             0
2012-11-01 08:59:47          0         0             0

f.plot() causes this error:

-> 1367     plot_obj.generate()
--> 674         self._make_plot()
-> 1000             self._make_ts_plot(data, **self.kwds)
---> 81     left, right = _get_xlim(ax.get_lines())
--> 220         left = min(x[0].ordinal, left)
AttributeError: 'numpy.int64' object has no attribute 'ordinal'

I do see one line graph, displaying values from the user_time data, so suspecting that the data values from sys_time may be causing the issue. Following suggestion from https://github.com/pydata/pandas/issues/1737, I installed a newer version of matplotlib (1.1.1) but no luck, and plotting fails on the data from the bug url as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T06:08:09+00:00Added an answer on June 16, 2026 at 6:08 am

    This seems to work with latest matplotlib library installed. I forgot to restart the ipython notebook process or reload the matplotlib after I upgraded it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pandas dataframe object that looks like this: one two three four
I have a pandas DataFrame that has multiple columns in it: Index: 239897 entries,
I have a dataframe with distances df<-data.frame(site.x=c(A,A,A,B,B,C), site.y=c(B,C,D,C,D,D),Distance=c(67,57,64,60,67,60)) I need to convert this to
I have a dataframe x with this values: x1 x2 x3 1 NA 4
I have a dataframe with some numeric columns. Some row has a 0 value
I have a dataframe with over 200 columns. The issue is as they were
I have a dataframe called split2_data (actually a drop-leveled subset of a bigger data
I have the dataframe p3 below: test result 1 1 26.87778 2 1 24.52598
I have a dataframe with measurements stored as a list by row. Subject Measurements
I have a dataframe with numeric entries like this one test <- data.frame(x =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.