python file.write is not writing whole line
# When you see ellipses "..." at the end of an output
# it is likely because the output is too long
# for example use
for i in range(len(df)):
var = df.loc[i, "ex"]
# rather than
for row in df.iterrows():
var = df.ex