Suraj Joshi

Python How-To's

  1. Play Mp3 File Using Python
  2. Remove Commas From String in Python
  3. Calculate Modular Multiplicative Inverse in Python
  4. Delete Files and Directories Using Python

Go Howtos

  1. Convert String to Integer Type in Go
  2. Convert Go Struct to JSON
  3. Find a Type of an Object in Go
  4. Print Struct Variables in Console in Go
  5. Convert an Int Value to String in Go
  6. Parse Date String in Go
  7. Delete an Element From a Slice in Golang
  8. Check if a Map Contains a Key in Go
  9. Efficiently Concatenate Strings in Go
  10. Write Multiline Strings in Go
  11. Iterate Over an Entire Map in Go
  12. Concatenate Two Slices in Go

Python Matplotlib Howto's

  1. Add Title to Subplots in Matplotlib
  2. Add a Y-Axis Label to the Secondary Y-Axis in Matplotlib
  3. Connect Scatterplot Points With Line in Matplotlib
  4. Change Space Between Subplots in Matplotlib
  5. Set Marker Size of Scatter Plot in Matplotlib
  6. Manually Set the Size of the Bins in Matplotlib Histogram
  7. Display Multiple Images in One Figure Correctly in Matplotlib
  8. Plot a 2D Heatmap With Matplotlib
  9. Plot a Circle in Matplotlib
  10. Set the Figure Title and Axes Labels Font Size in Matplotlib
  11. Plot Logarithmic Axes in Matplotlib
  12. Plot and Save a Graph in High Resolution in Matplotlib
  13. Make a Square Plot With Equal Axes in Matplotlib
  14. Change the Line Width of Lines in Matplotlib Legend
  15. Set Limits for Axes in Matplotlib
  16. Save Plots as an Image File Without Displaying in Matplotlib
  17. Automate Plot Updates in Matplotlib
  18. Plot Data in Real Time Using Matplotlib
  19. Create a Surface Plot in Matplotlib
  20. Set a Single Main Title for All the Subplots in Matplotlib
  21. Change Matplotlib Plot Size
  22. Remove the Legend in Matplotlib
  23. Reverse Axes in Matplotlib
  24. Save Plots as PDF File in Matplotlib
  25. Turn Off the Axes for Subplots in Matplotlib
  26. Colorplot of 2D Array Matplotlib
  27. Convert a NumPy Array to PIL Image in Python
  28. Create Reverse Colormap in Python Matplotlib
  29. Latex Formulas in Matplotlib
  30. Matplotlib 3D Projection
  31. Matplotlib Boxplot Python
  32. Matplotlib imread in Python
  33. Matplotlib Label Scatter Points
  34. Matplotlib Plot Smooth Curve
  35. Matplotlib.pyplot.specgram() in Python
  36. Plot CDF Matplotlib Python
  37. Plot Multiple Lines in Python Matplotlib
  38. Set Matplotlib Grid Interval
  39. twinx and twiny in Matplotlib
  40. Matplotlib Plot Time Series
  41. Pandas Plot Multiple Columns on Bar Chart With Matplotlib
  42. Plot NumPy Linear Fit in Matplotlib Python
  43. Plot Points in Matplotlib
  44. Set Number of Ticks in Matplotlib
  45. Use of pyplot.figure() in Matplotlib
  46. Matplotlib Density Plot
  47. Stack Bar Plots in Matplotlib
  48. Add Subplot to a Figure in Matplotlib
  49. Add Text Inside the Plot in Matplotlib
  50. Draw an Arbitrary Line in Matplotlib
  51. Hide Axis, Borders and White Spaces in Matplotlib
  52. Linestyles in Matplotlib Python
  53. Set Color for Scatterplot in Matplotlib
  54. Set X Axis Values in Matplotlib
  55. Plot Histogram for List of Data in Matplotlib
  56. Differences Between cla(), clf() and close() Methods in Matplotlib
  57. Display an Image in Grayscale in Matplotlib
  58. Display an Image With Matplotlib Python
  59. Fill Between Multiple Lines in Matplotlib
  60. Make the Legend of the Scatter Plot in Matplotlib
  61. Plot a Table in Matplotlib
  62. Save Figures Identical to the Displayed Figures in Matplotlib
  63. Specify the Legend Position in Graph Coordinates in Matplotlib

