title: Python DataFrame or list for storing objects
body: <p>Can I "store" instances of class in pandas/numpy Series-DataFrame/ndarray
  just like I do in list? Or these libraries support on built-in types (numerics, strings).</p>
  
  <p>For example I have <code>Point</code> with <code>x,y</code> coordinates, and I want to store <code>Points</code> in <code>Plane</code>, that would return <code>Point</code> with given coordinates.</p>
  
  <pre><code>#my class
  class MyPoint:
  
      def __init__(self, x,y):
          self.x = x
          self.y = y
  
      @property
      def x(self):
          return self.x
  
      @property
      def y(self):
          return self.y
  </code></pre>
  
  <p>Here I create instances:</p>
  
  <pre><code>first_point = MyClass(1,1)
  second_point = MyClass(2,2)
  </code></pre>
  
  <p>I can store instances in some list</p>
  
  <pre><code>my_list = []
  my_list.append(first_point)
  my_list.append(second_point)
  </code></pre>
  
  <p>The problem in list is that it's indexes do not correspond to x,y properties.</p>
  
  <p>Dictionary/DataFrame approach:</p>
  
  <pre><code>Plane = {"x" : [first_point.x, second_point.x], "y" : [first_point.y, second_point.y], "some_reference/id_to_point_instance" = ???}
  Plane_pd = pd.DataFrame(Plane)
  </code></pre>
  
  <p>I've read posts, that using "id" of instance as third column value in DataFrame could cause problems with the garbage collector. </p>