Python Forum
Replace only '-' values with NaN, don't remove minus sign for negative numbers.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replace only '-' values with NaN, don't remove minus sign for negative numbers.
#3
I think you need regex = True in your replace call for that to work.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Replace only '-' values with NaN, don't remove minus sign for negative numbers. - by ichabod801 - Sep-10-2017, 01:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Replace values in Yaml file with value in dictionary PelleH 0 120 Jun-12-2024, 02:40 PM
Last Post: PelleH
  remove duplicates from dicts with list values wardancer84 27 1,054 May-27-2024, 04:54 PM
Last Post: wardancer84
  negative memory usage akbarza 1 370 Apr-27-2024, 08:43 AM
Last Post: Gribouillis
  Does @ at sign used for tother than decorators? ggpython000 1 619 Oct-12-2023, 09:08 AM
Last Post: buran
  Remove values for weekend in a panda series JaneTan 0 755 Dec-12-2022, 01:50 AM
Last Post: JaneTan
  Remove numbers from a list menator01 4 1,546 Nov-13-2022, 01:27 AM
Last Post: menator01
  Getting error when running "MINUS" between 2 databases marlonbown 4 1,415 Nov-10-2022, 05:49 AM
Last Post: deanhystad
  Find and Replace numbers in String giddyhead 2 1,356 Jul-17-2022, 06:22 PM
Last Post: giddyhead
  How to do bar graph with positive and negative values different colors? Mark17 1 5,470 Jun-10-2022, 07:38 PM
Last Post: Mark17
  is there any tool to convert negative base to int? Skaperen 7 2,579 May-27-2022, 07:30 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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