<jupyter_start><jupyter_text>Mode<jupyter_code>img_mode = df['mode'].unique()
print(f'Image mode : {img_mode}')
for m in img_mode:
    print(f'Total image with mode {m} : {sum(df["mode"] == m)}')<jupyter_output>Image mode : ['RGB']
Total image with mode RGB : 12192<jupyter_text>Format<jupyter_code>img_format = df['format'].unique()
print(f'Image format : {img_format}')
for m in img_format:
    print(f'Total image with format {m} : {sum(df["format"] == m)}')<jupyter_output>Image format : ['JPEG' 'PNG']
Total image with format JPEG : 12189
Total image with format PNG : 3<jupyter_text>Aspect Ratio<jupyter_code>print(f'Total images with aspect ratio 1.0: {sum(df["aspect_ratio"] == 1.0)}')
print(f'Total images without aspect ratio 1.0: {sum(df["aspect_ratio"] != 1.0)}')
df[df['aspect_ratio'] != 1.0 ]<jupyter_output>Total images with aspect ratio 1.0: 12188
Total images without aspect ratio 1.0: 4<jupyter_text>Width<jupyter_code>print(f'Mean width : {df["width"].mean()}')

sns.distplot(df['width'], norm_hist=False)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1698292220113852, 'fraction_numerical': 0.029411764705882353, 'mean_word_length': 7.307086614173229, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '260523', 'license': 'Unlicense', 'n_tokens_mistral': 426, 'n_tokens_neox': 400, 'n_words': 90, 'path': 'extra_notebook/02_analyze_test_image.ipynb', 'repo_name': 'leofire19/scl-2020-product-detection', 'size': '1054'}