Questions tagged [python-3.x]
DO NOT USE UNLESS YOUR QUESTION IS FOR PYTHON 3 ONLY. Always use alongside the standard [python] tag.
python-3.x
343,732
questions
0
votes
0
answers
4
views
Import Active Directory PowerShell Module inside a Python project
I have a python file contains a PowerShell script using subprocess library. So I import Active Directory module inside my PowerShell script, But it needs the module to be loaded and exists in my pc ...
0
votes
1
answer
22
views
the simplest way to change permission a file with python
the simplest way to change permission a file to just my running python program can access it(all permission but just my python program)
for example:
there is a txt file, I want to change its ...
1
vote
0
answers
14
views
Waterman-Smith-Beyer implementation in Python
I am working on a text aligner to help me get a better understanding of specific steps necessary to perform sequence alignment. So far, things have been going great but I noticed yesterday that my ...
-1
votes
0
answers
16
views
How to properly save dataframe to .ods in python?
I have a pandas dataframe. I want to save it into .ods format.
The problem is that when I open the resulting .ods in Excel, it tells me that regular expressions can produce different results.
Sample ...
1
vote
1
answer
15
views
overloading with multipledispatch when working in boto3
I would like to have two functions same name(overloaded) that use these boto3 functions. The function bodies would be different since roles have tags but groups do not.
get_role(RoleName = rolename)
...
-2
votes
0
answers
11
views
Aı deep learning code generator for code vectorization [closed]
Python Hello, I have language and code headings consisting of json structure and there are codes under the code headings. Can you help me clean and vectorize the codes? Thank you. Note: I want my ...
0
votes
0
answers
6
views
How to extract Total Electron Content values for the regions of the Ionosphere (equatorial, mid-latitude, and high latitude) from the Ionex map file?
import os
import shutil
import chardet
def decompress_file(file_path):
# Decompress the .Z file to a temporary location
temp_path = file_path.rstrip('.Z') # Remove the .Z extension for temp file
...
0
votes
0
answers
25
views
How do I make a certain substring come first in my mapping for printing combinations one at a time?
I'm working with python and I am currently generating combinations of a 74 character string that prints all combinations one at a time. I have a mapping that allows me to choose which kind of string I ...
-1
votes
0
answers
12
views
awsume-configure fails on Ubuntu 24.04 [closed]
unfortunately I can't install this tool, which is important for me.
╭─USER@PC ~
╰─$ awsume-configure
Traceback (most recent call last):
File "/home/USER/.local/bin/awsume-configure", line 5, ...
-6
votes
1
answer
42
views
Problem with converting number to corresponding alphabet [closed]
My code is to take a string and reverse the number placement of each alphabet, a=27, z=1. so, a=z and b=y, encrypting the input in this pattern
input = input()
for character in input: number = ord(...
0
votes
0
answers
9
views
how to use fiddler classic in docker within an xvfb
I have a crawler project using selenium and chrome. I need to crawl, take screenshot and record videos for the crawler using xvfb in docker.
My Goal is to
run docker
start the xvfb
3.. open fiddler ...
0
votes
0
answers
13
views
Tkinter radiobutton activate on hovering *only* the first time
I have a very weird issue with Tkinter radiobuttons, which has been adressed in couple of other stackoverflow posts, but none of the accepted answers solved the issue.
In my app, radio buttons ...
1
vote
1
answer
27
views
get all possible paths in directed cyclic graph
I've a directed cyclic graph, want to find all possible paths starting from given (or by default root) node without repeating the same path again.
Here, node "B", "D", and "C&...
0
votes
1
answer
43
views
Dataframe with FROM and TO column. Unordered, Get correct combinations
df = pd.DataFrame({
'from': ['Start', '21', '73', 'Start', '55', '1', '2', '3'],
'to': ['21', '73', '55', '1', '54', '2', '3', '4']
})
from
to
0
Start
21
1
21
73
2
73
55
3
Start
1
4
55
...
-1
votes
0
answers
22
views
Determine whether X is contained in Y
A = 1
B = 2
C = 4
D = 8
E = 16
…
XX = 6
YY = 13
Detect A
XX = 6 # B + C -> A not contained
YY = 13 # A + C + D -> A contained
Detect B
XX = 6 # B + C -> B contained
YY = 13 # A + C + D -&...