2

Tables appear correct in preview, but appear as code to Stack Overflow's checkers

The tables in my questions look good in preview, but Stack Overflow's checkers won't let me submit. How do I change my tables to allow them to be pretty and successfully submitted?

Here are the input tables:

visit_df

CUST_ID VISIT_ID VISIT_DTM
1 1 2009-08-28 00:00:00.000000
1 2 2009-08-31 00:00:00.000000
20 11 2009-08-27 00:00:00.000000
20 21 2009-08-31 00:00:00.000000

customer_df

CUST_ID ATTR START_DTM END_DTM
1 'RED' 2008-08-27 00:00:00.000000 2008-08-28 00:00:00.000000
1 'BLUE' 2008-08-28 00:00:00.000000 2010-08-28 00:00:00.000000
1 'BLACK' 2009-08-29 00:00:00.000000 2010-08-28 00:00:00.000000
20 'YELLOW' 2008-08-26 00:00:00.000000 2009-08-28 00:00:00.000000
20 'BLUE' 2008-08-28 00:00:00.000000 2010-08-28 00:00:00.000000
20 BLACK 2009-08-29 00:00:00.000000 2010-09-03 00:00:00.000000

Here is the desired result

Result named augmented visit_df in the slow code

CUST_ID VISIT_ID VISIT_DTM ATTR_STR ATTR_ARRAY
1 1 2009-08-28 00:00:00.000000 'BLUE' ['BLUE']
1 2 2009-08-31 00:00:00.000000 'BLUE-BLACK' ['BLUE',BLACK']
20 11 2009-08-27 00:00:00.000000 'YELLOW-BLUE' ['YELLOW','BLUE']
20 21 2009-08-31 00:00:00.000000 'BLUE-BLACK' ['BLUE','BLACK']
4

0

Browse other questions tagged .