text
stringlengths
226
34.5k
Why are stale header values still around when uploading a subsequent Item to archive.org using ia-wrapper? Question: I mirrored a batch of videos from EuroPython2014 on archive.org using the master of ia-wrapper. As discussed in [#64](https://github.com/jjjake/ia- wrapper/issues/64), metadata from the previous upload s...
Python program prints an extra empty line when reading a text file Question: I'm using python 3.3. I have a text file with three lines of text, as an example. I want to select a number and it will display the contents of that line number. For some reason, it prints the line I want, and prints an empty line below it. T...
AttributeError: 'module' object has no attribute 'postDirectOrder' Question: I'm trying to use this python package <https://pypi.python.org/pypi/pesapal> in one of my projects. But I noticed that for some weird reason the author stuffed all the logic in the [`__init__.py` file](https://github.com/kelonye/python- pesap...
scrapy how to import the settings to override it Question: this is my code class Test(Spider): self.settings.overrides['JOBDIR']= "seen" I got: File "C:\Python27\lib\site-packages\scrapy\spider.py", line 46, in settings return self.crawler.settings File "C:\Py...
system cannot find the specified file python subprocess Question: I am trying to run a simple command in python: from subprocess import * check_output("ls") When I run this it raises Error: WindowsError: [Error 2] The system cannot find the file specified Answer: `...
Need to dump entire DOM tree with element id from selenium server Question: I have been using python selenium for web automation testing. The key part of automation is to find the right element for a user-visible object in a HTML page. The following API will work most of the time, but not all the time. f...
Python NLTK tokenize sentence with wrong syntax from human errors Question: I am looking for a way to handle sentence tokenizing task well. I have this text extracted from a human written review for a restaurant Nevertheless, the soup enhances the prawns well.In contrast, the fish offered is fresh and w...
Openpyxl missing 'jdcal' Question: I tried to install the `openpyxl` module, but during the installation it showed some errors with `JDcall`. When I then try to import it, I get this error: Traceback (most recent call last): File "C:\Andrzej\workspace\sandbox\sandbox.py", line 7, in <module> ...
Keep getting some permission denied error Question: I keep getting some permission denied error, what is that? Every time when I am trying to install anything, the same permission denied error message I get in python, in nltk tool > error: could not create '/usr/local/lib/python2.7/dist-packages/nameparser': > Permis...
python finding multiple occurrences between 2 delimiter Question: i'm trying to find multiply occurrences between 2 delimiters using regex. Unfortunately i can't figure out how. The 2 delimiters are ' and ': import re string = "'lightOff' 'lightOn':,'lightOff' 'ovenOff' 'ovenOn': None 'radioOn': 'rad...
To print a particular folder name in python? Question: I've made a script in python which scans all the folders and sub-folders and then prints all the folders and subfolders which begin with the word Hello. Now I need to implement a change which is that I should be able to print any folder which has the word Hello. L...
PyCUDA NPP Library Compatability Question: I've been trying to access the Nvidia Performance Primitives library through Python, and I found a very useful tutorial last updated in 2011 at this site: <http://openvidia.sourceforge.net/index.php/OpenVIDIA/python> However, after downloading the CUDA 6.0 toolkit I can't see...
importRows Google Fusion Tables API Question: I would like to import rows from csv file to fusion table using the Google fusion tables API, I read [this reference](https://developers.google.com/fusiontables/docs/v1/reference/table/importRows), but I don't understand how to post my csv file here: <https://www.googleapis...
Google cloud sql: Lost connection to MySQL server at 'reading initial communication packet' Question: I've set up a default django/django-wiki project. Local tests work fine. Connecting to cloud sql from the local server (with `google.appengine.ext.django.backends.rdbms`) doesn't work, I believe due to some authenticat...
Trying to apply CPS to an interpreter Question: I'm trying to use CPS to simplify control-flow implementation in my Python interpreter. Specifically, when implementing `return`/`break`/`continue`, I have to store state and unwind manually, which is tedious. I've read that it's extraordinarily tricky to implement except...
Python multithreaded ZeroMQ REQ-REP Question: I am looking to implement a REQ-REP pattern with Python and ZeroMQ using multithreading. With Python, I can create a new thread when a new client connects to the server. This thread will handle all communications with that particular client, until the socket is closed: ...
exe generated from a python script with Py2exe does not work on xp Question: I have a python script that works fine on my computer (Python 2.7 32 bit installed). It has the following imports : import mechanize from bs4 import BeautifulSoup from Tkinter import * import jso...
ImportError: No module named ... after spyder install Question: Anaconda Spyder is supposed to include numpy, scipy etc with the installation. Someone has installed Spyder for me on Windows 7 but if I try to `import numpy` or `scipy` , I get this error: import numpy as np ImportError: No module named...
Parsing ip address with dpkt Question: I am using dpkt to parse a pcap file, however I am confused about how to extract the destination ip address. I am parsing the packets using `eth = dpkt.ethernet.Ethernet(buf)` which returns an ethernet object which looks like the following: Ethernet(src='\x00\x1a\xa...
Exchange Time for Memory in Python Question: Challenge here is in evaluating multiple large files. What coding will instruct Python to "load" a limited number of files into memory, process them, garbage collect and then load the next set? def main(directory): """ Create AudioAnalysis Obj...
Using urlparse to remove a certain string? Question: I have this URL: www.domain.com/a/b/c/d,authorised=false.html and I want to convert it into www.domain.com/a/b/c/d.html Please note I am using python 2.7. from urlparse import urlparse url = "www.domai...
parsing python to csv Question: I'm trying to download some game stats to do some analysis, only problem is each season the data their isn't 100% consistent. I grab the json file from the site, then wish to save it to a csv with the first line in the csv containing the heading for that column, so the heading would be ...
rPython using wrong python installation on Mac OSX Question: I've installed python 2.7.8 alongside the 2.7.5 which comes with OSX 10.9.4. Now how can I point `rPython` to python 2.7.8? ## Attempt #1 I've modified the OSX `.bash_profile` as follows to point everything to the newer python installation. ...
py2app: modulegraph missing scan_code Question: For some reason I can't explain or google, py2app crashes on me even with the simplest examples. Im using a python 3.4.1 virtual environment created as `Projects/Test/virtenv` which has py2app installed via pip. Here is the output of `$pip list`: altgraph ...
How do I perform some operation on the output of a function in Python? Question: I am trying to make a function's output behave as if it's my input. The goal is to make a new output from the old output. I have some code that looks like this: def func(): BLOCK OF CODE func() T...
How to run port lookup command in python subprocess Question: I am using terminal command while ! echo exit | nc 10.0.2.11 9445; do sleep 10; done in my commandline to lookup port in my remote machine.( it is working fine). I want to do this operation inside my python script. I found subprocess and...
Using pandas Combining/merging 2 different Excel files/sheets Question: I am trying to combine 2 different Excel files. (thanks to the post [Import multiple excel files into python pandas and concatenate them into one dataframe](http://stackoverflow.com/questions/20908018/import-multiple-excel- files-into-python-pandas...
The number of tries never increments by more than one in Python - help please? Question: Whenever it takes me several tries to beat the game, it always says the number_of_guesses is 1, which isn't true. What have I done wrong? My code: import random print("Welcome to Rock, Paper, Scissors. \nYo...
Migrate a database in Django Question: I am getting started with Django through [this](http://www.youtube.com/watch?v=3DccH9AMwFQ) beautiful video tutorial.On Tutorial 15 of the video series, there is database migration using **south**. But when I do `python manage.py migrate signups`, I got a whole lot of errors. The ...
sphinx autosummary with toctree also lists imported members Question: I use Sphinx and autosummary to produce the documentation of a Python software. It works well but the produced .rst files also list the imported functions and classes, which is not the behaviour I would like. For example a package "packageex" with t...
Python SQLAlchemy: Mapping a PostGIS geom field Question: SQLAlchemy maps DB columns to object members in Python. [For example](http://docs.sqlalchemy.org/en/rel_0_9/orm/tutorial.html): class User(Base): __tablename__ = 'users' id = Column(Integer, Sequence('user_id_seq'), primary_key=Tru...
How to make a multithreaded system work on same dictionary in python Question: I have a system designed to take data via a socket and store that into a dictionary to serve as a database. Then all my other modules (GUI, analysis, write_to_log_file, etc) will access the database and do what they need to do with the dicti...
Memoizing an entire block in Python Question: Say I have some code that creates several variables: # Some code # Beginning of the block to memoize a = foo() b = bar() ... c = # End of the block to memoize # ... some more code I would like to **memoize** the ent...
Connecting to ES using python script Question: I am trying to connect and retrieve data from a ES engine. I am using the following script: from elasticsearch import Elasticsearch as ES print "Setup connection..." es=ES(['http://elasticsearch......com:9200/cuevents-2014.34,cuevents-2014.33/_...
My csv export download button is broken Question: I am using cherrypy to run an interactive website and although the python function to generate the CSV seems to be working (if you interact with it directly, my browser downloads it), it does not seem to be giving the user this CSV file when I embed it in a form request...
loading javascript into ipython notebook Question: I am trying to import the following three js libraries. They all work except for crossfilter.js. Can anyone tell me what I am doing wrong? import jinja2 from IPython.display import display, Javascript, HTML %%javascript require.config({ ...
How to create directory in specified path? Question: I want to create directory. This is the code: from os import mkdir mkdir(*name of new directory*) When run from terminal, this creates directory in the folder that contains this python script. How to specify a path where I want to create...
(Python, pandas) adding an extra column, to the combined/merged Excel files Question: Hello all…I am wondering how it is possible to add an extra column, to the combined/merged Excel files. (thanks to the help to my [previous question](http://stackoverflow.com/questions/25400240/using-pandas-combining- merging-2-differ...
Using weak pointers that evaluate to a None type Question: In my implementation for python integration into a c++ application, I am adding support for nodes that might or might not be valid. Internally these are stored as weak pointers, so I was thinking of having an isValid() method that users can use before calling t...
Scrapy tutorial only crawling one page - tried everything in the current SO answer pages Question: I'm having a problem with the Scrapy tutorial. No matter what solutions I enter from others' questions about Scrapy only crawling one page that I've found on the web (including all of them on SO), it only crawls one page....
Gtk-WARNING: Unable to locate theme engine in module_path: "wimp" Question: I developed an Gtk Application that works on Windows. I use pyInstaller to build one exe file. Everything would be OK if not for the theme that not loads. **So, I have my spec file:** # -*- mode: python -*- directory = ...
Detail AttributeError: 'module' object has no attribute 'workbook' Question: I keep getting the Detail `AttributeError: 'module' object has no attribute 'workbook'` error. below is my code import xlwt workbook = xlwt.workbook() sheet = workbook.add_sheet('Eswar') sheet.write (...
Python embedded in C++ try_rich_compare error on types Question: I have an error in my program, which appears to be something to do with comparing two object types in python. Here is the error from gdb Program received signal SIGSEGV, Segmentation fault. 0x00007fffc3acd35c in try_rich_compare (v=...
Python last 60 end-of-months Question: This is my first post here so please let me know if I'm doing this wrong... I'm looking to take the last day of each month for the last 60 months, from a reference date. For example, if the reference date is today (Aug 21 2014), then the last end of month is July 31st, 2014, and...
Passing a list of indices to another list in Python. Correct syntax? Question: So I have the following code from sklearn: >>> from sklearn import cross_validation >>> X = np.array([[1, 2], [3, 4], [1, 2], [3, 4]]) >>> y = np.array([1, 2, 3, 4]) >>> kf = cross_validation.KFold(4, n_folds=2) ...
Trying to run django with gunicorn (Worker failed to boot) Question: I have been trying to deploy django using nginx and gunicorn, currently running into an issue right off the bat, I followed the advice suggested [on SO](http://stackoverflow.com/questions/24488891/gunicorn-errors-haltserver- haltserver-worker-failed-t...
python regex for operating system name Question: I am trying to get regex for operating system name: Windows XP, Windows Vista, Windows 7, Windows 8, windows 8.1 and windows server 2008 R2 Normally the operating system name is in a line, for example: Operating System: Windows 7 Professional 64-bit (6.1, Build 7601) Se...
How to read in a file with a mixture of different delimiters using Python csv module? Question: Input: A B C D E F This file is NOT exclusively tab-delimited, some entries are space-delimited to look like they were tab-delimited (which is annoying). I tried reading in the file with ...
Django project is very slow Question: I have a problem with my Django project. Currently I'm using Django 1.6, Python 3.3.3 sorl-thumbnail 12.0 and everything is really slow. I've spent the last 3 days in attempts to change it, but everything that I've tried, has had a very minor effect. Below are the numbers from the ...
from pylab import * fails on RHEL 6 due to need for GLIBC 2.14 Question: How might I get a pylab import that works... I'm willing to recompile for my box, but need to know where to put everything this works for all the users. Note that GLIB2.14 is required by libpng16.so.16, which was the original "trip-up" point. But,...
Python login to my cpanel with python Question: I want to create a script with python that test if my combination (username and password) is correct, but I always get a 401 HTTP response so i think the script can't submit the login data. (the cpanel login isn't a traditional login panel so i will use the demo login pan...
Error on slicing array in Python Question: I have a problem with slicing an array. The problem is that if I do some operation inside of function and return modified array my array outside of function is also changed. I could not really understand that behavior of numpy slicing opration on array. Here is the code: ...
Django amazon s3 SuspiciousOperation Question: So when i try accessing a certain image on S3 from my browser everything works fine. But when python is doing it i get a `SuspiciousOperation` error. My static folder is public on S3 so i really have no idea where this is coming from. Publication.objects.get...
Convert time to string with milliseconds Question: Python datetime.now() gives me current time including milliseconds like this: 2014-08-22 19:23:40.630000 How do I convert the above datetime object to a string that includes the milliseconds? I looked into `time.strftime()` but it does not provide...
Use cases of parallel programming using multiprocessing module in python Question: Im novice even in python and Im trying to write fast code with the multiprocessing module of python. Actually my question is very general: I'd like to know different ways of using multiprocessing and Im very confused because Im not sure ...
Fastest way to append a string to a text file w/o impact(effect) on web site load time Question: Suppose my web site needs to run this python code for everytime it loads.. f = open('/aaa', 'a') f.write('test' + '\n') all it does is.. "append" .. "test" to "/a" file. but perhaps there is a wa...
Showing test count in buildbot Question: I am not particularly happy about the [stats that Buildbot provides](http://buildbot.scons.org/builders/centos7-python-2.7/builds/5). I understand that it is for building and not testing - that's why it has a concept of Steps, but no concept of Test. Still there are many cases w...
Python: subprocess call with shell=False not working Question: I am using Python script to invoke a Java virtual machine. The following command works: subprocess.call(["./rvm"], shell=False) # works subprocess.call(["./rvm xyz"], shell=True) # works But, subprocess.call(["./rvm ...
Basic Tkinter/GUI Questions Question: I'm dirtying my hands with Python's Tkinter, specifically learning OOP for GUIs and have a few questions. 1. When constructing a class like so: class Keylogger(Frame): def __init__(self, master=None): frame = Frame.__init__(self, master) ...
Python/Numpy: How to avoid storing Boolean-indexed sub-arrays? Question: In using Numpy I often have the need to use Boolean indexing to access parts of an array. To makes things easier to read and type, I often store these sub- arrays into new variables, for example: n = 10000 X = np.random.rand((n,...
Python getting all links from a google search result page Question: i want to create a script that returns all the urls found in a page a google for example , so i create this script : (using BeautifulSoup) import urllib2 from BeautifulSoup import BeautifulSoup page = urllib2.urlopen("https://www...
Python-OpenCv error-261 Question: I'm new to Python-OvenCV programming. I'm using python idle to load and display image from folder. its showing the following error: **Traceback (most recent call last): File "C:\Python27\a.py", line 4, in <module> cv2.imshow("abc",img) error:...
Python hadoop mapreduce job using mrjob subprocess.CalledProcessError Question: I am trying to run basic example from the mrjob's website on my custom data. I have run Hadoop map reduce successfully using streaming, I have also successfully tried the script without Hadoop, but now I am trying to run it on Hadoop via mr...
Python subprocess calling Question: I have a problem with running files through python. This is my code : def report1(self): str="/Users/Apple/Desktop/Report1.exe" subprocess.call(str) This is the error i am getting : File "./DBMS.py", line 427, in <module> Main().run...
How can I restrict the scope of a multiprocessing process? Question: Using python's [`multiprocessing`](https://docs.python.org/2/library/multiprocessing.html) module, the following contrived example runs with minimal memory requirements: import multiprocessing # completely_unrelated_array = range(2...
How To Fetch data in Python from mysql database Question: I am new to python and i am facing problem while fetching data from mysql db while i am passing parameters in mysql query i think my mysql syntax is incorrect . **Here is the Error displayed on Screen Like this.** Internal Server Error The server encountered ...
How do I set an Argparse argument's default value to a positional argument's value? Question: I have a python script that sends a GET request. It uses Argparse to take three arguments: 1. **Address** : where to send the GET request 2. **Host** : the host to declare in the GET request 3. **Resource** : which reso...
Can't find matching form Question: I am trying to use Python's mechanize module to submit a form value and download a subsequent file. However, I keep getting an error saying the script can't find the form. The website I'm using is [here](https://ccmis.dhs.state.ia.us/clientportal/providersearch.aspx). I'm trying to ...
Python 2.7 and Flask - using functions from "Random" module returns "500 Internal Server Error" when using venv Question: I'm testing a web service written with python and flask. Within that service I want to generate a random number. None of the solutions posted on the web seem to work, **as if the "random" module doe...
how to use python to execute a curl command Question: I'm new to python and I want to execute a curl command in python. Usually, I just need enter the command in terminal and press return key. However, I don't know how it works in python. The command shows below: curl -d @request.json --header "Content...
Time-delayed grequests without using grequests.map() Question: This is the first time I've tried to use a library with less-than-ideal levels of documentation and example code, so bear with me. I have a tiny bit of experience with the Requests library, but I need to send separate requests to a specific address every se...
pkg_resources.ExtractionError: Can't extract file(s) to egg cache: [Errno 13] Permission denied: Question: So, I've been battling this ongoing problem for days and here's my latest dead-end: I wanted to uninstall cx_Oracle to start fresh. I found [this](http://stackoverflow.com/questions/922323/how-do-i-deactivate-an-...
python's negative threshold, the lowest non-infinity negative number? Question: What is python's threshold of representable negative numbers? What's the lowest number below which Python will call any other value a - negative inifinity? Answer: There is no most negative integer, as Python integers have arbitrary preci...
Python (nltk) - UnicodeDecodeError: 'ascii' codec can't decode byte Question: I'm new to NLTK. I'm getting this error and I've searched around for encoding/decoding and specifically the UnicodeDecodeError but this error seems specific to the NLTK source code. Here's the error: Traceback (most recent cal...
Downloading and Appending PDFs Question: I'm trying to download all the pdf urls from a website and append all the pdfs into a single file. At the moment, I have a list of all the urls containing pdfs. How can I download all the pdfs and append them together? I've attached my code below. I'm using Python 2.7.8. ...
Need help filtering out incomplete entries in a .csv [Python] Question: I have a set of data points, which look like this: ID 70014 1940 1 1 26.8 1 Y ID 70014 1940 1 2 29.8 1 Y ID 70014 1940 1 3 34.3 1 Y ID 70014 1940 1 4 35.7 1 Y ID 70014 1940 1 5 34.1 1 Y but some of the entries have missing values, like the on...
Find the difference of the two csv files Question: I have two csv files named `x.csv` and `y.csv`. `x.csv` has only one row - `Column A:0, Column B:1, Column C:2, Column D:3`. In `y.csv`, only one row - `Column A:2, Column B:3, Column C:4`. I need to find the difference of the two csv files using python and output to a...
How do you accsess to a gmail inbox and manage emails using python? Question: I've done a program to send mails, wich have a numbers code in the subject. Now I need to write another one to be able to read through all the mail subjects searching for one specific, and returns the contents of the mail I was searching for....
Add BullsEye to Image (changing pixels) Question: I am trying to add a target (bullseye) to an image without the use of importing python functions, it is proving to be rather difficult however I believe I need to define a circle through use of code. It should be done by changing the pixels as opposed to importing funct...
Python Matplotlib: Remove black background when rasterizing part of plot in EPS? Question: This question is related to [a comment on another question](http://stackoverflow.com/questions/19638773/matplotlib-plots-lose- transparency-when-saving-as-ps-eps#comment29161375_19640319). In matplotlib/python, I am trying to ra...
Python Pandas Append List of Dataframes Question: This is a sort of simple question but I don't think it has been asked before. If I have a list of dataframes (they need to be in this format because of multiprocessing), df_list=[df1,df2,...,dfn] Is there an elegant way to append all of them? A one...
How to capture special keys for python console application Question: Python 2.7 I'm trying to capture key presses in an application I'm writing using the getch() function in the msvcrt module. Some are easy, enter is 13, backspace is 8, .> is 46 etc. Some keys, such as Home, I can't work out. From the docstring for g...
Indexing Error with HDU FITS file format with numpy Question: I'm attempting to read the data from a FITS file using the `astropy` module `fits` and then standard numpy array handling. However, for some reason I am receiving the following error: IndexError: too many indices This is the code that I ...
How do I separate out unique rows in a list that has both a datetime and float column? Question: I'm relatively new to Python, and I am having trouble separating out unique rows from a data set that I had recently converted into lists. I broke separated out the data's unixtime recordings and converted them into datetim...
Error in if statement at the colon Question: I am helping my friend with his new idea about prime numbers. I am writing a simple python code. I've encounter a SyntaxError that I don't know why. Thanks for any help File "./prime.py", line 9 if isPrime(n) and isPrime(m) and isPrime(p):^ SyntaxError: invali...
Python Pandas read_csv with nrows=1 Question: I have this code reading a text file with headers. ANd append another file with the same headers to it. As the main file is very huge, I only want to read in part of it and get the column headers. I will get this error if the only line there is the header. And I do not have...
rename a log file in python using a logging module Question: I need to rename a logging file but continue logging to it afterwards. I'm running Python 3.x and using a `logging` module to create logs. logger = logging.getLogger(r'mylogger') handler = logging.FileHandler(r'mylog.txt', mode = r'w') ...
How to pull a file with python code in Unix env Question: I have the file in this place /home/unica/app/Affinium/Campaign/partitions/partition1/scripts/runscripts/campaigns/cnyr/dev I want to call it here.like. with open('/home/unica/app/Affinium/Campaign/partitions/partition1/scri...
Python CSV module handling comma within quote inside a field Question: I am using Python's csv module to parse data from a CSV file in my application. While testing the application, my colleague entered a piece of sample text copy-pasted from random website. The sample text has double quotes inside the field and a com...
Set Input Variable at the Start of a Python Script Question: I'm working on a python script in Red Hat that connect to a SQL database and run queries on a specific row. What I am attempting to do is to set the row that I want to query as an input variable that get's passed into the script when i start it. For example, ...
ListRasters, TypeError: 'NoneType' object is not iterable Question: Hi I have very minimal python experience and am not sure why I am getting this type error. I am trying to perform a raster to polygon conversion with the rasters from a different workspace than the initial env.workspace. Is this possible? And how can t...
Run statement in terminal if user enters a certain key otherwise continue with raw_input in python Question: I would like to be able to have the terminal ask questions to the user but I also want the user to be able to enter an alternate character which would be able to print something out and I was wondering how to do...
python transitivity between dictionaries Question: I have a list like the following in python (the real one is huge and I cannot do this only by looking at it): original1=[['email', 'tel', 'fecha', 'descripcion', 'categ'], ['a@gmail.com', '1', '2014-08-06 00:00:06', 'MySpace a', 'animales']...
How to get three integers from a specific line in a file with Python? Question: I have a (ASCII) file, `foo.txt`, which has a lot of stuff in it but I only care about the three numbers on line 2 (separated by white space). For your information (I don't know if it will be relevant) the number of columns on the lines bef...
IPython Failing to Run Code Question: I was trying out this Python code from [a training website](http://www.pythonforbeginners.com/python-on-the-web/web-scraping- with-beautifulsoup/) in IPython: from bs4 import BeautifulSoup import requests url = raw_input("www.google.com") r...
No such column error message Question: I read the tutorial from the django site and now I hit the wall. It seems very simple but it is giving me a problem. Everytime I run populate_rango.py script I get an error. I have modified my script and my models.py file based on the example from Tango with Django site but still...
Can you use GQL / Google DataStore outside of google appengine? Question: Can I use GQl/DataStore in my local python app? I know I can use them locally when running the dev_appserver.py when writing a webapp but now I don't want to do anything web related and keep it all local with just my normal pythonfile.py with no ...
Change tick frequency on X (time, not number) frequency in matplotlib Question: My `python` plot data only show 2 points on x axis. I would like to have more, but don't know how. x = [ datetime.datetime(1900,1,1,0,1,2), datetime.datetime(1900,1,1,0,1,3), ... ] ...
In Python how can I create and organized dictionary through the process of reading a CSV file Question: I am attempting to read a CSV file into Python and create and organized dictionary from the data retrieved. The CSV has a similar format to the one shown below. Time A B C D 0 1 2 4 ...
Python Concurrency: Hangs when using apply_async() Question: I am trying to learn about Python concurrency. As an experiment, I have the following program that uses a process pool and calls workers via apply_async(). To share information between the processes (work and results), I use a queue from multiprocessing.Manag...