mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-01 17:16:51 +00:00
fix(awel): Fix awel check for empty DataFrame data bug (#1430)
This commit is contained in:
@@ -56,6 +56,8 @@ def is_empty_data(data: Any):
|
||||
"""Check if the data is empty."""
|
||||
if isinstance(data, _EMPTY_DATA_TYPE):
|
||||
return data in (EMPTY_DATA, SKIP_DATA)
|
||||
elif hasattr(data, "empty"):
|
||||
return getattr(data, "empty", False)
|
||||
return False
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user