[Tutor] [Pandas] - Creating a bigger dataframe by using one minor dataframe as variable of another minor dataframe

2018-03-11 Thread Henrique C. S. Junior
I’m working with two dataframes obtained from the infrared spectroscopy analysis (yes, we’re scientists trying to work better using python). The dataframes are as follows: ***DATA1:*** IRRAMAN CM-1 245.54 730.41 3538.10 s1 100 3.93 204.17 3237.13 s6 93 11.

Re: [Tutor] Virtual environment question

2018-03-11 Thread Cameron Simpson
On 11Mar2018 15:52, jim wrote: It was my understanding that using a virtual environment kept everything isolated in that environment. So I was surprised when I got the following error message. (env) jfb@jims-mint18 ~ $ File "/home/jfb/EVs/env/lib/python3.5/site-packages/selenium/webdriver/r

Re: [Tutor] Virtual environment question

2018-03-11 Thread Jim
On 03/11/2018 05:54 PM, Cameron Simpson wrote: Note: This message came straight to me and I haven't seen it on the list yet. Hopefully this reply will make it to the list. On 11Mar2018 15:52, jim wrote: It was my understanding that using a virtual environment kept everything isolated in tha

[Tutor] Virtual environment question

2018-03-11 Thread Jim
It was my understanding that using a virtual environment kept everything isolated in that environment. So I was surprised when I got the following error message. (env) jfb@jims-mint18 ~ $ File "/home/jfb/EVs/env/lib/python3.5/site-packages/selenium/webdriver/remote/remote_connection.py", li

[Tutor] prime factorisation

2018-03-11 Thread Bernd Hewener
Dear python tutors, for training purposes, I am writing a Python program for prime factorisation. Functions for reading in the number and finding the primes are working alright (of Course, finding primes up to ½ Number would suffice). Still, the function for finding the factorization itsel does

Re: [Tutor] help with code

2018-03-11 Thread Abdur-Rahmaan Janhangeer
print 30 * "-" , "MENU" , 30 * "-" # just tested in py3 you can do # 'MENU'.center(67, '-') On Sun, Mar 11, 2018 at 8:20 AM, Leslie SimondeMontfort via Tutor < tutor@python.org> wrote: > Hi, I wondered if there is someone that can help me with this code. Thank > you, Leslie > > ## Text menu in

Re: [Tutor] help with code

2018-03-11 Thread Bob Gailer
On Mar 11, 2018 6:25 AM, "Leslie SimondeMontfort via Tutor" < tutor@python.org> wrote: > > Hi, I wondered if there is someone that can help me with this code. I have to assume that you are very new to python. Have you written a Python program that runs the way you want it to? It is often useful t

Re: [Tutor] help with code

2018-03-11 Thread Cameron Simpson
On 10Mar2018 23:20, Leslie SimondeMontfort wrote: Hi, I wondered if there is someone that can help me with this code. Thank you, Leslie Generally we like to know what you think is wrong with it. For example, what you expected it to do, and a little transcript of what it actually did (cut/p

Re: [Tutor] help with code

2018-03-11 Thread Alan Gauld via Tutor
On 11/03/18 04:20, Leslie SimondeMontfort via Tutor wrote: > Hi, I wondered if there is someone that can help me with this code. I'll try but theres a lot to comment on. See below... > def print_menu(): ## Your menu design here > print 30 * "-" , "MENU" , 30 * "-" > print "1. Menu

Re: [Tutor] help with code

2018-03-11 Thread Joel Goldstick
On Sat, Mar 10, 2018 at 11:20 PM, Leslie SimondeMontfort via Tutor < tutor@python.org> wrote: > Hi, I wondered if there is someone that can help me with this code. Thank > you, Leslie > > ## Text menu in Python > > def print_menu(): ## Your menu design here > print 30 * "-" , "MENU" , 3

[Tutor] help with code

2018-03-11 Thread Leslie SimondeMontfort via Tutor
Hi, I wondered if there is someone that can help me with this code. Thank you, Leslie ## Text menu in Python def print_menu(): ## Your menu design here print 30 * "-" , "MENU" , 30 * "-" print "1. Menu login 1" print "2. Menu create an account 2" print "3. Menu list all ac

Re: [Tutor] Does the secrets module in Python 3.6 use a hardware RNG like that provided in Intel CPUs?

2018-03-11 Thread Steven D'Aprano
Hi Simon, On Fri, Mar 09, 2018 at 10:07:14PM +, Simon Connah via Tutor wrote: > Hi, > I was reading through the secrets documentation in Python 3.6 and > noticed that it uses /dev/urandom but I'm unsure if that means it'll > use a hardware RNG or just one provided by the operating system (Li