node_structure = "n".join([ f"{col}: {', '.join(map(str, movies[col].unique()[:3]))}..." for col in movies.columns ]) print(node_structure)