Skip to content

Pandas to Blaze doc sample not working under python 3.6 #1666

Open

Description

@tnet

I'm new to Blaze and would appreciate any suggestions as to how to get a pandas dataframe into blaze and am unable to run the example shown at:

https://blaze.readthedocs.io/en/latest/rosetta-pandas.html

I'm using Python 3.6, blaze==0.11.3,pandas==0.21.1 and numpy==1.13.3

I get an error:
" pd.core.computation.expressions.set_use_numexpr(False)
AttributeError: module 'pandas.core.computation' has no attribute 'expressions'"

code I tried to run from the doc webpage below:

import numpy as np
import pandas as pd
from blaze import data, by, join, merge, concat

construct a DataFrame

df = pd.DataFrame({
'name': ['Alice', 'Bob', 'Joe', 'Bob'],
'amount': [100, 200, 300, 400],
'id': [1, 2, 3, 4],
})

put the df DataFrame into a Blaze Data object

df = data(df)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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