Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Following this question:

Label expression in ArcGIS- error

I used this python expression in order to create a stacked label from two field: 'name3' and 'results':

"{}\n{}".format([name3], [results])

enter image description here

enter image description here

the problem is that some of the labels contain "None" values that i don't want to represent in the map:

enter image description here

How can i remove the None values and still use the python phrase

I don't want to use VB phrae-i know that in VB the None values disappear from the map and still i prefer to use python.

share|improve this question
2  
Use Label classes and SQL to either leave them out completely or to handle them differently (in a new class where that field is not part of the expression). – Martin 1 hour ago
1  
Define label classes – FelixIP 1 hour ago
    
how to define label classes? – newGIS 1 hour ago
1  
Label classes are in the Online Help. – PolyGeo 1 hour ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.