AttributeError
when detecting multi table metadata from a CSV
#1507
Labels
AttributeError
when detecting multi table metadata from a CSV
#1507
im getting error like
AttributeError: 'SingleTableMetadata' object has no attribute '_load_data_from_csv'
this is my code:
metadata.detect_table_from_csv(
table_name='hotels',
filepath='C:/Users/Admin/Desktop/pythonsdv/hotels.csv'
)
and this is the error im getting
AttributeError Traceback (most recent call last)
Cell In[4], line 1
----> 1 metadata.detect_table_from_csv(
2 table_name='hotels',
3 filepath='C:/Users/Admin/Desktop/pythonsdv/hotels.csv'
4 )
File c:\Users\Admin\Desktop\pythonsdv\env\lib\site-packages\sdv\metadata\multi_table.py:357, in MultiTableMetadata.detect_table_from_csv(self, table_name, filepath)
355 self._validate_table_not_detected(table_name)
356 table = SingleTableMetadata()
--> 357 data = table._load_data_from_csv(filepath)
358 print(data)
359 table._detect_columns(data)
AttributeError: 'SingleTableMetadata' object has no attribute '_load_data_from_csv'
please help to get out from this error
The text was updated successfully, but these errors were encountered: