Questions tagged as 'python'

1
answer

error c1803 in kyvi installation

Every time I try to install kyvi, the following error message appears: "fatal error C1083: Can not open include file: 'GL / glew.h'     
asked by 01.04.2017 / 22:11
1
answer

Reading CSV file and storing the data in a vector

I have the following difficulty: I need to read the data that is inside a CSV file and store it in an array to perform calculations with such data, but I do not know how to do it. I am using Python 3.6. Thank you in advance. My code looks lik...
asked by 27.04.2017 / 17:37
2
answers

Transform columns into python panda lines

I need to make some modifications to a dataframe but I can not. I'm using pandas. I have the table below: ButdoIwantittolooklikethis? Can anyone help me?     
asked by 27.04.2017 / 20:38
1
answer

Scraping in Python. Assemble an insert [closed]

I would like to extract this table using perhaps Scraping in Python: link I would like to know if it is possible to extract this table so that the sql of insert is mounted as below: INSERT INTO TABELA (CAMPO1, CAMPO2) VALUES (1007, 'Co...
asked by 27.04.2017 / 22:53
2
answers

How to create relationship tables 1: N?

I have already studied database and understand how the diagramming of this type of relationship works, but now that I am trying to implement this database using sqlite3 and python I have seen some problems. I have the following database Theprob...
asked by 23.03.2017 / 18:22
1
answer

What is the difference between sublime_plugin.TextCommand and sublime_plugin.WindowComand?

When we create a plugin, Sublime Text generally creates a sample using the sublime_plugin.TextCommand class. import sublime import sublime_plugin class ExampleCommand(sublime_plugin.TextCommand): def run(self, edit): self....
asked by 04.04.2017 / 02:09
1
answer

Problem concatenating csv files

I'm trying to concatenate one csv file with another. My goal is to extract data from an HTML every day and my routine should get a csv file called 'old_date' where a saved dataframe is located in csv, and when I run again I should create a new u...
asked by 04.04.2017 / 16:10
1
answer

Sending POST with Python through curl

I want to turn the form (which is working) into a curl to run on the backend <form action="https://pt.stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fpt.stackoverflow.com%2f" method="post"> <input type="te...
asked by 28.02.2017 / 13:42
1
answer

Python - Error in Mongo Engine, Error: Tried to save duplicate unique keys (Duplicate Key Error)

Python is trying to save more than one user in Json but it does not accept the introduction of more than one, it always gives the:    Tried to save duplicate unique keys (Duplicate Key Error) Here is the code: from .model import User, U...
asked by 29.08.2017 / 21:27
1
answer

Python Source with subprocess

I'm trying to run a command line in the terminal through a script in python. The command line is as follows: vcftools --vcf <arquivo.vcf> --extract-FORMAT-info GT --out <arquivo sem extensão> For this I have the following lines:...
asked by 15.03.2017 / 16:16