Skip to content

Instantly share code, notes, and snippets.

@justinhchae
Last active January 13, 2021 07:10
Show Gist options
  • Select an option

  • Save justinhchae/19d333984119e892dc29c17ff62baad0 to your computer and use it in GitHub Desktop.

Select an option

Save justinhchae/19d333984119e892dc29c17ff62baad0 to your computer and use it in GitHub Desktop.
import pandas as pd
gitcsv = 'https://raw.githubusercontent.com/justinhchae/medium/main/bools.csv'
df = pd.read_csv(gitcsv)
print(df.head()
"""
results of printing dataframe head
category flag1 flag2 flag3
0 d False NaN NaN
1 d True NaN NaN
2 c False NaN NaN
3 b False NaN NaN
4 b False NaN NaN
Unique types of data in each column
['d' 'c' 'b' 'e' nan 'f' 'a']
[False True]
[nan True]
[nan 1.]
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment