Comments (5)
Corrupted package install, sorry for the noise.
from pandas.
Thanks @dhirschfeld.
You're right. I use pixi
and had to run pixi clean
to reinstall the environment and now it seems to work. Strange. Never had such a problem...
from pandas.
Trying to hack around it leads to a ModuleNotFoundError: No module named 'pyarrow.compute'
error.
Perhaps pyarrow
needs to be pinned until the errors can be worked around :/
In [11]: pa.__version__ = '16.1.0'
In [12]: import pandas as pd
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[12], line 1
----> 1 import pandas as pd
File /opt/python/envs/dev310/lib/python3.10/site-packages/pandas/__init__.py:49
46 # let init-time option registration happen
47 import pandas.core.config_init # pyright: ignore[reportUnusedImport] # noqa: F401
---> 49 from pandas.core.api import (
50 # dtype
51 ArrowDtype,
52 Int8Dtype,
53 Int16Dtype,
54 Int32Dtype,
55 Int64Dtype,
56 UInt8Dtype,
57 UInt16Dtype,
58 UInt32Dtype,
59 UInt64Dtype,
60 Float32Dtype,
61 Float64Dtype,
62 CategoricalDtype,
63 PeriodDtype,
64 IntervalDtype,
65 DatetimeTZDtype,
66 StringDtype,
67 BooleanDtype,
68 # missing
69 NA,
70 isna,
71 isnull,
72 notna,
73 notnull,
74 # indexes
75 Index,
76 CategoricalIndex,
77 RangeIndex,
78 MultiIndex,
79 IntervalIndex,
80 TimedeltaIndex,
81 DatetimeIndex,
82 PeriodIndex,
83 IndexSlice,
84 # tseries
85 NaT,
86 Period,
87 period_range,
88 Timedelta,
89 timedelta_range,
90 Timestamp,
91 date_range,
92 bdate_range,
93 Interval,
94 interval_range,
95 DateOffset,
96 # conversion
97 to_numeric,
98 to_datetime,
99 to_timedelta,
100 # misc
101 Flags,
102 Grouper,
103 factorize,
104 unique,
105 value_counts,
106 NamedAgg,
107 array,
108 Categorical,
109 set_eng_float_format,
110 Series,
111 DataFrame,
112 )
114 from pandas.core.dtypes.dtypes import SparseDtype
116 from pandas.tseries.api import infer_freq
File /opt/python/envs/dev310/lib/python3.10/site-packages/pandas/core/api.py:28
16 from pandas.core.dtypes.missing import (
17 isna,
18 isnull,
19 notna,
20 notnull,
21 )
23 from pandas.core.algorithms import (
24 factorize,
25 unique,
26 value_counts,
27 )
---> 28 from pandas.core.arrays import Categorical
29 from pandas.core.arrays.boolean import BooleanDtype
30 from pandas.core.arrays.floating import (
31 Float32Dtype,
32 Float64Dtype,
33 )
File /opt/python/envs/dev310/lib/python3.10/site-packages/pandas/core/arrays/__init__.py:1
----> 1 from pandas.core.arrays.arrow import ArrowExtensionArray
2 from pandas.core.arrays.base import (
3 ExtensionArray,
4 ExtensionOpsMixin,
5 ExtensionScalarOpsMixin,
6 )
7 from pandas.core.arrays.boolean import BooleanArray
File /opt/python/envs/dev310/lib/python3.10/site-packages/pandas/core/arrays/arrow/__init__.py:1
----> 1 from pandas.core.arrays.arrow.accessors import (
2 ListAccessor,
3 StructAccessor,
4 )
5 from pandas.core.arrays.arrow.array import ArrowExtensionArray
7 __all__ = ["ArrowExtensionArray", "StructAccessor", "ListAccessor"]
File /opt/python/envs/dev310/lib/python3.10/site-packages/pandas/core/arrays/arrow/accessors.py:23
21 if not pa_version_under10p1:
22 import pyarrow as pa
---> 23 import pyarrow.compute as pc
25 from pandas.core.dtypes.dtypes import ArrowDtype
27 if TYPE_CHECKING:
ModuleNotFoundError: No module named 'pyarrow.compute'
from pandas.
Corrupted package install, sorry for the noise.
What do you mean? I get the same error with pyattow 17.0.0
:
AttributeError: module 'pyarrow' has no attribute '__version__'
from pandas.
I get the same error with
pyattow 17.0.0
:
Maybe you also have a corrupted package install?
I "fixed" it by uninstalling the package, rm -rf
the folder in site-packages
. Deleting it also from my package cache and reinstalling.
from pandas.
Related Issues (20)
- BUG: Series' lt, gt, le, ge, ne, eq methods are raising a downcasting warning even though the Series' dtype is float64. HOT 2
- Unable to build pandas from source on Windows HOT 12
- BUG: Series.gt (and other comparison methods) can fail with dtype=object HOT 9
- Unit Test/CI failing for multiple PRs HOT 2
- BUG: merging DataFrames on a column containing just NaN values triggers address violation in `safe_sort` HOT 4
- BUG: UnboundLocalError when full outer merging two dataframes HOT 3
- Python 3.13 wheel builds are failing HOT 2
- BUG: Inconsistent behavior between `.any` and `.all` with missing values HOT 1
- BUG: stacked bar graphs show invalid label position due to invalid rectangle bottom when data is 0 HOT 9
- BUG: `isna` on pyarrow backed Series is returning Series with `bool` dtype instead of `bool[pyarrow]` HOT 9
- BUG: dropna in pivot_table is not affecting the outcome
- BUG: pandas.DataFrame.plot crashes, if subplots argument receives a touple. HOT 3
- BUG: assert_frame_equal does not include the obj parameter in error when a MultiIndex is different HOT 4
- QST: How to use 'numba' for group by sum HOT 1
- BUG: Large XML files on Windows trigger false Encoding error HOT 2
- BUG: Series.replace(dict-like, dict-like) raises uninformative AttributeError HOT 1
- BUG: escapechar=',' Causes Double Commas in Output in Pandas 2.2.2 HOT 2
- DOC: fix docstring validation errors for `pandas.Timestamp` HOT 15
- DOC: Development on Gitpod have problems HOT 1
- BUG: Ability to set both color and style in pandas plotting HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas.