Lookup table with extension
Closed this issue · 2 comments
ahuang11 commented
I would expect this to work:
source = FileSource(tables=["penguins.csv"])
for table in source.tables:
source.get(table)
But instead I get
File [~/repos/lumen/lumen/sources/base.py:653](https://file+.vscode-resource.vscode-cdn.net/Users/ahuang/repos/lumen-llm/~/repos/lumen/lumen/sources/base.py:653), in FileSource._load_table(self, table, dask)
651 if df is None:
652 tables = list(self._named_files)
--> 653 raise ValueError(f"Table '{table}' not found. Available tables include: {tables}.")
654 return df
ValueError: Table 'penguins.csv' not found. Available tables include: ['penguins'].
philippjfr commented
I'm not convinced, tables are named and if you provide a list it simply uses the filename but not the file extension as the name.
github-actions commented
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.