Skip to main content

All Questions

0 votes
0 answers
51 views

Blocking a big number from appearing in PLOT Pandas

Here's my issue : i have a dataframe that reads from a csv like this DAY;FILE_TYPE 20210101;csv 20210102;xml 20210102;xml 20210102;xml 20210103;doc i want to plot the count of evry type of file ...
M.Bennani's user avatar
1 vote
1 answer
88 views

How to ignore a value that exeed from an Axis in Python

I'm new to python. I'm using python 2.7 and i'm using pandas plot to make a BarChart . here 's my code my_colors = list(islice(cycle(['#AB82FB','#9A958F','#0131CC', '#EA3C00', '#22DC00','#CCC201','#...
M.Bennani's user avatar
3 votes
1 answer
85 views

Barplot from unorganised data - dataframe creation?

From the table below, I need to create 4 different barplots, corresponding to the 4 diffeent places TST1 TST2 TST3 TST4 TST5 Each barplot should have 8 ticks for NOT_DONE INCOMP UNTESTED 30 35 40 45 ...
coding amat's user avatar
0 votes
1 answer
134 views

Barplot for a count of elements from different columns - guidance

According to a given dataset, I need to give 3 barplots which correspond to the 3 sites from the Sites column, A1 A2 or A3. Each barplot should give the count of the outcome for each site. The outcome ...
Boston Co's user avatar
-1 votes
1 answer
354 views

How to plot a stacked bar using the groupby data from the dataframe in python?

I am reading huge csv file using pandas module. filename = pd.read_csv(filepath) Converted to Dataframe, df = pd.DataFrame(filename, index=None) From the csv file, I am concerned with the three ...
sodmzs's user avatar
  • 194
0 votes
0 answers
61 views

Plotting graph using matplotlib and pandas following tutorial causes error

So I'm following the tutorial from scratch and faced with a problem. I'm trying to plot graph but something goes wrong import matplotlib.pyplot as plt import pandas as pd import numpy as np from ...
Iwa Greenwood's user avatar
1 vote
2 answers
318 views

How do I categorise and plot data from a Pandas dataframe using Matplotlib?

I have a DataFrame of Tweet values and want to plot a graph of 'Favourites' against 'Date' and categorise/colour-code the data by 'User'. I am able to get a scatter or bar plot of the data but ...
SwampCrawford's user avatar
1 vote
1 answer
503 views

Multiple plots on subplots in pandas

Let's say I've got a dataframe that looks like this (indexed on dates): Value1 Value2 Value3 Value4 Value5 1 1 3 4 -1 2 2 3 4 1 3 3 3 2 ...
Nikhil P's user avatar
-2 votes
1 answer
254 views

how to plot bar graph of lantitude longitude with respect to time in python using pandas?

I have csv file with attributes latitude, longitude, date and time. i want to plot no. of visited points vs. time. latitude|longitude|time | date -122.22|33.36 |10:20:12|december 2016 -122.23|...
Rigzin Angmo's user avatar
0 votes
0 answers
327 views

AttributeError: 'Index' object has no attribute 'left'

I tried to work on the following solution import pandas as pd import numpy as np import matplotlib.pyplot as plt my_list = [1,2,3,4,5,7,8,9,11,23,56,78,3,3,5,7,9,12] new_list = pd.Series(my_list) ...
rockharner's user avatar
1 vote
0 answers
45 views

Python: How to get the number range in order

Trying to plot a number graph but the number range on x-axis is not ordered. Code snippet: import pandas as pd import numpy as np import matplotlib.pyplot as plt def plot_sam_img(self): ...
Alpha001's user avatar
  • 371
4 votes
2 answers
18k views

Getting 'ValueError: x and y must be 1D arrays of the same length' when they are in fact 1D arrays of same length

I have this dataframe: key variable value 0 0.25 -0.2 606623.455859 1 0.27 -0.2 621462.029200 2 0.30 -0.2 640299.078053 3 0.33 -0.2 653686.910706 4 0.35 -0....
Rushwin Jamdas's user avatar
0 votes
1 answer
52 views

How to make a stacked graph directly from a python groupby code?

I want to make a chart after applying groupby So I have applied Sales_comparison = SalesData[['Region', 'Sales2015', 'Sales2016']].groupby(['Region']).agg(['sum']) I have tried for the graph ax = ...
Abir Basak's user avatar
0 votes
2 answers
66 views

I am getting barplot , but not getting scatterplot

I am on python 2.7, with spyder IDE and this is my data: Duration ptno 7432.0 X35133502100 7432.0 X35133502100 35255.0 T7956000304 35255.0 ...
surya rahul's user avatar
2 votes
1 answer
61 views

Only apply changes to table inside unknown boundaries (walls)

I want my loop to only change the table cell from 0 to 5 inside the "walls". The "walls" are user defined and could be of any shape, based on coordinates. The plot is only for visualization. import ...
sinB's user avatar
  • 185

15 30 50 per page
1
2 3 4 5
11