Questions tagged [python]

Python is a multi-paradigm, dynamically typed, multipurpose programming language. It is designed to be quick to learn, understand, and use, and enforce a clean and uniform syntax. Please note that Python 2 is officially out of support as of 01-01-2020. Still, for version-specific Python questions, add the [python-2.7] or [python-3.x] tag. When using a Python variant (e.g., Jython, PyPy) or library (e.g., Pandas and NumPy), please include it in the tags.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

creating a nested dictionary using map

I have the following variables: LANGUAGES = ['EN','DE','FR','NL'] STOPWORDS_EN = [1,2,3,4] STOPWORDS_DE = [5,6,7,8] STOPWORDS_FR = [9,10,11,12] STOPWORDS_NL = [13,14,15,16] STOPWORDS =...
-1
votes
0answers
6 views

How to plot histogram of weight tensor of neural network in matplotlib

I am struggling with plotting a histogram of weights of neural networks (eg, Lenet) to study the shift of weights after I perform prunning. I want to visualize it in the form of a histogram. I want to ...
0
votes
0answers
5 views

Connecting to MySQL RDS hosted by AWS EC2 with Python gives authentification error

I have a weird problem where I cannot connect with my RDS instance hosted by my AWS EC2 instance using python. When I try to connect using MySQL Workbench the connection goes through. MYSQL Workbench ...
0
votes
0answers
3 views

exclude content field from crispy forms

forms.py from django import forms from tinymce import TinyMCE from .models import Article class TinyMCEWidget(TinyMCE): def use_required_attribute(self, *args): return False class ...
0
votes
0answers
3 views

Unsupervised feature selection for clustering using the python library FSFC

I was able to fit the data. The docs for fsfc are not explonatory. I dont see how to get the feature rank after fitting the data. Anyone tried this before?
0
votes
0answers
3 views

VEDO: Real time visualisation

I'm trying to make stereo vision system that could work in the real time. Is it possible to update point cloud without closing the window so it could work continuously?
0
votes
0answers
17 views

Execute a shell function from python subprocess

I'm trying to kill a specific process with a command which works well in the shell but not from python subprocess import subprocess subprocess.call(["kill", "$(ps | grep process | awk '{...
-1
votes
0answers
6 views

soup = BeautifulSoup(req.text, “html.parser”) print(soup.title)

When I tried to run this code it give me a NameError: name 'soup' is not defined
0
votes
0answers
9 views

Powershell 'ConvertTo-Mask' function to Python function

As part of migrating code base from PowerShell to Python, I need to covert the 'ConvertTo-Mask' function (available on PowerShell GET). PowerShell function: Function ConvertTo-Mask { [...
0
votes
0answers
10 views

How to add Reaction Button to Telegram message using Python?

I was able to attach buttons to the message. I am unable to add reaction buttons to the messages. Thank you in advance
0
votes
0answers
9 views

Ticks labels & font size for plot sharey = True, sharex=True

I have created histograms for the following data!! df TOTAL Grp1 Grp2 Grp3 Grp4 Grp5 1005 0.102488 0.200995 0.312438 0.667662 0.334328 642 0.15109 ...
0
votes
0answers
8 views

Pyfolio - drawdown table

I would like to view the drawdown table. When I use create_returns_tear_sheet get this How can I export or create only a drawdown table? I try: In: perf_func2 = timeseries.get_max_drawdown ...
0
votes
0answers
7 views

Open new link from the same chrome tab (chromedriver) - Python

I open a second tab with the command indicated below. With which command do I open a new link using the same tab? driver.execute_script("window.open('www.example');")
0
votes
0answers
8 views

When to compile PyQt5 resources and ui files when releasing a PyPI python package?

Use Case: I'm developing a PyQt5-based GUI application that I want to deploy using setuptools (setup.py) The package includes .ui and .qrc files that need to be compiled before running the ...
0
votes
2answers
29 views

I'm trying to create and call a function to reverse a string and remove the integer before the decimal point

So I have been around and around this for ages and I know I am making a newbie error. I just can't figure out what it is. When I think I have it resolved and there are no errors it still doesn't work ...

15 30 50 per page
1
2 3 4 5
111854
久草视频新免费_日韩视频一中文字暮_欧美三级片