# Create graph from data frame - rows as vertices and common column as edges?

I’m having a bit of trouble using graph_from_data_frame properly - `ERROR: ... the data frame should contain at least two columns` when it already does.

I have a data frame, lets use a cohort of students as an example.

Each row is a student name, and there are multiple columns of metadata. For example, I would like to use a column labelled “Class”, denoting which class they’re in (lets say it’s ABCDEFG). I would like to make a graph such that every student is a vertice, and students with the same value in the “Class” column get an undirected edge.

How would this command look like?
{"ft_lang_label":"__label__en","ft_lang_prob":0.923713,"math_prob":0.7356546,"size":585,"snap":"2021-04-2021-17","text_gpt3_token_len":134,"char_repetition_ratio":0.11187608,"word_repetition_ratio":0.0,"special_character_ratio":0.22735043,"punctuation_ratio":0.12295082,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97526264,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-27T01:11:01Z\",\"WARC-Record-ID\":\"<urn:uuid:f60e536f-cd2c-4227-be70-d7eaeaef1895>\",\"Content-Length\":\"12983\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:69fda525-f627-42bd-b469-ed05d997e3bf>\",\"WARC-Concurrent-To\":\"<urn:uuid:77297cf9-958f-480c-829e-cd31b5308369>\",\"WARC-IP-Address\":\"66.220.12.139\",\"WARC-Target-URI\":\"https://igraph.discourse.group/t/create-graph-from-data-frame-rows-as-vertices-and-common-column-as-edges/573\",\"WARC-Payload-Digest\":\"sha1:HUCTQZKH36UM6BMDBX3YJYOM2GVL4E5D\",\"WARC-Block-Digest\":\"sha1:NON7SR5T4K44QTH5DZDMA6Q7BYK2PKWK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610704804187.81_warc_CC-MAIN-20210126233034-20210127023034-00398.warc.gz\"}"}