Child height and weight measurements for all data from three studies at one year of age.
Data from three different research studies. Each study had different research objectives.
health
child
Author
DS 150
Published
November 5, 2023
Data details
There are 2,337 rows and 7 columns. The data source1 is used to create our data that is stored in our pins table. You can access this pin from a connection to posit.byui.edu using hathawayj/days_365.
Variable description
subjid: unique identifyer of each child
sex: Male or Female
wtkg: Weight measurement in kg (0.8-20.5)
htcm: Height in cm
haz: Height for age in SDS relative to WHO child growth standard
waz: Weight for age in SDS relative to WHO child growth standard
Use this custom function in Python to have the data in a Pandas DataFrame.
import pandas as pdimport requestsfrom io import BytesIOdef read_url_pin(name): url ="https://posit.byui.edu/data/"+ name +"/"+ name +".parquet" response = requests.get(url)if response.status_code ==200: parquet_content = BytesIO(response.content) pandas_dataframe = pd.read_parquet(parquet_content)return pandas_dataframeelse:print(f"Failed to retrieve data. Status code: {response.status_code}")returnNone# Example usage:pandas_df = read_url_pin("days_365")
Authenticated Connection:
Our connect server is https://posit.byui.edu which you assign to your CONNECT_SERVER environment variable. You must create an API key and store it in your environment under CONNECT_API_KEY.