added to_pandas_dataframe and from_pandas_dataframe

closes issue #1174