Skip to content

Instantly share code, notes, and snippets.

@aletelecom
Created July 31, 2022 17:56
Show Gist options
  • Save aletelecom/f28e01d97d7ffa10479f5227cd906dcb to your computer and use it in GitHub Desktop.
Save aletelecom/f28e01d97d7ffa10479f5227cd906dcb to your computer and use it in GitHub Desktop.
Viz 4 dataset creation
data_df = pd.DataFrame([distance, np.sort(optical_power)])
data_df = data_df.T
data_df.rename(columns={0:'distance', 1:'optical_power'}, inplace=True)
#data_df['avg_speed'] = data_df['throughput'].divide(data_df['client_qty'])
data_df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment