Searching the annote data points in pandas - python

After this question Annotate data points while plotting from Pandas DataFrame where the points are annotated while plotting from pandas data frame. I want to search the annotate data points and show only the ones specified in the search and then update the plot with the result of the search. How do i do this ?

Related

How do I plot a contour plot of 3 column data

I have a 3 column irregular data in the format [X Y Z]. I am having difficulty in creating a contourf
plot for the same since it requires one to create a meshgrid and also that data be uniform among the grid.
I need some direction or hint to get started.
I am providing two ways in which you can create a contour/density plot for the data which is in 3-column format and irregular, as you have mentioned.
You can use Mathematica: see the documentation of ListDensityPlot. You can directly provide the data as, ListDensityPlot[{{x1,y1,f1},…,{xk,yk,fk}}], and this will plot the sought density plot.
There is also a simple way to do this in python: You can see the documentation of tricontourf, a module of matplotlib. Its functionality is similar to that of contourf, except that you give 1D arrays rather than the data in mesh grid format.

Python: Two boxplots side by side WITH RAW DATA

Hi I am trying to make two boxplots that each show the raw data points inside the boxes. Here is the Pandas DataFrame I made alongside the boxplots I made that do not include the raw data This is the pd df
this is the plots i am trying to make

How to modify my current data set in order to plot desired box plot using Seaborn?

I want to see the median as well as outliers using boxplot (seaborn). I want all boxes for all customers in a single plot . Example data looks like this:
Surveyed some drivers to capture how many times they press horn each day.
Data Set
The numbers represent the number of times horn was pressed.
I want to make boxplots for each customer to identify outliers. Actual data is quite big.
You can pass vectors of data represented as lists, numpy arrays, or pandas Series to the Seaborn boxplot function.
For example
import seaborn
import pandas as pd
import numpy as np
df = pd.read_csv("your.csv")
seaborn.boxplot(data=df)
This will result in the following figure.
An alternative would be df.boxplot() which will result in the following figure

How to use Plotly to save/extract data information selected in a graph

I used plotly to create a scatter plot from a csv.
It is possible to select a point or multiple points in this graph and save/extract information related to this point contained in the csv ?

Plotly Histogram to contain individual data values

Is there a way to plot a plotly histogram such that each bin contains further details of individual data values?
An example is the google chart histogram:
https://developers.google.com/chart/interactive/docs/gallery/histogram

Categories