Skip to content

BUG: duplicate indexing with embedded non-orderables #17610

Closed
@gloryfromca

Description

code below is scene that issue happened.

 for user_id, row in pending_data_df.iterrows():

        df = DataFrame(
            columns=[
                Names.call.same_call_counts,
                Names.call.phonebook_detail
            ],
            index=[user_id]
        )

        phoneBookPath = row[Names.app.phonebookpath]
        call_number_list = row.get(Names.call.call_number_list)

Problem description

when I wanted to get a set from a Series , it happended.

it has worked well for a long time,but suddenly it broke out. raise Traceback like this:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/home/datascience/zh/suijiesuihuan/datascience/my_threads.py", line 87, in run
ret_data, result = make_decision(int(self.layerId), df_input)
File "/home/datascience/zh/suijiesuihuan/datascience/layered_decision.py", line 52, in make_decision
data_df, result_df = load_features_group_loader(features_group_loader_id, mocking)(data_df)
File "/home/datascience/zh/suijiesuihuan/datascience/dynamic_content_loader.py", line 166, in inner
return load_and_make_decision(data_df, config_new)
File "/home/datascience/zh/suijiesuihuan/datascience/dynamic_content_loader.py", line 111, in load_and_make_decision
new_feature_group_df, error_df = _load_data(pending_df, features_loader_id, features_loader, mocking)
File "/home/datascience/zh/suijiesuihuan/datascience/dynamic_content_loader.py", line 76, in _load_data
data_df, result_df = features_loader(data_df)
File "/home/datascience/zh/suijiesuihuan/dynamic_contents/feature_group_loader/feature_group_loader_0003/feature_group_loader.py", line 55, in load
call_number_list = row.get(Names.call.call_number_list)
File "/home/datascience/zh/venv/lib/python3.5/site-packages/pandas/core/generic.py", line 1633, in get
return self[key]
File "/home/datascience/zh/venv/lib/python3.5/site-packages/pandas/core/series.py", line 611, in getitem
dtype=self.dtype).finalize(self)
File "/home/datascience/zh/venv/lib/python3.5/site-packages/pandas/core/series.py", line 227, in init
"".format(data.class.name))
TypeError: 'set' type is unordered

someone knows what happened?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    BugIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions