To elaborate the issue what's happening is that we have a table in snowflake that is being loaded into a pandas data frame, we are then loading this data frame into a csv using to_csv(). The thing is that there is one column in our data frame, let's say COL1 there is one value(and many such values) eg: 5MAR, this particular value while loading into the csv is getting converted to date i.e. 5-Mar, similarly 5JUL is getting converted to 5-Jul. How do I resolve this issue, been stuck on it since 2 days. Would really appreciate if someone would help me.
These are the following things I've tried:
- df.to_csv(csv_buffer, sep=",", quotechar='"', index=False, encoding='utf-8'). I've tried adding encoding = utf-8 but it is not working
- also tried changing the data type of that column to string(earlier it was object) but after the conversion using 'astype(str)' still the data type is object.