I have a dataframe where there is an index and several columns, in the columns there are empty rows (my idea is not to eliminate them, but to fill them, since I do not want to lose so much data) I know a lot of the information of that column (with rows empty) is in another column called 'description', but this column 'description' as the name says, is a column where the user writes a lot. My idea is to make a scraping of the words within each of the rows and place them in the column that is empty.
I explain myself better with the following example:
import pandas as pd
import numpy as np
Mundo = {
'ciudades': ['San Jose','buenos aires','NaN'],
'culinaria': ['pescado','NaN','tacos'],
'precio': ['Nan','$60','$20'],
'descripcion': ['en la ciudad de san jose comemos mucho carne y su precio es 40', 'en la ciudad de buenos aires comemos mucho pescado y su precio es 60','en la ciudad de mexico df comemos muchos tacos y su precio es 20']
}
df = pd.DataFrame(Mundo)
df