[Neuroimaging] what's the problem??????

Dennis Lee Bieber wlfraed at ix.netcom.com
Thu Jul 14 11:47:21 EDT 2022


On Thu, 14 Jul 2022 08:49:39 +0300, ??? ???? <nsh531 at gmail.com> declaimed
the following:

>Instead of numbers, I want to enter as indexes the names of the Index as
>being in b variable:
> labels = pd.read_csv(
>"C:/Users/Administrator/Desktop/64/64/labels_64_dictionary.csv")
>    a=labels.to_dict()
>    b=a["Difumo_names"]
>
	Dicts don't have "indexes", they have "keys" (index implies a
positional look-up: first, second, ..., tenth item).

	Show us an example of your actual data, what it looks like in Python,
and (hand-edited) what your really want the data to look like.


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed at ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/


More information about the Python-list mailing list