Skip to content

Commit

Permalink
dataframe: fix local pandas to fate dataframe bug
Browse files Browse the repository at this point in the history
Signed-off-by: mgqa34 <mgq3374541@163.com>
Signed-off-by: weiwee <wbwmat@gmail.com>
  • Loading branch information
mgqa34 authored and sagewe committed Jul 21, 2023
1 parent 1e724d9 commit b17158d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/fate/arch/dataframe/_frame_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ def to_frame(self, ctx, df: "pd.DataFrame"):
label_type=self._label_type, weight_type=self._weight_type,
dtype=self._dtype, default_type=types.DEFAULT_DATA_TYPE)

local_role = ctx.local.party.role
local_party_id = ctx.local.party.party_id
local_role = ctx.local.party[0]
local_party_id = ctx.local.party[1]

if local_role != "local":
data_manager.fill_anonymous_role_and_party_id(role=local_role, party_id=local_party_id)
Expand Down

0 comments on commit b17158d

Please sign in to comment.