Suraj Joshi
Python How-To's
- Play Mp3 File Using Python
- Remove Commas From String in Python
- Calculate Modular Multiplicative Inverse in Python
- Delete Files and Directories Using Python
Go Howtos
- Convert String to Integer Type in Go
- Convert Go Struct to JSON
- Find a Type of an Object in Go
- Print Struct Variables in Console in Go
- Convert an Int Value to String in Go
- Parse Date String in Go
- Delete an Element From a Slice in Golang
- Check if a Map Contains a Key in Go
- Efficiently Concatenate Strings in Go
- Write Multiline Strings in Go
- Iterate Over an Entire Map in Go
- Concatenate Two Slices in Go
Python Matplotlib Howto's
- Add Title to Subplots in Matplotlib
- Add a Y-Axis Label to the Secondary Y-Axis in Matplotlib
- Connect Scatterplot Points With Line in Matplotlib
- Change Space Between Subplots in Matplotlib
- Set Marker Size of Scatter Plot in Matplotlib
- Manually Set the Size of the Bins in Matplotlib Histogram
- Display Multiple Images in One Figure Correctly in Matplotlib
- Plot a 2D Heatmap With Matplotlib
- Plot a Circle in Matplotlib
- Set the Figure Title and Axes Labels Font Size in Matplotlib
- Plot Logarithmic Axes in Matplotlib
- Plot and Save a Graph in High Resolution in Matplotlib
- Make a Square Plot With Equal Axes in Matplotlib
- Change the Line Width of Lines in Matplotlib Legend
- Set Limits for Axes in Matplotlib
- Save Plots as an Image File Without Displaying in Matplotlib
- Automate Plot Updates in Matplotlib
- Plot Data in Real Time Using Matplotlib
- Create a Surface Plot in Matplotlib
- Set a Single Main Title for All the Subplots in Matplotlib
- Change Matplotlib Plot Size
- Remove the Legend in Matplotlib
- Reverse Axes in Matplotlib
- Save Plots as PDF File in Matplotlib
- Turn Off the Axes for Subplots in Matplotlib
- Colorplot of 2D Array Matplotlib
- Convert a NumPy Array to PIL Image in Python
- Create Reverse Colormap in Python Matplotlib
- Latex Formulas in Matplotlib
- Matplotlib 3D Projection
- Matplotlib Boxplot Python
- Matplotlib imread in Python
- Matplotlib Label Scatter Points
- Matplotlib Plot Smooth Curve
- Matplotlib.pyplot.specgram() in Python
- Plot CDF Matplotlib Python
- Plot Multiple Lines in Python Matplotlib
- Set Matplotlib Grid Interval
- twinx and twiny in Matplotlib
- Matplotlib Plot Time Series
- Pandas Plot Multiple Columns on Bar Chart With Matplotlib
- Plot NumPy Linear Fit in Matplotlib Python
- Plot Points in Matplotlib
- Set Number of Ticks in Matplotlib
- Use of pyplot.figure() in Matplotlib
- Matplotlib Density Plot
- Stack Bar Plots in Matplotlib
- Add Subplot to a Figure in Matplotlib
- Add Text Inside the Plot in Matplotlib
- Draw an Arbitrary Line in Matplotlib
- Hide Axis, Borders and White Spaces in Matplotlib
- Linestyles in Matplotlib Python
- Set Color for Scatterplot in Matplotlib
- Set X Axis Values in Matplotlib
- Plot Histogram for List of Data in Matplotlib
- Differences Between cla(), clf() and close() Methods in Matplotlib
- Display an Image in Grayscale in Matplotlib
- Display an Image With Matplotlib Python
- Fill Between Multiple Lines in Matplotlib
- Make the Legend of the Scatter Plot in Matplotlib
- Plot a Table in Matplotlib
- Save Figures Identical to the Displayed Figures in Matplotlib
- Specify the Legend Position in Graph Coordinates in Matplotlib
Python Pandas Howtos
- Check if NaN Exisits in Pandas DataFrame
- Extract Month and Year Separately From Datetime Column in Pandas
- Filter DataFrame Rows Based on the Date in Pandas
- Randomly Shuffle DataFrame Rows in Pandas
- Add a New Column to Existing DataFrame With Default Value in Pandas
- Filter Dataframe Rows Based on Column Values in Pandas
- Create an Empty Column in Pandas DataFrame
- Create DataFrame Column Based on Given Condition in Pandas
- Iterate Through Rows of a DataFrame in Pandas
- Get Index of All Rows Whose Particular Column Satisfies Given Condition in Pandas
- Get First Row of Given Column Dataframe Pandas
- Difference Between Pandas apply, map and applymap
- Pandas loc vs iloc
- Pandas Convert String to Numeric Type
- Pandas fillna Column
- Compare Pandas DataFrame Object
- Convert NumPy Array to Pandas DataFrame
- Filter Pandas DataFrame With Multiple Conditions
- Get and Set Pandas DataFrame Index Name
- Get Dummies in Pandas
- Get the First Row of Dataframe Pandas
- Load JSON File in Pandas
- Pandas Axis Meaning
- Pandas Convert Column Values to String
- Pandas Copy DataFrame
- Pandas Correlation Matrix
- Pandas Count Unique Values
- Pandas Create Column Based on Other Columns
- Pandas DataFrame Remove Index
- Pandas DataFrame Reset Index
- Pandas Drop Duplicate Rows
- Pandas Drop Rows
- Pandas Drop Rows With NaN
- Pandas Exclude Column
- Pandas Groupby Count
- Pandas Groupby Two Columns
- Pandas Insert Method
- Pandas Map Python
- Select Pandas DataFrame Columns
- Specify Suffix in Pandas join() Method
- Split Pandas DataFrame
- Write a Pandas DataFrame to CSV
- Pandas Merge on Multiple Columns
Python Scipy Functions
- SciPy scipy.stats.linregress Method
- SciPy scipy.stats.multivariate_normal
- Scipy scipy.optimize.curve_fit Method
- SciPy scipy.interpolate.interp1d Function
Python Pandas Functions
- Pandas concat Function
- Pandas cut Function
- Pandas DataFrame sort_index() Function
- Pandas DataFrame DataFrame.drop_duplicates() Function
- Pandas DataFrame DataFrame.interpolate() Function
- Pandas DataFrame DataFrame.plot.scatter() Function
- Pandas DataFrame DataFrame.sum() Function
- Pandas read_csv() Function
- Pandas DataFrame DataFrame.boxplot() Function
- Pandas DataFrame DataFrame.replace() Function
- Pandas DataFrame DataFrame.merge() Function
- Pandas DataFrame DataFrame.assign() Function
- Pandas DataFrame DataFrame.mean() Function
- Pandas Series Series.unique() Function
- Pandas DataFrame DataFrame.fillna() Function
- Pandas Series Series.value_counts() Function
- Pandas DataFrame DataFrame.apply() Function
- Pandas DataFrame DataFrame.shift() Function
- Pandas DataFrame DataFrame.query() Function
- Pandas DataFrame DataFrame.sort_values() Function
- Pandas DataFrame DataFrame.set_index() Function
- Pandas DataFrame DataFrame.groupby() Function
- Pandas DataFrame DataFrame.append() Function
Linux Howtos
- Change User Password in Linux
- Delete a User Account in Linux
- Install Plex Media Server on Ubuntu
- Start, Stop and Restart Apache Web Server in Linux
- Install Sublime Text Editor on Ubuntu 18.04
- Install the pip Package Manager on Ubuntu
- Change File Permissions in Linux
- Use While Loop in Bash
- Delete Files and Directories in Linux Terminal
- Install RPM Pacakges on CentOS
- Use the sleep Command in Bash
- Perform Copy, Cut and Paste Operations in Vim and Vi
- Read a File Line by Line Using Bash
- Shutdown a Linux Machine Using Terminal
- Use wget Command in Linux
- Use the gzip Command in Linux
- Create a File Using the Terminal in Linux
- Add Super Users in CentOS
- Use Functions in Bash
- Install VMware Tools in Ubuntu 18.04
- Perform Undo and Redo Operations in Vim and Vi
- Rename Files and Directories Using Linux Terminal
- View All the Installed Packages on Ubuntu
- Use if...else Statement in Bash
- Compare Strings in Bash
- Securely Transfer Files and Directories Using SCP
- Enable Line Numbers in Vim/Vi
- Check the Version of Ubuntu
- Move Files and Directories in Linux Using Mv Command
- Copy Files and Directories Using Linux Terminal
- Add Sudo Users in Ubuntu
- Save Files in Vim Before Quitting the Vim Editor
- Perform Increment and Decrement Operation in Bash
- Install GCC Compiler on Ubuntu 18.04
- Add Comments in Bash Scripts
- Make New Directories in Linux
- Extract Bzip2 Files Using Terminal
- Append Text to a File Using Bash
- Concatenate Strings in Bash
Python Numpy Functions
- NumPy numpy.meshgrid Function
- NumPy numpy.random.rand() Function
- NumPy numpy.median Function
- NumPy numpy.dot Function
- NumPy numpy.loadtxt() Function
- Python Numpy transpose() Function
- Python numpy.unique() Function
- Python numpy.argmax()
Git Howtos
Author: Suraj Joshi
Suraj Joshi is a backend software engineer at Matrice.ai.
LinkedIn