Unnecessary Iteration

Avoid unnecessary iterations. Use vectorized solutions instead of loops.

Chain Indexing

Avoid using chain indexing in Pandas.

Broadcasting Feature Not Used

Use the broadcasting feature in TensorFlow 2 to be more memory efficient.

TensorArray Not Used

Use tf.TensorArray() in TensorFlow 2 if the value of the array will change in the loop.