Skip to content

Instantly share code, notes, and snippets.

@vnegi10
Last active October 3, 2021 14:50
Show Gist options
  • Save vnegi10/328b688794d86b149022a5d7494b090e to your computer and use it in GitHub Desktop.
Save vnegi10/328b688794d86b149022a5d7494b090e to your computer and use it in GitHub Desktop.
# 1 - Check size of the DataFrame, returns (rows, columns)
size(df_pedometer_raw)
# 1 - Result
# (3221, 20)
# 2- List column names
names(df_pedometer_raw)
# 2- Result
#=
"step_count"
"binning_data"
"active_time"
"recommendation"
"run_step_count"
"update_time"
"source_package_name"
...more
=#
# 3- Check various statistics about the DataFrame
describe(df_pedometer_raw)
# 3- Result
#=
variable mean min median
:step_count 5307.85 7 5117.0
:binning_data nothing "0003f327-7b70-49ac-bb46-7d03338c1bf6.binning_data.jsonnothing
:active_time 3.05055e6 2889 2.94147e6
:recommendation 6000.0 6000 6000.0
:run_step_count 133.123 0 0.0
:update_time nothing "2018-05-05 17:49:04.887" nothing
...more
=#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment