I have a Dialog with a unique Wigdet that occupies the entire window. In this case it is a QTextEdit and is created with Qt Designer .
This is the file in Python :
from PyQt4 import QtCore, QtGui
try:...
I was recently learning how to put a comment box (using the Text widget) in a window made with tkinter and I was wondering if you could rescue the value or content that is entered by the Text widget, probe with the parameter " textvariable="but...
I'm trying to read data from a csv file, especially numbers but I'm getting an unexpected result.
example:
csv: "17.913,92";"17.913,92";
import csv
with open('eggs.csv', 'rb') as csvfile:
reader = csv.reader(csvfile, delimite...
I have the following problem, the color palettes that matplotlib brings are predetermined, and I am making the following graphic:
import pylab as plt
import pandas as pd
import numpy as np
fig = plt.figure()
x1 = np.arange(1,13,1)
y1...
Good afternoon dear stackoverflow friends.
I have a code that runs very well is a pdf generator from django. By means of which prints a html document as a common pdf and my current desire is to be able to pass parameters, that is, any diction...
Once the Python 3.6 is loaded, on a laptop processor I3 2.53 GHz, Windows 7 Ultimate SP1, 6 Gb RAM and 78 GB free. When trying to open the Python IDLE it shows the message "IDLE can not bind to a TCP / IP port"
I have the result of a union with dataframe merge.
actor_crew = pd.merge(actor, crew, on='directors', how='inner')
basic_actor_crew = pd.merge(Title_Data, actor_crew, on='tconst', how='inner')
basic_actor_crew_ratings = pd.merge(basic_actor_cr...
I want to read a file on my PC but I get an error, maybe you can help me
import numpy as np
import csv
import logging
csvFile = 'C:/Users/Usuario/Desktop/house/GFG.csv'
def __init__(self, _data=csvFile, _shortTerm=10, _longTerm=15):
s...
Hi, I have this df. I am trying to obtain average values assigned to each hour of measured data with a frequency of 5 minutes. This is how I charge the df from MySQL:
import mysql.connector
from mysql.connector import errorcode
import pa...