I want to filter date column for a table
data = sas.sasdata("METEOGROUP", "ABC", "PANDAS",
{
"where":
"DATE_DAY>'2021-04-20'"
}
).to_df()
But there is no result from this query. Without where clause i can see this dates. How can i solve this problem?
DATE_DAY continues dates like this ; 2016-05-03
In SAS, dates are filtered using what is called a date literal. It is of the form
'DDMMMYYYY'd. For example,'01JAN2022'd. This automatically converts the string date into a SAS date, which is the number of days since Jan 1st 1960.Here's an example of filtering sashelp.air to dates > March 1st 1955 and converting it into a pandas dataframe: