blaze / blaze/blaze

Pandas to Blaze doc sample not working under python 3.6

Open
#1,666 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.2k
Forks
389
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Rosetta Pandas example at https://blaze.readthedocs.io/en/latest/rosetta-pandas.html and reproduce the shown code using Python 3.6, blaze 0.11.3, pandas 0.21.1, and numpy 1.13.3. Trace the reported pandas.core.computation.expressions error and verify that the documented example either runs with the stated versions or clearly reflects the supported setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, pandas, python
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.