> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# atoti.tables.Tables.infer_data_types()

#### Tables.infer\_data\_types(data, /)

Infer data types from the passed *data*.

* **Parameters:**
  **data** ([*Table*](https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table) *|* [*DataFrame*](https://pandas.pydata.org/pandas-docs/version/2.3/reference/api/pandas.DataFrame.html#pandas.DataFrame) *|* [*DataLoad*](./atoti.data_load.data_load#atoti.data_load.DataLoad)) – The data from which data types should be inferred.
* **Return type:**
  [dict](https://docs.python.org/3/library/stdtypes.html#dict)\[[str](https://docs.python.org/3/library/stdtypes.html#str), DataType]

### Example

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> from datetime import date
>>> dataframe = pd.DataFrame(
...     {
...         "Id": [1, 2, 3],
...         "Name": ["Phone", "Watch", "Laptop"],
...         "Price": [849.99, 249.99, 1499.99],
...         "Date": [
...             date(2024, 11, 27),
...             date(2024, 11, 26),
...             date(2024, 11, 25),
...         ],
...     }
... )
>>> session.tables.infer_data_types(dataframe)
{'Id': 'long', 'Name': 'String', 'Price': 'double', 'Date': 'LocalDate'}
```

<Callout icon="link">
  **See also**:
  [`load()`](./atoti.Table.load#atoti.Table.load).
</Callout>
