Has anyone used this code to calculate quantiles?
The code defines the function 'quantile'. If one runs the code and names the script file 'quanitle.py' and puts it in the same directory as another code file calling the function, why is the function not accessed????
Here's the copy-and-paste script for quantile:

http://adorio-research.org/wordpress/?p=125


I am a python greenhorn.

Thank you!

Once you saved the file quantile.py in the same directory, if you want to use the quantile function in program.py, you have to put

from quantile import quantile

before you use quantile in program.py (typically at the top of the program).

Okay, that solved it!
Thank you very much!!!!!!!!


Has anyone used this code to calculate quantiles?
The code defines the function 'quantile'. If one runs the code and names the script file 'quanitle.py' and puts it in the same directory as another code file calling the function, why is the function not accessed????
Here's the copy-and-paste script for quantile:

http://adorio-research.org/wordpress/?p=125


I am a python greenhorn.

Thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.