Python Forum
Changing "import numpy as np" to "from numpy import"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing "import numpy as np" to "from numpy import"
#5
(Nov-28-2018, 03:18 AM)ClintWestwood Wrote: I'm trying to change code that loads the python library by "import numpy as np" to loading the library as "from numpy import".

I think you should reconsider what you're trying to do. You're turning well structured code into spaghetti. Why would you purposefully make it uglier/harder to read/worse?
Reply


Messages In This Thread
RE: Changing "import numpy as np" to "from numpy import" - by nilamo - Nov-28-2018, 06:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to import in photos CoderX 2 1,198 Jan-17-2024, 07:00 PM
Last Post: deanhystad
Question Need help with NumPy Histogram function coding Triikey 1 1,037 May-15-2023, 01:45 PM
Last Post: deanhystad
  "Import" Help Chief816 2 1,814 Apr-30-2023, 10:39 PM
Last Post: Chief816
  Trying to import packages on Pycharm KTam0916 1 1,885 Jun-14-2021, 12:56 PM
Last Post: Larz60+
  math,numpy pyStudent 2 2,478 Apr-26-2021, 08:02 PM
Last Post: pyStudent
  How to write a recursion syntax for Sierpinski triangle using numpy? Bolzano 2 3,953 Apr-03-2021, 06:11 AM
Last Post: SheeppOSU
  How to solve problem 1181 of the URI with numpy. thiagohps 4 2,812 Mar-22-2021, 04:11 PM
Last Post: buran
  How to use Converters in numpy loadtxt? kmasic18 3 6,037 Nov-10-2020, 01:54 PM
Last Post: perfringo
  Singular error with numpy.linalg.inv LennartLindner 1 11,030 Oct-04-2020, 05:15 AM
Last Post: scidam
  Frequency in first digit from csv file, NO IMPORT bryan0901 6 2,961 May-28-2020, 09:50 AM
Last Post: bryan0901

Forum Jump:

User Panel Messages

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