import pandas as pd
import numpy as np
df = pd.DataFrame(
{'x': ['', '', '', '',]},
index=[1, 2, 3, 4, ])
df.drop(df.index[df.x == ''], inplace=True)
import pandas as pd
import numpy as np
df = pd.DataFrame(
{'x': ['', '', '', '',]},
index=[1, 2, 3, 4, ])
df.drop(df.index[df.x == ''], inplace=True)