code: def test_stat_count_float():
      data = pd.DataFrame({"x": ["a", "b"], "weight": [1.5, 2.5]})
  
      p = (
          ggplot(data)
          + aes(x="x", weight="weight", fill="x")
          + geom_bar()
          + geom_text(aes(label=after_stat("count")), stat="count")
      )
  
      assert p == "stat-count-float"
  
file_path: plotnine/tests/test_geom_bar_col_histogram.py
imports: import numpy
  import pandas
  from plotnine import aes, after_stat, geom_bar, geom_col, geom_histogram, geom_text, ggplot, scale_x_sqrt
  from plotnine.stats.binning import freedman_diaconis_bins
  from .conftest import layer_data
label_desc: Use image node_id 6 for calling a global function with example usage: test_stat_count_float() without return types