Skip to content

Feature Request: More examples on how to access columns in rows in lambda functions #671

@redactedaccount

Description

@redactedaccount

Explain why petl needs this feature?

dot notation is fine, until your column name has a space in it, which for ETL operations on real databases or csvs, is most of them.

now you can just swap spaces with underscores, but it would be nice to know if there's another way

Describe the solution you would like

Examples that show other ways to access columns in rows other than row.baz, just in case you have something like Baz Products, or something.

Describe alternatives solutions you would have considered

I've tried: row['Column Name'] but you can't write to rows. this way because they are records. Having a lot of trouble making my own functions using petl.convert actually.

Source Code Examples

No response

Additional Notes

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureA nice to have thing that we don't have yet

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions