User Profile

Collapse

Profile Sidebar

Collapse
pythoneer
pythoneer
Last Activity: May 31 '18, 02:21 AM
Joined: May 30 '18
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I want to take every Flip value from second list and subtract that with all the Flip values of first list and insert the corresponding key value pair into first list where the difference between the values is lesser this is to maintain the order of first list values(as they are already sorted)
    See more | Go to post

    Leave a comment:


  • Create a new list from 2 lists of ordereddict after custom sort

    I have 2 lists of ordereddict which i fetch from DB through a function and they look like below

    Code:
    **First list printed output:**
    
        OrderedDict([('Items', '1'), ('Itemspaid', 'Rutr'), ('First', 'Het'), ('Second', 'Fru'), ('Third', 'yurn'), ('Flip', 223.513353868968)])
        OrderedDict([('Items', '2'), ('Itemspaid', 'Rutr'), ('First', 'Het'), ('Second', 'Fru'), ('Third', 'yurn'), ('Flip', 243.513353868968)])
    ...
    See more | Go to post
No activity results to display
Show More
Working...