title: PySpark Compare Empty Map Literal
body: <p>I want to drop rows in a PySpark DataFrame where a certain column contains an empty map. How do I do this? I can't seem to declare a typed empty MapType against which to compare my column. I have seen that in Scala, you can use <code>typedLit</code>, but there seems to be no such equivalent in PySpark. I have also tried using <code>lit(...)</code> and casting to a <code>struct&lt;string,int&gt;</code> but I have found no acceptable argument for <code>lit()</code> (tried using <code>None</code> which returns null and <code>{}</code> which is an error).</p>
  
  <p>I'm sure this is trivial but I haven't seen any docs on this!</p>