Questions tagged as 'python'

0
answers

how to call style file from javascript

I'm doing the integration of the rich text editor SCeditor, and when I have to give the styles I have to enter the path of these, the problem is that I am working with flask, and it does not implement them. I tried the standard way    '../...
asked by 29.10.2018 / 14:59
0
answers

Event Scroll Vertial touchpad in TKINTER - PYTHON 3.6 [closed]

I have a vertical scroll bar in an application created with Tkinter. That scroll works perfectly with the mouse wheel, I would like to make it work by sliding 2 fingers through the touchpad of the laptop, as in a browser for example.     
asked by 29.10.2018 / 16:53
0
answers

Database and SpiderCrawl

I have a database in Stata (I know it's complicated to use Stata and Python, but there's no problem as I can export the database to Excel) Now, this database has Name, Surname, Date of birth as variables, and I want to use the data from this...
asked by 26.10.2018 / 19:53
0
answers

Create several tables with different names from a macro

Hi, I'm new using python, I'm trying to read several csv files and create a table in python for each of them. I already managed to import them but I do not know how to make the name of each table change, here's the code: import os import glob...
asked by 04.11.2018 / 21:43
1
answer

Compare data shared in two columns in Python

I compared columns in python, I wanted to know what data in column 1 (col1) was in column 2 (col2) . I used the following: set(df['col1']).intersection(set(df['col2'])) I throw the result like: set([u'TSC22D4', u'HSPB1', u'RARR...
asked by 01.11.2018 / 21:11
1
answer

Do not insert data. from the input between django and postgres

catalog / urls.py from django.urls import path from catalogos.views import CategoriaView,CategoriaNew urlpatterns =[ ..... path('categorias/new', CategoriaNew.as_view(),name='categoria_new'), ] views.py class CategoriaNew(g...
asked by 30.10.2018 / 18:17
0
answers

Error: Input arrays should have the same number of samples as target arrays.Found 6400 input samples and 1600 target samples

I'm trying to do classification but I have this error import os,cv2 import numpy as np from sklearn.utils import shuffle from tensorflow.python.keras.preprocessing.image import ImageDataGenerator from sklearn.model_selection import train_test_...
asked by 26.10.2018 / 23:11
0
answers

Edit model auth user groups Django

My data model requires multiple users with multiple roles in multiple companies. That is, a user can be manager of company 1, technician in company 1, client in company 2 and client in company 3. I use the Django groups for the roles: Group 1 Ma...
asked by 27.10.2018 / 01:16
0
answers

sublime text 3 python error (sublime rpel)

Hello good afternoon I tell you my problem, the sublime rpel ran me correctly until without much thought I moved the folder where I installed the pyyhon (Python27), from that moment (after installing and desisntalar the sublimerpel, the sublime...
asked by 26.10.2018 / 21:16
0
answers

Anaconda is not updated, it stays loading

I've been trying to update Anaconda but it stays loading in the following message Current version 1.8.7 Aveilable version 1.9.2 Updating package on root ... I tried it by console with the command "conda update conda" and without success, i...
asked by 30.10.2018 / 12:29