python - How to return an alternate column element from the intersect command? -


I am currently using the following code to get the intersection date column of two sets of financial data. Intersect the difference in the interval of the mortgage gap (seq1, seq2): res = [] # in the seq1 for start xq: # in the date, the date, o, h, l, cl

  # Scan Seq1 if x in seq2: # normal item? Res.append (x) Returns x = intersect (seta [, 0], setb [, 0]) # Mixed type print x  

The problem is that only the column for which it Both, i.e., found the intersection of the date column. I want to return it to a different column ARAC, in any way, including the CLS values ​​of each set ... i.e. if the date is both the same then 2X1 array will return to two similar SLS columns. any idea? Thank you.

How is it:

  def intersect (seq1, seq2) : If CEC 1 [0] == CEC 2 [0]: # Return of the date column return (Ceik 1 [4], Seek 2 [4]) # Return with 2-Tulle CLS value  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -