Python Forum
ValueError: Input contains infinity or a value too large for dtype('float64')
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ValueError: Input contains infinity or a value too large for dtype('float64')
#2
Pandas is very flexible. So, you don't need to use Imputer, just do this work with Pandas:

dataset.fillna(dataset.mean(), inplace=True)
Reply


Messages In This Thread
RE: ValueError: Input contains infinity or a value too large for dtype('float64') - by scidam - Apr-06-2019, 11:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  FutureWarning: Logical ops (and, or, xor) between Pandas objects and dtype-less seque NewBiee 5 1,490 Sep-12-2023, 03:15 PM
Last Post: deanhystad
  ValueError: Found input variables with inconsistent numbers of samples: [5, 6] bongielondy 6 25,311 Jun-28-2021, 05:23 AM
Last Post: ricslato
  numpy.float64 object is not iterable jcdr91 1 13,148 Apr-22-2020, 04:09 PM
Last Post: jefsummers
  ValueError: Found input variables with inconsistent numbers of sample robert2joe 0 4,213 Mar-25-2020, 11:10 AM
Last Post: robert2joe
  ValueError: Found input variables AhmadMWaddah 3 3,665 Mar-03-2020, 10:19 PM
Last Post: AhmadMWaddah
  Data dtype error according to the rule "safe" AndreasMavro 5 9,015 Feb-27-2020, 10:46 PM
Last Post: Pama
  dtype in not working in mad() function ift38375 8 3,839 Jul-22-2019, 02:53 AM
Last Post: scidam
  ValueError: Buffer dtype mismatch, expected 'Python object' but got 'long long' MaJeFi 2 12,404 Mar-20-2019, 06:00 AM
Last Post: MaJeFi
  ValueError: could not broadcast input array from shape (75) into shape (25) route2sabya 0 6,444 Mar-14-2019, 01:14 PM
Last Post: route2sabya
  ValueError: Found input variables with inconsistent numbers of samples: [0, 3] ayaz786amd 2 9,570 Nov-27-2018, 07:12 AM
Last Post: ayaz786amd

Forum Jump:

User Panel Messages

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