Happy May Day!
DataPandas wishes you Happy International Workers’ Day!


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…
Untitled This is a quick script on how to save Python pivot_table in an excel file. Credit to pbpython In [1]:
|
1 2 3 4 |
import sqlalchemy import pyodbc from pandas import DataFrame import pandas as pd |
In [2]:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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;") engine = sqlalchemy.create_engine('mssql+pyodbc:///?odbc_connect=%s"' % params) resoverall = engine.execute("SELECT * FROM FlightBookingsMain") df = df(resoverall.fetchall()) df.columns = resoverall.keys() except (RuntimeError, TypeError, NameError): print('Error in Conneccting') print(RuntimeError, TypeError, NameError) finally: print("connected") |
|
1 |
connected |
In [8]:
|
1 |
df.head() |
Out[8]: First Name Last Name Sex Phone Fax Email Address Booking Date Departure Date Arrival Date Address1 … Number of Passengers Total Cost Currency Numeric Code…
Adding actions to messages boxes Message Boxes, like most functions, return one of these values and their respective meanings Button Pressed Return Values: OK = $IDOK (1) CANCEL = $IDCANCEL (2) ABORT = $IDABORT (3) RETRY = $IDRETRY (4) IGNORE = $IDIGNORE (5) YES = $IDYES (6) NO = $IDNO (7) CONTINUE ** = $IDCONTINUE (11) TRY…
Having started my journey in Data Science. I came across Mean Squared Error several times and realised how important that concept is. Then I started working on project and needed to really understand what Mean Squared Error is ? So what is Mean Squared Error ? Simply, let’s say you are building your model. And…
What is population size: In simple terms, let’s us say population is the WHOLE SET and What is sample size: let us say it is the SUBSET (which is within the whole set) The norm Normally subsets are within the whole set and are smaller than the whole set Can they be equal ? Yes…
I know this can be very simple and straightforward for most people, but hey, when i was beginning to program in Python, I did not know how to get the Python Idle running. Hence l cover that quickly here. It is assumed you have already downloaded and installed Python on your windows PC You can…
An experienced DevOps and Cloud Training Company to meet your DevOps and Cloud needs
You can see how this popup was set up in our step-by-step guide: https://wppopupmaker.com/guides/auto-opening-announcement-popups/