About 15,700,000 results
Open links in new tab
  1. How to completely remove Python from a Windows machine?

    I would like to completely remove Python from my system. I tried running the 2.7 and 2.6 msi files and choosing remove Python and then running only 2.6 and reinstalling it. Still stuff don't work. How do I …

  2. python - Best way to remove elements from a list - Stack Overflow

    Feb 2, 2014 · Scenarios: If you have few items to remove say one element or between 1 to 5. If you have to remove multiple items in a sequence. If you have to remove different items based on a …

  3. Difference between del, remove, and pop on lists in Python

    I thought del was a python 2 syntax holdover like print, but it still works in python 3.

  4. Remove all occurrences of a value from a list? - Stack Overflow

    Jul 21, 2009 · In Python remove () will remove the first occurrence of value in a list. How to remove all occurrences of a value from a list? This is what I have in mind: >>> remove_values_from_list ( [1...

  5. Uninstalling Python Completely from Windows - Stack Overflow

    Jan 3, 2024 · I want to uninstall python completely from my computer. However, when I run the "python --version" command on git bash, I get the output indicating that I have python version 3.10.12 …

  6. How to remove an element from a list by index - Stack Overflow

    Dec 13, 2016 · How do I remove an element from a list by index? I found list.remove(), but this slowly scans the list for an item by value.

  7. How can I delete a file or folder in Python? - Stack Overflow

    On Python 3.3 and below, you can use these methods instead of the pathlib ones: os.remove() removes a file. os.unlink() removes a symbolic link. os.rmdir() removes an empty directory.

  8. How can I remove a key from a Python dictionary?

    12 We can delete a key from a Python dictionary by the some of the following approaches. Using the del keyword; it's almost the same approach like you did though -

  9. python - Delete a column from a Pandas DataFrame - Stack Overflow

    Nov 16, 2012 · Viewed from a general Python standpoint, del obj.column_name makes sense if the attribute column_name can be deleted. It needs to be a regular attribute - or a property with a …

  10. python - Is there a simple way to remove multiple spaces in a string ...

    Oct 10, 2009 · 65 Using regexes with "\s" and doing simple string.split ()'s will also remove other whitespace - like newlines, carriage returns, tabs. Unless this is desired, to only do multiple spaces, I …