How do I add a " unit symbol after each number in a column in a pandas data frame?

I am taking over a project that is built in a pandas data frame where there is a large amount of measurements in this format: 6x6 , 52x14

I need to go in and add a quote (") inches unit symbol after each number in two specific columns that have this type of measurement data, the desired outcomes in the above examples would look like this 6"x6" , 52"x14"

How could I concisely write a code segment to add these quotes after each numeric value in those two columns? Another challenging piece is that there is other measurement data in these columns like the word large, small etc. but the only thing I am concerned with is adding the inch mark after each number.



from Recent Questions - Stack Overflow https://ift.tt/3oouBXj
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations