<jupyter_start><jupyter_text>Converto le coordinate in webmercatore (brutto sistema di coordinate)<jupyter_code>airbnbgdfM=airbnbgdf.to_crs(epsg=3857)
gdfM=gdf.to_crs(epsg=3857)
# creo un buffer di 260000 metri
bufferM=gdf.to_crs(epsg=3857).buffer(260000)
axM=gdfM.plot(color='red')
airbnbgdfM.plot(ax=axM, color='orange')
bufferM.plot(ax=axM, color='gray',edgecolor='black',alpha=0.5,linewidth=2)
plt.show()
# estraggo soltanto gli elementi di airbnbgdf che sono within il buffer
airbnbgdfM.loc[airbnbgdfM.within(bufferM.unary_union)]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13097345132743363, 'fraction_numerical': 0.047787610619469026, 'mean_word_length': 10.551020408163266, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '430415', 'license': 'CC-BY-4.0', 'n_tokens_mistral': 266, 'n_tokens_neox': 246, 'n_words': 35, 'path': 'notebook/02 i punti che ricadono dentro un buffer/pointsInBuffer.ipynb', 'repo_name': 'pigreco/bashnotebook', 'size': '565'}