mapreader.utils.load_frames =========================== .. py:module:: mapreader.utils.load_frames Functions --------- .. autoapisummary:: mapreader.utils.load_frames.eval_dataframe mapreader.utils.load_frames.load_from_csv mapreader.utils.load_frames.load_from_geojson mapreader.utils.load_frames.load_from_excel mapreader.utils.load_frames.get_load_function mapreader.utils.load_frames.check_exists mapreader.utils.load_frames.get_geodataframe Module Contents --------------- .. py:function:: eval_dataframe(df) Evaluates the columns of a DataFrame/GeoDataFrame and converts them to their respective types. :param df: The DataFrame/GeoDataFrame to evaluate. :type df: pd.DataFrame | gpd.GeoDataFrame :returns: The evaluated DataFrame/GeoDataFrame. :rtype: pd.DataFrame | gpd.GeoDataFrame .. py:function:: load_from_csv(fpath, index_col = 0, **kwargs) .. py:function:: load_from_geojson(fpath, **kwargs) .. py:function:: load_from_excel(fpath, index_col = 0, **kwargs) .. py:function:: get_load_function(fpath, **kwargs) Find function to load a DataFrame/GeoDataFrame from a file path. :param fpath: The file path to load the DataFrame/GeoDataFrame from. Can be a CSV/TSV/etc., or Excel or JSON/GeoJSON file. :type fpath: str or pathlib.Path .. py:function:: check_exists(fpath) .. py:function:: get_geodataframe(df)