Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 import numpy in sub-files
#1
Hi all

This question is (very) basic but I haven't found the answer so far: I'm calling functions from another files, using all Numpy for among other things; obviously in the main file I call all the libraries and files, but I noticed that if "import Numpy as np" has not been inserted the all the (sub)files, It fails asking that "np is not defined"???.

I've been thinking that the libraries have to be called only once, in the main file, but I'm probably missing something isn't it?

Thanks

Paul
Quote
#2
Big Grin

what is different between R programming and Python in data science which is better?
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  numpy.copy / numpy.delete paul18fr 3 229 Jul-26-2019, 01:51 PM
Last Post: paul18fr
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 360 Apr-09-2019, 04:54 PM
Last Post: PhysChem
  Comparing 2 Files - Step 1, import and remove tags JP_ROMANO 7 800 Oct-04-2018, 12:43 PM
Last Post: JP_ROMANO
  ImportError: numpy.core.multiarray failed to import Nimya 3 12,157 Jun-12-2018, 02:32 PM
Last Post: volcano63
  not able to import numpy in pthon_d leiwengi 0 808 May-17-2018, 09:46 PM
Last Post: leiwengi
  import/use data from text files MichealPeterson 1 1,119 Jun-28-2017, 08:51 AM
Last Post: buran

Forum Jump:


Users browsing this thread: 1 Guest(s)