Re: [Tutor] CSV Read

2018-06-29 Thread Sergio Rojas
On 25/06/18 20:35, Giulia Marcoux wrote: > Hello, > > I am a student learning python, and i am running into some difficulties. I > am tryign to read a csv file that has different delimiters for different > rows: Example: > > Format:V1.1 > Model: R > Step Size: 10mm > Distance: 10cm > Gain: 1000

[Tutor] Prealgebra via Python programmin

2018-05-31 Thread Sergio Rojas
Hello folks, Released under the Creative Commons Attribution-NonCommercial 4.0 International License [1]http://creativecommons.org/licenses/by-nc/4.0/ Prealgebra via Python programming is available at: [2]https://www.researchgate.net/publication/325473565 In case you find

Re: [Tutor] deleting elements of a dictionary (Mats Wichmann)

2017-05-24 Thread Sergio Rojas
Having now done a quick check, mydict.pop() is no better for this case. Here's a simplistic sample that does work: d = { 100:3, 200:4, 111:5, 222:5, 333:5, 500:6, } print "original: ", d new = {key:value for (key,value) in d.iteritems() if value != 5} print "new: ", new

Re: [Tutor] Python 3.6 Multiply the elements of a 2D Array by the elements of a 1D Aeeay

2017-04-16 Thread Sergio Rojas
On 04/14/2017 04:21 AM, Peter Otten wrote: > Stephen P. Molnar wrote: > >> However, what I want to do is multiply each element ob D by each element >> of s and sum all of the products. > > If you *really* want this: > > sum_of_all_products = s.sum() * D.sum() > > example: > > s = [a b c] > > D =

Re: [Tutor] Euclidean Distances between Atoms in a Molecule.

2017-04-05 Thread Sergio Rojas
-- Message: 2 Date: Mon, 03 Apr 2017 11:36:10 +0200 From: Peter Otten <__pete...@web.de> To: tutor@python.org Subject: Re: [Tutor] Euclidean Distances between Atoms in a Molecule. Message-ID: Content-Type: text/plain;

[Tutor] A contribution for enhancing your Python SciPy skills

2017-04-05 Thread Sergio Rojas
Hello Guys, I am just very happy to have finished my video project with Pack on a brief introduction to Machine Learning via SciPy : https://www.packtpub.com/big-data-and-business-intelligence/numerical-and-scientific-computing-scipy-video Previously, as you might know, we finished this one: