Issue when using df_dict2 = pd.read_fwf(io.StringIO(read_data), delim_whitespace=True)

116 Views Asked by At

Issue: when loading data frame from string CALLED read_data as follow:

import pandas as pd import io read_data = """ operational applied description


description Details names link statm working The state of the residenat stats in-bytes 0 Bytes Total number size in-drops 0 Number of student drop lans lanst"""

df = pd.read_fwf(io.StringIO(read_data), delim_whitespace=True)

the output as shown in the attached image. The main issue for words "stats" and "lans" the last s got removed when the df created

0

There are 0 best solutions below