def to_df(self):
df = pd.DataFrame()<EOL>name = []<EOL>band = []<EOL>resolution = []<EOL>mag = []<EOL>e_mag = []<EOL>separation = []<EOL>pa = []<EOL>relative = []<EOL>for o in self._observations:<EOL><INDENT>for s in o.sources:<EOL><INDENT>name.append(o.name)<EOL>band.append(o.band)<EOL>resolution.append(o.resolution)<EOL>mag.append(s.mag)<EOL>e_mag.append(s.e_mag)<EOL>separation.append(s.separation)<EOL>pa.append(s.pa)<EOL>relative.append(s.relative)<EOL><DEDENT><DEDENT>return pd.DataFrame({'<STR_LIT:name>':name,'<STR_LIT>':band,'<STR_LIT>':resolution,<EOL>'<STR_LIT>':mag,'<STR_LIT>':e_mag,'<STR_LIT>':separation,<EOL>'<STR_LIT>':pa,'<STR_LIT>':relative})<EOL>
Returns DataFrame with photometry from observations organized.

This DataFrame should be able to be read back in to
reconstruct the observation.