2,211,308 questions
0
votes
0
answers
18
views
2D plots in plotly cannot show small variations
I have to plot some kind of graphs to represent the data below:
[[ 0. , 234. , 568.33333333, 881.66666667],
[ 0. , 234.66888889, 569.44555556, 865.03806017],
[ 0. , 235....
-2
votes
0
answers
36
views
Issue with int while trying to access a b
Good evening everyone. I'm quite new in programming I'm making a bot for my Telegram group and I'm having an error at the very end of the code. Could someone help me, please?
A brief background:
When ...
0
votes
1
answer
12
views
Is there simpler way to get all nested text inside of ElementTree?
I am currently using the xml.etree Python library to parse HTML.
After finding a target DOM element, I am attempting to extract its text. Unfortunately, it seems that the .text attribute is severely ...
0
votes
0
answers
13
views
Disable FreeCAD recomputes from the Python console (not the mouse)
In FreeCAD, if I right-mouse-click on my document in the model tree, I have the option to "Skip recomputes". This action does not generate Python code in the console. How can I do this ...
0
votes
0
answers
9
views
Image not reloading - kivy python
So I'm very new to Kivy, and the point here is to have a random integer cycle through 3 random integers and change images corresponding to the integers, with a clock checking this every second.
It ...
2
votes
2
answers
72
views
Is "type" a keyword
When I read the Python C API Reference Manual, it points to below from https://docs.python.org/3/c-api/type.html#c.PyType_Type
type PyTypeObject
Part of the Limited API (as an opaque struct).
The C ...
1
vote
1
answer
14
views
Does file_obj.close() nicely close file objects in other modules that have been set equal to file_obj?
I have a file main_file.py that creates a global variable file_obj by opening a text file and imports a module imported_module.py which has functions that write to this file and therefore also has a ...
0
votes
2
answers
32
views
Comapre two DF with different lengths based on same column name
I have 2 Dataframe of different lengths (number of rows and columns are different )but having some same column names
I want to filter out rows of DF1 where column value of Dataframe 1 is present in ...
0
votes
0
answers
8
views
Stream Recorder Using FFmpeg Fails on AWS Lambda
I am trying to stream audio from URLs and save them to a file in S3 using AWS Lambda with FFmpeg. Here is an example FFmpeg command I'm using:
ffmpeg -hide_banner -loglevel error -t 10 -i http://...
0
votes
0
answers
14
views
Match a 3D submesh-template in main mesh
I am in python loading 3D models as meshes (their data consists of vertices, normals and faces). I want to find their connectable points. These connection points are modeled the same way in every of ...
3
votes
1
answer
24
views
How to replace string values in a strict way in Polars?
I'm working with a Polars DataFrame that contains a column with string values. I aim to replace specific values in this column using the str.replace_many() method.
My dataframe:
import polars as pl
df ...
-6
votes
0
answers
47
views
How can I improve this Python function? [closed]
I’ve written a program and would love your feedback. If you find any issues, please let me know so I can fix them. Thanks!
I work in Iran, thank you for solving my problem, I am trying very hard
If ...
-2
votes
0
answers
45
views
'str' object has no attribute 'items' - but why [closed]
So I am perplexed, I have this function:
def generateCriticalHigh():
build_dir2 = "LEFT_TO_RIGHT"
table_attr2 = {"style" : "width:100%", "class" : "...
-3
votes
1
answer
39
views
Having serious problems with passing variables / lists between functions, and then getting them to execute the program
I'm trying to get the program to open a file, send that data to a list 'words', and then have it send that list to the pickWord() function, where it will then pick a word at random inside the list, ...
0
votes
1
answer
14
views
tensorflow/core/framework/local_rendezvous.cc:407] Local rendezvous is aborting with status: OUT_OF_RANGE
I am experiencing an issue with an image classification model.
After extracting frames from videos, saving them in a suitable folder structure for creating an image dataset from a directory using tf....