• Kerb@discuss.tchncs.de
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Import pandas as np
    Import numpy as tf
    Import matplotlib.pyplotlib as pd
    Import tensorflow as plt

    Or if your more of a c++ guy:

    #define true false
    #define false true

    • Arinshot@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Think of replacing the word “and” with the word “or”, and vise versa. Typically it will still make sense, bot not always

    • SatyrSack@lemmy.one
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      numpy and pandas are two different modules that have similar uses, but are most definitely not interchangeable. Line 500 is importing numpy, but calling it pandas. Meaning later on in the code, any time the script makes use of numpy, it actually has to refer to it as pandas, and vice versa, causing all sorts of confusion and shenanigans.

      • bane_killgrind@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I feel like there should be an award for the most interesting error code, regardless of how highly subjective that is.