-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Series(series) discards name attribute #1578
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
Comments
changhiskhan
added a commit
that referenced
this issue
Jul 7, 2012
Heh. Github doesn't seem to notify for commits added to a bug, but I noticed that you were working on this because I was just watching my pandas integration tests run on travis, and saw it running on the next virtual buildslave over... |
ha, didn't know that, that's interesting. |
Also, thanks :-) |
thanks for the feedback =0) |
algitbot
pushed a commit
to alpinelinux/aports
that referenced
this issue
Nov 5, 2024
Update numpy array copy references for numpy 2.0 compatibility to fix failed tests. ``` a = [1, 2, 3], copy = False, dtype = None, subok = False def asarray_or_pandas(a, copy=False, dtype=None, subok=False): if have_pandas: if isinstance(a, (pandas.Series, pandas.DataFrame)): # The .name attribute on Series is discarded when passing through # the constructor: # pandas-dev/pandas#1578 extra_args = {} if hasattr(a, "name"): extra_args["name"] = a.name return a.__class__(a, copy=copy, dtype=dtype, **extra_args) > return np.array(a, copy=copy, dtype=dtype, subok=subok) E ValueError: Unable to avoid copy while creating an array as requested. E If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x). E For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword. patsy/util.py:67: ValueError ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Data and index are preserved, but not name:
The text was updated successfully, but these errors were encountered: