The type object is actually string in pandas dataframe.

If you would like to retain the data as string, use df.to_excel() instead of df.to_csv. This is because when opening the CSV file, Excel will automatically convert the number data to numbers.

df1 = pd.DataFrame({'GL': [2311000200.0, 2312000600.0, 2330800100.0]})
df1.GL = df1.GL.astype('int64').astype('string')
df1.to_excel('test.xlsx', index=False)

Answer from threadfin on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › python › convert-integer-to-string-in-python
Convert integer to string in Python - GeeksforGeeks
Explanation: str(n) converts n to a string, resulting in '42'. For Python 3.6 or later, f-strings provide a quick way to format and convert values.
Published   July 12, 2025
🌐
GitHub
github.com › pandas-dev › pandas › issues › 57418
BUG: conversion from Int64 to string introduces decimals in Pandas 2.2.0 · Issue #57418 · pandas-dev/pandas
February 14, 2024 - I.e. 12 will be converted to "12.0". This bug got introduced in Pandas 2.2.0, is still present on Pandas 2.2.x branch, but is not present on Pandas main branch. import pandas as pd x = pd.Series([12, pd.NA], dtype="Int64[pyarrow]").astype("string[pyarrow]") assert x[0] == "12" ... commit : fd3f571 python : 3.11.7.final.0 python-bits : 64 OS : Darwin OS-release : 23.2.0 Version : Darwin Kernel Version 23.2.0: Wed Nov 15 21:59:33 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8112 machine : arm64 processor : arm byteorder : little LC_ALL : None LANG : None LOCALE : None.UTF-8
Author   mplatzer
🌐
Python documentation
docs.python.org › 3 › library › stdtypes.html
Built-in Types — Python 3.14.5rc1 documentation
Some operations are supported by several object types; in particular, practically all objects can be compared for equality, tested for truth value, and converted to a string (with the repr() function or the slightly different str() function).
🌐
Spark By {Examples}
sparkbyexamples.com › home › pandas › pandas convert integer to string in dataframe
Pandas Convert Integer to String in DataFrame - Spark By {Examples}
December 5, 2024 - To convert an integer column to a string in a pandas DataFrame, you can use the astype(str) method. Additionally, other Pandas functions like apply(),
🌐
Unstop
unstop.com › home › blog › convert int to string in python (6 methods with examples)
Convert Int To String In Python (6 Methods With Examples)
April 11, 2024 - One common approach to convert int to string in Python is to use built-in functions like str(), which directly converts an integer to its string representation. For instance, str(123) returns the string '123'.
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-convert-integers-to-strings-in-pandas-dataframe
How to Convert Integers to Strings in Pandas DataFrame? - GeeksforGeeks
July 1, 2022 - Python3 · # importing pandas as pd import pandas as pd # creating a dictionary of integers dict = {'Integers' : [10, 50, 100, 350, 700]} # creating dataframe from dictionary df = pd.DataFrame.from_dict(dict) print(df) print(df.dtypes) print('\n') # converting each value of column to a string df['Integers'] = df['Integers'].astype(str) print(df) print(df.dtypes) Output : We can see in the above output that before the datatype was int64 and after the conversion to a string, the datatype is an object which represents a string.
🌐
SheCodes
shecodes.io › athena › 2142-converting-an-integer-to-string-in-python
[Python] - Converting an Integer to String in Python - | SheCodes
Learn how to convert an integer to a string in Python by using the `str()` function or casting the integer as a string.
🌐
Medium
tmlb-blog-ltd.medium.com › to-convert-a-float64-type-column-into-an-int64-or-string-type-column-in-python-short-984537c97a63
To convert a float64-type column into an int64 or string-type column in python (short) | by T Miyamoto | Medium
August 20, 2020 - So we now resort to the apply clause (although it can be slow): df_a['coli']= (df_a['colf'].apply(lambda w0: None if pd.isnull(w0) else np.int64(w0)) ).astype(pd.Int64Dtype()) ... Next we create a string type column based on column colf.
Find elsewhere
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-convert-data-types-in-python-3
How To Convert Data Types in Python 3 | DigitalOcean
August 20, 2021 - Let’s first look at converting integers. To convert the integer 12 to a string value, you can pass 12 into the str() method: ... When running str(12) in the Python interactive shell with the python command in a terminal window, you’ll receive the following output:
🌐
Maptable
maptable.com › create table view
Create table view | Maptable
def create_table_view(access_token, table_id, source_view_id, name, type="table"): url = '%s/open/api/v1/tablenodes/%d/views/' % (API_HOST, table_id) headers = {'Authorization': access_token} data = { "name": name, "fromViewID": source_view_id, "type": type } req = requests.post(url, headers=headers, json=data) return req.json()
🌐
Huihoo
docs.huihoo.com › python › 3.1.2 › library › struct.html
7.3. struct — Interpret bytes as packed binary data — Python v3.1.2 documentation
The '?' conversion code corresponds to the _Bool type defined by C99. If this type is not available, it is simulated using a char. In standard mode, it is always represented by one byte. The 'q' and 'Q' conversion codes are available in native mode only if the platform C compiler supports C long long, or, on Windows, __int64. They are always available in standard modes. A format character may be preceded by an integral repeat count. For example, the format string ...
🌐
Woshinlper
pandas.woshinlper.com › docs › user_guide › missing_data
Working with missing data - Pandas 中文文档
Because NaN is a float, a column of integers with even one missing values is cast to floating-point dtype (see Support for integer NA for more). Pandas provides a nullable integer array, which can be used by explicitly requesting the dtype: In [14]: pd.Series([1, 2, np.nan, 4], dtype=pd.Int64Dtype()) Out[14]: 0 1 1 2 2 NaN 3 4 dtype: Int64 · Alternatively, the string alias dtype='Int64' (note the capital "I") can be used.
🌐
Paddlepaddle
paddlepaddle.org.cn › documentation › docs › en › 2.2 › guides › 01_paddle2.0_introduction › basic_concept › tensor_introduction_en.html
Introduction to Tensor-Document-PaddlePaddle Deep Learning Platform
Tensor(shape=[1], dtype=int64, place=CUDAPinnedPlace, stop_gradient=True, [1]) name of Tensor is its unique identifier, which is a Python string, and it can be get by Tensor.name. By default, Paddle will customize a unique name when creating a Tensor. print("Tensor name:", paddle.to_tensor(1).name) Tensor name: generated_tensor_0 ·
🌐
Aliyun
help.aliyun.com › zh › maxcompute › user-guide › dataframe-quick-start
创建和操作PyODPS DataFrame对象进行数据处理-云原生大数据计算服务 MaxCompute-阿里云
March 19, 2025 - odps.Schema { movie_id int64 title string release_date string ideo_release_date string imdb_url string unknown int64 action int64 adventure int64 animation int64 children int64 comedy int64 crime int64 documentary int64 drama int64 fantasy int64 filmnoir int64 horror int64 musical int64 mystery int64 romance int64 scifi int64 thriller int64 war int64 western int64 user_id int64 rating int64 timestamp int64 age int64 sex string occupation string zip_code string }
🌐
MindSpore
mindspore.cn › doc › api_python › en › r1.1 › mindspore › mindspore.html
mindspore | MindSpore 1.1 documentation | MindSpore
Run the following command to import the package: ... Currently, MindSpore supports Int type, Uint type and Float type. The following table lists the details. ... For other defined types, see the following table. ... └─────── number │ ├─── bool_ │ ├─── int_ │ │ ├── int8, byte │ │ ├─── int16, short │ │ ├─── int32, intc │ │ └─── int64, intp │ ├─── uint │ │ ├─── uint8, ubyte │ │ ├─── uint16, ushort │ │ ├─── uint32, uintc │ │ └─── uint64, uintp │ └─── float_ │ ├─── float16 │ ├─── float32 │ └─── float64 ├─── tensor │ ├─── Array[Float32] │ └─── ...
🌐
Maptable
maptable.com › create table
Create table | Maptable
def new_table(access_token, project_id, parent_id, name, type): url = '%s/open/api/v1/tablenodes/' % API_HOST headers = {'Authorization': access_token} data = { "name": name, "projectID": project_id, "parentId": parent_id, "type": type } req = requests.post(url, headers=headers, json=data) return req.json()
🌐
Zilliz
docs.zilliz.com.cn › reference › python › python › CollectionSchema-add_field
add_field() | Python | ORM | Zilliz Cloud 开发指南
This operation adds a field to the schema of a collection. ... The name of the field. ... The data type of the field. You can choose from the following options when selecting a data type for different fields: Primary key field: Use DataType.INT64 or DataType.VARCHAR.