I am trying to import pandas in jupyter.
I am using Anaconda on windows.
I never had a problem before on the same machine but suddenly I got an error that says :
—-> 3 import pandas as pd
4 import numpy as np
5 import matplotlib.pyplot as plt
File C:ProgramDataAnaconda3libsite-packagespandas_init_.py:22, in
19 del hard_dependencies, dependency, missing_dependencies
21 # numpy compat
—> 22 from pandas.compat import is_numpy_dev as _is_numpy_dev
24 try:
25 from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
File C:ProgramDataAnaconda3libsite-packagespandascompat_init_.py:20, in
14 from pandas._typing import F
15 from pandas.compat.numpy import (
16 is_numpy_dev,
17 np_version_under1p19,
18 np_version_under1p20,
19 )
—> 20 from pandas.compat.pyarrow import (
21 pa_version_under1p01,
22 pa_version_under2p0,
23 pa_version_under3p0,
24 pa_version_under4p0,
25 )
27 PY39 = sys.version_info >= (3, 9)
28 PY310 = sys.version_info >= (3, 10)
File C:ProgramDataAnaconda3libsite-packagespandascompatpyarrow.py:8, in
5 try:
6 import pyarrow as pa
—-> 8 _pa_version = pa.version
9 _palv = Version(_pa_version)
10 pa_version_under1p01 = _palv < Version(“1.0.1”)`
AttributeError: module ‘pyarrow’ has no attribute ‘version
what can be the problem?
I was trying to import pandas package and expecting to be normally imported without any errors
engin Cicek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.