Raynald's SPSS Tools
  • Syntax
    • SPSS Syntax Home
    • Sample Syntax Library
    • Learning Syntax
    • Debugging SPSS Syntax
    • Standard Data Files
  • Macros
    • SPSS Macros — Home
    • Sample Macro Library
    • Learning Macros
    • Debugging Macros
    • Kirill's SPSS Macros Page
  • Scripts
    • SPSS Scripts — Home
    • Sample Scripts Library
    • Learning Scripts
    • The Asynchronous Problem
  • Python
    • Python Scripts Home
    • Sample Python Library
  • R
    • R Scripts — Home
    • Sample R Library
  • Resources
    • Resources Overview
    • Blog
    • Links to SPSS (and not only SPSS) resources
    • SPSS Programming and Data Management Book
  • Sitemap
  • Feedback
  • en
    • Русский
    • Español
    • Portugues
    • Deutsch
    • Français
    • Italiano
  1. Home
  2. Python
  3. Sample Python Library
  4. Unsorted, non-SPSS

Unsorted, non-SPSS

Unsorted Python scripts and notes from learning Python, mostly non-SPSS-related.

  • Python dataclasses, @dataclass decorator
  • Decorator for caching function's result (function memoization)
  • Python list filtering using the built-in `filter' function and lambda
  • Find average (mean) from nested list
  • Convert string with a list syntax to a list object Several options, how string can be converted to a Python object (variable), with the example of string conversion to a list.
Related pages

...

Navigate from here
  • Sample Python Library
  • Strings
  • R
  • Python dataclasses, @dataclass decorator
  • Get random page
  • Back to top

 


 

Raynald's SPSS Tools © 2001–2025, Raynald Levesque, Anton Balabanov. Click to learn more: About the project