Skip to content

Typeerror: can only merge series or dataframe objects a class 'pandas.core.frame.dataframe' was passed #3043

Open
@quinnnnnnnnn

Description

@quinnnnnnnnn

File "D: \Python程序\因子入库0421\factor_ top_ pure_ czl_ 0421_ gtja191.py", line 323,
in BarraDataPreparelong

BarraMatrix long = pd . merge barraclass, industry,on=['code','date'], how= ' inner' )#在barra因子矩阵右侧追加行业哑变量矩阵

File "C: \Users \Administrator\AppData \Roaming \Python\Python38 \site - packages\modin\pandas \general.py", line 84,in merge
raise TypeError(
TypeError: Can only merge Series or DataFrame objects, a <class
pandas. core. frame .DataFrame' > was passed

anyone kowns how to deal with it? 0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalPull requests and issues from people who do not regularly contribute to modinP2Minor bugs or low-priority feature requestsnew feature/request 💬Requests and pull requests for new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions