Skip to content

Instantly share code, notes, and snippets.

@simboli
simboli / Ariccia.geojson
Created November 7, 2022 09:42
geoJson loader Shapely 2.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mytracks="http://mytracks.stichling.info/myTracksGPX/1/0" creator="myTracks" version="1.1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<wpt lat="37.77829700000001" lon="-122.391174">
<ele>3.4</ele>
<time>2016-06-17T23:41:18.00000Z</time>
<desc>Lat.=37.778297, Long.=-122.391174, Alt.=3.400000m, Speed=0.000000Km/h</desc>
</wpt>
<wpt lat="37.778378" lon="-122.391117">
<ele>3.4</ele>
<time>2016-06-17T23:41:23.00000Z</time>
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mytracks="http://mytracks.stichling.info/myTracksGPX/1/0" creator="myTracks" version="1.1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<wpt lat="37.778259" lon="-122.391386">
<ele>3.4</ele>
<time>2016-06-17T23:41:03.00000Z</time>
<desc>Lat.=37.778259, Long.=-122.391386, Alt.=3.400000m, Speed=0.000000Km/h</desc>
</wpt>
<wpt lat="37.778194" lon="-122.391226">
<ele>3.4</ele>
<time>2016-06-17T23:41:13.00000Z</time>
df_stations.groupby(['neighbours'])['total_bases'].agg('sum')
# Number of ring trips % (per user_type)
round_trips=df_trip_stations['count'].loc[df_trip_stations['idplug_station']==df_trip_stations['idunplug_station']].groupby(df_trip_stations['user_type']).sum()
total_trips=df_trip_stations['count'].groupby(df_trip_stations['user_type']).sum()
round_trips.div(total_trips)*100
a=df_trip_stations['idplug_station'].unique()
b=df_stations['id'].unique()
set(a) - set(b)
# Station 21 and 23
df_stations.loc[df_stations['id'].isin(['21','23'])]
df_trip_stations.describe()
df_trip_stations.describe()
df_trip_stations['count'].sum()