Skip to content

AttributeError: 'DataFrame' object has no attribute 'sketch' #28

Closed Answered by bluecoconut
aditya-lawankar asked this question in Q&A
Discussion options

You must be logged in to vote

This is now fixed!

if you pull the latest, then this streamlit app will work

import requests
import json
import pandas as pd
import sketch
import matplotlib.pyplot as plt
import streamlit as st


''' Code for reading and cleaning csv '''

df = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]})

st.write(df.head(10))  #works fine, shows the output in frontend

query = st.text_input("Enter query here:")
st.write(df.sketch.ask(query, call_display=False))

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bluecoconut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants