Advertisement

Subscribe to INVBAT.COM -AI + CHATBOT
Get personal memory assistant and augmented intelligence on demand using many devices


Advertisement
How do you like the idea of NOT saying " Oh I forgot, let me get back to you. "

NAEP Map

Advertisement


INVBAT.COM - AI revolutionizing education and how to remember using augmented intelligence.


ASK WHAT YOU NEED USING VOICE OR TEXT
search pattern instruction

Try typing or saying I need the quadratic formula
Try typing or saying get me the quadratic formula
Try typing or saying show me the quadratic formula


Enter your search. Then click fewer click search button

If nothing is found probably because you are not a subscriber.
Try our subscription.



ASK WHAT YOU NEED. TRY I NEED QUADRATIC EQUATION
AI Natural Language Query makes one click search now possible

Enter your access code above or ask what you need


INVBAT.COM - A.I. + CHATBOT voice search for formula , calculator, reviewer, work procedure and frequently asked questions (FAQ). It is useful immediately and on demand using your smartphone, notebook, tablet, laptop or desktop computer. Helping you to learn faster and 98% never forget.

INVBAT.COM - AI + CHATBOT is a personalized natural language search and information retrieval augmented intelligence service provider. We deliver immediate usefulness at affordable cost to our subscriber such as students, teachers, parents, and employees to help them remember what they stored in the cloud in one or fewer click using their smartphone, tablet, laptop, desktop computer, and smart tv.



Advertising rate $375 per year

Additional bonus if your school , community college, and university advertise, all your students and teachers will get free personal memory assistant chatbot for one month.


Advertise on this webpage. Use PayPal
After payment e-mail admin@invbat.com your advertising website link or your You Tube link and we will insert them on this webpage.





INVBAT.COM -A.I.
The Personal Memory Assistant Company

BECAUSE MOST OF US FORGET


AVAILABLE CALCULATOR FOR SUBSCRIPTION

Click here to advertise


Demo voice calculator



Available Advertising Spot
Bonus if your company advertise, all your employees will get
free personal chatbot for one month - click here.




How to use Python Python numpy and sklearn libraries
get me the tutorial Python numpy and sklearn libraries
show me the tutorial Python numpy and sklearn libraries


INVBAT.COM -A.I.
The Personal Memory Assistant Company

BECAUSE MOST OF US FORGET


AVAILABLE CALCULATOR FOR SUBSCRIPTION

import pandas as pd and numpy as np, seaborn as sns
and matplotlib.pyplot as plt

In [1]:
# Author : Apolinario (Sam) Ortega - founder of invbat.com-A.I + chatbot <admin@invbat.com)
# Date created: 6/13/2020

# license : BSD 3 clause

# comment : Lesson 18 is my attempt to understand how pandas implement the .pivot_table method

import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt

# comment # Do shift + enter
In [2]:
# comment : array must all be of the same length. Otherwise you will get error message

tips = pd.DataFrame({"Server_Name": ["Abby", "Abby", "Abby", "Nina", "Jarah",
                         "Nina", "Jay", "Adiel", "Sam","Abby", "Jana", "Excel", "Nina", "Jarah",
                         "Nina", "Jay", "Adiel", "Sam", "Abby", "Abby", "Abby", "Nina", "Jarah",
                         "Nina", "Jay", "Adiel", "Sam","Abby", "Jana", "Excel", "Nina", "Jarah",
                         "Nina", "Jay", "Adiel", "Sam"],
                     
                   "Table_Size": ["one", "one", "one", "two", "two","one", "one", "two", "two", "one", "one", 
                         "one", "two", "two", "one", "one", "two", "two", "one", "one", "one", "two", "two",
                         "one", "one", "two", "two", "one", "one", "one", "two", "two",
                         "one", "one", "two", "two"],
                     
                   "Time": ["dinner", "lunch", "lunch", "dinner", "lunch", "dinner", "lunch", "dinner",
                         "dinner" , "dinner", "lunch", "lunch", "dinner", "lunch", "dinner", "lunch", "dinner",
                         "lunch", "dinner", "lunch", "lunch", "dinner", "lunch", "dinner", "lunch", "dinner",
                         "dinner" , "dinner", "lunch", "lunch", "dinner", "lunch", "dinner", "lunch", "dinner",
                         "lunch"],
                     
                   "Day": ["Tuesday", "Tuesday", "Friday", "Saturday", "Saturday", "Saturday", "Sunday", "Sunday",
                         "Thurday" , "Tuesday", "Wednesday", "Friday", "Monday", "Monday", "Tuesday", "Thursday", "Friday",
                         "Saturday", "Sunday", "Sunday", "Thursday", "Tuesday", "Saturday", "Saturday", "Friday", "Friday",
                         "Monday" , "Monday", "Sunday", "Sunday", "Wednesday", "Monday", "Monday", "Saturday", "Friday",
                         "Sunday"],                     
                     
                     
                     
                   "Sex": ["female", "male", "male", "female", "female", "female", "male", "male",
                         "male" , "female", "male", "male", "female", "female", "female", "male", "male","male", 
                         "female", "male", "male", "female", "female", "female", "male", "male",
                         "male" , "female", "male", "male", "female", "female", "female", "male", "male","male"],
                     
                     
                   "Tips": [5, 5.5, 6, 5.25, 4.75, 4.25, 5.85, 6.45, 7.50 , 5, 5.5,
                            6, 5.25, 4.75, 4.25, 5.85, 6.45, 7.50, 5, 5.5, 6, 5.25, 4.75, 4.25, 5.85, 6.45, 7.50 , 5, 5.5,
                            6, 5.25, 4.75, 4.25, 5.85, 6.45, 7.50],
                     
                   "Total_Bills": [50.24, 42.75, 58.25, 59.25, 68.20, 61.50, 87.35, 95.45, 96.30,
                                  50.24, 42.75, 58.25, 59.25, 68.20, 61.50, 87.35, 95.45, 96.30, 50.24, 42.75, 58.25, 59.25, 68.20, 61.50, 87.35, 95.45, 96.30,
                                  50.24, 42.75, 58.25, 59.25, 68.20, 61.50, 87.35, 95.45, 96.30]})
