You can construct a teradataml DataFrame from either an existing Vantage table or view or a SQL query result. The data source determines the DataFrame constructor function you use.
| Vantage Data Source | DataFrame Constructor Function |
|---|---|
| Table or view | |
| SQL query result | DataFrame.from_query() Function |
| pandas DataFrame | DataFrame.from_pandas Function |
| Dictionary | DataFrame.from_dict Function |
| List of lists/tuples/dictionaries/numpy arrays | DataFrame.from_records Function |