from_pandas() method
Converts a Pandas dataframe or a Pandas series to an HCL dataframe.
Syntax
hcl.from_pandas(Pandas_dataframe_name|Pandas_series_name)
Parameters
Name | Description |
---|---|
Pandas_dataframe_name | Pandas_series_name |
The name of the Pandas dataframe or the Pandas series. |
Returns
HCL dataframe.
Examples
Convert a Pandas dataframe to an HCL dataframe
You convert the Pandas dataframe inventory_pd to the HCL dataframe inventory_hcl.
inventory_hcl = hcl.from_pandas(inventory_pd)
Convert a Pandas series to an HCL dataframe
You convert the Pandas series ProdDesc_series_pd to the HCL dataframe ProdDesc_hcl.
ProdDesc_hcl = hcl.from_pandas(ProdDesc_series_pd)