Given a series and the (unique) dtype of a column, I would like the dtype information inside as a string.
import numpy as np
import pandas as pd
df = pd.DataFrame(columns = ['col1', 'col2'], data = [[1,2], [3,4]])
df.dtypes[0]
The output of code above
Goal: Extract the string 'int64' from df.dtypes[0], which is dtype('int64').
Have not been successful in finding a solution online.
