About 9,130,000 results
Open links in new tab
  1. Examples for string find in Python - Stack Overflow

    Jul 7, 2013 · Python might in general prefer exceptions, but many users expect there to be a non-exception-raising-find-index method as well, especially as that's how it's done in almost every …

  2. How to list all installed packages and their versions in Python?

    Is there a way in Python to list all installed packages and their versions? I know I can go inside python/Lib/site-packages and see what files and directories exist, but I find this very awkward. ...

  3. python - Find a value in a list - Stack Overflow

    There is an abstraction in here to define a find function. Just encapsulate the the boolean expession of the if in a lambda & you can write find(fn,list) usually instead of obfuscating …

  4. python - Find the current directory and file's directory - Stack …

    How do I determine: the current directory (where I was in the shell when I ran the Python script), and where the Python file I am executing is?

  5. How do I find the location of my Python site-packages directory?

    The per user site-packages directory (PEP 370) is where Python installs your local packages: python -m site --user-site If this points to a non-existing directory check the exit status of …

  6. Where are the python modules stored? - Stack Overflow

    Dec 24, 2015 · Is there a way to obtain a list of Python modules available (i.e. installed) on a machine? I am using Ubuntu Karmic and Synaptic for package management. I have just …

  7. Find a file in python - Stack Overflow

    Nov 12, 2009 · I have a file that may be in a different place on each user's machine. Is there a way to implement a search for the file? A way that I can pass the file's name and the directory …

  8. python - Regular Expressions: Search in list - Stack Overflow

    Sep 4, 2010 · I want to filter strings in a list based on a regular expression. Is there something better than [x for x in list if r.match(x)] ?

  9. python - Find string between two substrings - Stack Overflow

    Jul 30, 2010 · This requires you to know the string you're looking for, it doesn't find whatever string is between the two substrings, as the OP requested. The OP wants to be able to get the …

  10. python - How do I select rows from a DataFrame based on column …

    How can I select rows from a DataFrame based on values in some column in Pandas? In SQL, I would use: SELECT * FROM table WHERE column_name = some_value