Python is a dynamic and strongly typed programming language designed to emphasize usability. Two similar but mostly incompatible versions of Python are in widespread use (2 and 3). If you have a version-specific Python question, consider using the [python-2.7] or [python-3.x] tags in addition to the ...

learn more…| top users | synonyms (3)|python jobs

0
votes
0answers
5 views

Removing data rows depending on another dataframe

So I have a dataframe called subjects_to_exclude which looks something like this: STUDY_ID0 31 72 123 254 29and another dataframe cleaned_bp: STUDY_ID SBP DBP ...
0
votes
0answers
2 views

Distributed Tensorflow: Unable to run evaluation-only worker

I'm trying to distribute training and evaluation over two machines:PC1: training on GPU and parameter serverPC2: evaluation-only, whenever a new checkpoint is availableTo do so, I'm trying to ...
1
vote
1answer
11 views

Project module not found outside virtualenv

My project has basically an architecture like this:src├── __init__.py├── main.py└── core├── __init__.py├── module1.py└── module2.pyAll __init__.py files are empty, in main.py I ...
0
votes
0answers
8 views

Pandas: Error when I tried to install it using pip

I've tried to install pandas using pip but several warnings and an one error appears.Here is the command that I usedpip install pandasI've received several warning messages like this:x86_64-...
0
votes
0answers
8 views

Creating a DataFrame from list of Series

I have below list of series:import pandas as pdmy_series_a=pd.Series([1,2,2,4,5], name='Group_A')my_series_b=pd.Series([50,50,70], name='Group_B')my_series_c=pd.Series([333,222,111,111], ...
-1
votes
0answers
10 views

How to copy the page content using Python

I have tried to copy the page content using Python but I m unable to get theseCode:import requestsimport json# Get the feed#r=requests.get("http://gdata.youtube.com/feeds/api/...
0
votes
1answer
16 views

indexing list by tuples

def greedy_decoder(input):flag=0prob=1ans_partial=np.zeros((1,maxlen_input))ans_partial[0, -1]=2 # the index of the symbol BOS (begin of sentence)for k in range(...
0
votes
0answers
7 views

Pandas Dataframe but does not display filtered results. Filter Logic works, display shows NaT for filtered results

I am trying to simply filter based on the date in the Date_Start column and return a dataframe that includes the index, Full_Path and Date_Start columns. Seems like all examples I have found do not ...
0
votes
0answers
6 views

pyttsx error (mac): cannot find module named foundation

This is my debut in programming, I searched extensively through stakoverflow in order to get an answer but I am kinda lost on this one.I am trying to get pyttsx to work on my mac.When i run the ...
0
votes
0answers
10 views

How to create Pandas data frame from a tuple

I have a tuple,named a, with 10 columns.Sample data looks like((12, '22', '32'),Column-1 Column-2 Column-3 colum-4 Column-5 Colum-6 Colum-7 Week ACCT_YEAR NAME12 22 32 … … …...
0
votes
0answers
13 views

Django: Rendering a table with 2 objects of variable size in HTML template

I've a bit of a dilemma here, and I'm not sure how best to approach it.I need to create a table of all objects in model "Chamber" and all objects in (ForeignKey related) model "ChamberProperties", ...
0
votes
0answers
6 views

Importing custom class or custom functions from different directories/drives

Let say my current working directory is "C:\Users\john\Desktop\work"I have a custom made function/class called "custom.py" which is in "F:\Python"and I want to access my file in "D:\input"...
0
votes
0answers
9 views

Docker image as python generator

I have a docker image that contains some data and a python generator that uses that data to yield some results I'm interested in. Then on my host machine (or maybe inside another container), I ...
0
votes
0answers
8 views

installing H2O.ai Python driver matching server's version?

I'm trying to install 3.14.0.1 to match the server's version. PyPi has a limited set listed at:https://pypi.python.org/pypi/h2oThe documentation only offers a (current?) install command using a ...
6
votes
2answers
41 views

How to use the IF ALL statement in Python

I have a function named checker(nums) that has an argument that will later receive a list. What i want to do with that list is to check if each other element is greater or equal to the previous one....

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,