pandas.get_dummies — pandas 1.3.5 documentation
pandas.pydata.org › api › pandaspandas.get_dummies. ¶. Convert categorical variable into dummy/indicator variables. Data of which to get dummy indicators. String to append DataFrame column names. Pass a list with length equal to the number of columns when calling get_dummies on a DataFrame. Alternatively, prefix can be a dictionary mapping column names to prefixes.
pandas.get_dummies — pandas 1.4.0 documentation
pandas.pydata.org › api › pandaspandas.get_dummies. ¶. Convert categorical variable into dummy/indicator variables. Data of which to get dummy indicators. String to append DataFrame column names. Pass a list with length equal to the number of columns when calling get_dummies on a DataFrame. Alternatively, prefix can be a dictionary mapping column names to prefixes.