Skip to content

Commit 3b5f51d

Browse files
committed
Removed check for hover_data in dataframe, which is taken care of later
1 parent c216146 commit 3b5f51d

File tree

1 file changed

+2
-5
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+2
-5
lines changed

Diff for: packages/python/plotly/plotly/express/_core.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -1297,11 +1297,8 @@ def build_dataframe(args, constructor):
12971297
if field in array_attrables and args[field] is not None:
12981298
if isinstance(args[field], dict):
12991299
args[field] = dict(args[field])
1300-
elif (
1301-
field in ["custom_data", "hover_data"]
1302-
and isinstance(args[field], str)
1303-
and "data_frame" in args.keys()
1304-
and args[field] in args["data_frame"].columns
1300+
elif field in ["custom_data", "hover_data"] and isinstance(
1301+
args[field], str
13051302
):
13061303
args[field] = [args[field]]
13071304
else:

0 commit comments

Comments
 (0)