Skip to main content

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.

Tables.infer_data_types(data, /)

Infer data types from the passed data.

Example

>>> 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'}
See also: load().