MCPcopy Index your code
hub / github.com/plotly/plotly.py / carshare

Function carshare

plotly/data/__init__.py:206–222  ·  view source on GitHub ↗

Each row represents the availability of car-sharing services near the centroid of a zone in Montreal over a month-long period. Parameters ---------- return_type: {'pandas', 'polars', 'pyarrow', 'modin', 'cudf'} Type of the resulting dataframe Returns -------

(return_type="pandas")

Source from the content-addressed store, hash-verified

204
205
206def carshare(return_type="pandas"):
207 """
208 Each row represents the availability of car-sharing services near the centroid of a zone
209 in Montreal over a month-long period.
210
211 Parameters
212 ----------
213 return_type: {'pandas', 'polars', 'pyarrow', 'modin', 'cudf'}
214 Type of the resulting dataframe
215
216 Returns
217 -------
218 Dataframe of `return_type` type
219 Dataframe` with 249 rows and the following columns:
220 `['centroid_lat', 'centroid_lon', 'car_hours', 'peak_hour']`.
221 """
222 return _get_dataset("carshare", return_type=return_type)
223
224
225def stocks(indexed=False, datetimes=False, return_type="pandas"):

Callers

nothing calls this directly

Calls 1

_get_datasetFunction · 0.85

Tested by

no test coverage detected