Snippets Collections
>>> ps.date_range(start='1/1/2018', periods=5, freq='M')  
DatetimeIndex(['2018-01-31', '2018-02-28', '2018-03-31', '2018-04-30',
               '2018-05-31'],
              dtype='datetime64[ns]', freq=None)
import pandas as pd # pip install pandas

#read the CSV file
data_file = =pd.read_csv('some_file.csv')
print(data_file)
star

Tue Oct 04 2022 13:28:17 GMT+0000 (Coordinated Universal Time) https://spark.apache.org/docs/latest/api/python/reference/pyspark.pandas/api/pyspark.pandas.date_range.html

#pyspark #python #panda
star

Tue Sep 06 2022 07:17:41 GMT+0000 (Coordinated Universal Time) https://www.google.com/search?q

#python #panda #opencsvfiles

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension