Python Forum
Replacing values for specific columns in Panda data structure
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replacing values for specific columns in Panda data structure
#2
You guys are slow.

#Replace invalid grades with Nans

Data.iloc[:,2:] = Data.iloc[:,2:].where((Data < 12) & (Data > -3))
Reply


Messages In This Thread
RE: Replacing values for specific columns in Panda data structure - by Padowan - Nov-27-2017, 08:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Data structure question standenman 1 669 Jun-04-2023, 11:51 AM
Last Post: jefsummers
  Sorting data by specific variables using argparse Bearinabox 5 1,444 Jan-01-2023, 07:44 PM
Last Post: Bearinabox
  Training a model to identify specific SMS types and extract relevant data? lord_of_cinder 0 997 Oct-10-2022, 04:35 AM
Last Post: lord_of_cinder
  Remove specific values from dataframe jonah88888 0 1,729 Sep-24-2021, 05:09 AM
Last Post: jonah88888
  Replacing "." in columns donnertrud 1 2,268 Jul-26-2021, 07:15 AM
Last Post: warnerarc
  Adding a new column to a Panda Data Frame rsherry8 2 2,146 Jun-06-2021, 06:49 PM
Last Post: jefsummers
  import columns of data from local csv file CatherineKan 2 3,374 May-10-2021, 05:10 AM
Last Post: ricslato
  pandas.to_datetime: Combine data from 2 columns ju21878436312 1 2,477 Feb-20-2021, 08:25 PM
Last Post: perfringo
  how to filter data frame dynamically with the columns psahay 0 2,421 Aug-24-2020, 01:10 PM
Last Post: psahay
  Can the data types be different for different columns? Robotguy 2 2,131 Aug-19-2020, 09:24 PM
Last Post: Robotguy

Forum Jump:

User Panel Messages

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