Converting string in a Pandas data frame to float

I have the following data frame: Bestand = pd.DataFrame({‘ISIN’: [‘NaN’, ‘IE00B4X9L533’, ‘IE00BF4RFH31’], ‘Marktwert’: [‘217.803,37’, ‘47.755,10’, ‘15.353,32’]}) In order to calculate …

match dtypes of one df to another with different number of columns

I have a dataframe that has 3 columns and looks like this: name date result Anya 2021-02-13 0 Frank 2021-02-14 1 The other dataframe looks …

LightGBM does not accept the dtypes of my data

I’m trying to use LGBMClassifier and for some reason, he does not accept the types of my data (all features are not accepted, I tested it). When we look at my data we can clearly see that all dtypes …