I have time from epochs timestamps
I use data.Time_req = pd.to_datetime(data.Time_req)
But I get UTC time, I need +5:30 from the given time. How do I tell pandas to use 'IST'
timezone or just 5hrs 30 mins
further to the time it currently shows me. eg. 7 hrs
should become 12:30 hrs
and so on.
相关问题
- How to remove spaces in between characters without
- Removing duplicate dataframes in a list
- Groupby with weight
- Pandas reshape dataframe by adding a column level
- Replacing more than n consecutive values in Pandas
相关文章
- implementing R scale function in pandas in Python?
- Raspberry Pi-Python: Install Pandas on Python 3.5.
- How to apply multiple functions to a groupby objec
- How to remove seconds from datetime?
- 'DataFrame' object has no attribute 'i
- OLS with pandas: datetime index as predictor
- Dask read_csv fails where pandas doesn't
- How to check if any value of a column is in a rang
You can use
tz_localize
to set the timezone toUTC
/+0000, and thentz_convert
to add the timezone you want:Working with time zones.
If need add
Timedelta
only:NOTE: Adding
Timedelta
will change the epoch timestamp associated with thedatetime
object. This may not be desired for many applications.