Questions tagged as 'python'

0
answers

Django queryset without models

I need to make queries to the database ( postgresql ) but the tables I want to consult were created by pandas so I do not have a model to refer to, how do I do queries without models?     
asked by 14.09.2017 / 18:22
0
answers

Errno 10013 An attempt was made to access socket in a way forbidden - python 2.7

I'm trying to create a script that sends a simple email through gmail with python 2.7 but at the time of executing the code I get the following error:    Connection to Gmail failed   [Errno 10013] An attempt was made to access to socke...
asked by 18.08.2017 / 16:32
1
answer

PANDAS: Can I fill NAN values in just one column of my dataframe?

I have a dataframe of 3 columns all numeric. Within the data there are missing values NAN and I have no problems in filling them with fillna(method=pad) all except NAN of the first column that require fillna(mean()...
asked by 04.08.2017 / 19:47
2
answers

I would like to know what is the difference between a variable and a constant in the Python language

Could you help me I have a doubt that there is a difference between variable and constant in the language of python     
asked by 09.08.2017 / 00:19
0
answers

I can not cycle while on Tkinter (Python 2.7)

I'm doing a simple server application using sockets, using a command of a Button should call the function to listen to the customers but it stays stuck. from Tkinter import * import socket def listen(): global s s = socket.socket(socket....
asked by 03.08.2017 / 02:43
3
answers

Create global variables

I am quite new to the Python syntax in particular such as creating global, nonlocal and local variables and how to declare them without syntax errors . For example in the next program, I have # Estamos creando el juego de Piedra, papel o t...
asked by 23.05.2016 / 19:37
1
answer

Upload temperature data to a SQL database

Hello! I have a small project to upload temperature data to a database from a raspberry pi 3. I have seen several tutorials, but none of them have worked for me until now or the libraries that I download do not work. What should I do to ge...
asked by 31.07.2017 / 21:37
0
answers

fatal error: sapnwrfc.h: No such file or directory

I am trying to install the sapnwrfc library for python and get the following error: I am running: sudo python setup.py build I have not been able to solve this, someone to help me out?     
asked by 03.08.2017 / 18:37
0
answers

Import Python file to Neo4j

I need to import the Python file to Neo4j and for that I need to create nodes and labels. But I can not do it. What would it be like? This is my code: from neo4jrestclient.client import GraphDatabase import time from Bio import Entrez db =...
asked by 24.07.2017 / 17:36
2
answers

Create user Administrator using a view

I am currently taking a project that is very advanced and I am also new to django. I would like to know in what way I can add a user as an administrator from view, normally the developers who started the project did it from the python shell I...
asked by 02.08.2017 / 18:25