Jeff Zhang created ZEPPELIN-1898:
------------------------------------

             Summary: White spaces in the beginning is stripped in pyspark 
interpreter
                 Key: ZEPPELIN-1898
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-1898
             Project: Zeppelin
          Issue Type: Bug
    Affects Versions: 0.7.0
            Reporter: Jeff Zhang


Here's the code to reproduce this issue. 
{code}
%spark.pyspark

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

dateparse = lambda dates: pd.datetime.strptime(dates, '%Y-%m')
data = pd.read_csv("/Users/jzhang/AirPassengers.csv", parse_dates='Month', 
index_col='Month', date_parser=dateparse)
print(data.head())
print("\n Data Types:")
print(data.dtypes)
{code}

And attach the screenshot I see in zeppelin and jupyter



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to