Mar-06-2019, 01:48 PM
(This post was last modified: Mar-06-2019, 02:22 PM by energerecontractuel.)
Hi @scidam,
your function :
my data structure would look like this :
I found my answer. By moving the index (street names) back as a column, the following syntax worked :
your function :
df.ix[['Street name']]
work but only returns the first occurence with the name of the street. As I indicated, my index is the street names and contains many duplicates. For instance, 'WashingtonStreet' would occur 30 times in my database since there are 30 points on that street. I would like to be able to print them all with 1 command. my data structure would look like this :
Output:Index FID X Y Bearing E_ID
WashingtonStreet 55 6156789 51234456 279.5 ''
WashingtonStreet 56 6156413 51234446 279.5 ''
WashingtonStreet 77 6156695 51234785 279.5 ''
WashingtonStreet 98 6156744 51234748 279.5 ''
WashingtonStreet 52 6156784 51234963 279.5 ''
I found my answer. By moving the index (street names) back as a column, the following syntax worked :
print(sub_df[sub_df.AQROUTES_3=='AvenueMermoz'])