print('')
print('Shown below is not a real data set for restaurant X')

tips

# comment # Do shift + enter
# comment # Assuming you have this Excel spreadsheet. Now I want you to use .pivot_table to create specific analyis
# for example I want to know total tips received by each server name by table size and time of meal. Next Iteration
Shown below is not a real data set for restaurant X
Out[2]:
Server_Name Table_Size Time Day Sex Tips Total_Bills
0 Abby one dinner Tuesday female 5.00 50.24
1 Abby one lunch Tuesday male 5.50 42.75
2 Abby one lunch Friday male 6.00 58.25
3 Nina two dinner Saturday female 5.25 59.25
4 Jarah two lunch Saturday female 4.75 68.20
5 Nina one dinner Saturday female 4.25 61.50
6 Jay one lunch Sunday male 5.85 87.35
7 Adiel two dinner Sunday male 6.45 95.45
8 Sam two dinner Thurday male 7.50 96.30
9 Abby one dinner Tuesday female 5.00 50.24
10 Jana one lunch Wednesday male 5.50 42.75
11 Excel one lunch Friday male 6.00 58.25
12 Nina two dinner Monday female 5.25 59.25
13 Jarah two lunch Monday female 4.75 68.20
14 Nina one dinner Tuesday female 4.25 61.50
15 Jay one lunch Thursday male 5.85 87.35
16 Adiel two dinner Friday male 6.45 95.45
17 Sam two lunch Saturday male 7.50 96.30
18 Abby one dinner Sunday female 5.00 50.24
19 Abby one lunch Sunday male 5.50 42.75
20 Abby one lunch Thursday male 6.00 58.25
21 Nina two dinner Tuesday female 5.25 59.25
22 Jarah two lunch Saturday female 4.75 68.20
23 Nina one dinner Saturday female 4.25 61.50
24 Jay one lunch Friday male 5.85 87.35
25 Adiel two dinner Friday male 6.45 95.45
26 Sam two dinner Monday male 7.50 96.30
27 Abby one dinner Monday female 5.00 50.24
28 Jana one lunch Sunday male 5.50 42.75
29 Excel one lunch Sunday male 6.00 58.25
30 Nina two dinner Wednesday female 5.25 59.25
31 Jarah two lunch Monday female 4.75 68.20
32 Nina one dinner Monday female 4.25 61.50
33 Jay one lunch Saturday male 5.85 87.35
34 Adiel two dinner Friday male 6.45 95.45
35 Sam two lunch Sunday male 7.50 96.30
In [3]:
# comment : Show me how to use .pivot_table method to create a targeted analysis
print('')
print('Tip Summary Analysis for each Server Name by table size and time')
table = pd.pivot_table(tips, values='Tips', index=['Server_Name', 'Time'],
                    columns=['Table_Size'], aggfunc=np.sum)
table
# comment # Do shift + enter
# Now I want to analysis the total bills generated by each server name by table size and meal time. Next Iteration
Tip Summary Analysis for each Server Name by table size and time
Out[3]:
Table_Size one two
Server_Name Time
Abby dinner 20.0 NaN
lunch 23.0 NaN
Adiel dinner NaN 25.8
Excel lunch 12.0 NaN
Jana lunch 11.0 NaN
Jarah lunch NaN 19.0
Jay lunch 23.4 NaN
Nina dinner 17.0 21.0
Sam dinner NaN 15.0
lunch NaN 15.0
In [4]:
# comment : Show me how to use .pivot_table method to create a targeted analysis
print('')
print('Total Bills Summary Analysis for each Server Name by table size and time')
table = pd.pivot_table(tips, values='Total_Bills', index=['Server_Name', 'Time'],
                    columns=['Table_Size'], aggfunc=np.sum)
