Basic operations
import pandas as pd
import numpy as np
df = pd.read_csv("test.csv", header=None, sep="|",names=["a", "b"])
df.replace([np.inf, -np.inf], np.nan, inplace=True)
df.fillna(0, inplace=True)
c1 = df["a"]
c2 = df["b"]
import pandas as pd
import numpy as np
df = pd.read_csv("test.csv", header=None, sep="|",names=["a", "b"])
df.replace([np.inf, -np.inf], np.nan, inplace=True)
df.fillna(0, inplace=True)
c1 = df["a"]
c2 = df["b"]