Similar Posts
Connect Push Commit Pull Your GitHub Repository To Your Local Computer’s Directory
Introduction Github is a web version control system which is very useful when you are working on various projects or you want to keep track of changes you make to your project over time. It is a very useful tool as you venture into Data Science and Programming Objective After you have created a…
MySQL – Summarizing Data – SUM COUNT -MIN -MAX – AVG – DOGNITION Database
Summarizing Data This week we are looking at five most common aggregate functions used to summarize information stored in tables: COUNT and SUM very frequently. COUNT is the only aggregate function that can work on any type of variable. The other four aggregate functions are only appropriate for numerical data. All aggregate functions require you…
Rank Sort Series DataFrames in Python Pandas Numpy
In this quick notes, we will have a look at Rank and Sort in Series and DataFrames in Python In [1]: import numpy as np import pandas as pd from pandas import Series, DataFrame In [3]: #make a series ser1 = Series(range(3), index=[‘C’,’A’,’B’]) ser1 Out[3]: C 0 A 1 B 2 dtype: int32 In [4]:…
Save Python Pivot Table in Excel Sheets ExcelWriter
Untitled This is a quick script on how to save Python pivot_table in an excel file. Credit to pbpython In [1]: import sqlalchemy import pyodbc from pandas import DataFrame import pandas as pd In [2]: df = DataFrame ## connect to SqlServer Database and get information. try: import urllib params = urllib.quote_plus(“DRIVER={SQL Server Native Client 11.0};SERVER=.\MSSQLSERVER_ENT;DATABASE=Antrak;Trusted_Connection=yes;”)…
Python List Comprehension Dictionary Set Comprehension and For Loops
This is a guide on Python List comprehension. List comprehension is a great way to write simple and easy to read Python codes. You can use it dictionaries and sets as well. Credits to Corey Schafer , creator of Python course materials. lets create a list In [115]: num = range(10) num Out[115]: [0, 1,…
How to Install Whl Packages and Modules in Python
Sometimes, you might need some packages which do not come with the standard Python libraries and you would want to install them separately. You will notice how frustrating it is when you get stuck because of a package you are missing. Sentdex on Youtube covers that accurately and you can watch him here: …