Python Forum
Organizing the output of 2 for loops
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Organizing the output of 2 for loops
#5
This will take care of merging - without sorting
pandas.merge(source1, source2, how='outer', right_index=True, left_index=True)


Talking of your code
  1. io is a name of a standard module (and 2-letter names are not much better than 1 letter)
  2. The error message explains exactly what your problem is. You may look at list.extend
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
Organizing the output of 2 for loops - by pythoneer - May-19-2018, 04:53 AM
RE: Organizing the output of 2 for loops - by volcano63 - May-20-2018, 09:56 AM

Forum Jump:

User Panel Messages

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