Questions tagged as 'python-3.x'

0
answers

Detective: Doubts

Good afternoon dear! I have a big question about a Python3 activity! Follow the activity link: link Firstly, I will send my code so that they understand how I thought and how I did it (without considering the part of solved cases, dead peop...
asked by 10.05.2018 / 18:42
0
answers

Error plotting a dataframe Pandas with seaborn.jointplot: "builtins.ValueError: can not convert float NaN to integer"

My dataset : pizzas.data 15.0,24.50 20.0,31.50 25.0,45.50 35.0,61.25 45.0,63.00 20.0,38.50 22.5,29.75 27.5,52.50 40.0,63.00 30.0,38.50 o Code: # -*- coding: utf-8 -*- import pandas as pd import numpy as np import matplotlib.pyplot as plt...
asked by 27.05.2018 / 17:03
0
answers

Chase Secret Issue - OBI 2017

I'm solving the following OBI problem: link Secret of the safe The secret system for opening this safe is quite complex. Instead of turning a button several times, as you usually see in the movies, the owner of the safe has to slide a contr...
asked by 15.05.2018 / 15:51
0
answers

Memory for chat bot

I'm doing a chatbot, I implemented some functions and I would like to know if you have how to do it save what I taught you by typing the phrase and then typing the answer for when I asked the question he knew the answer I did this way but not I...
asked by 23.04.2018 / 23:55
1
answer

Browse dates and other dates in Python

Good morning, I have a database in Mongo DB like this: { "_id" : ObjectId("5addb57d0043582d48ba898a"), "base" : "EUR", "date" : "2018-04-23", "rates" : { "BRL" : 4.175076 } { "_id" : ObjectId("5addb57d0043582d48ba898a"), "base" : "EUR", "...
asked by 14.05.2018 / 12:54
0
answers

Compare a specific string in a field in python

The code proposition is to try to find the string 'WCDMA FDD Band I' in the device_2 ['Band'] column. If so, it should mark 'YES' in the device_2 ['WCDMA FDD Band I'] field and otherwise, it should mark 'NAO' in the device_2 ['WCDMA FDD Band I']...
asked by 13.06.2018 / 16:05
2
answers

Python - Moving files to another folder

Could someone give me a help in the code below? Goal: Move files from one folder to another. I have two folders on the desktop, one called "test" and the other "test2". At first, I have 7 text files of extension ".txt". They are na...
asked by 21.04.2018 / 19:29
0
answers

Python and Asyncio

I'm reading the documentation from the Python asyncio library and I'm finding it difficult to differentiate some terms that are often used, they are: Task, Future. Both terms are used in similar ways give my question what the difference between...
asked by 16.04.2018 / 07:46
0
answers

Program uses the threading module but I did not notice any parallelism in the execution. What's wrong?

I made a script to decrease the quality of some mp3s by calling the ffmpeg program through the subprocess module. I added Threads thinking of doing the process in parallel for several files at the same time. The program works but I have seen NO...
asked by 10.04.2018 / 02:14
0
answers

Code review: Program that simulates the "game of doors": either you win a car or a goat!

Write a program to simulate the Door game . Make a program that has the output as the following: Hello, welcome to our program! Let's see if you will win a car or not! Choose a door: 3 You chose Door 3, but I inform you that at Gate 2 there...
asked by 24.03.2018 / 15:55