@staticmethod
def _get_not_unwinded_naming_map(source_series, fields_not_to_unwind):
    """Form a dict mapping the path to the fields inside fields_not_to_unwind
        to the subfields.
        It is needed in order to use the json_normalize in pandas.io.json.

        Example: {"doctor": {"last_name": "Doe", "first_name": "John"}} will return
        -not_unwinded_naming_map = {"doctor.first_name": "first_name",
                                    "doctor.last_name": "last_name"}"""
    not_unwinded_naming_map = {}
    for field in source_series:
        if field in fields_not_to_unwind:
            for subfield in source_series[field]:
                not_unwinded_naming_map['{}.{}'.format(field, subfield)
                    ] = subfield
    return not_unwinded_naming_map
