Files and Symbols Distribution

  • Created by AndrĂ©s Segura Tinoco
  • Created on June 17, 2019

In computer science a file is a resource for recording data discretely in a computer storage device. Just as words can be written to paper, so can information be written to a computer file. Files can be edited and transferred through the internet on that particular computer system. [1]

Some types of files are: text files, images, videos, music, etc, and all of them are made up of sequences (arrays) of bytes.

In [1]:
# Load Python libraries
import io
import numpy as np
import pandas as pd
from collections import Counter
from PIL import Image
In [2]:
# Load Plot libraries
import seaborn as sns
import matplotlib.pyplot as plt

File: Image 1

In [3]:
# Loading an example image
file_path = "../data/img/example-1.png"
img =
In [4]:
# Show image dimension (resolution)
(1920, 1080)
In [5]:
# Show image extension
In [6]:
# Show image