Skip to content

Instantly share code, notes, and snippets.

@kxzk
Created August 9, 2019 21:43
Show Gist options
  • Save kxzk/0df23fdc8a9ad3704dd6ea027c308bc9 to your computer and use it in GitHub Desktop.
Save kxzk/0df23fdc8a9ad3704dd6ea027c308bc9 to your computer and use it in GitHub Desktop.
from pandas.api.types import infer_dtype
infer_dtype(["john", np.nan, "jack"], skipna=True)
# string
infer_dtype(["john", np.nan, "jack"], skipna=False)
# mixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment