Top "Data-conversion" questions

This tag refers to the process of converting the data type of one piece of information into another type.

How do I convert this list of dictionaries to a csv file?

I have a list of dictionaries that looks something like this: toCSV = [{'name':'bob','age':25,'weight':200},{'name':'jim','age':31,'weight':180}] …

python csv dictionary data-conversion
python pandas dataframe columns convert to dict key and value

I have a pandas data frame with multiple columns and I would like to construct a dict from two columns: …

python pandas dataframe dictionary data-conversion
Convert 4 bytes to int

I'm reading a binary file like this: InputStream in = new FileInputStream( file ); byte[] buffer = new byte[1024]; while( ( in.read(buffer ) &…

java data-conversion
How to convert result table to JSON array in MySQL

I'd like to convert result table to JSON array in MySQL using preferably only plain MySQL commands. For example with …

mysql json etl data-conversion
Converting MM:SS.ms to seconds using MS excel

I am looking for a neat way of converting a cell from Minutes:Seconds.Milliseconds to Seconds.Milliseconds i.e. 11.111 = 11.111 1:11.111 = 71.111 …

excel time string-formatting data-conversion seconds
Java lib or app to convert CSV to XML file?

Is there an existing application or library in Java which will allow me to convert a CSV data file to …

java xml csv data-conversion
How can I convert an Integer (e.g 19000101 ) to java.util.Date?

Here's my code: Integer value = 19000101 ; How can I convert the above Integer represented in YYYYMMDD format to YYYY-MM-DD format in …

java date integer data-conversion
Convert char* to uint8_t

I transfer message trough a CAN protocol. To do so, the CAN message needs data of uint8_t type. So …

c++ char data-conversion uint8t
Python: Convert string (in scientific notation) to float

I'm trying to import a large .csv file containing text and numbers using genfromtxt in numpy. I'm only interested in …

string csv floating-point data-conversion genfromtxt
Byte array to Hex string conversion in javascript

I have a byte array of the form [4,-101,122,-41,-30,23,-28,3,..] which I want to convert in the form 6…

javascript arrays bitcoin data-conversion