fix(awel): Fix awel check for empty DataFrame data bug (#1430)

This commit is contained in:
yyhhyy
2024-04-18 15:15:07 +08:00
committed by GitHub
parent 8625690107
commit 00af9fed35
2 changed files with 4 additions and 2 deletions

View File

@@ -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