text
stringlengths
226
34.5k
How to capture stdout output from a Python function call? Question: I'm using a Python library that does something to an object do_something(my_object) and changes it. While doing so, it prints some statistics to stdout, and I'd like to get a grip on this information. The proper solution would be t...
How to get the top 10 students in the class using Python dict Question: I have a dictionary with student-name and marks dict1 = {'name1': 34, 'name2':45, 'name3': 98, 'name4':34, 'name5': 66} I want to get the top 10 student names along with their marks from the above dict. **Result:** ...
import error when cross importing django/python Question: Hi all can anyone help me with this I am having import error when I do an import I think its all clashing.all was fine till I imported B because I really need to make a ForeignKey to B from A. a/models.py from b.models import B #there is the prob...
python - splitting a string without removing delimiters Question: I'm trying to split a string without removing the delimiter and having trouble doing so. The string I want to split is: '+ {- 9 4} {+ 3 2}' and I want to end up with ['+', '{- 9 4}', '{+ 3 2}'] yet everything I'v...
numpy genfromtxt issues in Python3 Question: I'm trying to use `genfromtxt` with Python3 to read a simple _csv_ file containing strings and numbers. For example, something like (hereinafter "test.csv"): 1,a 2,b 3,c with Python2, the following works well: import numpy data...
Python - tokenizing, replacing words Question: I'm trying to create something like sentences with random words put into them. To be specific, I'd have something like: "The weather today is [weather_state]." and to be able to do something like finding all tokens in [brackets] and than exchange them ...
python matplotlib giving peak position value Question: I have two arrays which came from scripting. The two arrays are given below- x = array([ 0.35970013, 0.36476619, 0.36983225, 0.3748983 , 0.37996435, 0.38503039, 0.39009642, 0.39516245, 0.40022847, 0.40529448, 0.41036049, 0.41...
command input splits after each letter python remote control program Question: I am working on a backdoor program for remote operations over my PC's at home. The server connects fine but I have a problem in executing the commands as the letters split up as a new command for each alphabet typed... Something like when I ...
Saving port 9600 datas in given time Question: I'm using Arduino and getting values from my shields and sensors. And also I send some of them to serial.println because of listening port 9600. I'm listening port 9600 and save these values to txt. After that I upload these values to database and use web services. But I ...
Best Canvas for WxPython Question: I am a Java programmer working on a project in Python and the latest version of WxPython. In Java Swing, you can draw on JPanel elements by overriding their paint method. I am looking for a similar class in WxPython for a GUI application. I saw this question here: [Best canvas for ...
How can I improve this boolean function? Question: I often find myself returning a boolean from a method, that's used in multiple locations, in order to contain all the logic around that method in a single place. All the (internal) calling method needs to know is whether the operation was successful, or not. I'm using...
Trying to update a label in tkinter class Question: Im new to python and this forum. I tried searching a solution for the errors i get in my code but this only made me try a lot of different stuff, still i couldn't get my label updated. Now i think it has something to do with my inability tot properly define a variabl...
Generating Tableau Trusted Tickets with curl or Python? Question: I'm working on a portal site that will use Tableau Trusted Ticket authentication ([as described here](http://onlinehelp.tableausoftware.com/current/server/en- us/trusted_auth_how.htm)), but having some trouble generating tickets. One thing I wanted to v...
nltk.download() hangs on OS X Question: `nltk.download()` is hanging for me on OS X. Here is what happens: $python >>> Python 2.7.2 (default, Oct 11 2012, 20:14:37) >>> [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin >>> import nltk >>> nltk.download() ...
Trying to run crontab Question: I'm trying to run a cron job with crontab -e. I'm using a python code #!/usr/bin/env python import webbrowser handle = webbrowser.get() handle.open_new_tab('http://www.youtube.com/watch?v=Y4QGPWLY-EM') running crontab -e i have: * * * * * p...
how to make a UDP python localhost go public Question: I have a python localhost set up on a raspberry pi to listen for UDP packets. But I'm wondering how I can make this a public server in order to send UDP packets from roaming devices. The below code works perfectly sending UDP packets from a device on the same wire...
Table of widgets in Python with Tkinter Question: I want to put a table into a Label Frame in GUI with using Tkinter under python the table will not contents only static data but also widgets like Buttons, Input Entries, Check Buttons ... etc for example: Table 1: [ Nr. | Name | Active | Action ] ...
Finding out Age in Months and Years given DOB in a CSV using python Question: I making several adjustments to an automatically gennerated CSV report. I am currently stuck on a part where I need to take a patient's DOB and convert that into an Age in Months and Years. There is already a Column for age in the original CS...
Looking for a fold-like idiom Question: So my friend presented a problem for me to solve, and I'm currently writing a solution in functional-style Python. The problem itself isn't my question; I'm looking for a possible idiom that I can't find at the moment. What I need is a fold, but instead of using the same functio...
pygst + pyinstaller under OSX Question: I'm currently trying to bundle this dead simple python script (player.py): #!/usr/bin/env python import sys, os import gobject, glib import pygst pygst.require("0.10") import gst class Player(object): def __init__(self): ...
Parsing large xml data using python's elementtree Question: I'm currently learning how to parse xml data using elementtree. I got an error that say:ParseError: not well-formed (invalid token): line 1, column 2. My code is right below, and a bit of the xml data is after my code. import xml.etree.ElementT...
Formatted headers/footers? Colour Code Question: I've found out the way to format header and footer using xlwt (see <https://groups.google.com/forum/?fromgroups#!topic/python- excel/3hZP_hK_LSc>), I'm looking for docs or example on how to define the font color for this header and footer? any example. Answer: Accordi...
TimeField format in Django Question: I am trying to use a TimeField model which only consists of MM:SS.xx (ie 43:31.75) format. Is it possible to format a regular Python time object like this? Thanks. Answer: Absolutely, you can find it in the datetime module here. <http://docs.python.org/release/2.5.2/lib/datetime...
Unable to successfully dump emails retrieved from gmail to mbox file using python Question: I have written below 2 code snippets. Second one work's as expected but not the first one.I am unable to find out why output list of print(msg_obj.keys()) at line #22 in first snippet doesn't contain 'Subject','From' keys while ...
How to center align columns of different lengths using numpy.savetxt in Python? Question: I have several lists that contain both strings and floats as their elements. import numpy as num COLUMN_1 = ['KIC 7742534', 'Variable Star of RR Lyr type' , 'V* V368 Lyr', 'KIC 7742534', '4.0', ...
How can I make a ball move in pygame when dragged by mouse? Question: I am making a small game in python where balls are fired by a catapult, and then the balls destroy a structure of boxes and a snake. At the moment I have made the boxes and the snakes however, I am unable to make the balls come from the left directio...
Python networkx and persistence (perhaps in neo4j) Question: I have an application that creates many thousands of graphs in memory per second. I wish to find a way to persist these for subsequent querying. They aren't particularly large (perhaps max ~1k nodes). I need to be able to store the entire graph object includ...
How to import an existing Plone-based site to a new Ubuntu server Question: I am new to Plone framework. All I need to do might seem quite simple but I need some guidance. I obtained files of an existing Plone-based site and want to integrate into a new Ubuntu computer. Here are the file list. * buildout-cache * ...
Wrong import of waxeye parser Question: So I tried to use parses generator [waxeye](http://waxeye.org/), but as I try to use tutorial example of program in python using generated parser I get error: AttributeError: 'module' object has no attribute 'Parser' Here's part of code its reference to: ...
WebDriver claiming editable element is not editable Question: I'm running a simple test with Selenium WebDriver and Python to send/verify receipt of email. Once I switch to the iframe containing the message body and locate the editable body element and try to clear it out, the following exception is thrown: ...
A simple regexp in python Question: My program is a simple calculator, so I need to parse te expression which the user types, to get the input more user-friendly. I know I can do it with regular expressions, but I'm not familar enough about this. So I need transform a input like this: import re inpu...
mod_wsgi loading python script from wrong Pyramid app directory Question: I have two apps with nearly identical code base (same functionality, just different branding) that I am trying to do virtual hosting with using mod_wsgi and apache. the virtual host settings for both apps (in two separate files) are identical (w...
Python unity indicator applet and glade child window Question: I have created an unity indicator applet with python and glade. Here is the screenshot that appears when indicator applet is clicked. You can see the preferences menu. When this preferences menu is clicked, it opens a new window. `Indicator Applet Menu` ...
Best way to specify path to binary for a wrapper module Question: I write a module that wraps functionality of an external binary. For example, I wrap `ls` program into a python module `my_wrapper.py` import my_wrapper print my_wrapper.ls('some_directory/') # list files in some_directory a...
Custom markers with screen coordinate size in (older) matplotlib Question: Originally, I was hoping that I could create a sort of a class for a marker in `matplotlib`, which would be a square with text showing the, say, x coordinate and a label, so I could instantiate it with something like (pseudocode): ...
Given f, is there an automatic way to calculate fprime for Newton's method? Question: The following was ported from the pseudo-code from the Wikipedia article on [Newton's method](http://en.wikipedia.org/wiki/Newton%27s_method): #! /usr/bin/env python3 # https://en.wikipedia.org/wiki/Newton's_method ...
Training the OpenCV NormalBayesClassifier in Python Question: I'm trying to use the NormalBayesClassifier to classify images produced by a Foscam 9821W webcam. They're 1280x720, initially in colour but I'm converting them to greyscale for classification. I have some Python code (up at <http://pastebin.com/YxYWRMGs>) w...
How to pop up the python console? Question: well what i am trying to do is, I'm building a small compiler only for arithmetic evaluation using python! String of any length should be accepted and also, i need to pop up a console where the user can enter his query! Can anyone help me out with the popup of the console? ...
Python issue editing tkinter canvas items in a 2darray Question: I'm using a raspberry pi as a communication front end for more complex devices. I'm coding it in python, and including a gui to display the information going through it. My issue involves a grid of canvas text items of size 4x4, as referenced by a 2d arr...
python 3 csv data structure problems Question: I have a csv file like this Category Subcategory ----------------------- cat panther cat tiger dog wolf dog heyena cat lion dog beagle Im trying to write a script that outpu...
regex - specifying high Unicode codepoints in Python Question: In Python 3.3 I have no trouble using ranges of Unicode codepoints within regular expressions: >>> import re >>> to_delete = '[\u0020-\u0090\ufb00-\uffff]' >>> s = 'abcdABCD¯˘¸ðﺉ﹅ffl你我他' >>> print(s) abcdABCD¯˘¸ðﺉ﹅ffl你我他 >>> p...
How to let python use negative numbers Question: I've been making a linear equation calculator and I'm wondering how to let python use negative numbers. Like int(), float() etc... here is my code. import time print("Hello and welcome to the linear equation calculator.") time.sleep(2) ...
How to get multiple lines <li> below <ul> tag with regex in python Question: I got this HTML tags that I've pulled from a website: <ul><li>Some Keys in the UL List</li> </ul> <li>HKEY_LOCAL_MACHINE\SOFTWARE\Description</li> <li>HKEY_LOCAL_MACHINE\SOFTWARE\Description\Microsoft</li> <li>HK...
Soundcloud: Getting all users who contributed a song to a group Question: Whats the best way to get ALL users who contributed a song to a group? I'm working with Python, is there any curl url which can do this? Thanks! Answer: Looking through the [soundcloud API](http://developers.soundcloud.com/docs/api/reference#pl...
How to understand python classes? Question: Hello I'm learning python, it is also my first language. I'm trying to figure out how classes work. I have this small code and I can't get it to work after a week of searching. Thank you for helping me. Also I'm trying to figure out what getattr and super do. I read on the d...
"execution_count" error when running a job on a remote IPython cluster Question: I am running an IPython cluster (SSH) on a remote Linux machine, and I am using Mac OS X with IPython to use that cluster. In IPython on Mac I write: from IPython.parallel import Client c = Client('~/ipcontroller-client....
Using bzr with SFTP on Windows/Cygwin Question: **Note: I'm not sure if this belongs on ServerFault or StackOverflow** I'm currently working on a project which has an SFTP-only `bzr` repository. All works fine using my Linux machine, but when using Windows with Cygwin I get the following issue: $ bzr ch...
Python unittest report passed test Question: Hello I have a test module like the following under "test.py": class TestBasic(unittest.TestCase): def setUp(self): # set up in here class TestA(TestBasic): def test_one(self): self.assertEqual(1,1) ...
How to serialize the result of a query in python? Question: I'm having trouble to serialize the result array from a query where one of its projection is of datetime property. My model class looks as follows: class ActivitySummaries(ndb.Model): registered_users = ndb.IntegerProperty() act...
Python optparse not working - syntax error Question: this script is based on another for an assignment. My code looks the same as theirs and BOTH error out with a syntax error. I am running with ActiveState Active Python 2.7 64-bit def showEvents(): ''' showEvents command List events...
Using Python to write dbf table with fpt memos Question: I have a legacy application that uses .dbf and .fpt files. I am looking to read and write those files, I have figured out a way to write these files but not using fpt memos. I am using python 2.7.2 and dbf module 0.95.02. When I try to use the [dbf module](https:...
Python RuntimeError: Failed to import pydot Question: I am learning concepts of logistic regression concepts. When i implement it in python, it shows me some error mentioned below. I am beginner in python. Could anybody help to rectify this error? RuntimeError Traceback (most recent call last) in () 64 ...
What is this operator *= -1 Question: I'm going through some Python activities and was given example code with this operator: `y *= -1` I had a look through the [relevant Python docs](http://docs.python.org/3/library/stdtypes.html#boolean-operations-and- or-not), to no avail. I know `y += 1`, for example, is short fo...
Python: Multiprocessing imap & dynamically-created pools freeze Question: Could someone explain why this code freezes (hangs forever), import multiprocessing def foo(x): return x def main(): print(list(multiprocessing.Pool().imap(foo, iter([1, 2, 3])))) main() While this variant...
PIL and Python27 - Save a screengrab? Question: Here is the code from PIL import ImageGrab scrgrb = ImageGrab.grabclipboard() scrgrbnum = 0 def saveimg(): scrgrb.save("screengrab.jpeg + str(scrgrbnum + 1)", "JPEG") scrgrbnum = scrgrbnum + 1 saveimg() And I ...
How do I capture SIGINT in Python on Windows? Question: (Similar to [this question](http://stackoverflow.com/questions/1112343/how-do- i-capture-sigint-in-python)) On UNIX under Python 2.7, at the Python prompt: >>> import signal >>> def handler(signal, frame): ... print 'welcome to the h...
Develop OpenERP in Eclipse error Question: I installed again my openerp project in another machine and added pydev to eclipse then when i going to run openerp-server file below error has come.seems something missing with installing procedure. please help me to sort out this issue pydev debugger: starting...
Use Python to write on specific columns in csv file Question: I have data in a file and I need to write it to CSV file in specific column. The data in file is like this: 002100 002077 002147 My code is this: import csv f = open ("file.txt","r") with open("watout....
how to read windows file in linux environment Question: I'm trying to execute a python program on linux which i first created it on windows, but the following error is shown: metadata = eval(metafile.read()) File "< string >", line 1 @ @ @ @ @ @ Any idea? thanks! Answer: ...
How to get wxPython 2.9.4 running on Windows XP with Python 3.3.2? Question: Hmm, I'm missing something. I installed wxPython under Python33. When typing 'import wx', I am getting an error message: ImportError: No module named 'wx' Someone knows what this is about? I looked at this Q&A on here: "“import wx fails afte...
Executing a Python Script when Web Page is loaded Question: I'm trying to have it so that when my web page is loaded, a python script is executed. The website is run on an apache server and the script is in the same directory as the index.html (it's a very small project). Is there anyway I can do this? I'm not trying ...
Google App Engine import NLTK error Question: I am trying to import NLTK library in Google App Engine it gives error, I created another module "testx.py" and this module works without error but I dont know why NLTK does not work. My code nltk_test.py import webapp2 import path_changer import tes...
Detecting Close Scene or Change Scene Question: HI I'm working with `Pyqt4` to make a UI in `Maya`, but I want that the UI close or refresh when the user open or change Scene. Is there a way in python to detect this change? Answer: [`scriptJob`](http://download.autodesk.com/us/maya/2010help/CommandsPython/scriptJob....
python: generalizing delegating a method Question: I have a class like this containing one or more numeric elements. class Foo: # ... other methods ... def _update(self, f): # ... returns a new Foo() object based on transforming # one or more data members with ...
Python using ctypes to pass a char * array and populate results Question: I'm trying to use ctypes to create a char * array in python to be passed to a library for populating with strings. I'm expecting 4 strings back no more than 7 characters in length each. My py code looks like this **testlib.py** f...
get how much time python subprocess spends Question: I'd like to time how long does the subprocess take. I tried to use start = time.time() subprocess.call('....') elapsed = (time.time() - start) However it's not very accurate (not sure related to multi-process or sth else) Is there a bette...
splitting line in python Question: I have data of the below mentioned form: <a> <b> <c> <This is a string> <World Bank> <provides> <loans for> <"a Country's Welfare"> <Facebook> <is a> <social networking site> <"Happy Facebooking => Enjoy"> Now I want to split each line given above based on...
how to update a listbox in one window in one class using a different class python Question: what i have is a window that opens up and it has a list box. this is created using one class. when i click the search button and results are found using a different class, i want the list box to update without having to open up ...
Python: Iterate alphabetically over OrderedDict Question: In a script I have an OrderedDict `groups` that gets fed key/value pairs alphabetically. In another part of the script, I'm checking against files that have the same same as `key` like so: for (key, value) in groups.items(): file ...
Accessing values from a Unicode dictionary in Python Question: I have Unicode values similar to this in a dictionary: {u'id': u'100000000265946', u'name': u'Sophia N Art Fuentes'} {u'id': u'100000538132142', u'name': u'Tatiana Vargas'} {u'id': u'1669912701', u'name': u'Milvia Albanez'} I ne...
re.sub in Python 3.3 Question: I am trying to change the text string from the form of `file1` to `file01`. I am really new to python and can't figure out what should go in 'repl' location when trying to use a pattern. Can anyone give me a hand? text = 'file1 file2 file3' x = re.sub(r'file[1-9]',...
Adding list data to a .txt file and re-opening these lists where prompted Question: I have done some research and found various examples but as my python knowledge is so basic I do not understand them. Is there a method for importing ONLY the lists to another python window as any import i try seems to import the list ...
Python: My script will not allow me to create large files Question: I'm making a small python script which will create random files in all shapes and sizes but it will not let me create large files. I want to be able to create files up to around 8GB in size, I know this would take a long amount of time but I'm not conc...
How to efficiently generate this matrix in python Question: I have already had a row vector a of dimension d which only contains elements 0 or 1. I want generate a r by d matrix A, where A satisfies for column j = 1,2 .... d if a[j] = 1, then A[:,j] = 1. That's, the corresponding column will be all ...
Questions about running a program (pygame) Question: I have installed pygame and I dont know how to allow my python to read it... I do # import modules import os import pygame And I got this: `ImportError: No module named 'pygame'` Answer: I think you are missing something here. Download...
Is convolution slower in Numpy than in Matlab? Question: Convolution in Matlab appears to be twice as fast as convolution in Numpy. Python code (takes 19 seconds on my machine): import numpy as np from scipy import ndimage import time img = np.ones((512,512,512)) kernel = np.ones((5...
Check items in multidimensionaly array in Python Question: I have a dynamic multidimensional array, that can have a different number of columns each time. The user is asked to select which columns to extract from a file with N-columns, and based on this number, a multidimensional array 'ARRAY_VALUES' is created. ...
mongoengine OperationError on saving Question: I'm writing a python script to populate a mongodb database, my models look like the following: from mongoengine import * from mongoengine.django.auth import User class TrackGroup (Document): name = StringField(required=True) user...
How to interpret addresses in a kernel oops Question: I have a kernel oops in a linux device driver I wrote. I want to determine which line is responsible for the oops. I have the following output, but I do not know how to interpret it. Does it mean my code crashed at the instruction at write_func + 0x63? How can I re...
A consistent way to check types in python Question: I'm finding that type checking in python (pre py3, I'm not sure about the state in py3) is bit of a mess, here's what I mean: First, there are the built in types (int, str etc), and the types defined in the 'types' module, where you have to import the types module an...
Python sendmail with text file content Question: I want to send mail via python script, I need it to alert me about some missed files. scripy have to read log file(*.txt) and send content of this file into my mail, so I made it: import smtplib, os from email.mime.text import MIMEText r...
Selectively printing values from a python dictionary Question: I have have a huge graph consisting of well over 100000 keys so efficiency is a huge issue. I am going through every keys' value, and for every value, I want it to be a key in another dictionary, with the values being the remaining values... E.g... ...
Python letters duplicates replace in Unicode string Question: I need to replace two mistyped letters in a string, for example "bbig". But it works only for Latin Letters, not for Cyrillic. I am using Python version 2.6.6 under Centos Linux. #!/usr/bin/python # -*- coding: utf-8 -*- import re ...
Change the file extension for files in a folder in Python Question: I would like to change the extension of the files in specific folder. i read about this topic in the forum. using does ideas, I have written following code and I expect that it would work but it does not. I would be thankful for any guidance to find my...
How to tell distutils to use gcc? Question: I want to wrap a test project containing C++ and OpenMP code with Cython, and build it with distutils via a `setup.py` file. The content of my file looks like this: from distutils.core import setup from distutils.extension import Extension from Cython.B...
Imports not working in Google App Engine project Question: Im working in python to build a webapp using GAE. The project was originally built with out GAE, and it worked just great, then I brought those files into the GAE project, and all of a sudden they don't play so nice anymore. One file land.py has 4 classes repre...
Django - how to not loose verbose_name and other attributes of Field when overriding its form in ModelForm? Question: Given: #models.py from django.db import models class MyModel(models.Model): myfield = models.IntegerField('Detailed description') #forms.py from dja...
Use numpy in python3 - Ubuntu Question: I'm trying to use `numpy` with `python3` in Ubuntu 12.04. The command `python3` in the terminal returns: Python 3.2.3 (default, Oct 19 2012, 20:13:42) [GCC 4.6.3] on linux2 When I try to import `numpy` I get the error: import numpy as ...
New django project: Cannot import name connections Question: I'm having a problem with Django. If you could help me, I'd very much appreciate it. So, I've found lots of people with a similar problem, but none of the "solutions" work for me. I'm learning how to use django and I've successfully installed it. But, I get...
elif giving syntax error python? Question: I'm trying to parse an XML document and get certain tags. I'd like to grab the name tag (only if it's the name tag nested within artist) and the title tag (only if it's the one nested within release). That's not too important, though, the important thing is that I'm for some...
$ python syntaxerror HELP (version 2.5.4) Question: Downloaded Python 2.5.4 (Windows) Opened Python Shell and entered print "hello world" got back hello world Opened Notepad++ entered `print "hello world"` saved as hello.py exited that file and went back to the shell enter...
Regular idetifying repeatative patterns Question: My data patterns looks like below, t_hat_1 t_hat_2 t_hat_3 name s_flower_1 s_flower_2 s_flower_3 s_flower_22 s_flower_23 address I need to identify all the repeating matches like t_hat_1,2,3 & s_flower_1,2,3,22,23...
How to access pubmed data for forms with multiple pages in python crawler Question: I am trying to crawl pubmed with python and get the pubmed ID for all papers that an article was cited by. For example this article (ID: 11825149) <http://www.ncbi.nlm.nih.gov/pubmed/11825149> Has a page linking to all articles that ci...
AttributeError: 'NoneType' object has no attribute 'get_width' Question: This is simple script on Ascii art generator from image , I get this error : I run it in cmd line , and I am using windows 7 operating system Traceback (most recent call last): File "C:\Python33\mbwiga.py", line 251, in <module>...
importing pygame on python3 on virtualenv cause ImportError Question: I have python3.3.1 on ubuntu lucid,which I invoke thru virtualenvwrapper ' .I wanted to learn pygame,so I used pip to install it.Before that I installed the sdl and smpeg dev libraries me@ubuntu: sudo apt-get install libsdl1.2-dev ...
wxPython Drag and Drop exit code 139 crash Question: I am experimenting with wxPython trying to learn drag and drop. Why doesn't the following work on Linux? The app starts up, but when I drag the static text into the text field, I get a 139 exit code with version 2.8 using python 2.7. import wx clas...
neo4django: AttributeError: type object 'Model' has no attribute '__metaclass__' Question: I was just trying neo4django's [very own example](https://neo4django.readthedocs.org/en/latest/writing-models.html), namely from neo4django.db import models class Person(models.NodeModel): name = m...
cx_Freeze and Python 3.3 Question: So, I have some Python 3.3 code that I need to make an .exe from on Windows. I discovered the only way to do it is using cx_Freeze. But, I haven't even got further than installation. This question describes my problem perfectly (except I run Python 3.3), and has not been answered yet:...
Python pandas an efficient way to see which column contains a value and use its coordinates as an offset Question: As part of trying to learn pandas I'm trying to reshape a spreadsheet. After removing non zero values I need to get some data from a single column. For the sample columns below, I want to find the most ef...
solve ode using multistep solver Question: The following is the code for multiple solvers so far. The system for this problem is here, [our system](http://stackoverflow.com/questions/16747624/setup-odes-in- python?noredirect=1#comment24123067_16747624) However, when I execute it in Python, it shows me the following err...