You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to import all my data as string columns, then convert the datatypes manually later. I am using the code shown below. It works correctly, all the data values seem OK. But I thought that the datatypes should be reported as 'object'. Instead they are all <U0.
Is this just terminology (<U0 is the same as object) or did I do something wrong?
CountyCovidKDF = ks.read_csv("/FileStore/tables/chuck1/County.csv", sep=',', header='infer', dtype=str)
CountyCovidKDF.info()
Data columns (total 6 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 Date 2145 non-null <U0
1 County 2145 non-null <U0
2 New Confirmed Cases 2145 non-null <U0
3 Total Confirmed Cases 2145 non-null <U0
4 New Probable and Confirmed Deaths 2145 non-null <U0
5 Total Probable and Confirmed Deaths 2145 non-null <U0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to import all my data as string columns, then convert the datatypes manually later. I am using the code shown below. It works correctly, all the data values seem OK. But I thought that the datatypes should be reported as 'object'. Instead they are all <U0.
Is this just terminology (<U0 is the same as object) or did I do something wrong?
Beta Was this translation helpful? Give feedback.
All reactions