pandas.get_dummies — pandas 1.3.5 documentation
https://pandas.pydata.org/.../stable/reference/api/pandas.get_dummies.htmlpandas.get_dummies¶ pandas. get_dummies (data, prefix = None, prefix_sep = '_', dummy_na = False, columns = None, sparse = False, drop_first = False, dtype = None) [source] ¶ Convert categorical variable into dummy/indicator variables. Parameters data array-like, Series, or DataFrame. Data of which to get dummy indicators. prefix str, list of str, or dict of str, default …