• Kerb@discuss.tchncs.de
    link
    fedilink
    arrow-up
    5
    ·
    2 years 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

    • SatyrSack
      link
      fedilink
      arrow-up
      1
      ·
      2 years 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.