code: def update_row(self, ind, row_data):
          
          if sorted(row_data.keys()) != sorted(self.df.columns):
              # add any new column names
              for key in row_data:
                  if key not in self.df.columns:
                      self.df[key] = None
              # add missing column names into row_data
              for col_label in self.df.columns:
                  if col_label not in list(row_data.keys()):
                      row_data[col_label] = None
          try:
              self.df.iloc[ind] = pd.Series(row_data)
          except IndexError:
              return False
          return self.df
docs: Update a row with data.
          Must provide the specific numeric index (not row label).
          If any new keys are present in row_data dictionary,
          that column will be added to the dataframe.
          This is done inplace.