Spaces:
Build error
Build error
Commit ·
a4a1c61
1
Parent(s): 203bb0f
Added map_dtype_to_weaviate function
Browse files17 unmodified lines1819202122232425262728293031323334353617 unmodified lines embedded_options=EmbeddedOptions())
def map_dtype_to_weaviate(dtype): """ Map pandas data types to Weaviate data types. """ if "int" in str(dtype): return "int" elif "float" in str(dtype): return "number" elif "bool" in str(dtype): return "boolean" else: return "string"
def ingest_data_to_weaviate(dataframe, class_name, class_description): # Create class schema class_schema = {app.py+13