Questions tagged as 'python'

2
answers

Problem with accents, running in Windows Prompt

I'm creating software in Python , I'm having problems with string accents. The program is simple .. It asks questions to the user (name, version, description, etc.) and adds the answers of these questions in the middle of a text file .....
asked by 23.03.2015 / 15:01
2
answers

What is the shortcut for executing code in Sublime Text?

How do I get the Ctrl(Cmd)+B shortcut in Sublime Text, run the Python code on the same screen as the code?     
asked by 01.03.2014 / 01:21
1
answer

How to correctly use the styling of pandas?

Python code From the examples from documentation the following code was created: import pandas as pd import os import webbrowser import io def highlight_max(s): ''' highlight the maximum in a Series yellow. ''' is_max = s...
asked by 18.12.2018 / 20:04
0
answers

Unconfigured accents when passing data from a txt to a list in Python [closed]

I have a python script that takes words from a ".txt" file through the open method and puts them in a list. However, if the word in the text file has an accent, how long it has been passed to the list in python the accent becomes "Äe" for exampl...
asked by 27.12.2018 / 22:34
2
answers

Concatenating variables in the Django template

Talk to people, good morning, I have a problem. I'm running a lista but I want concatenar my list that I'm calling in template as {{ list }} and {{ forloop.counter0 }} so that in my is only displayed 1 l...
asked by 05.10.2018 / 17:05
2
answers

Problems saving data in form-model django

Sirs, good afternoon! I'm having a little problem, I made some changes to an application that I'm developing for studies. I come across the following, fill in the form all right and when I give a save, nothing happens, does not redirect to the l...
asked by 11.09.2014 / 16:35
2
answers

ORA-00907: right parenthesis not found

Hello, I have just been working with oracle, and I'm having this problem in the query, it returns the error: ORA-00907: right parenthesis not found, it follows below: ("""select ordem.id,ordem.data_prog,ordem.rms, ordem.pkpk,...
asked by 03.01.2018 / 14:27
0
answers

How to make all possible combinations to arrive at a proposed result?

Well, let's start at the beginning, by the origin, the beginning of the beginning. I have this program: from itertools import combinations lis = [1,2,3,4,5,6,7,8,9] for i in (3, len(lis)): for comb in combinations(lis, i): if sum...
asked by 03.01.2018 / 00:02
0
answers

Python connection error with firebase

I'm venturing into python and trying to make a connection by following the following documentation: link I created it in the firebase: AndImadethefollowingcodeinpython:fromfirebaseimportfirebasefirebase=firebase.FirebaseApplication('https:...
asked by 03.11.2017 / 16:45
1
answer

Adding a new data to an empty pandas dataframe

I am creating a code to read several CSV files and extract some parameters and mount a new dataframe with pandas, however I am facing a problem in this construction. Initially, I wanted to create an empty dataframe and as I read the CSVs I wo...
asked by 18.11.2018 / 19:36