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

    Mar 23, 2015 · 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 …

  2. 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.

  3. sorting - Is there a standard Python data structure that keeps …

    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 …

  4. 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 …

  5. How can I implement a tree in Python? - Stack Overflow

    159 Python doesn't have the quite the extensive range of "built-in" data structures as Java does. However, because Python is dynamic, a general tree is easy to create. For example, a binary …

  6. struct - C-like structures in Python - Stack Overflow

    Aug 30, 2008 · cstruct2py is a pure python library for generate python classes from C code and use them to pack and unpack data. The library can parse C headres (structs, unions, enums, …

  7. Are Python data types classes, or data structures?

    So, mapping dictionaries are data types, but they're also abstract data structures—and, under the covers, Python's dict objects are built from a specific concrete data structure (open-chained …

  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. Best way to construct a "complex" data structure in Python

    Oct 28, 2009 · Your code becomes ossified when the risk of breaking the logic prevents you from modifying the data structure. It is much better to use a class and use class (accessor) methods …

  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 …