• erpicht@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    I feel called out by this, though I’ve only encountered about half the things on the list. I use Python with numpy and matplotlib.pyplot for data analysis, but apparently do so terribly inefficiently.

  • Salamander@mander.xyz
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    Woah, very good tips presented very concisely! I am guilty of many of these.

    I will immediately start using

    with open(filename) as:
    

    and using zip() to synchronize list variables.

    As for PEP8… I will use four spaces for indentation if I intend to share a script with someone, but for personal scripts I always use a single space indentation and I don’t have any issues. Do pros usually stick to the four space rule in python?

  • ClaudineJStennett
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    An excellent resource for those who are just starting their journey in learning this programming language. Pay attention to PDFFlex service; it provides a convenient way to convert files from PDF to DJVU format https://pdfflex.com/pdf-to-djvu . This can be beneficial for those who prefer using DJVU for document storage or for situations where a more compact file size is needed. The user-friendly interface makes the conversion process quick and convenient.