Skip to content

When using pandas dataframes, comparing a series with a value does not return a series #302

Closed
@schlichtanders

Description

@schlichtanders
using CondaPkg
CondaPkg.add("pandas")
pd = pyimport("pandas")
datafile = download("https://nyc3.digitaloceanspaces.com/owid-public/data/co2/owid-co2-data.csv")
df = pd.read_csv(datafile)

df[df["country] == "World"]

fails because df["country"] == "World" returns plainly false

It would be very awesome if we could just use normal pandas indexing syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions