title: Limitation of folium while drawing circle markers in Python
body: <p>I got a dataframe which looks as follow:</p>
  <p>df</p>
  <pre><code>        X   Y   latitude    longitude   fatalCount
  0   1503534.0   5139947.0   -43.88726825747297  171.799068750087    1.0
  1   1764742.0   5904564.0   -36.99064294510119  174.8512150432065   1.0
  2   1542243.0   5213465.0   -43.22939701404248  172.2887472425986   1.0
  3   1860093.0   5833141.0   -37.612072948808446 175.9466347043758   2.0
  4   1798807.0   5793607.0   -37.9834182448396   175.2637316434398   1.0
  5   1726799.0   6004259.0   -36.09803980570151  174.4085845792706   1.0
  6   1794340.0   5771500.0   -38.18348193499358  175.21891516853705  1.0
  7   1243202.0   4849165.0   -46.41673674898034  168.35690247176157  1.0
  8   1822968.0   5801012.0   -37.91112821883501  175.53631325112292  1.0
  9   1892448.0   5691253.0   -38.87894656878461  176.3711653468306   1.0
  10  1760429.0   5924162.0   -36.81480856118331  174.79862103329845  1.0
  11  1679714.0   5409964.0   -41.457954573841704 173.95446190059664  1.0
  12  1759179.0   5908015.0   -36.9605074947817   174.78800368639327  1.0
  13  1828460.0   5796852.0   -37.94722121035748  175.60004721377882  2.0
  14  1754795.0   5443772.0   -41.142610316535745 174.84451098260428  2.0
  15  1459213.0   5081572.0   -44.40545774213868  171.23190529147456  1.0
  16  1867395.0   5722762.0   -38.60338329677566  176.07059703376774  1.0
  17  1553164.0   5165563.0   -43.661460147515065 172.41911461715523  1.0
  18  1706038.1979    5618736.8671    -39.57452359574808  174.23460457225036  1.0
  19  1748356.0   5421629.0   -41.34317868551458  174.77320337955717  1.0
  20  1622467.0   5431852.0   -41.26444207842392  173.2682161218783   1.0
  21  1758173.0   5913433.0   -36.91185991177028  174.7755753751171   1.0
  22  1789791.0   5738240.0   -38.48398790796658  175.1759545393346   1.0
  23  1767748.0   5907076.0   -36.9674794106989   174.88441878643926  1.0
  24  1661992.0   5430378.0   -41.27565244573732  173.74019875181446  1.0
  25  1916267.0   5605058.0   -39.64580982458846  176.68565778764048  1.0
  26  1417275.0   4966625.0   -45.430008628001865 170.66405751534867  1.0
  27  1983586.0   5681318.0   -38.93320195447651  177.42473093387974  1.0
  28  1840655.0   5747098.0   -38.391971841084185 175.7555160410278   1.0
  29  2021826.0   5736100.0   -38.42375227922534  177.8311695031855   1.0
  30  1799736.0   5814510.0   -37.79496243012501  175.26851585066143  2.0
  31  1865934.0   5718161.0   -38.64522700669454  176.05560021813682  2.0
  32  1613950.0   6140902.0   -34.8741540806934   173.15264054942278  1.0
  33  1843174.0   5799831.0   -37.916584609459264 175.7663234418511   2.0
  34  1532622.0   5375776.0   -41.76699527808288  172.18938275507796  1.0
  35  1798477.0   5827342.0   -37.67966772863651  175.25072353692948  1.0
  36  1868980.0   5814390.0   -37.778286613522226 176.0541095739344   1.0
  37  1768933.0727    5905981.261 -36.97713048081313  174.89796981009383  1.0
  38  1548990.0   5376269.0   -41.76377565466534  172.3863340271788   1.0
  39  1774164.0   5889115.0   -37.12812589837596  174.96061523391637  1.0
  40  1565562.1971    5180032.0396    -43.53186036145711  172.57379929878115  1.0
  41  1765499.0   5899156.0   -37.03923415360077  174.86090551328434  1.0
  42  1766681.0   5913316.0   -36.91144848984498  174.87106281144153  1.0
  43  1900922.0   5697679.0   -38.81828510414489  176.4658751028789   1.0
  44  1976551.0   5784803.0   -38.00627399451797  177.28825610959882  1.0
  45  1846434.0   5780998.0   -38.08524316056153  175.80983487110828  1.0
  46  1435425.4808    5271145.2939    -42.69456481896697  170.99084472622783  1.0
  47  1249642.7238    4839480.0776    -46.506989053480574 168.43316993338064  1.0
  48  1730631.0   6025373.0   -35.907230399190816 174.44765810191583  2.0
  49  1739857.0   5977091.0   -36.341092678712904 174.55844744998626  1.0
  50  1839873.0   5822410.0   -37.71418311093242  175.7213330848903   1.0
  51  1784184.0   5419280.0   -41.35693027368171  175.2018712610867   1.0
  52  1766331.0   5903435.0   -37.00053505927772  174.86931116020153  1.0
  53  1764258.0   5446391.0   -41.11717176128145  174.95650855436767  1.0
  54  1259178.0   4859008.0   -46.33666123273454  168.5713144324363   3.0
  55  1863346.0   5829293.0   -37.645783989411086 175.98482902677682  1.0
  56  1881466.0   5822287.0   -37.7034613506908   176.19262595301257  1.0
  57  1618173.0   5254762.0   -42.85951171750083  173.22245256516067  2.0
  58  1904840.0   5569349.0   -39.97107584609767  176.5693271704356   1.0
  59  1894802.0   5812166.0   -37.790338284534506 176.34776723752393  1.0
  60  1867392.0   5699963.0   -38.80854794794436  176.0793582545551   1.0
  61  1819965.0   5528859.0   -40.36184270729439  175.5905006665165   1.0
  62  1830701.0   5867373.0   -37.31167951954221  175.6032688099651   1.0
  63  1891751.0   5740906.0   -38.43247855260845  176.3422968595223   1.0
  64  1684674.0   5671139.0   -39.10478292004359  173.97928912141526  1.0
  65  1587656.0   5155658.0   -43.752017566415944 172.8466722705344   1.0
  66  1753630.9802    5928072.4908    -36.78070068400819  174.7216491695066   1.0
  67  1769697.0   5908893.0   -36.95075972258749  174.90589399972288  1.0
  68  2011176.0919    5731456.2707    -38.47042164964069  177.71230046675936  1.0
  69  1856469.0   5448186.0   -41.077155600646705 176.05287967647683  1.0
  70  1310897.0   5031323.0   -44.81294533015564  169.34378799663938  1.0
  71  1823632.0   5534463.0   -40.31043307508165  175.63168209518395  1.0
  72  1646941.0   5439153.0   -41.19762736445472  173.55982108423137  1.0
  73  1885154.0   5785326.0   -38.03492056491163  176.2489848735938   1.0
  74  1769496.0   5911396.0   -36.928245060646326 174.90307660123645  1.0
  75  1456085.1185    5088892.4866    -44.338970077754375 171.19466795787898  1.0
  76  1728611.0   5933891.0   -36.73199199394347  174.44037283489598  3.0
  77  1790526.2928    5754381.1451    -38.338468482715776 175.180005160309    1.0
  78  1770162.0   5904672.0   -36.9887046743832   174.9120651556891   1.0
  79  1791954.0   5506647.0   -40.568713077899936 175.26759841729393  2.0
  80  1533508.0   5166348.0   -43.65289403718397  172.175448210714    1.0
  81  1757719.0   5453431.0   -41.0550850143598   174.87685714077446  3.0
  82  1817532.0   5543707.0   -40.22884379961872  175.556829528313    1.0
  83  1771669.0   5582107.0   -39.893737984911404 175.007941812609    2.0
  84  1882155.0   5778806.0   -38.094530158771214 176.2174357856561   1.0
  85  1893059.0   5756884.0   -38.288298416963954 176.35061736006966  1.0
  86  1449963.0   5022489.0   -44.93520190467315  171.0984900578634   2.0
  87  1751036.0   5878022.0   -37.23209551717405  174.70261162183536  2.0
  88  1850617.0   5770093.0   -38.18225429477815  175.86130807332546  1.0
  89  1680268.0   5401059.0   -41.53809943404359  173.96228086675978  1.0
  90  1571527.4521    5192486.6287    -43.41996850322854  172.64827455097452  2.0
  91  1775183.0   5474643.0   -40.860556076447    175.0785530222735   1.0
  92  1611965.0   5422993.0   -41.34446539697195  173.14301565964269  1.0
  93  1346068.0   4878766.0   -46.19728367014297  169.70880379946 1.0
  94  1778854.0   5480900.0   -40.80343567655933  175.1202854647554   1.0
  95  1821551.0   5840298.0   -37.557719348394066 175.50823883042204  1.0
  96  1768107.0   5903287.0   -37.00155250096148  174.88929392055198  1.0
  97  1574839.0   5208666.0   -43.27440131704302  172.6899244019661   1.0
  98  1359192.0   4889525.0   -46.10536340000654  169.88410685077886  1.0
  99  1787498.5015    5838947.2047    -37.577446534164544 175.12333129431485  1.0
  </code></pre>
  <p>the total length of data is 758757. Due to space issues, I only showed 100 records. I want to show fatalcount as the marker on the map using folium Python. I used the following code to draw the marker.</p>
  <pre><code>import folium
  import pandas as pd
  nz_map = folium.Map(location=[-40.9006,174.8860], zoom_start=6)
  for lat, lng, label in zip(df.latitude, df.longitude, df.fatalCount.astype(str)):
      if label!='0':
          print(lat)
          folium.features.CircleMarker(
              [lat, lng],
              radius=3,
              color='red',
              fill=True,
              popup=label,
              fill_color='darkred',
              fill_opacity=0.6
          ).add_to(nz_map)
  nz_map
  </code></pre>
  <p>The problem is that when I ran the code it did not finish its execution. I let the program for about 2 hours but still, it did not finish.
  I searched for same issue on the platform and found the thread <a href="https://stackoverflow.com/questions/69148286/folium-draw-circle-not-drawing">folium draw circle not drawing</a>. I followed the thread and made changes according to the solution in the thread. Now my code looks as follow:</p>
  <pre><code>nz_map = folium.Map(location=[-40.9006,174.8860], zoom_start=6)
  
  for index, row in df.iterrows(): #zip(df.latitude, df.longitude, df.fatalCount.astype(str)):
      if row['fatalCount']!='0':
          print(index) 
          folium.Circle(
              [row['latitude'], row['longitude']],
              radius=300,
              color='red',
              fill=True,
              popup=row['fatalCount'],
              fill_color='darkred',
              fill_opacity=0.6
          ).add_to(nz_map)
  nz_map
  </code></pre>
  <p>However, ended with same result.</p>
  <p>Is there any limitation on showing markers in the map in folium? Does anyone have suggestions to fix the issue?</p>