<jupyter_start><jupyter_text>Check sizes<jupyter_code>from pathlib import Path
from PIL import Image
import pandas as pd
%matplotlib inline
extensions = set()
sizes = []
for image_path in Path('../data/raw/images/').glob('*'):
    extensions.add(image_path.suffix)
    im = Image.open(image_path)
    width, height = im.size
    sizes.append([width, height, width/height, image_path.name])

image_frame = pd.DataFrame(sizes, columns =['width', 'height', 'ratio', 'file_name'])
image_frame.head()
image_frame.describe()
image_frame['width'].hist()
image_frame['ratio'].hist()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15562913907284767, 'fraction_numerical': 0.0, 'mean_word_length': 6.117647058823529, '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': '351603', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 208, 'n_tokens_neox': 205, 'n_words': 43, 'path': 'notebooks/Image/Image examination.ipynb', 'repo_name': 'fferegrino/salsa-valentina', 'size': '604'}