human
avoiding regex in pandas str.replace
assistant
Here is some code to replace string 'in.' with ' in. ' in dataframe `df` column 'a'

df['a'] = df['a'].str.replace('in.', ' in. ')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.