Data Science Professor and Dean of the School of Business & Technology, Newman University, Wichita, KS
-
Newman University
- Wichita, KS
- https://newmanu.edu/academics/graduate-programs/ms-data-science
- in/davidcochran
Pinned Loading
-
-
Change default browser for Jupyter N...
Change default browser for Jupyter Notebooks in Mac OS X 1# Change the Default Browser for Jupyter Notebooks in OS X
23## Step 1. Create an editable config file for Jupyter notebooks.
4To do this, open Terminal and type:
5 -
Format output of pandas describe() m...
Format output of pandas describe() method 1# Pandas .describe() formatted
2Format numbers output from the pandas df.describe() method. For instance, instead of outputting scientific notation, we can have numbers with thousands separators and a desired number of decimals.
34When using .describe with an entire dataframe, use .apply and a lambda function to apply the formatting to every number.
5- To change the number of decimals, change the number before the f
-
Apply a function to a pandas column
Apply a function to a pandas column 1# Define a function to get the name field from the first item in a dictionary list
2def get_genre1(x):
3x = json.loads(x)
4if len(x) > 0:
5return x[0]['name']
-
Cryptocurrency data scraper in R -- ...
Cryptocurrency data scraper in R -- script to utilize JesseVent/crypto 1# Install and use crypto scraper from
2# https://github.com/JesseVent/crypto
34# This script is written to be used by running the desired line(s) separately, often one line at a time
5 -
Turn off autocompletion (intellisens...
Turn off autocompletion (intellisense) in MS Visual Studio Code 1// Turn off autocomplete in Visual Studio Code
2// http://code.visualstudio.com/
34// Add the following lines to user settings
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.