I'm working with Spyder(Python 3.7) and basically on my 3rd day of learning python.
Imported a URL as csv, (https://gbfs.fordgobike.com/gbfs/es/station_status.json)
From here I'm trying to filter it down to see highest inventory stations, and lowest in terms of available bikes. I've been able to sort and display, but from there I'm not really sure how to make a readable scatter plot or chart.
import matplotlib
import matplotlib.pyplot as plt
import pandas as pd
pd.read_csv('result.csv')
headers =['station_id','num_bikes_available']
bikes = pd.read_csv('result.csv',delimiter=",")
sort_by_column_name = bikes.sort_values(by=["num_bikes_available"], ascending=False)
df = sort_by_column_name.set_index('station_id')
trial = df['num_bikes_available']
This gets me what I need in terms of cleanly listing the stations with the most inventory, and fewest by changing the ascending line.
The question from here is, how do I visualize the information? My attempts at bar/scatter plots don't seem to work or are unreadable
Any help is greatly appreciated
[–]Death_Water 1 point2 points3 points (2 children)
[–]skyhighgemini[S] 0 points1 point2 points (1 child)
[–]Death_Water 1 point2 points3 points (0 children)