Python Forum
Python 3.10 not happy with Pandas and PyPlot?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python 3.10 not happy with Pandas and PyPlot?
#1
Hi. I've been using the V3.10 of Python. I've been having all sorts of weird errors. The latest is "'NoneType' object is not callable." Given that columns are available in the dataframe I'm working with and that all rows have values, this is not rational.

This evening, I found this comment in Stackoverflow (https://stackoverflow.com/questions/7023...-dataframe):
Quote:Use Python 3.9 (or 3.8, 3.7, 3.6) as it seems like both pandas and plt are not quite ready to be used with Python 3.10

Has anyone else encountered this with 3.10?

Thanks,

Dan.
Reply
#2
(Feb-25-2022, 05:39 AM)Danno Wrote: Hi. I've been using the V3.10 of Python. I've been having all sorts of weird errors. The latest is "'NoneType' object is not callable." Given that columns are available in the dataframe I'm working with and that all rows have values, this is not rational.

This evening, I found this comment in Stackoverflow (https://stackoverflow.com/questions/7023...-dataframe):
Quote:Use Python 3.9 (or 3.8, 3.7, 3.6) as it seems like both pandas and plt are not quite ready to be used with Python 3.10

Has anyone else encountered this with 3.10?

Thanks,

Dan.
I ripped out 3.10 and installed 3.9. That resolved the problem. It looks like 3.10 has a problem with Pandas. At least on a MacBook Pro Max M1.

df_cur['Datetime_Ordinal'] = ((df_cur['DateAndTime'] - np.datetime64('1970-01-01 00:00:00')) / np.timedelta64(1, 'm')).astype('int64')
Since I copied this code from another source, I'm not sure if it's giving the correct answer. That said, at least it does not throw an error in 3.9, unlike 3.10 where it DOES throw an error. Now I keep working to determine if the result is correct.

Hopefully this error will be resolved in the future.

Regards,

Dan.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is Matplotlib.pyplot Loaded DaveG 2 1,330 Apr-06-2022, 06:12 AM
Last Post: DaveG
  matplotlib.pyplot.show Alienspecimen 2 2,250 Feb-27-2021, 02:32 AM
Last Post: snippsat
  Pyplot graph size TammyP 1 1,769 Jan-26-2021, 02:15 PM
Last Post: TammyP
  Understanding The Arguments for matplotlib.pyplot.plot JoeDainton123 0 1,935 Aug-19-2020, 01:19 AM
Last Post: JoeDainton123
  Pyplot and circle Reldaing 0 1,489 Apr-01-2020, 10:44 AM
Last Post: Reldaing
  .pyplot has not attribute zlim SchroedingersLion 5 9,910 Aug-25-2018, 01:31 PM
Last Post: SchroedingersLion
  Plot a graph using matplotlib.pyplot Tibas 1 3,475 Feb-23-2018, 10:47 AM
Last Post: Tibas

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020