CitiBike is New York City’s famous bike rental company and the largest in the USA. CitiBike launched in May 2013 and has become an essential part of the transportation network. They make commute fun, efficient, and affordable — not to mention healthy and good for the environment.
CitiBike是纽约市著名的自行车租赁公司,也是美国最大的自行车租赁公司。 花旗自行车(CitiBike)于2013年5月推出,现已成为交通网络的重要组成部分。 它们使通勤变得有趣,高效且负担得起,更不用说健康且对环境有益。
I have got the data of CityBike riders of June 2013 from Kaggle. I will walk you through the complete exploratory data analysis answering some of the questions like:
我从Kaggle获得了2013年6月的CityBike骑手数据。 我将引导您完成完整的探索性数据分析,回答一些问题,例如:
- Where do CitiBikers ride? CitiBikers骑在哪里?
- When do they ride? 他们什么时候骑?
- How far do they go? 他们走了多远?
- Which stations are most popular? 哪个电台最受欢迎?
- What days of the week are most rides taken on? 大多数游乐设施在一周的哪几天?
- And many more 还有很多
Key learning:
重点学习:
I have used many parameters to tweak the plotting functions of Matplotlib and Seaborn. It will be a good read to learn them practically.
我使用了许多参数来调整Matplotlib和Seaborn的绘图功能。 实际学习它们将是一本好书。
Note:
注意:
This article is best viewed on a larger screen like a tablet or desktop. At any point of time if you find difficulty in understanding anything I will be dropping the link to my Kaggle notebook at the end of this article, you can drop your quaries in the comment section.
最好在平板电脑或台式机等较大的屏幕上查看本文。 在任何时候,如果您发现难以理解任何内容,那么在本文结尾处,我都会删除指向我的Kaggle笔记本的链接,您可以在评论部分中删除您的查询。
让我们开始吧 (Let’s get started)
Importing necessary libraries and reading data.
导入必要的库并读取数据。
#importing necessary libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns#setting plot style to seaborn
plt.style.use('seaborn')#reading data
df = pd.read_csv('../input/citibike-system-data/201306-citibike-tripdata.csv')
df.head()
Let’s get some more information on the data.
让我们获取有关数据的更多信息。
df.info()
#sum of missing values in each column
df.isna().sum()

本文探讨了CitiBike的2013年6月骑行数据,通过探索性数据分析解答了骑行者的位置、时间、距离、热门站点及一周中最受欢迎的骑行日等问题。同时,文章介绍了如何使用Matplotlib和Seaborn的绘图功能进行实践学习。
最低0.47元/天 解锁文章
2646

被折叠的 条评论
为什么被折叠?



