How to add a full stop to a text please? I am not able to get the desired combined text.
# Import libraries
import pandas as pd
import numpy as np
# Initialize list of lists
data = [['text with a period.', '111A.'],
['text without a period', '222B'],
['text with many periods...', '333C'],
[np.NaN, '333C'],
[np.NaN, np.NaN]]
# Create the pandas DataFrame
df = pd.DataFrame(data, columns=['text1', 'text2'])
combined_df=df.copy()
combined_df["combined_text"]=df["text1"].fillna("") + ". " + df["text2"].fillna("") + '.'
combined_df