Registry / data / semantic-link-functions-geopandas

semantic-link-functions-geopandas

JSON →
library0.14.1pypypi✓ verified 84d ago

Semantic link functions for Geopandas enables conversion of a FabricDataFrame to a GeoDataFrame. This package is part of the broader Microsoft Fabric Semantic Link ecosystem, which facilitates connecting Power BI datasets with Synapse Data Science. It is actively maintained, with new versions often released in conjunction with other `semantic-link` packages.

pip install semantic-link-functions-geopandas
INSTALL
IMPORT
SIG · SEMANTIC-LINK-FUNC
S
semantic-link-functions-geopandas
datapythonv0.14.1
Install
63.3s avg
Import
6345ms
Disk
1434MB
Pass rate
4/ 10
Env Coverage4 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.14.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✓ 64.98s
py 3.11
✕ build_error
✓ 64.11s
py 3.12
✕ build_error
✓ 61.31s
py 3.13
✕ build_error
✓ 62.9s
py 3.9
✕ build_error
✕ build_error
1434MB installed
● package 1434MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FabricDataFrame
from sempy.fabric import FabricDataFrame

Creates a sample FabricDataFrame with latitude and longitude, then converts it into a GeoDataFrame using the `to_geopandas` semantic function. This demonstrates the core functionality of mapping semantic columns to a geospatial object.

import pandas as pd from sempy.fabric import FabricDataFrame # Example FabricDataFrame (usually obtained from a Power BI dataset in Fabric) df = FabricDataFrame( { "country": ["US", "AT"], "lat": [40.7128, 47.8095], "long": [-74.0060, 13.0550] }, column_metadata={ "lat": {"data_category": "Latitude"}, "long": {"data_category": "Longitude"} }, pd_dataframe=pd.DataFrame() ) # Convert to GeoDataFrame df_geo = df.to_geopandas(lat_col="lat", long_col="long") print(df_geo.head()) print(df_geo.geometry.name)
Debug
Known issues
breakingInstalling `semantic-link` (and thus implicitly `semantic-link-functions-geopandas`) with `pandas >= 3.0` can cause runtime errors due to breaking changes in Pandas' internal API. Microsoft is actively working on a fix.
fix
Downgrade `pandas` to a version less than 3.0 (e.g., `pip install 'pandas<3.0'`) or ensure you are using a patched `semantic-link` version if available. Alternatively, install `semantic-link-sempy` directly instead of the `semantic-link` meta-package.
affects: semantic-link < 0.14.0 (and dependent packages) when used with pandas >= 3.0
gotchaThe full Semantic Link feature set, including the semantic functions and `FabricDataFrame`'s capabilities, is primarily designed and supported for use within Microsoft Fabric notebooks and environments. While the Python packages can be installed locally, their full integration with Power BI semantic models is specific to the Fabric platform.
fix
For full functionality and integration, use this library within a Microsoft Fabric workspace. Local usage will lack direct connectivity to Power BI semantic models.
affects: All versions
deprecatedThe underlying `geopandas` library has enforced several deprecations in recent major versions (e.g., `geopandas.datasets` module removed, `geopandas.io.read_file` deprecated in favor of `geopandas.read_file`). Users migrating or updating `geopandas` versions independently of `semantic-link-functions-geopandas` should be aware of these changes.
fix
Refer to the `geopandas` changelog for specific deprecation details and migration paths. Update your `geopandas`-specific code to use the modern API calls.
affects: geopandas >= 1.0 (upstream dependency)
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'semantic_link_functions_geopandas'
The `semantic-link-functions-geopandas` package is not installed in your current Python environment.
fix
pip install semantic-link-functions-geopandas
AttributeError: 'FabricDataFrame' object has no attribute 'to_geodataframe'
The `semantic_link_functions_geopandas` library's extension for `FabricDataFrame` was not registered before attempting to call `to_geodataframe`.
fix
Ensure you import and call `register()` from the library: `from semantic_link_functions_geopandas import register; register()`
ModuleNotFoundError: No module named 'geopandas'
The `geopandas` library, which `semantic-link-functions-geopandas` depends on for its core functionality, is not installed.
fix
pip install geopandas
from semantic_link_functions_geopandas import FabricDataFrame
`FabricDataFrame` is part of the core `semantic_link` package, not the `semantic_link_functions_geopandas` extension package.
fix
from semantic_link import FabricDataFrame
Upgrade
Version history
0.14.1latest on PyPI · released Apr 29, 2026
Audit
Dependencies
geopandasrequiredProvides the core GeoDataFrame functionality and geospatial data structures.
semantic-link-sempyrequiredProvides the FabricDataFrame from `sempy.fabric`, which is the base for conversion to GeoDataFrame.
Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
semantic-link-functions-geopandas — pip install semantic-link-functions-geopandas · libregistry