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)

Top answer 1 of 2
2
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)

2 of 2
1
You can force it to use the string dtype by using:
>>> df1.GL.astype("string")
df1.GL
0 2311000200.0
1 2312000600.0
2 2330800100.0
Name: GL, dtype: string
However, object dtypes are fine for most string operations. As per the docs:
For backwards-compatibility, object dtype remains the default type we infer a list of strings to
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
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.
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 ...
Paddlepaddle
paddlepaddle.org.cn › documentation › docs › guides › beginner › tensor_en.html
Introduction to Tensor-使用文档-PaddlePaddle深度学习平台
Tensor dtype from Python integers: paddle.int64 Tensor dtype from Python floating point: paddle.float32
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 r1.1 documentation
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()
222.178.203.72
222.178.203.72:19005 › whst › 63 › =vvvzfddjrenqfddjrznqf › › how-to-fetch-an-integer-variable-as-string-in-golang
How to fetch an Integer variable as String in GoLang?
June 22, 2020 - We cannot provide a description for this page right now