Created
September 17, 2022 23:58
-
-
Save petrosDemetrakopoulos/b630ab12a8f6268d72d8b272328d6079 to your computer and use it in GitHub Desktop.
Pandas integer column
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import random | |
age_column = [random.randrange(0,120) for x in range(1000)] | |
df = pd.DataFrame({'age':age_column}) | |
print(df.info(memory_usage="deep")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment