Skip to content

Tag: python

ezDXF: Can i set a text style inside a BLOCK?

When I try to set up a text style inside a BLOCK, TrueView stops with an error. If I remove the style line the DXF is accepted Its an Autocad limitation or a non implemented feature in ezDXF? I have no full Autocad available for checking… Answer Any text style you want to use must be defined in the DXF

Python pandas trying to get Cummin but get a zero value

I want to use cummin but it doesnt work, It shows zero, cummax work well. my code: original df: my result : Answer It is expected, because after shift first value is 0, so after cummin is here always 0 (until negative value): Remove fill_value=0 for NaN instead 0 for first value in Series.shift, last if neces…

Using Split method or Regex to separate string

In my project I am webscrapping UFC website to gather to the total wins, total losses, and total draws of each UFC athlete. This is part of my code, as I wish to strip the total wins, total losses, and total draws separately: The result is the following: The problem is, I am unable to spew out the total draws…

How can I make the tkinter window fixed?

This is my current code, and I am struggling to understand where I need to put additional code to make sure that my tkinter window is fixed. Code taken from: https://pythonprogramming.net/change-show-new-frame-tkinter/ Answer As mentioned in the comments, you simply need to set your root window resizable meth…