Bottom Page

Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Remove Rows based on condition
#1
Hello,
I am totally new to python and not sure this is the correct place to ask a question.
I want to remove receipts which have opposite values (Y vs N,1 vs -1 etc.).if each receipt's row has opposite row. I.e. if also will be row 500.2 (with any content) - receipt 500 will not be removed.
Does any suggest me the best way to do with python script? I am a power bi developer and power bi accept python script.
Please see below link for data set and expected result.

<a href="http://tinypic.com?ref=2w1w9d4" target="_blank"><img src="http://i67.tinypic.com/2w1w9d4.png" border="0" alt="Image and video hosting by TinyPic"></a>

İmage
Quote
#2
for your post, you need to provide:
  • What you have tried so far (show best attempt code)
  • where the data is coming from, and how it's being displayed
  • Your operating system, python version and what packages are being used.
  • Anything else needed to duplicate starting point
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to remove empty struct from matlab file in python? python_newbie09 0 58 Yesterday, 12:13 PM
Last Post: python_newbie09
  hatching based of maximum of 3 different arrays Staph 1 56 Jun-24-2019, 02:42 PM
Last Post: ThomasL
  Remove \n from list of values within a pandas columns klllmmm 2 80 Jun-24-2019, 05:16 AM
Last Post: klllmmm
  Remove \n at the end of a character from a list judkil 2 68 Jun-24-2019, 12:15 AM
Last Post: DeaD_EyE
  my openpyxl use is too slow, am I reading rows incorrectly? Clunk_Head 1 84 Jun-12-2019, 11:48 PM
Last Post: Clunk_Head
  Create new list from another list based on condition khalidreemy 1 86 Jun-11-2019, 10:21 AM
Last Post: buran
  Mysql returning number of rows not data AkaAndrew123 4 296 Jun-10-2019, 02:31 PM
Last Post: AkaAndrew123
  Pandas find the most often rows dervast 1 64 Jun-07-2019, 01:55 PM
Last Post: ichabod801
  remove tags from BeautifulSoup result moski 1 101 Jun-05-2019, 01:47 PM
Last Post: heiner55
  How to iterate over the pandas rows SriMekala 3 161 Jun-04-2019, 12:36 PM
Last Post: SriMekala

Forum Jump:


Users browsing this thread: 1 Guest(s)