text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import os

import os

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

import numpy as np
import pandas as pd
import os

if os.path.exists('/kaggle/input'):
    DATA_PATH = '/kaggle/input/citibike-sampled-data-2013-2017/'
    on_kaggle = True
else:
    DATA_PATH = './'
    on_kaggle = False

stationsdf = pd.read_csv(DATA_PATH + 'citibike-stations.csv')

tripsdf = pd.read_csv(DATA_PATH + 'citibike-trips.csv')

tripsdf[tripsdf.start_station_id == 3233]

tripsdf.isna().sum()

tripsdf.count()

sns.set(rc={'figure.figsize': (15, 30)})

tripsdf['tripduration'].value_counts()