We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d864b commit 9978e3eCopy full SHA for 9978e3e
packages/python/plotly/plotly/express/_core.py
@@ -1428,8 +1428,9 @@ def build_dataframe(args, constructor):
1428
# def __dataframe__(self, ...):
1429
# if not some_condition:
1430
# self.to_pandas(...)
1431
- if not hasattr(df_not_pandas, "to_pandas") or hasattr(
1432
- df_not_pandas, "toPandas"
+ if not (
+ hasattr(df_not_pandas, "to_pandas")
1433
+ or hasattr(df_not_pandas, "toPandas")
1434
):
1435
raise exc
1436
if hasattr(df_not_pandas, "toPandas"):
0 commit comments