I am creating a dataframe from a csv like this;
topcells=pd.DataFrame.from_csv("url/output_topcell.txt", header=0, sep=', ', parse_dates=True, encoding=None, tupleize_cols=False)
The column I am interested (cell) in contains long numbers (e.g. 6468716846847) which I need to be cast as strings.
After creating the dataframe the datatype seems to be numpy.float64 by default (including some nan values)
When I use:
topcells.cell=topcells.cell.astype(str)
or:
topcells['cell']=topcells['cell'].apply(lambda x: str(x))
The string I get is not actually "6468716846847" but something like "6.468716846847e+12"
How can I avoid this scientific notation and get the full number as a string?