Hackers and Slackers Logo
AboutSeriesSearchJoinDonate
Search results
No results for 'undefined'
mobile-menu
Search results
No results for ''
Trending Searches
HomeAboutSearch
Tags
PythonSoftwareDevOpsArchitectureData EngineeringPandasData AnalysisData ScienceREST APIsSQLCode Snippet CornerFlaskJavaScriptAWSNodeJS
Series
Build Flask AppsData Analysis with PandasGoogle Cloud ArchitectureLearning Apache SparkCreate a REST API in AWSGraphQL TutorialsHacking Tableau ServerMastering SQLAlchemyMongoDB Atlas Cloud ArchitectureWelcome to SQLWorking with MySQLMapping Data with MapboxMicrosoft PowerPivotGetting Started with DjangoPython Concurrency with AsyncioWeb Scraping With Python
Authors
Todd BirchardMax MileafGraham BeckleyDavid AquinoMatthew AlhonteRyan RosadoPaul ArmstrongDylan Castillo
JoinRSS Donate
#Python Code Snippet Corner

#Python Code Snippet Corner (page 1)

Your occasional dose of Python tidbits for data science and analysis. Tutorials are BYOJ: bring your own Jupyter notebook.

Being REALLY Lazy With Multiple Aggregations in Pandas

Being REALLY Lazy With Multiple Aggregations in Pandas

Perform multiple aggregate functions simultaneously with Pandas 0.25

Matthew
Matthew
07 December, 2019•3 min read
Code Snippet Corner
Splitting Columns With Pandas

Splitting Columns With Pandas

Split columns containing multiple values in your Pandas DataFrame into multiple columns, each containing a single value.

Matthew
Matthew
18 November, 2019•7 min read
Code Snippet Corner
Recasting Low-Cardinality Columns as Categoricals

Recasting Low-Cardinality Columns as Categoricals

Downcast strings in Pandas to their proper data-types using HDF5.

Matthew
Matthew
27 May, 2019•3 min read
Code Snippet Corner
Removing Duplicate Columns in Pandas

Removing Duplicate Columns in Pandas

Dealing with duplicate column names in your Pandas DataFrame.

Matthew
Matthew
26 May, 2019•3 min read
Code Snippet Corner
Downcast Numerical Data Types with Pandas

Downcast Numerical Data Types with Pandas

Using an Example Where We Downcast Numerical Columns.

Matthew
Matthew
28 January, 2019•5 min read
Code Snippet Corner
Using Random Forests for Feature Selection with Categorical Features

Using Random Forests for Feature Selection with Categorical Features

Python helper functions for adding feature importance, and displaying them as a single variable.

Matthew
Matthew
24 September, 2018•2 min read
Code Snippet Corner
Tuning Random Forests Hyperparameters: min_samples_leaf

Tuning Random Forests Hyperparameters: min_samples_leaf

Tune the min_samples_leaf parameter in for a Random Forests classifier in scikit-learn in Python

Matthew
Matthew
17 September, 2018•4 min read
Code Snippet Corner
Tuning Random Forests Hyperparameters: max_depth

Tuning Random Forests Hyperparameters: max_depth

Tune the max_depth parameter in for a Random Forests classifier in scikit-learn in Python

Matthew
Matthew
09 September, 2018•2 min read
Code Snippet Corner
Tuning Machine Learning Hyperparameters with Binary Search

Tuning Machine Learning Hyperparameters with Binary Search

Tune the n_estimators parameter in for a Random Forests classifier in scikit-learn in Python.

Matthew
Matthew
30 August, 2018•4 min read
Code Snippet Corner
Importing Excel Datetimes Into Pandas, Part II

Importing Excel Datetimes Into Pandas, Part II

Import dates & times from Excel .xlsx files into Pandas!

Matthew
Matthew
13 August, 2018•2 min read
Code Snippet Corner
Page 1 of 2
Next
Hackers and Slackers

Community of hackers obsessed with data science, data engineering, and analysis. Openly pushing a pro-robot agenda.

Trending Posts
Extract Nested Data From Complex JSONIntegrate Plotly Dash Into Your Flask AppManaging Multiple Versions of Python on Ubuntu 18.04Scraping Data on the Web with BeautifulSoupMake Your First API Calls with JQuery AJAXConnecting Pandas to a Database with SQLAlchemySSH & SCP in Python with ParamikoConfiguring Python Projects with INI, TOML, YAML, and ENV files

Tags

PythonSoftwareDevOpsArchitectureData EngineeringPandasExcelData AnalysisData ScienceREST APIsSQLCode Snippet CornerFlaskJavaScriptAWSNodeJSGoogle CloudApacheFrontendMySQLData VisNoSQLBIExpressJSGraphQLPostgreSQLSparkETL PipelinesTableauAtlassianAutomationBig DataGatsbyJSMachine LearningSQLAlchemy

Newsletter

Donations

Quinn
1

last year I was trying to learn flask and got good tips from your site, although my journey with flask was suspended for a while, now I come back on track again, and with the interests to integrate plotly dash into flask with flask-login to protect dash, possible?

Michele Urbani
1

Good work! A nice starting point for many of my projects. Thank you!

tekwizz123
5

Awesome website on Flask and how it all works, thanks for making such a detailed walkthrough!

Phaidrosz
1

this is something

Hackers and Slackers Logo

Community of hackers obsessed with data science, data engineering, and analysis. Openly pushing a pro-robot agenda.

PagesAboutSeriesSearchJoinDonateSign up
SeriesBuild Flask AppsData Analysis with PandasGoogle Cloud ArchitectureLearning Apache SparkEmbracing GraphQLMastering SQLAlchemyWelcome to SQLWorking with MySQL
AuthorsTodd BirchardMax MileafGraham BeckleyDavid AquinoMatthew AlhonteRyan RosadoPaul ArmstrongDylan Castillo
©2021 Hackers and Slackers, All Rights Reserved.