About 2,080,000 results
Open links in new tab
  1. Data Structures in Python - Stack Overflow

    Dec 31, 2009 · 25 Python gives you some powerful, highly optimized data structures, both as built-ins and as part of a few modules in the standard library (list s and dict s, of course, but also tuple s, set …

  2. sorting - Is there a standard Python data structure that keeps things ...

    To this end, I would like a data structure that cheaply maintained its elements in sorted order, and quickly allowed me to find the element before or after a given element. Is there a better way to solve …

  3. How to persist a data structure to a file in python?

    The easiest way would be JSON because it's structuring data similar to Python dictionary. Luckily, python has a bundled JSON module. All you need to do is just import json.

  4. data structures - How can I implement a tree in Python? - Stack Overflow

    How can I implement a general tree in Python? Is there a built-in data structure for this?

  5. python - Data structure for maintaining tabular data in memory?

    That said, you are very right in saying that choosing a single data structure will impact one or more of searching, sorting or counting, so if performance is paramount and your data is constant, you could …

  6. data structures - How are Python's Built In Dictionaries Implemented ...

    Nov 29, 2008 · Does anyone know how the built in dictionary type for python is implemented? My understanding is that it is some sort of hash table, but I haven't been able to find any sort of definitive …

  7. What is the fastest (to access) struct-like object in Python?

    Oct 29, 2014 · 19 Since this is an old question and we have newer data structures such as dataclasses available now, we should revisit this slightly :) Tested on an AMD 5950x Python 3.11:

  8. Representing graphs (data structure) in Python - Stack Overflow

    Oct 20, 2013 · The data structure I've found to be most useful and efficient for graphs in Python is a dict of sets. This will be the underlying structure for our Graph class.

  9. data structures - Time complexity of python set operations? - Stack ...

    What is the the time complexity of each of python's set operations in Big O notation? I am using Python's set type for an operation on a large number of items. I want to know how each operation's

  10. Complex matlab-like data structure in python (numpy/scipy)

    Dec 22, 2014 · I've often seen the following conversion approaches: matlab array -> python numpy array matlab cell array -> python list matlab structure -> python dict So in your case that would correspond …