Skip to content

Bug report on the pandas merge lecture #198

@jlperla

Description

@jlperla

From @jstac and an emailed bug report from Guilaume

I was looking at the merge part of the Pandas lecture in the QE for data science series.
The airline example part has a code that does not work: The airline code does not match with the descriptions.
It looks like replacing

avg_delays_w_code = avg_delays.join(carrier_code )

 by

avg_delays_w_code = avg_delays.merge(carrier_code, left_index = True, right_on = 'Code')

does the trick.

@wupeifan Fyi. @jbrightuniverse could help fix if you concur with this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions