Darktable2Piwigo
Loading...
Searching...
No Matches
locations.DtdataLocations Class Reference
Inheritance diagram for locations.DtdataLocations:
Inheritance graph
Collaboration diagram for locations.DtdataLocations:
Collaboration graph

Protected Member Functions

Union[pd.DataFrame, List[Dict[Hashable, Any]]] _transform (self, pd.DataFrame df, bool fastapi_output, **Any kwargs)
 

Detailed Description

Implements the transformer function for darktable tags to mysql tags

Member Function Documentation

◆ _transform()

Union[pd.DataFrame, List[Dict[Hashable, Any]]] locations.DtdataLocations._transform (   self,
pd.DataFrame  df,
bool  fastapi_output,
**Any   kwargs 
)
protected
Transforms the original tags table from darktable into an locations table
which only includes location tags and the geodata which is retrieved during 
transformation from the google places API (new)

:param df: The source dataframe
:param fastapi_output: Whether the output should be a List[Dict] or a DataFrame
:param kwargs: Additional keyword arguments
:return: The transformed dataframe or a list of dictionaries

The documentation for this class was generated from the following file: