Multi-Dimensional Pandas

This notebook aims to create a Pandas dataframe containing multiple values in the fields and then query them as if the rows have a many-to-one relationship. We will start by generating random test data with the first cell. The output will be a dataframe with two columns - one for strings and one for integers. import pandas as pd import numpy as np def randomStrings(): return np.random.choice([chr(64+x)*3 for x in range(1,27)], size=np....

July 13, 2024 · 2 min · Boy Plankton