Questions tagged as 'python'

0
answers

Connecting MySQL Database with Python

requesting your support to find the reason why my Python code does not connect to a Server other than Localhost mounted on XAMPP. The error it throws is about my IP address, not so much about the server's. Annex code and error output. Greetings!...
asked by 12.06.2018 / 17:17
0
answers

Django + Models from existing database

Hi, I'm working on a project that I have a database in postgresql and my client needs to also work with an existing database on sql server that has about 150 tables of which I only need about 20, my question is Can you create the model of only...
asked by 12.06.2018 / 18:01
0
answers

Convert a string of string to Json

Hello everyone I need to convert a list of strings separated by points to json, I need an algorithm to do this task: Entry: l = [] l.append("a.a") l.append("a.b") l.append("a.c") l.append("a.d") l.append("a.e.d") l.append("a.e.e")...
asked by 11.06.2018 / 02:11
0
answers

get probabilities with customized cross validation and LinearSVC

I'm trying to get the probabilities of the predictions of a linear SVM model but using Python's LinearSVC function. I also have to do a custom cross validation. With my code it does not work. What am I doing wrong? model= LinearSVC() my_cv =...
asked by 19.06.2018 / 17:21
1
answer

Multiple Database django

Hi, I'm new to django, I'm working on a project where I use sql server 2008 myself, but I have a problem where I'm going to put the application will not always be connected to the same database server or to the same database data because they ha...
asked by 19.06.2018 / 19:15
0
answers

Error with pyodbc.connect

I have some databases to which I want to connect via pyodbc, if I enter the code: import pyodbc pyodbc.dataSources() I get the following: Out[28]: {'dBASE Files': 'Microsoft Access dBASE Driver (*.dbf, *.ndx, *.mdx)', 'Excel Files':...
asked by 20.06.2018 / 00:18
0
answers

I can not install IronPython in Visual Studio

I have installed Visual Studio 2017 Community. Among the workloads that I chose is Python: however, when trying to create projects, for Windows Forms for example, the error appears that IronPython | 2.7-32 is missing. I installed that versi...
asked by 10.06.2018 / 21:51
0
answers

Python to update Kali Linux does not show the modules

I need help people, when updating and upgrading kali linux the version of python that is installed is the 2.7.15rc1, and when wanting to show the help and the list of modules this error jumps, I even installed the libraries that it says and It d...
asked by 09.06.2018 / 22:51
1
answer

reports pdf with python

I need to know how to show the records of a query in the database to a pdf document using python and reportlab. The idea is to show a table in a pdf where the data generated by the query to the DB is included     
asked by 14.06.2018 / 05:14
1
answer

Avoid NaN values in dataframe in Python

How could I avoid NaN values when generating a graph with matplotlib in Python? I mean, I do not want to replace them, just do not take them into account. It is to generate bar and pie charts only with the valid values of a column. I would also...
asked by 08.06.2018 / 14:58