VOOZH about

URL: https://www.geeksforgeeks.org/python/python-pandas-period_range-method/

⇱ Python | pandas.period_range() method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python | pandas.period_range() method

Last Updated : 17 Dec, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. pandas.period_range() is one of the general functions in Pandas which is used to return a fixed frequency PeriodIndex, with day (calendar) as the default frequency.
Syntax: pandas.to_numeric(arg, errors='raise', downcast=None) Parameters: start : Left bound for generating periods end : Right bound for generating periods periods : Number of periods to generate freq : Frequency alias name : Name of the resulting PeriodIndex Returns: PeriodIndex
Code #1: Output: 👁 Image
  Code #2: Output: 👁 Image
  Code #3:
Output: 👁 Image
Comment