473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to convert float to string data type?

How can I convert a float to a string?

I am trying to use 2 series and make up a DataFrame where each series is represented by a column. What code should l use to achieve all that?

I felt I needed to convert both series into the same data type.

How can I convert float data type into a string for homogeneity purposes?
May 14 '19 #1
1 1731
zmbd
5,501 Expert Mod 4TB
Threads are limited to one question...

Based on the title... explicit type casting.
str(yourvariable)

Basic tutorial sites covering python usually have several examples of both implicit and explicit type casting.
May 15 '19 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Newsnet Customer | last post by:
Hi, Which system header file do I unclude in order to use the new string data type? KJ
5
by: Karthik | last post by:
Hello, How can I convert a BSTR data type to std::string??? Thanks a much! Karthik
6
by: tvn007 | last post by:
Hi, I tried to convert string data type to char type so that I can use strtok. I have used c_str(). However, still getting error message when compile . Any help would be appreciate.
6
by: John Aldrin | last post by:
Hi, I'm looking for info that explains the format of a string data type when written to a stream using a BinaryWriter. I've looked all over MSDN and Internet and I cannot seem to find it. I...
4
by: Ken Varn | last post by:
I have an unknown numeric Type object passed into a function. I want to run a conversion on a string to convert the string to that Type object and return an object of that type. Is there some way...
2
by: Mike Moore | last post by:
does anyone have an example of how to get the connection string object converted to a string variable type in order for me to call a function?
1
by: Simon | last post by:
I'm pulling data from an xml file, one field of which is the datatype for passing into a generic class. The problem is how to get that string from xml into a valid argument for...
7
by: Saber | last post by:
In an ASP.Net Website I've a string and want to convert that to Type. Let's consider the string "Class1" I tried: Type t = Type.GetType("Class1"); but it returns null.
4
by: muralikc | last post by:
assume there r two float no. lat1=1300.1252; lat2=1302.2546; After subtracting, the result obtained must be converted to int, which is easily possible by multiplying with pow(10,4),if I get...
1
by: driftingprogram | last post by:
Hi, http://www.w3.org/2001/XMLSchema schema defines String data type, and provides the option of specifying its max length min length and length. If i do not specify any value for these...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.