See https://www.cdc.gov/nchs/data/nhsr/nhsr063.pdf for a desciption on how calculations are made. However, the CDC has different coefficients.
health
child
Author
DS 150
Published
November 5, 2023
Data details
There are 1,800 rows and 6 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/weight_coef.
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("weight_coef")
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.