88880/typeerror-cannot-cast-index-to-dtype-int
X=citibike.index.strftime("%s").astype("int").reshape(-1, 1)
When i run this line code shows
TypeError :Cannot cast Index to dtype int
Please fix my error ?
use numpy and use .astype(np,int) instead of .astype("int"). you can use index instead of value.
Try to use numpy and use .astype(np,int) ...READ MORE
Hey @Ashish, change the emotion_map to the ...READ MORE
A TypeError can occur if the type ...READ MORE
You have to pass byte string as ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
Hi@MUHAMMAD, You are trying to pass State in ...READ MORE
The following are totally acceptable in python: passing ...READ MORE
There is a slight mistake in what ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.