Questions tagged as 'python'

0
answers

Private PIP repository

I come from the. Net world and lately I am very interested in Pyhtoh, I have created some modules to perform common tasks. I want, as I do in .Net with private nuget repositories, to be able to have my own repository so that when I work on ne...
asked by 17.11.2017 / 09:38
1
answer

TypeError: 'numpy.float64' object can not be interpreted as an integer

I try to perform an arithmetic operation using values obtained from a DataFrame using statements df.loc[] . The sentence beneficio = (cotz_fin - cotz_ini) * opcion produces the error:    "TypeError: 'numpy.float64' object can not...
asked by 13.11.2017 / 13:50
1
answer

Print the results of consultation records with LIKE. mysql + python3

Hi, I would appreciate it if someone could help me with this problem. I want to print each of the results that this query would throw at me, as when it is executed in MySQL. What I want is for example to obtain all the records that contain the w...
asked by 10.11.2017 / 09:10
0
answers

Error: Microsoft Visual C ++ 10.0 is required (Unable to find vcvarsall.bat).

I've been trying to connect Python with MySQL and I could not connect, I'm using Python 3.4 and MySQL Workbench. I have already installed the Microsoft Visual C ++ 2010. If anyone knows, please help me.     
asked by 13.11.2017 / 21:36
0
answers

cURL (API) in Python

I'm accessing the URL API through cURL and I'm looking to do it through Python. I do not know if this can be done but it would solve my job a lot. The steps I'm taking are: I enter this code to my terminal and it returns me the answer: Cod...
asked by 08.11.2017 / 12:40
2
answers

error flask: no moduled named 'markupsafe._compat'

this is the complete error: (flask_env) C:\Users\pcort\Documents\tuMicrofono.com>index.py Traceback (most recent call last): File "C:\Users\pcort\Documents\tuMicrofono.com\index.py", line 1, in <module> from flask import Flask...
asked by 07.11.2017 / 16:15
1
answer

I do not load styles when starting a server in flask

I do not load the css styles of my page when I start it with flask, but I open the file on my own if I upload them. This is my flask code: from flask import Flask from flask import render_template app = Flask(__name__) @app.route('/') def...
asked by 07.11.2017 / 20:38
0
answers

Convert a list of two columns into a DataFrame

I have a list with two columns, with this structure: ....'2011-10-18', '99,610000', '', '2011-10-17', '99,680000', '', '2011-10-14', '99,870000', '', '2011-10-13', '100,000000', ''] To try to convert it into a DataFrame I execute this code...
asked by 07.11.2017 / 19:59
1
answer

Error when running flask

My mistake: (flask_env) C:\Users\pcort\Documents\tuMicrofono.com>index.py Traceback (most recent call last): File "C:\Users\pcort\Documents\tuMicrofono.com\index.py", line 1, in <module> from flask import Flask File "C:\Users\...
asked by 07.11.2017 / 17:39
1
answer

Passing data from a csv to a list

I have a csv similar to the following: ID;texto 1;Los niños comen sardinas 2;Los pájaros vuelan alto porque tienen alas 3;Érase una vez la vida 4;Un 67% de los adultos vive en la pobreza I want to read the csv and extract the text column. I...
asked by 04.11.2017 / 13:27