1
vote
2answers
32 views

FLIPKART.COM product 'price' and product 'title' extraction using PYTHON

I have written the following Python code to extract the PRICE of the item specified from flipkart.com import urllib2 import bs4 import re item="Wilco Classic Library: Autobiography Of a Yogi ...
0
votes
3answers
40 views

Finding a tuple with greatest value

Given these two lists: first = [('-2.50', '1.91', '2.03'), ('3.00', '1.83', '2.08')] second = [(('-2.50', 0.889258, 1.069258), ('3.00', 0.931381, 1.021381))] It's a two-task challenge. Firslty, in ...
0
votes
0answers
18 views

Create and fit a Multiplicative linear regression using Python/Sklearn

I'm using Python 2.7 and Scikit-learn to fit a dataset using multiplicate linear regression, where the different terms are multiplied together instead of added together like in ...
3
votes
1answer
34 views

How to pickle a namedtuple instance correctly

I'm learning how to use pickle. I've created a namedtuple object, appended it to a list, and tried to pickle that list. However, I get the following error: pickle.PicklingError: Can't pickle ...
0
votes
0answers
25 views

Can't install python module on hosting

I'm trying to install the module imaplib2 on my blue-host hosting (python 2.7.4) using 'python imaplib2.py install' and getting this error: Traceback (most recent call last): File "imaplib2.py", ...
0
votes
2answers
13 views

Python embedded data persistence that's simple, modifiable, and reliable

Looking for something for Python 2.7 that is: Simple - Get up and running quickly without a lot of overhead Modifiable - Can handle the changes that come with prototyping and frequent changes to ...
-1
votes
1answer
27 views

Plotting a Pandas DataSeries.GroupBy

I am new to python and pandas, and have the following DataFrame. How can I plot the DataFrame where each ModelID is a separate plot, saledate is the x-axis and MeanToDate is the y-axis? Attempt ...
1
vote
1answer
10 views

Error when parsing attributes with python minidom

I have a structure like this in my xml file: <questions> <q question="Where were Jim and his mother going?" answer="The school"/> <q question="What color was the ball?" ...
4
votes
2answers
63 views

Why does this function cause a Maximum recusion error?

I have a very simple function in python that I made while using codecademy.com. The code passed the exercise but it does cause a maximum recursion error and I do not understand why. This is what I ...
0
votes
1answer
13 views

Passing est datetime to MySql

In MySql db there is column of type DATETIME. I need to select the records by this column -- ones that are less than current est date. I used the code from Python - datetime of a specific timezone to ...
0
votes
0answers
22 views

django tastypie - api authentication ? its server for ios app

I am building IOS app that talks to django server for getting the data. This app uses facebook authentication for login, so I am thinking like this: In IOS app, after clicking login button(fb auth), ...
0
votes
2answers
25 views

Getting <generator object <genexpr>

I have 2 lists: first_lst = [('-2.50', 0.49, 0.52), ('-2.00', 0.52, 0.50)] second_lst = [('-2.50', '1.91', '2.03'), ('-2.00', '1.83', '2.08')] I want to do the following math to it: Multiply 0.49 ...
1
vote
3answers
30 views

How to import a module of functions and pass variables between modules

A file 'Definitions.py' contains the code: def testing(a,b): global result for count in range(a,b): result.append(0) print result While file 'Program.py' contains the code: ...
-2
votes
1answer
94 views

Should I run 1000 python scripts at once? [closed]

I'm using a vration of this python script to listen to a gmail account and get a notification when a new email has arrived to the mailbox. I want to listen to 1000 gmail accounts. Would it be wise to ...
0
votes
2answers
52 views

Class definition syntax in python

I am very new to python.I am working with some python code.I am trying to map the python object oriented concepts to those of C++ which I think is a good way to learn.I can across two types of class ...

1 2 3 4 5 284
15 30 50 per page