diff --git a/dbfread/dbf.py b/dbfread/dbf.py index 0fbfb1a..8c7f409 100644 --- a/dbfread/dbf.py +++ b/dbfread/dbf.py @@ -341,6 +341,11 @@ def _iter_records(self, record_type=b' '): else: skip_record(infile) + def DataFrame(self): + import pandas as pd + df = pd.DataFrame() + return df.from_records(self.records) + def __iter__(self): if self.loaded: return list.__iter__(self._records)