table
# comment # Do shift + enter
# Now I want to know the tips received by server name by table size and sex. Next Iteration
Total Bills Summary Analysis for each Server Name by table size and time
Out[4]:
Table_Size one two
Server_Name Time
Abby dinner 200.96 NaN
lunch 202.00 NaN
Adiel dinner NaN 381.8
Excel lunch 116.50 NaN
Jana lunch 85.50 NaN
Jarah lunch NaN 272.8
Jay lunch 349.40 NaN
Nina dinner 246.00 237.0
Sam dinner NaN 192.6
lunch NaN 192.6
In [5]:
# comment : Show me how to use .pivot_table method to create a targeted analysis
print('')
print('Total Bills Summary Analysis for each Server Name by table size and sex')
table = pd.pivot_table(tips, values='Tips', index=['Server_Name', 'Sex'],
                    columns=['Table_Size'], aggfunc=np.sum)
table
# comment # Do shift + enter
Total Bills Summary Analysis for each Server Name by table size and sex
Out[5]:
Table_Size one two
Server_Name Sex
Abby female 20.0 NaN
male 23.0 NaN
Adiel male NaN 25.8
Excel male 12.0 NaN
Jana male 11.0 NaN
Jarah female NaN 19.0
Jay male 23.4 NaN
Nina female 17.0 21.0
Sam male NaN 30.0
In [6]:
# comment: Show the plot of tips versus total bills

tips.plot(figsize=(12,4))

plt.legend(loc='upper right')
plt.title('Total Bills vs Tip ', size=14)
plt.xlabel('Tips', size =12)
plt.ylabel('Total Bills', size=12)

# comment # Do shift + enter
Out[6]:
Text(0, 0.5, 'Total Bills')
In [7]:
# comment:


sns.relplot(x="Tips", y="Total_Bills", hue="Time", size="Sex",
            sizes=(40, 400), alpha=.5, palette="muted",
            height=6, data=tips)

print('')
print('Total Bills vs Tips analyze by sex and time of meal')
print('Color hue orange is for lunch and blue for dinner')
print('Big diameter is for female and smaller for male')

# comment # Do shift + enter
Total Bills vs Tips analyze by sex and time of meal
Color hue orange is for lunch and blue for dinner
Big diameter is for female and smaller for male
In [8]:
# comment

sns.relplot(x="Total_Bills", y="Tips", col="Time",
            hue="Sex", style="Table_Size", size="Server_Name",
            palette="YlGnBu", markers=["D", "o"], sizes=(10, 305),
            edgecolor=".2", linewidth=.5, alpha=.75,
            data=tips);

# comment # Do shift + enter
# Below the column or fieldname use for filtering the analysis is the meal time (col = "time")
# Below the diamond marker (D) represent single table and circle represent two table
# The bigger the size of the marker means bigger tips
# Who among the server name got more total and least tips? Answer is Abby and Excel
In [9]:
# comment : I want to see the distribution of tip at what meal type and what days

g = sns.catplot(x="Tips", y="Day", hue="Time",
                height=3.5, aspect=1.5,
                kind="box", legend=False, data=tips);
g.add_legend(title="Meal Type")
g.set_axis_labels("Tip ($)", "")
g.set(xlim=(0, 12), yticklabels=["Monday", "Tuesday", "Wednesday","Thursday", "Friday", "Saturday", "Sunday"])
g.despine(trim=True)
g.fig.set_size_inches(9.5, 5.5)
g.ax.set_xticks([2, 4, 6, 8, 10, 12], minor=True);
plt.setp(g.ax.get_yticklabels(), rotation=30);
# comment # Do shift + enter
In [13]:
# comment : I want to see the correlation of Tips to Total Bills
ax = sns.regplot(x="Tips", y="Total_Bills", data=tips,
                 x_estimator=np.mean, logx=True)
# comment # Do shift + enter
In [ ]:
 

CHATBOT ID number available for subscription

182d 178d 123d 268d 288d 283d 9d

108d 109d 110d 111d s1 s2 s3 s4 s5 s6


CONVERSION CALCULATOR

Binary to Hexadecimal (13) Digital Signal (14) Pressure Conversion (15)

Power Conversion (16) Energy Conversion (17) Torque Conversion (18)

cycle to millisecond (41) Temperature (43) Force conversion (44)


Distance conversion (45) Area conversion (46) Volume conversion (47)

Weight conversion (48) Mass conversion (49) Speed conversion (50)

Fluid flow conversion (51) Fundamental constant (92)








INVBAT.COM - A.I. a disruptive innovation in computing
and web search technology.

INVBAT.COM - A.I. + CHATBOT SERVICE USED IN 204 COUNTRIES





INVBAT.COM - A.I. is a disruptive innovation in computing and web search technology. For example scientific calculator help us speed up calculation but we still need to remember accurately the formula and the correct sequence of data entry. Here comes the disruptive innovation from INVBAT.COM-A.I. , today the problem of remembering formula and the correct sequence of data entry is now solved by combining formula and calculation and make it on demand using smartphone, tablet, notebook, Chromebook, laptop, desktop, school smartboard and company big screen tv in conference room with internet connection.

For web search , INVBAT.COM-A.I, is demonstrating that you can type text or use voice to text A.I. to search the web and get direct answer in one or two clicks. You don't need to waste your time looking from million of search results.

AVAILABLE CALCULATOR FOR SUBSCRIPTION