Skip to content

CloudForCustomers - bug in to_df method in source class #1130

@winiar93

Description

@winiar93

In the source class of CloudForCustomers, there is a method to_df that takes kwargs as an argument. One of those kwargs can be "fields" that store a list of fields to filter out.

The TypeError will be raised when this method will be called with fields argument because all kwargs will be passed to
df = pd.DataFrame(data=records, **kwargs) , DataFrame class doesn't have such parameter. I assume that some kwargs arguments should be pop before moving them to class.

Error:

TypeError: DataFrame.__init__() got an unexpected keyword argument 'fields'

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions