Home > other >  Python string is converted into digital error
Python string is converted into digital error

Time:09-26

CustomerDF [[' TotalCharges]]. Astype (np) float64)
Error: could not convert a string to a float
CustomerDF [' TotalCharges]=customerDF [' TotalCharges] convert_objects (convert_numeric=True)
Error: 'Series' object has no attribute' convert_objects'

Which is suitable for dataframe customerDF type
CustomerDF [' TotalCharges] for the series type
Excuse me, how do you write to

CodePudding user response:

Determine the transformation that a list of all the pure digital no letters symbols like

CodePudding user response:

reference 1/f, candy cat replies:
process that a list of all the pure digital no letters symbols, such as

Have a plenty of free value

CodePudding user response:

refer to the second floor persistencezyx response:
Quote: refer to 1st floor roll cat replies:
process that a list of all the pure digital no letters symbols, such as

Have a plenty of free value


If there are no letters and symbols, only empty words, that you have to empty values for special processing, such as judge the null values, is set to 0, then the base of digital string of normal transformation should be no problem!

CodePudding user response:

Then the base of digital string of normal conversion should be no problem!

To:

Then other digital string of normal transformation should be no problem!

CodePudding user response:

reference 4 floor paullbm response:
then base Numbers of normal transformation should be no problem!

To:

Then other digital string of normal transformation should be no problem!

Ok thank you

CodePudding user response:

Have judge fill statement, can immediately after filling,
  • Related