Python Forum
IPython errors for numpy array min/max methods
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IPython errors for numpy array min/max methods
#2
Test from command line and remember most always activate a environment when work with Anaconda.
(base) is the one if not have make own.
 C:\anaconda3\Scripts
λ activate base

C:\anaconda3\Scripts
(base) λ ipython --version
8.15.0

C:\anaconda3\Scripts
(base) λ ipython
Python 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:16:22) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.15.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import numpy as np

In [2]: a = np.linspace(1,36,36).reshape(12,3)

In [3]: a.min()
Out[3]: 1.0
So if work here it's Spyder IPython Console(has own Kernel) that has the problem.
Can of course uninstall Ipython and Spyder and try reinstall or try update conda and Anaconda.

The easier way and what would suggest to use i a always use is a own environment.
This will make a basic environment and also download new version of Python 3.11.5.
conda create --name my_env -c conda-forge spyder jupyterlab pandas python=3.11.5
Activate (my_env) and start Spyder from environment then i guess all will work fine.
Reply


Messages In This Thread
RE: IPython errors for numpy array min/max methods - by snippsat - Nov-04-2023, 09:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Convert numpy array to image without loading it into RAM. DreamingInsanity 7 6,028 Feb-08-2024, 09:38 AM
Last Post: paul18fr
  Expand the range of a NumPy array? PythonNPC 0 797 Jan-31-2023, 02:41 AM
Last Post: PythonNPC
  Change a numpy array to a dataframe Led_Zeppelin 3 1,174 Jan-26-2023, 09:01 PM
Last Post: deanhystad
  from numpy array to csv - rounding SchroedingersLion 6 2,333 Nov-14-2022, 09:09 PM
Last Post: deanhystad
  numpy.array has no attribute head Led_Zeppelin 1 1,324 Jul-13-2022, 12:56 AM
Last Post: Led_Zeppelin
  Seeing al the data in a dataframe or numpy.array Led_Zeppelin 1 1,200 Jul-11-2022, 08:54 PM
Last Post: Larz60+
  go over and search in numpy array faster caro 7 1,887 Jun-20-2022, 04:54 PM
Last Post: deanhystad
  Can a program execute code in iPython shell and get result? deanhystad 3 1,805 Jun-17-2022, 03:45 AM
Last Post: Larz60+
  Creating a numpy array from specific values of a spreadsheet column JulianZ 0 1,194 Apr-19-2022, 07:36 AM
Last Post: JulianZ
  Trying to understand Numpy/array nabuchadresar 2 1,861 Dec-17-2021, 07:52 AM
Last Post: nabuchadresar

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020