Python Pandas Howtos

  1. Check if NaN Exisits in Pandas DataFrame
  2. Extract Month and Year Separately From Datetime Column in Pandas
  3. Filter DataFrame Rows Based on the Date in Pandas
  4. Randomly Shuffle DataFrame Rows in Pandas
  5. Add a New Column to Existing DataFrame With Default Value in Pandas
  6. Filter Dataframe Rows Based on Column Values in Pandas
  7. Create an Empty Column in Pandas DataFrame
  8. Create DataFrame Column Based on Given Condition in Pandas
  9. Iterate Through Rows of a DataFrame in Pandas
  10. Get Index of All Rows Whose Particular Column Satisfies Given Condition in Pandas
  11. Get First Row of Given Column Dataframe Pandas
  12. Difference Between Pandas apply, map and applymap
  13. Pandas loc vs iloc
  14. Pandas Convert String to Numeric Type
  15. Pandas fillna Column
  16. Compare Pandas DataFrame Object
  17. Convert NumPy Array to Pandas DataFrame
  18. Filter Pandas DataFrame With Multiple Conditions
  19. Get and Set Pandas DataFrame Index Name
  20. Get Dummies in Pandas
  21. Get the First Row of Dataframe Pandas
  22. Load JSON File in Pandas
  23. Pandas Axis Meaning
  24. Pandas Convert Column Values to String
  25. Pandas Copy DataFrame
  26. Pandas Correlation Matrix
  27. Pandas Count Unique Values
  28. Pandas Create Column Based on Other Columns
  29. Pandas DataFrame Remove Index
  30. Pandas DataFrame Reset Index
  31. Pandas Drop Duplicate Rows
  32. Pandas Drop Rows
  33. Pandas Drop Rows With NaN
  34. Pandas Exclude Column
  35. Pandas Groupby Count
  36. Pandas Groupby Two Columns
  37. Pandas Insert Method
  38. Pandas Map Python
  39. Select Pandas DataFrame Columns
  40. Specify Suffix in Pandas join() Method
  41. Split Pandas DataFrame
  42. Write a Pandas DataFrame to CSV
  43. Pandas Merge on Multiple Columns

Python Scipy Functions

  1. SciPy scipy.stats.linregress Method
  2. SciPy scipy.stats.multivariate_normal
  3. Scipy scipy.optimize.curve_fit Method
  4. SciPy scipy.interpolate.interp1d Function

Python Pandas Functions

  1. Pandas concat Function
  2. Pandas cut Function
  3. Pandas DataFrame sort_index() Function
  4. Pandas DataFrame DataFrame.drop_duplicates() Function
  5. Pandas DataFrame DataFrame.interpolate() Function
  6. Pandas DataFrame DataFrame.plot.scatter() Function
  7. Pandas DataFrame DataFrame.sum() Function
  8. Pandas read_csv() Function
  9. Pandas DataFrame DataFrame.boxplot() Function
  10. Pandas DataFrame DataFrame.replace() Function
  11. Pandas DataFrame DataFrame.merge() Function
  12. Pandas DataFrame DataFrame.assign() Function
  13. Pandas DataFrame DataFrame.mean() Function
  14. Pandas Series Series.unique() Function
  15. Pandas DataFrame DataFrame.fillna() Function
  16. Pandas Series Series.value_counts() Function
  17. Pandas DataFrame DataFrame.apply() Function
  18. Pandas DataFrame DataFrame.shift() Function
  19. Pandas DataFrame DataFrame.query() Function
  20. Pandas DataFrame DataFrame.sort_values() Function
  21. Pandas DataFrame DataFrame.set_index() Function
  22. Pandas DataFrame DataFrame.groupby() Function
  23. Pandas DataFrame DataFrame.append() Function

Linux Howtos

  1. Change User Password in Linux
  2. Delete a User Account in Linux
  3. Install Plex Media Server on Ubuntu
  4. Start, Stop and Restart Apache Web Server in Linux
  5. Install Sublime Text Editor on Ubuntu 18.04
  6. Install the pip Package Manager on Ubuntu
  7. Change File Permissions in Linux
  8. Use While Loop in Bash
  9. Delete Files and Directories in Linux Terminal
  10. Install RPM Pacakges on CentOS
  11. Use the sleep Command in Bash
  12. Perform Copy, Cut and Paste Operations in Vim and Vi
  13. Read a File Line by Line Using Bash
  14. Shutdown a Linux Machine Using Terminal
  15. Use wget Command in Linux
  16. Use the gzip Command in Linux
  17. Create a File Using the Terminal in Linux
  18. Add Super Users in CentOS
  19. Use Functions in Bash
  20. Install VMware Tools in Ubuntu 18.04
  21. Perform Undo and Redo Operations in Vim and Vi
  22. Rename Files and Directories Using Linux Terminal
  23. View All the Installed Packages on Ubuntu
  24. Use if...else Statement in Bash
  25. Compare Strings in Bash
  26. Securely Transfer Files and Directories Using SCP
  27. Enable Line Numbers in Vim/Vi
  28. Check the Version of Ubuntu
  29. Move Files and Directories in Linux Using Mv Command
  30. Copy Files and Directories Using Linux Terminal
  31. Add Sudo Users in Ubuntu
  32. Save Files in Vim Before Quitting the Vim Editor
  33. Perform Increment and Decrement Operation in Bash
  34. Install GCC Compiler on Ubuntu 18.04
  35. Add Comments in Bash Scripts
  36. Make New Directories in Linux
  37. Extract Bzip2 Files Using Terminal
  38. Append Text to a File Using Bash
  39. Concatenate Strings in Bash

Python Numpy Functions

  1. NumPy numpy.meshgrid Function
  2. NumPy numpy.random.rand() Function
  3. NumPy numpy.median Function
  4. NumPy numpy.dot Function
  5. NumPy numpy.loadtxt() Function
  6. Python Numpy transpose() Function
  7. Python numpy.unique() Function
  8. Python numpy.argmax()

Git Howtos

  1. Remove a Git Remote URL
Author: Suraj Joshi
Suraj Joshi avatar Suraj Joshi avatar

Suraj Joshi is a backend software engineer at Matrice.ai.

LinkedIn