Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback on the notebook #11

Open
Daniel-Mietchen opened this issue Mar 22, 2017 · 1 comment
Open

Feedback on the notebook #11

Daniel-Mietchen opened this issue Mar 22, 2017 · 1 comment

Comments

@Daniel-Mietchen
Copy link
Contributor

I ran the notebook after the ContentMine pipeline finished, with the following observations:

import numpy as np

from pandas import Series, DataFrame

import matplotlib.pyplot as plt

from pycproject.readctree import CProject

from pycproject.factnet import *

import os

from collections import Counter%matplotlib inline

resulted in

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-bb95c5abafed> in <module>()
      1 import numpy as np
----> 2 from pandas import Series, DataFrame
      3 import matplotlib.pyplot as plt
      4 from pycproject.readctree import CProject
      5 from pycproject.factnet import *

//anaconda/lib/python3.5/site-packages/pandas/__init__.py in <module>()
     42 import pandas.core.config_init
     43 
---> 44 from pandas.core.api import *
     45 from pandas.sparse.api import *
     46 from pandas.stats.api import *

//anaconda/lib/python3.5/site-packages/pandas/core/api.py in <module>()
      7 from pandas.core.common import isnull, notnull
      8 from pandas.core.categorical import Categorical
----> 9 from pandas.core.groupby import Grouper
     10 from pandas.core.format import set_eng_float_format
     11 from pandas.core.index import Index, CategoricalIndex, Int64Index, Float64Index, MultiIndex

//anaconda/lib/python3.5/site-packages/pandas/core/groupby.py in <module>()
     15 from pandas.core.base import PandasObject
     16 from pandas.core.categorical import Categorical
---> 17 from pandas.core.frame import DataFrame
     18 from pandas.core.generic import NDFrame
     19 from pandas.core.index import Index, MultiIndex, CategoricalIndex, _ensure_index

//anaconda/lib/python3.5/site-packages/pandas/core/frame.py in <module>()
     39                                    create_block_manager_from_arrays,
     40                                    create_block_manager_from_blocks)
---> 41 from pandas.core.series import Series
     42 from pandas.core.categorical import Categorical
     43 import pandas.computation.expressions as expressions

//anaconda/lib/python3.5/site-packages/pandas/core/series.py in <module>()
     33 from pandas.core.internals import SingleBlockManager
     34 from pandas.core.categorical import Categorical, CategoricalAccessor
---> 35 import pandas.core.strings as strings
     36 from pandas.tseries.common import (maybe_to_datetimelike,
     37                                    CombinedDatetimelikeProperties)

AttributeError: module 'pandas' has no attribute 'core'

I could not figure out how to fix this, so taking a break now.

@tarrow
Copy link
Contributor

tarrow commented Apr 4, 2017

I'm not exactly sure what the problem is here.

Googling around suggests it might be a language/locale issue.

Have a look at: http://stackoverflow.com/questions/36521691/importing-pandas-gives-error-attributeerror-module-pandas-has-no-attribute-c

Did you install python from anaconda?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants